mirror of
https://github.com/docker/login-action.git
synced 2026-12-05 02:26:01 +00:00
261 lines
2.2 MiB
Plaintext
Generated
261 lines
2.2 MiB
Plaintext
Generated
var r5e=Object.create;var YC=Object.defineProperty;var n5e=Object.getOwnPropertyDescriptor;var s5e=Object.getOwnPropertyNames;var o5e=Object.getPrototypeOf,i5e=Object.prototype.hasOwnProperty;var i=(t,e)=>YC(t,"name",{value:e,configurable:!0});var g=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cr=(t,e)=>{for(var r in e)YC(t,r,{get:e[r],enumerable:!0})},gre=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of s5e(e))!i5e.call(t,s)&&s!==r&&YC(t,s,{get:()=>e[s],enumerable:!(n=n5e(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?r5e(o5e(t)):{},gre(e||!t||!t.__esModule?YC(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>gre(YC({},"__esModule",{value:!0}),t);var Bre=S(sA=>{"use strict";var l7t=require("net"),p5e=require("tls"),N2=require("http"),wre=require("https"),f5e=require("events"),u7t=require("assert"),m5e=require("util");sA.httpOverHttp=h5e;sA.httpsOverHttp=A5e;sA.httpOverHttps=g5e;sA.httpsOverHttps=y5e;function h5e(t){var e=new Xl(t);return e.request=N2.request,e}i(h5e,"httpOverHttp");function A5e(t){var e=new Xl(t);return e.request=N2.request,e.createSocket=xre,e.defaultPort=443,e}i(A5e,"httpsOverHttp");function g5e(t){var e=new Xl(t);return e.request=wre.request,e}i(g5e,"httpOverHttps");function y5e(t){var e=new Xl(t);return e.request=wre.request,e.createSocket=xre,e.defaultPort=443,e}i(y5e,"httpsOverHttps");function Xl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||N2.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=bre(s,o,a),l=0,u=e.requests.length;l<u;++l){var d=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(Xl,"TunnelingAgent");m5e.inherits(Xl,f5e.EventEmitter);Xl.prototype.addRequest=i(function(e,r,n,s){var o=this,a=T2({request:e},o.options,bre(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);function l(){o.emit("free",c,a)}i(l,"onFree");function u(d){o.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}i(u,"onCloseOrRemove")})},"addRequest");Xl.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=T2({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(o.localAddress=e.localAddress),o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),rd("making CONNECT request");var a=n.request(o);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(p){p.upgrade=!0}i(c,"onResponse");function l(p,f,m){process.nextTick(function(){u(p,f,m)})}i(l,"onUpgrade");function u(p,f,m){if(a.removeAllListeners(),f.removeAllListeners(),p.statusCode!==200){rd("tunneling socket could not be established, statusCode=%d",p.statusCode),f.destroy();var h=new Error("tunneling socket could not be established, statusCode="+p.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(m.length>0){rd("got illegal response body from proxy"),f.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return rd("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");function d(p){a.removeAllListeners(),rd(`tunneling socket could not be established, cause=%s
|
|
`,p.message,p.stack);var f=new Error("tunneling socket could not be established, cause="+p.message);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s)}i(d,"onError")},"createSocket");Xl.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function xre(t,e){var r=this;Xl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=T2({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=p5e.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(xre,"createSecureSocket");function bre(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(bre,"toOptions");function T2(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),o=0,a=s.length;o<a;++o){var c=s[o];n[c]!==void 0&&(t[c]=n[c])}}return t}i(T2,"mergeOptions");var rd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?rd=i(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):rd=i(function(){},"debug");sA.debug=rd});var oA=S((f7t,Rre)=>{Rre.exports=Bre()});var Ht=S((m7t,Nre)=>{Nre.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var at=S((h7t,Zre)=>{"use strict";var Tre=Symbol.for("undici.error.UND_ERR"),zt=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Tre]===!0}[Tre]=!0},Pre=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),P2=class extends zt{static{i(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Pre]===!0}[Pre]=!0},_re=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),_2=class extends zt{static{i(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[_re]===!0}[_re]=!0},vre=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),v2=class extends zt{static{i(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[vre]===!0}[vre]=!0},Qre=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Q2=class extends zt{static{i(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[Qre]===!0}[Qre]=!0},Dre=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),D2=class extends zt{static{i(this,"ResponseStatusCodeError")}constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.status=r,this.statusCode=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[Dre]===!0}[Dre]=!0},kre=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),k2=class extends zt{static{i(this,"InvalidArgumentError")}constructor(e){super(e),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[kre]===!0}[kre]=!0},Ore=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),O2=class extends zt{static{i(this,"InvalidReturnValueError")}constructor(e){super(e),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[Ore]===!0}[Ore]=!0},Lre=Symbol.for("undici.error.UND_ERR_ABORT"),wB=class extends zt{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError",this.message=e||"The operation was aborted",this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[Lre]===!0}[Lre]=!0},Mre=Symbol.for("undici.error.UND_ERR_ABORTED"),L2=class extends wB{static{i(this,"RequestAbortedError")}constructor(e){super(e),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[Mre]===!0}[Mre]=!0},Fre=Symbol.for("undici.error.UND_ERR_INFO"),M2=class extends zt{static{i(this,"InformationalError")}constructor(e){super(e),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[Fre]===!0}[Fre]=!0},Ure=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),F2=class extends zt{static{i(this,"RequestContentLengthMismatchError")}constructor(e){super(e),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[Ure]===!0}[Ure]=!0},qre=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),U2=class extends zt{static{i(this,"ResponseContentLengthMismatchError")}constructor(e){super(e),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[qre]===!0}[qre]=!0},$re=Symbol.for("undici.error.UND_ERR_DESTROYED"),q2=class extends zt{static{i(this,"ClientDestroyedError")}constructor(e){super(e),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[$re]===!0}[$re]=!0},Gre=Symbol.for("undici.error.UND_ERR_CLOSED"),$2=class extends zt{static{i(this,"ClientClosedError")}constructor(e){super(e),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[Gre]===!0}[Gre]=!0},Hre=Symbol.for("undici.error.UND_ERR_SOCKET"),G2=class extends zt{static{i(this,"SocketError")}constructor(e,r){super(e),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=r}static[Symbol.hasInstance](e){return e&&e[Hre]===!0}[Hre]=!0},zre=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),H2=class extends zt{static{i(this,"NotSupportedError")}constructor(e){super(e),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[zre]===!0}[zre]=!0},Vre=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),z2=class extends zt{static{i(this,"BalancedPoolMissingUpstreamError")}constructor(e){super(e),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[Vre]===!0}[Vre]=!0},Wre=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),V2=class extends Error{static{i(this,"HTTPParserError")}constructor(e,r,n){super(e),this.name="HTTPParserError",this.code=r?`HPE_${r}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[Wre]===!0}[Wre]=!0},Yre=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),W2=class extends zt{static{i(this,"ResponseExceededMaxSizeError")}constructor(e){super(e),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[Yre]===!0}[Yre]=!0},Jre=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),Y2=class extends zt{static{i(this,"RequestRetryError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[Jre]===!0}[Jre]=!0},jre=Symbol.for("undici.error.UND_ERR_RESPONSE"),J2=class extends zt{static{i(this,"ResponseError")}constructor(e,r,{headers:n,data:s}){super(e),this.name="ResponseError",this.message=e||"Response error",this.code="UND_ERR_RESPONSE",this.statusCode=r,this.data=s,this.headers=n}static[Symbol.hasInstance](e){return e&&e[jre]===!0}[jre]=!0},Kre=Symbol.for("undici.error.UND_ERR_PRX_TLS"),j2=class extends zt{static{i(this,"SecureProxyConnectionError")}constructor(e,r,n){super(r,{cause:e,...n??{}}),this.name="SecureProxyConnectionError",this.message=r||"Secure Proxy Connection failed",this.code="UND_ERR_PRX_TLS",this.cause=e}static[Symbol.hasInstance](e){return e&&e[Kre]===!0}[Kre]=!0},Xre=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),K2=class extends zt{static{i(this,"MessageSizeExceededError")}constructor(e){super(e),this.name="MessageSizeExceededError",this.message=e||"Max decompressed message size exceeded",this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[Xre]===!0}get[Xre](){return!0}};Zre.exports={AbortError:wB,HTTPParserError:V2,UndiciError:zt,HeadersTimeoutError:_2,HeadersOverflowError:v2,BodyTimeoutError:Q2,RequestContentLengthMismatchError:F2,ConnectTimeoutError:P2,ResponseStatusCodeError:D2,InvalidArgumentError:k2,InvalidReturnValueError:O2,RequestAbortedError:L2,ClientDestroyedError:q2,ClientClosedError:$2,InformationalError:M2,SocketError:G2,NotSupportedError:H2,ResponseContentLengthMismatchError:U2,BalancedPoolMissingUpstreamError:z2,ResponseExceededMaxSizeError:W2,RequestRetryError:Y2,ResponseError:J2,SecureProxyConnectionError:j2,MessageSizeExceededError:K2}});var bB=S((g7t,ene)=>{"use strict";var xB={},X2=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let t=0;t<X2.length;++t){let e=X2[t],r=e.toLowerCase();xB[e]=xB[r]=r}Object.setPrototypeOf(xB,null);ene.exports={wellknownHeaderNames:X2,headerNameLowerCasedRecord:xB}});var sne=S((y7t,nne)=>{"use strict";var{wellknownHeaderNames:tne,headerNameLowerCasedRecord:E5e}=bB(),Z2=class t{static{i(this,"TstNode")}value=null;left=null;middle=null;right=null;code;constructor(e,r,n){if(n===void 0||n>=e.length)throw new TypeError("Unreachable");if((this.code=e.charCodeAt(n))>127)throw new TypeError("key must be ascii string");e.length!==++n?this.middle=new t(e,r,n):this.value=r}add(e,r){let n=e.length;if(n===0)throw new TypeError("Unreachable");let s=0,o=this;for(;;){let a=e.charCodeAt(s);if(a>127)throw new TypeError("key must be ascii string");if(o.code===a)if(n===++s){o.value=r;break}else if(o.middle!==null)o=o.middle;else{o.middle=new t(e,r,s);break}else if(o.code<a)if(o.left!==null)o=o.left;else{o.left=new t(e,r,s);break}else if(o.right!==null)o=o.right;else{o.right=new t(e,r,s);break}}}search(e){let r=e.length,n=0,s=this;for(;s!==null&&n<r;){let o=e[n];for(o<=90&&o>=65&&(o|=32);s!==null;){if(o===s.code){if(r===++n)return s;s=s.middle;break}s=s.code<o?s.left:s.right}}return null}},BB=class{static{i(this,"TernarySearchTree")}node=null;insert(e,r){this.node===null?this.node=new Z2(e,r,0):this.node.add(e,r)}lookup(e){return this.node?.search(e)?.value??null}},rne=new BB;for(let t=0;t<tne.length;++t){let e=E5e[tne[t]];rne.insert(e,e)}nne.exports={TernarySearchTree:BB,tree:rne}});var Ye=S((C7t,Cne)=>{"use strict";var JC=require("node:assert"),{kDestroyed:ine,kBodyUsed:iA,kListeners:eq,kBody:one}=Ht(),{IncomingMessage:C5e}=require("node:http"),TB=require("node:stream"),I5e=require("node:net"),{Blob:S5e}=require("node:buffer"),w5e=require("node:util"),{stringify:x5e}=require("node:querystring"),{EventEmitter:b5e}=require("node:events"),{InvalidArgumentError:nn}=at(),{headerNameLowerCasedRecord:B5e}=bB(),{tree:ane}=sne(),[R5e,N5e]=process.versions.node.split(".").map(t=>Number(t)),NB=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[one]=e,this[iA]=!1}async*[Symbol.asyncIterator](){JC(!this[iA],"disturbed"),this[iA]=!0,yield*this[one]}};function T5e(t){return PB(t)?(pne(t)===0&&t.on("data",function(){JC(!1)}),typeof t.readableDidRead!="boolean"&&(t[iA]=!1,b5e.prototype.on.call(t,"data",function(){this[iA]=!0})),t):t&&typeof t.pipeTo=="function"?new NB(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&dne(t)?new NB(t):t}i(T5e,"wrapRequestBody");function P5e(){}i(P5e,"nop");function PB(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(PB,"isStream");function cne(t){if(t===null)return!1;if(t instanceof S5e)return!0;if(typeof t!="object")return!1;{let e=t[Symbol.toStringTag];return(e==="Blob"||e==="File")&&("stream"in t&&typeof t.stream=="function"||"arrayBuffer"in t&&typeof t.arrayBuffer=="function")}}i(cne,"isBlobLike");function _5e(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=x5e(e);return r&&(t+="?"+r),t}i(_5e,"buildURL");function lne(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(lne,"isValidPort");function RB(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(RB,"isHttpOrHttpsPrefixed");function une(t){if(typeof t=="string"){if(t=new URL(t),!RB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new nn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&lne(t.port)===!1)throw new nn("Invalid URL: port must be a valid integer or a string representation of an integer.");if(t.path!=null&&typeof t.path!="string")throw new nn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new nn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new nn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new nn("Invalid URL origin: the origin must be a string or null/undefined.");if(!RB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");let e=t.port!=null?t.port:t.protocol==="https:"?443:80,r=t.origin!=null?t.origin:`${t.protocol||""}//${t.hostname||""}:${e}`,n=t.path!=null?t.path:`${t.pathname||""}${t.search||""}`;return r[r.length-1]==="/"&&(r=r.slice(0,r.length-1)),n&&n[0]!=="/"&&(n=`/${n}`),new URL(`${r}${n}`)}if(!RB(t.origin||t.protocol))throw new nn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(une,"parseURL");function v5e(t){if(t=une(t),t.pathname!=="/"||t.search||t.hash)throw new nn("invalid url");return t}i(v5e,"parseOrigin");function Q5e(t){if(t[0]==="["){let r=t.indexOf("]");return JC(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(Q5e,"getHostname");function D5e(t){if(!t)return null;JC(typeof t=="string");let e=Q5e(t);return I5e.isIP(e)?"":e}i(D5e,"getServerName");function k5e(t){return JSON.parse(JSON.stringify(t))}i(k5e,"deepClone");function O5e(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(O5e,"isAsyncIterable");function dne(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(dne,"isIterable");function pne(t){if(t==null)return 0;if(PB(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(cne(t))return t.size!=null?t.size:null;if(hne(t))return t.byteLength}return null}i(pne,"bodyLength");function fne(t){return t&&!!(t.destroyed||t[ine]||TB.isDestroyed?.(t))}i(fne,"isDestroyed");function L5e(t,e){t==null||!PB(t)||fne(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===C5e&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[ine]=!0))}i(L5e,"destroy");var M5e=/timeout=(\d+)/;function F5e(t){let e=t.toString().match(M5e);return e?parseInt(e[1],10)*1e3:null}i(F5e,"parseKeepAliveTimeout");function mne(t){return typeof t=="string"?B5e[t]??t.toLowerCase():ane.lookup(t)??t.toString("latin1").toLowerCase()}i(mne,"headerNameToString");function U5e(t){return ane.lookup(t)??t.toString("latin1").toLowerCase()}i(U5e,"bufferToLowerCasedHeaderName");function q5e(t,e){e===void 0&&(e={});for(let r=0;r<t.length;r+=2){let n=mne(t[r]),s=e[n];if(s)typeof s=="string"&&(s=[s],e[n]=s),s.push(t[r+1].toString("utf8"));else{let o=t[r+1];typeof o=="string"?e[n]=o:e[n]=Array.isArray(o)?o.map(a=>a.toString("utf8")):o.toString("utf8")}}return"content-length"in e&&"content-disposition"in e&&(e["content-disposition"]=Buffer.from(e["content-disposition"]).toString("latin1")),e}i(q5e,"parseHeaders");function $5e(t){let e=t.length,r=new Array(e),n=!1,s=-1,o,a,c=0;for(let l=0;l<t.length;l+=2)o=t[l],a=t[l+1],typeof o!="string"&&(o=o.toString()),typeof a!="string"&&(a=a.toString("utf8")),c=o.length,c===14&&o[7]==="-"&&(o==="content-length"||o.toLowerCase()==="content-length")?n=!0:c===19&&o[7]==="-"&&(o==="content-disposition"||o.toLowerCase()==="content-disposition")&&(s=l+1),r[l]=o,r[l+1]=a;return n&&s!==-1&&(r[s]=Buffer.from(r[s]).toString("latin1")),r}i($5e,"parseRawHeaders");function hne(t){return t instanceof Uint8Array||Buffer.isBuffer(t)}i(hne,"isBuffer");function G5e(t,e,r){if(!t||typeof t!="object")throw new nn("handler must be an object");if(typeof t.onConnect!="function")throw new nn("invalid onConnect method");if(typeof t.onError!="function")throw new nn("invalid onError method");if(typeof t.onBodySent!="function"&&t.onBodySent!==void 0)throw new nn("invalid onBodySent method");if(r||e==="CONNECT"){if(typeof t.onUpgrade!="function")throw new nn("invalid onUpgrade method")}else{if(typeof t.onHeaders!="function")throw new nn("invalid onHeaders method");if(typeof t.onData!="function")throw new nn("invalid onData method");if(typeof t.onComplete!="function")throw new nn("invalid onComplete method")}}i(G5e,"validateHandler");function H5e(t){return!!(t&&(TB.isDisturbed(t)||t[iA]))}i(H5e,"isDisturbed");function z5e(t){return!!(t&&TB.isErrored(t))}i(z5e,"isErrored");function V5e(t){return!!(t&&TB.isReadable(t))}i(V5e,"isReadable");function W5e(t){return{localAddress:t.localAddress,localPort:t.localPort,remoteAddress:t.remoteAddress,remotePort:t.remotePort,remoteFamily:t.remoteFamily,timeout:t.timeout,bytesWritten:t.bytesWritten,bytesRead:t.bytesRead}}i(W5e,"getSocketInfo");function Y5e(t){let e;return new ReadableStream({async start(){e=t[Symbol.asyncIterator]()},async pull(r){let{done:n,value:s}=await e.next();if(n)queueMicrotask(()=>{r.close(),r.byobRequest?.respond(0)});else{let o=Buffer.isBuffer(s)?s:Buffer.from(s);o.byteLength&&r.enqueue(new Uint8Array(o))}return r.desiredSize>0},async cancel(r){await e.return()},type:"bytes"})}i(Y5e,"ReadableStreamFrom");function J5e(t){return t&&typeof t=="object"&&typeof t.append=="function"&&typeof t.delete=="function"&&typeof t.get=="function"&&typeof t.getAll=="function"&&typeof t.has=="function"&&typeof t.set=="function"&&t[Symbol.toStringTag]==="FormData"}i(J5e,"isFormDataLike");function j5e(t,e){return"addEventListener"in t?(t.addEventListener("abort",e,{once:!0}),()=>t.removeEventListener("abort",e)):(t.addListener("abort",e),()=>t.removeListener("abort",e))}i(j5e,"addAbortListener");var K5e=typeof String.prototype.toWellFormed=="function",X5e=typeof String.prototype.isWellFormed=="function";function Ane(t){return K5e?`${t}`.toWellFormed():w5e.toUSVString(t)}i(Ane,"toUSVString");function Z5e(t){return X5e?`${t}`.isWellFormed():Ane(t)===`${t}`}i(Z5e,"isUSVString");function gne(t){switch(t){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return!1;default:return t>=33&&t<=126}}i(gne,"isTokenCharCode");function e6e(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e)if(!gne(t.charCodeAt(e)))return!1;return!0}i(e6e,"isValidHTTPToken");var t6e=/[^\t\x20-\x7e\x80-\xff]/;function r6e(t){return!t6e.test(t)}i(r6e,"isValidHeaderValue");function n6e(t){if(t==null||t==="")return{start:0,end:null,size:null};let e=t?t.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return e?{start:parseInt(e[1]),end:e[2]?parseInt(e[2]):null,size:e[3]?parseInt(e[3]):null}:null}i(n6e,"parseRangeHeader");function s6e(t,e,r){return(t[eq]??=[]).push([e,r]),t.on(e,r),t}i(s6e,"addListener");function o6e(t){for(let[e,r]of t[eq]??[])t.removeListener(e,r);t[eq]=null}i(o6e,"removeAllListeners");function i6e(t,e,r){try{e.onError(r),JC(e.aborted)}catch(n){t.emit("error",n)}}i(i6e,"errorRequest");var yne=Object.create(null);yne.enumerable=!0;var tq={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"},Ene={...tq,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(tq,null);Object.setPrototypeOf(Ene,null);Cne.exports={kEnumerableProperty:yne,nop:P5e,isDisturbed:H5e,isErrored:z5e,isReadable:V5e,toUSVString:Ane,isUSVString:Z5e,isBlobLike:cne,parseOrigin:v5e,parseURL:une,getServerName:D5e,isStream:PB,isIterable:dne,isAsyncIterable:O5e,isDestroyed:fne,headerNameToString:mne,bufferToLowerCasedHeaderName:U5e,addListener:s6e,removeAllListeners:o6e,errorRequest:i6e,parseRawHeaders:$5e,parseHeaders:q5e,parseKeepAliveTimeout:F5e,destroy:L5e,bodyLength:pne,deepClone:k5e,ReadableStreamFrom:Y5e,isBuffer:hne,validateHandler:G5e,getSocketInfo:W5e,isFormDataLike:J5e,buildURL:_5e,addAbortListener:j5e,isValidHTTPToken:e6e,isValidHeaderValue:r6e,isTokenCharCode:gne,parseRangeHeader:n6e,normalizedMethodRecordsBase:tq,normalizedMethodRecords:Ene,isValidPort:lne,isHttpOrHttpsPrefixed:RB,nodeMajor:R5e,nodeMinor:N5e,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:T5e}});var aA=S((S7t,Sne)=>{"use strict";var ht=require("node:diagnostics_channel"),nq=require("node:util"),_B=nq.debuglog("undici"),rq=nq.debuglog("fetch"),Af=nq.debuglog("websocket"),Ine=!1,a6e={beforeConnect:ht.channel("undici:client:beforeConnect"),connected:ht.channel("undici:client:connected"),connectError:ht.channel("undici:client:connectError"),sendHeaders:ht.channel("undici:client:sendHeaders"),create:ht.channel("undici:request:create"),bodySent:ht.channel("undici:request:bodySent"),headers:ht.channel("undici:request:headers"),trailers:ht.channel("undici:request:trailers"),error:ht.channel("undici:request:error"),open:ht.channel("undici:websocket:open"),close:ht.channel("undici:websocket:close"),socketError:ht.channel("undici:websocket:socket_error"),ping:ht.channel("undici:websocket:ping"),pong:ht.channel("undici:websocket:pong")};if(_B.enabled||rq.enabled){let t=rq.enabled?rq:_B;ht.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),ht.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s using %s%s",`${o}${s?`:${s}`:""}`,n,r)}),ht.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s using %s%s errored - %s",`${o}${s?`:${s}`:""}`,n,r,a.message)}),ht.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)}),ht.channel("undici:request:headers").subscribe(e=>{let{request:{method:r,path:n,origin:s},response:{statusCode:o}}=e;t("received response to %s %s/%s - HTTP %d",r,s,n,o)}),ht.channel("undici:request:trailers").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("trailers received from %s %s/%s",r,s,n)}),ht.channel("undici:request:error").subscribe(e=>{let{request:{method:r,path:n,origin:s},error:o}=e;t("request to %s %s/%s errored - %s",r,s,n,o.message)}),Ine=!0}if(Af.enabled){if(!Ine){let t=_B.enabled?_B:Af;ht.channel("undici:client:beforeConnect").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connecting to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),ht.channel("undici:client:connected").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o}}=e;t("connected to %s%s using %s%s",o,s?`:${s}`:"",n,r)}),ht.channel("undici:client:connectError").subscribe(e=>{let{connectParams:{version:r,protocol:n,port:s,host:o},error:a}=e;t("connection to %s%s using %s%s errored - %s",o,s?`:${s}`:"",n,r,a.message)}),ht.channel("undici:client:sendHeaders").subscribe(e=>{let{request:{method:r,path:n,origin:s}}=e;t("sending request to %s %s/%s",r,s,n)})}ht.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;Af("connection opened %s%s",e,r?`:${r}`:"")}),ht.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;Af("closed connection to %s - %s %s",e.url,r,n)}),ht.channel("undici:websocket:socket_error").subscribe(t=>{Af("connection errored - %s",t.message)}),ht.channel("undici:websocket:ping").subscribe(t=>{Af("ping received")}),ht.channel("undici:websocket:pong").subscribe(t=>{Af("pong received")})}Sne.exports={channels:a6e}});var Bne=S((w7t,bne)=>{"use strict";var{InvalidArgumentError:It,NotSupportedError:c6e}=at(),ho=require("node:assert"),{isValidHTTPToken:xne,isValidHeaderValue:jC,isStream:l6e,destroy:u6e,isBuffer:d6e,isFormDataLike:p6e,isIterable:f6e,isBlobLike:m6e,buildURL:h6e,validateHandler:A6e,getServerName:g6e,normalizedMethodRecords:y6e}=Ye(),{channels:xn}=aA(),{headerNameLowerCasedRecord:wne}=bB(),E6e=/[^\u0021-\u00ff]/,ni=Symbol("handler"),sq=class{static{i(this,"Request")}constructor(e,{path:r,method:n,body:s,headers:o,query:a,idempotent:c,blocking:l,upgrade:u,headersTimeout:d,bodyTimeout:p,reset:f,throwOnError:m,expectContinue:h,servername:A},y){if(typeof r!="string")throw new It("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new It("path must be an absolute URL or start with a slash");if(E6e.test(r))throw new It("invalid request path");if(typeof n!="string")throw new It("method must be a string");if(y6e[n]===void 0&&!xne(n))throw new It("invalid request method");if(u&&typeof u!="string")throw new It("upgrade must be a string");if(u&&!jC(u))throw new It("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new It("invalid headersTimeout");if(p!=null&&(!Number.isFinite(p)||p<0))throw new It("invalid bodyTimeout");if(f!=null&&typeof f!="boolean")throw new It("invalid reset");if(h!=null&&typeof h!="boolean")throw new It("invalid expectContinue");if(this.headersTimeout=d,this.bodyTimeout=p,this.throwOnError=m===!0,this.method=n,this.abort=null,s==null)this.body=null;else if(l6e(s)){this.body=s;let E=this.body._readableState;(!E||!E.autoDestroy)&&(this.endHandler=i(function(){u6e(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=I=>{this.abort?this.abort(I):this.error=I},this.body.on("error",this.errorHandler)}else if(d6e(s))this.body=s.byteLength?s:null;else if(ArrayBuffer.isView(s))this.body=s.buffer.byteLength?Buffer.from(s.buffer,s.byteOffset,s.byteLength):null;else if(s instanceof ArrayBuffer)this.body=s.byteLength?Buffer.from(s):null;else if(typeof s=="string")this.body=s.length?Buffer.from(s):null;else if(p6e(s)||f6e(s)||m6e(s))this.body=s;else throw new It("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=u||null,this.path=a?h6e(r,a):r,this.origin=e,this.idempotent=c??(n==="HEAD"||n==="GET"),this.blocking=l??!1,this.reset=f??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=h??!1,Array.isArray(o)){if(o.length%2!==0)throw new It("headers array must be even");for(let E=0;E<o.length;E+=2)vB(this,o[E],o[E+1])}else if(o&&typeof o=="object")if(o[Symbol.iterator])for(let E of o){if(!Array.isArray(E)||E.length!==2)throw new It("headers must be in key-value pair format");vB(this,E[0],E[1])}else{let E=Object.keys(o);for(let I=0;I<E.length;++I)vB(this,E[I],o[E[I]])}else if(o!=null)throw new It("headers must be an object or an array");A6e(y,n,u),this.servername=A||g6e(this.host),this[ni]=y,xn.create.hasSubscribers&&xn.create.publish({request:this})}onBodySent(e){if(this[ni].onBodySent)try{return this[ni].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(xn.bodySent.hasSubscribers&&xn.bodySent.publish({request:this}),this[ni].onRequestSent)try{return this[ni].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(ho(!this.aborted),ho(!this.completed),this.error)e(this.error);else return this.abort=e,this[ni].onConnect(e)}onResponseStarted(){return this[ni].onResponseStarted?.()}onHeaders(e,r,n,s){ho(!this.aborted),ho(!this.completed),xn.headers.hasSubscribers&&xn.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[ni].onHeaders(e,r,n,s)}catch(o){this.abort(o)}}onData(e){ho(!this.aborted),ho(!this.completed);try{return this[ni].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n,s=""){this.onFinally(),ho(!this.aborted),ho(!this.completed),e!==null&&this.#e(e,r,s);let o=this[ni].onUpgrade(e,r,n);return this.aborted||(this.completed=!0,e!==null&&this.#t()),o}onUpgradeResponse(e,r,n,s=""){ho(!this.aborted),ho(this.completed),xn.headers.hasSubscribers&&this.#e(e,n(r),s),this.#t()}onUpgradeError(e){ho(!this.aborted),ho(this.completed),xn.error.hasSubscribers&&xn.error.publish({request:this,error:e})}#e(e,r,n){xn.headers.hasSubscribers&&xn.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:n}})}#t(){xn.trailers.hasSubscribers&&xn.trailers.publish({request:this,trailers:[]})}onComplete(e){this.onFinally(),ho(!this.aborted),this.completed=!0,xn.trailers.hasSubscribers&&xn.trailers.publish({request:this,trailers:e});try{return this[ni].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),xn.error.hasSubscribers&&xn.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[ni].onError(e)}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null)}addHeader(e,r){return vB(this,e,r),this}};function vB(t,e,r){if(r&&typeof r=="object"&&!Array.isArray(r))throw new It(`invalid ${e} header`);if(r===void 0)return;let n=wne[e];if(n===void 0&&(n=e.toLowerCase(),wne[n]===void 0&&!xne(n)))throw new It("invalid header key");if(Array.isArray(r)){let s=[];for(let o=0;o<r.length;o++)if(typeof r[o]=="string"){if(!jC(r[o]))throw new It(`invalid ${e} header`);s.push(r[o])}else if(r[o]===null)s.push("");else{if(typeof r[o]=="object")throw new It(`invalid ${e} header`);{let a=`${r[o]}`;if(!jC(a))throw new It(`invalid ${e} header`);s.push(a)}}r=s}else if(typeof r=="string"){if(!jC(r))throw new It(`invalid ${e} header`)}else if(r===null)r="";else if(r=`${r}`,!jC(r))throw new It(`invalid ${e} header`);if(n==="host"){if(t.host!==null)throw new It("duplicate host header");if(typeof r!="string")throw new It("invalid host header");t.host=r}else if(n==="content-length"){if(t.contentLength!==null)throw new It("duplicate content-length header");if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new It("invalid content-length header")}else if(t.contentType===null&&n==="content-type")t.contentType=r,t.headers.push(e,r);else{if(n==="transfer-encoding"||n==="keep-alive"||n==="upgrade")throw new It(`invalid ${n} header`);if(n==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new It("invalid connection header");s==="close"&&(t.reset=!0)}else{if(n==="expect")throw new c6e("expect header not supported");t.headers.push(e,r)}}}i(vB,"processHeader");bne.exports=sq});var KC=S((b7t,Rne)=>{"use strict";var C6e=require("node:events"),QB=class extends C6e{static{i(this,"Dispatcher")}dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){let r=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let s of r)if(s!=null){if(typeof s!="function")throw new TypeError(`invalid interceptor, expected function received ${typeof s}`);if(n=s(n),n==null||typeof n!="function"||n.length!==2)throw new TypeError("invalid interceptor")}return new oq(this,n)}},oq=class extends QB{static{i(this,"ComposedDispatcher")}#e=null;#t=null;constructor(e,r){super(),this.#e=e,this.#t=r}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};Rne.exports=QB});var dA=S((R7t,Tne)=>{"use strict";var I6e=require("node:buffer"),S6e=KC(),{ClientDestroyedError:iq,ClientClosedError:w6e,InvalidArgumentError:cA}=at(),{kDestroy:x6e,kClose:b6e,kClosed:XC,kDestroyed:lA,kDispatch:aq,kInterceptors:gf}=Ht(),Zl=Symbol("onDestroyed"),uA=Symbol("onClosed"),DB=Symbol("Intercepted Dispatch"),cq=Symbol("webSocketOptions"),Nne=Symbol("eventSourceOptions"),lq=class extends S6e{static{i(this,"DispatcherBase")}constructor(e){super(),this[lA]=!1,this[Zl]=null,this[XC]=!1,this[uA]=[],this[cq]=e?.webSocket??{},this[Nne]=e?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[cq].maxFragments??131072,maxPayloadSize:this[cq].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[Nne].maxEventSize??I6e.kStringMaxLength}}get destroyed(){return this[lA]}get closed(){return this[XC]}get interceptors(){return this[gf]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[gf][r]!="function")throw new cA("interceptor must be an function")}this[gf]=e}close(e){if(e===void 0)return new Promise((n,s)=>{this.close((o,a)=>o?s(o):n(a))});if(typeof e!="function")throw new cA("invalid callback");if(this[lA]){queueMicrotask(()=>e(new iq,null));return}if(this[XC]){this[uA]?this[uA].push(e):queueMicrotask(()=>e(null,null));return}this[XC]=!0,this[uA].push(e);let r=i(()=>{let n=this[uA];this[uA]=null;for(let s=0;s<n.length;s++)n[s](null,null)},"onClosed");this[b6e]().then(()=>this.destroy()).then(()=>{queueMicrotask(r)})}destroy(e,r){if(typeof e=="function"&&(r=e,e=null),r===void 0)return new Promise((s,o)=>{this.destroy(e,(a,c)=>a?o(a):s(c))});if(typeof r!="function")throw new cA("invalid callback");if(this[lA]){this[Zl]?this[Zl].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new iq),this[lA]=!0,this[Zl]=this[Zl]||[],this[Zl].push(r);let n=i(()=>{let s=this[Zl];this[Zl]=null;for(let o=0;o<s.length;o++)s[o](null,null)},"onDestroyed");this[x6e](e).then(()=>{queueMicrotask(n)})}[DB](e,r){if(!this[gf]||this[gf].length===0)return this[DB]=this[aq],this[aq](e,r);let n=this[aq].bind(this);for(let s=this[gf].length-1;s>=0;s--)n=this[gf][s](n);return this[DB]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new cA("handler must be an object");try{if(!e||typeof e!="object")throw new cA("opts must be an object.");if(this[lA]||this[Zl])throw new iq;if(this[XC])throw new w6e;return this[DB](e,r)}catch(n){if(typeof r.onError!="function")throw new cA("invalid onError method");return r.onError(n),!1}}};Tne.exports=lq});var Aq=S((T7t,Qne)=>{"use strict";var pA=0,uq=1e3,dq=(uq>>1)-1,eu,pq=Symbol("kFastTimer"),tu=[],fq=-2,mq=-1,_ne=0,Pne=1;function hq(){pA+=dq;let t=0,e=tu.length;for(;t<e;){let r=tu[t];r._state===_ne?(r._idleStart=pA-dq,r._state=Pne):r._state===Pne&&pA>=r._idleStart+r._idleTimeout&&(r._state=mq,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===mq?(r._state=fq,--e!==0&&(tu[t]=tu[e])):++t}tu.length=e,tu.length!==0&&vne()}i(hq,"onTick");function vne(){eu?eu.refresh():(clearTimeout(eu),eu=setTimeout(hq,dq),eu.unref&&eu.unref())}i(vne,"refreshTimeout");var kB=class{static{i(this,"FastTimer")}[pq]=!0;_state=fq;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===fq&&tu.push(this),(!eu||tu.length===1)&&vne(),this._state=_ne}clear(){this._state=mq,this._idleStart=-1}};Qne.exports={setTimeout(t,e,r){return e<=uq?setTimeout(t,e,r):new kB(t,e,r)},clearTimeout(t){t[pq]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new kB(t,e,r)},clearFastTimeout(t){t.clear()},now(){return pA},tick(t=0){pA+=t-uq+1,hq(),hq()},reset(){pA=0,tu.length=0,clearTimeout(eu),eu=null},kFastTimer:pq}});var ZC=S((Q7t,Mne)=>{"use strict";var B6e=require("node:net"),Dne=require("node:assert"),Lne=Ye(),{InvalidArgumentError:R6e,ConnectTimeoutError:N6e}=at(),OB=Aq();function kne(){}i(kne,"noop");var gq,yq;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?yq=class{static{i(this,"WeakSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(r=>{if(this._sessionCache.size<this._maxCachedSessions)return;let n=this._sessionCache.get(r);n!==void 0&&n.deref()===void 0&&this._sessionCache.delete(r)})}get(e){let r=this._sessionCache.get(e);return r?r.deref():null}set(e,r){this._maxCachedSessions!==0&&(this._sessionCache.set(e,new WeakRef(r)),this._sessionRegistry.register(r,e))}}:yq=class{static{i(this,"SimpleSessionCache")}constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,r){if(this._maxCachedSessions!==0){if(this._sessionCache.size>=this._maxCachedSessions){let{value:n}=this._sessionCache.keys().next();this._sessionCache.delete(n)}this._sessionCache.set(e,r)}}};function T6e({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new R6e("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new yq(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:f,servername:m,localAddress:h,httpSocket:A},y){let E;if(p==="https:"){gq||(gq=require("node:tls")),m=m||a.servername||Lne.getServerName(d)||null;let x=m||u;Dne(x);let b=s||c.get(x)||null;f=f||443,E=gq.connect({highWaterMark:16384,...a,servername:m,session:b,localAddress:h,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:A,port:f,host:u}),E.on("session",function(N){c.set(x,N)})}else Dne(!A,"httpSocket can only be sent on TLS update"),f=f||80,E=B6e.connect({highWaterMark:64*1024,...a,localAddress:h,port:f,host:u});if(a.keepAlive==null||a.keepAlive){let x=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;E.setKeepAlive(!0,x)}let I=P6e(new WeakRef(E),{timeout:n,hostname:u,port:f});return E.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(I),y){let x=y;y=null,x(null,this)}}).on("error",function(x){if(queueMicrotask(I),y){let b=y;y=null,b(x)}}),E},"connect")}i(T6e,"buildConnector");var P6e=process.platform==="win32"?(t,e)=>{if(!e.timeout)return kne;let r=null,n=null,s=OB.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>One(t.deref(),e))})},e.timeout);return()=>{OB.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return kne;let r=null,n=OB.setFastTimeout(()=>{r=setImmediate(()=>{One(t.deref(),e)})},e.timeout);return()=>{OB.clearFastTimeout(n),clearImmediate(r)}};function One(t,e){if(t==null)return;let r="Connect Timeout Error";Array.isArray(t.autoSelectFamilyAttemptedAddresses)?r+=` (attempted addresses: ${t.autoSelectFamilyAttemptedAddresses.join(", ")},`:r+=` (attempted address: ${e.hostname}:${e.port},`,r+=` timeout: ${e.timeout}ms)`,Lne.destroy(t,new N6e(r))}i(One,"onConnectTimeout");Mne.exports=T6e});var Fne=S(LB=>{"use strict";Object.defineProperty(LB,"__esModule",{value:!0});LB.enumToMap=void 0;function _6e(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(_6e,"enumToMap");LB.enumToMap=_6e});var Une=S(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.SPECIAL_HEADERS=k.HEADER_STATE=k.MINOR=k.MAJOR=k.CONNECTION_TOKEN_CHARS=k.HEADER_CHARS=k.TOKEN=k.STRICT_TOKEN=k.HEX=k.URL_CHAR=k.STRICT_URL_CHAR=k.USERINFO_CHARS=k.MARK=k.ALPHANUM=k.NUM=k.HEX_MAP=k.NUM_MAP=k.ALPHA=k.FINISH=k.H_METHOD_MAP=k.METHOD_MAP=k.METHODS_RTSP=k.METHODS_ICE=k.METHODS_HTTP=k.METHODS=k.LENIENT_FLAGS=k.FLAGS=k.TYPE=k.ERROR=void 0;var v6e=Fne(),Q6e;(function(t){t[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER"})(Q6e=k.ERROR||(k.ERROR={}));var D6e;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(D6e=k.TYPE||(k.TYPE={}));var k6e;(function(t){t[t.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",t[t.CHUNKED=8]="CHUNKED",t[t.UPGRADE=16]="UPGRADE",t[t.CONTENT_LENGTH=32]="CONTENT_LENGTH",t[t.SKIPBODY=64]="SKIPBODY",t[t.TRAILING=128]="TRAILING",t[t.TRANSFER_ENCODING=512]="TRANSFER_ENCODING"})(k6e=k.FLAGS||(k.FLAGS={}));var O6e;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(O6e=k.LENIENT_FLAGS||(k.LENIENT_FLAGS={}));var Ae;(function(t){t[t.DELETE=0]="DELETE",t[t.GET=1]="GET",t[t.HEAD=2]="HEAD",t[t.POST=3]="POST",t[t.PUT=4]="PUT",t[t.CONNECT=5]="CONNECT",t[t.OPTIONS=6]="OPTIONS",t[t.TRACE=7]="TRACE",t[t.COPY=8]="COPY",t[t.LOCK=9]="LOCK",t[t.MKCOL=10]="MKCOL",t[t.MOVE=11]="MOVE",t[t.PROPFIND=12]="PROPFIND",t[t.PROPPATCH=13]="PROPPATCH",t[t.SEARCH=14]="SEARCH",t[t.UNLOCK=15]="UNLOCK",t[t.BIND=16]="BIND",t[t.REBIND=17]="REBIND",t[t.UNBIND=18]="UNBIND",t[t.ACL=19]="ACL",t[t.REPORT=20]="REPORT",t[t.MKACTIVITY=21]="MKACTIVITY",t[t.CHECKOUT=22]="CHECKOUT",t[t.MERGE=23]="MERGE",t[t["M-SEARCH"]=24]="M-SEARCH",t[t.NOTIFY=25]="NOTIFY",t[t.SUBSCRIBE=26]="SUBSCRIBE",t[t.UNSUBSCRIBE=27]="UNSUBSCRIBE",t[t.PATCH=28]="PATCH",t[t.PURGE=29]="PURGE",t[t.MKCALENDAR=30]="MKCALENDAR",t[t.LINK=31]="LINK",t[t.UNLINK=32]="UNLINK",t[t.SOURCE=33]="SOURCE",t[t.PRI=34]="PRI",t[t.DESCRIBE=35]="DESCRIBE",t[t.ANNOUNCE=36]="ANNOUNCE",t[t.SETUP=37]="SETUP",t[t.PLAY=38]="PLAY",t[t.PAUSE=39]="PAUSE",t[t.TEARDOWN=40]="TEARDOWN",t[t.GET_PARAMETER=41]="GET_PARAMETER",t[t.SET_PARAMETER=42]="SET_PARAMETER",t[t.REDIRECT=43]="REDIRECT",t[t.RECORD=44]="RECORD",t[t.FLUSH=45]="FLUSH"})(Ae=k.METHODS||(k.METHODS={}));k.METHODS_HTTP=[Ae.DELETE,Ae.GET,Ae.HEAD,Ae.POST,Ae.PUT,Ae.CONNECT,Ae.OPTIONS,Ae.TRACE,Ae.COPY,Ae.LOCK,Ae.MKCOL,Ae.MOVE,Ae.PROPFIND,Ae.PROPPATCH,Ae.SEARCH,Ae.UNLOCK,Ae.BIND,Ae.REBIND,Ae.UNBIND,Ae.ACL,Ae.REPORT,Ae.MKACTIVITY,Ae.CHECKOUT,Ae.MERGE,Ae["M-SEARCH"],Ae.NOTIFY,Ae.SUBSCRIBE,Ae.UNSUBSCRIBE,Ae.PATCH,Ae.PURGE,Ae.MKCALENDAR,Ae.LINK,Ae.UNLINK,Ae.PRI,Ae.SOURCE];k.METHODS_ICE=[Ae.SOURCE];k.METHODS_RTSP=[Ae.OPTIONS,Ae.DESCRIBE,Ae.ANNOUNCE,Ae.SETUP,Ae.PLAY,Ae.PAUSE,Ae.TEARDOWN,Ae.GET_PARAMETER,Ae.SET_PARAMETER,Ae.REDIRECT,Ae.RECORD,Ae.FLUSH,Ae.GET,Ae.POST];k.METHOD_MAP=v6e.enumToMap(Ae);k.H_METHOD_MAP={};Object.keys(k.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(k.H_METHOD_MAP[t]=k.METHOD_MAP[t])});var L6e;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(L6e=k.FINISH||(k.FINISH={}));k.ALPHA=[];for(let t=65;t<=90;t++)k.ALPHA.push(String.fromCharCode(t)),k.ALPHA.push(String.fromCharCode(t+32));k.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};k.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};k.NUM=["0","1","2","3","4","5","6","7","8","9"];k.ALPHANUM=k.ALPHA.concat(k.NUM);k.MARK=["-","_",".","!","~","*","'","(",")"];k.USERINFO_CHARS=k.ALPHANUM.concat(k.MARK).concat(["%",";",":","&","=","+","$",","]);k.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(k.ALPHANUM);k.URL_CHAR=k.STRICT_URL_CHAR.concat([" ","\f"]);for(let t=128;t<=255;t++)k.URL_CHAR.push(t);k.HEX=k.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);k.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(k.ALPHANUM);k.TOKEN=k.STRICT_TOKEN.concat([" "]);k.HEADER_CHARS=[" "];for(let t=32;t<=255;t++)t!==127&&k.HEADER_CHARS.push(t);k.CONNECTION_TOKEN_CHARS=k.HEADER_CHARS.filter(t=>t!==44);k.MAJOR=k.NUM_MAP;k.MINOR=k.MAJOR;var fA;(function(t){t[t.GENERAL=0]="GENERAL",t[t.CONNECTION=1]="CONNECTION",t[t.CONTENT_LENGTH=2]="CONTENT_LENGTH",t[t.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",t[t.UPGRADE=4]="UPGRADE",t[t.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",t[t.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",t[t.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",t[t.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"})(fA=k.HEADER_STATE||(k.HEADER_STATE={}));k.SPECIAL_HEADERS={connection:fA.CONNECTION,"content-length":fA.CONTENT_LENGTH,"proxy-connection":fA.CONNECTION,"transfer-encoding":fA.TRANSFER_ENCODING,upgrade:fA.UPGRADE}});var Eq=S((M7t,qne)=>{"use strict";var{Buffer:M6e}=require("node:buffer");qne.exports=M6e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVu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PgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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iQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEV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JSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxB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AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB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CABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv","base64")});var Gne=S((F7t,$ne)=>{"use strict";var{Buffer:F6e}=require("node:buffer");$ne.exports=F6e.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK77MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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iQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEV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JSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxB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AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB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AAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var eI=S((U7t,Kne)=>{"use strict";var Hne=["GET","HEAD","POST"],U6e=new Set(Hne),q6e=[101,204,205,304],zne=[301,302,303,307,308],$6e=new Set(zne),Vne=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"],G6e=new Set(Vne),Wne=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],H6e=new Set(Wne),z6e=["follow","manual","error"],Yne=["GET","HEAD","OPTIONS","TRACE"],V6e=new Set(Yne),W6e=["navigate","same-origin","no-cors","cors"],Y6e=["omit","same-origin","include"],J6e=["default","no-store","reload","no-cache","force-cache","only-if-cached"],j6e=["content-encoding","content-language","content-location","content-type","content-length"],K6e=["half"],Jne=["CONNECT","TRACE","TRACK"],X6e=new Set(Jne),jne=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],Z6e=new Set(jne);Kne.exports={subresource:jne,forbiddenMethods:Jne,requestBodyHeader:j6e,referrerPolicy:Wne,requestRedirect:z6e,requestMode:W6e,requestCredentials:Y6e,requestCache:J6e,redirectStatus:zne,corsSafeListedMethods:Hne,nullBodyStatus:q6e,safeMethods:Yne,badPorts:Vne,requestDuplex:K6e,subresourceSet:Z6e,badPortsSet:G6e,redirectStatusSet:$6e,corsSafeListedMethodsSet:U6e,safeMethodsSet:V6e,forbiddenMethodsSet:X6e,referrerPolicySet:H6e}});var Iq=S((q7t,Xne)=>{"use strict";var Cq=Symbol.for("undici.globalOrigin.1");function e9e(){return globalThis[Cq]}i(e9e,"getGlobalOrigin");function t9e(t){if(t===void 0){Object.defineProperty(globalThis,Cq,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new TypeError(`Only http & https urls are allowed, received ${e.protocol}`);Object.defineProperty(globalThis,Cq,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(t9e,"setGlobalOrigin");Xne.exports={getGlobalOrigin:e9e,setGlobalOrigin:t9e}});var vs=S((G7t,ose)=>{"use strict";var FB=require("node:assert"),r9e=new TextEncoder,tI=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,n9e=/[\u000A\u000D\u0009\u0020]/,s9e=/[\u0009\u000A\u000C\u000D\u0020]/g,o9e=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function i9e(t){FB(t.protocol==="data:");let e=tse(t,!0);e=e.slice(5);let r={position:0},n=mA(",",e,r),s=n.length;if(n=p9e(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=rse(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=sse(a);if(a=c9e(l),a==="failure")return"failure";n=n.slice(0,-6),n=n.replace(/(\u0020)+$/,""),n=n.slice(0,-1)}n.startsWith(";")&&(n="text/plain"+n);let c=Sq(n);return c==="failure"&&(c=Sq("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(i9e,"dataURLProcessor");function tse(t,e=!1){if(!e)return t.href;let r=t.href,n=t.hash.length,s=n===0?r:r.substring(0,r.length-n);return!n&&r.endsWith("#")?s.slice(0,-1):s}i(tse,"URLSerializer");function UB(t,e,r){let n="";for(;r.position<e.length&&t(e[r.position]);)n+=e[r.position],r.position++;return n}i(UB,"collectASequenceOfCodePoints");function mA(t,e,r){let n=e.indexOf(t,r.position),s=r.position;return n===-1?(r.position=e.length,e.slice(s)):(r.position=n,e.slice(s,r.position))}i(mA,"collectASequenceOfCodePointsFast");function rse(t){let e=r9e.encode(t);return a9e(e)}i(rse,"stringPercentDecode");function Zne(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(Zne,"isHexCharByte");function ese(t){return t>=48&&t<=57?t-48:(t&223)-55}i(ese,"hexByteToNumber");function a9e(t){let e=t.length,r=new Uint8Array(e),n=0;for(let s=0;s<e;++s){let o=t[s];o!==37?r[n++]=o:o===37&&!(Zne(t[s+1])&&Zne(t[s+2]))?r[n++]=37:(r[n++]=ese(t[s+1])<<4|ese(t[s+2]),s+=2)}return e===n?r:r.subarray(0,n)}i(a9e,"percentDecode");function Sq(t){t=MB(t,!0,!0);let e={position:0},r=mA("/",t,e);if(r.length===0||!tI.test(r)||e.position>t.length)return"failure";e.position++;let n=mA(";",t,e);if(n=MB(n,!1,!0),n.length===0||!tI.test(n))return"failure";let s=r.toLowerCase(),o=n.toLowerCase(),a={type:s,subtype:o,parameters:new Map,essence:`${s}/${o}`};for(;e.position<t.length;){e.position++,UB(u=>n9e.test(u),t,e);let c=UB(u=>u!==";"&&u!=="=",t,e);if(c=c.toLowerCase(),e.position<t.length){if(t[e.position]===";")continue;e.position++}if(e.position>t.length)break;let l=null;if(t[e.position]==='"')l=nse(t,e,!0),mA(";",t,e);else if(l=mA(";",t,e),l=MB(l,!1,!0),l.length===0)continue;c.length!==0&&tI.test(c)&&(l.length===0||o9e.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(Sq,"parseMIMEType");function c9e(t){t=t.replace(s9e,"");let e=t.length;if(e%4===0&&t.charCodeAt(e-1)===61&&(--e,t.charCodeAt(e-1)===61&&--e),e%4===1||/[^+/0-9A-Za-z]/.test(t.length===e?t:t.substring(0,e)))return"failure";let r=Buffer.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}i(c9e,"forgivingBase64");function nse(t,e,r){let n=e.position,s="";for(FB(t[e.position]==='"'),e.position++;s+=UB(a=>a!=='"'&&a!=="\\",t,e),!(e.position>=t.length);){let o=t[e.position];if(e.position++,o==="\\"){if(e.position>=t.length){s+="\\";break}s+=t[e.position],e.position++}else{FB(o==='"');break}}return r?s:t.slice(n,e.position)}i(nse,"collectAnHTTPQuotedString");function l9e(t){FB(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",tI.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(l9e,"serializeAMimeType");function u9e(t){return t===13||t===10||t===9||t===32}i(u9e,"isHTTPWhiteSpace");function MB(t,e=!0,r=!0){return wq(t,e,r,u9e)}i(MB,"removeHTTPWhitespace");function d9e(t){return t===13||t===10||t===9||t===12||t===32}i(d9e,"isASCIIWhitespace");function p9e(t,e=!0,r=!0){return wq(t,e,r,d9e)}i(p9e,"removeASCIIWhitespace");function wq(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s<t.length&&n(t.charCodeAt(s));)s++;if(r)for(;o>0&&n(t.charCodeAt(o));)o--;return s===0&&o===t.length-1?t:t.slice(s,o+1)}i(wq,"removeChars");function sse(t){let e=t.length;if(65535>e)return String.fromCharCode.apply(null,t);let r="",n=0,s=65535;for(;n<e;)n+s>e&&(s=e-n),r+=String.fromCharCode.apply(null,t.subarray(n,n+=s));return r}i(sse,"isomorphicDecode");function f9e(t){switch(t.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}return t.subtype.endsWith("+json")?"application/json":t.subtype.endsWith("+xml")?"application/xml":""}i(f9e,"minimizeSupportedMimeType");ose.exports={dataURLProcessor:i9e,URLSerializer:tse,collectASequenceOfCodePoints:UB,collectASequenceOfCodePointsFast:mA,stringPercentDecode:rse,parseMIMEType:Sq,collectAnHTTPQuotedString:nse,serializeAMimeType:l9e,removeChars:wq,removeHTTPWhitespace:MB,minimizeSupportedMimeType:f9e,HTTP_TOKEN_CODEPOINTS:tI,isomorphicDecode:sse}});var bn=S((z7t,ise)=>{"use strict";var{types:Za,inspect:m9e}=require("node:util"),{markAsUncloneable:h9e}=require("node:worker_threads"),{toUSVString:A9e}=Ye(),D={};D.converters={};D.util={};D.errors={};D.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};D.errors.conversionFailed=function(t){let e=t.types.length===1?"":" one of",r=`${t.argument} could not be converted to${e}: ${t.types.join(", ")}.`;return D.errors.exception({header:t.prefix,message:r})};D.errors.invalidArgument=function(t){return D.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};D.brandCheck=function(t,e,r){if(r?.strict!==!1){if(!(t instanceof e)){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}}else if(t?.[Symbol.toStringTag]!==e.prototype[Symbol.toStringTag]){let n=new TypeError("Illegal invocation");throw n.code="ERR_INVALID_THIS",n}};D.argumentLengthCheck=function({length:t},e,r){if(t<e)throw D.errors.exception({message:`${e} argument${e!==1?"s":""} required, but${t?" only":""} ${t} found.`,header:r})};D.illegalConstructor=function(){throw D.errors.exception({header:"TypeError",message:"Illegal constructor"})};D.util.Type=function(t){switch(typeof t){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":return t===null?"Null":"Object"}};D.util.markAsUncloneable=h9e||(()=>{});D.util.ConvertToInt=function(t,e,r,n){let s,o;e===64?(s=Math.pow(2,53)-1,r==="unsigned"?o=0:o=Math.pow(-2,53)+1):r==="unsigned"?(o=0,s=Math.pow(2,e)-1):(o=Math.pow(-2,e)-1,s=Math.pow(2,e-1)-1);let a=Number(t);if(a===0&&(a=0),n?.enforceRange===!0){if(Number.isNaN(a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY)throw D.errors.exception({header:"Integer conversion",message:`Could not convert ${D.util.Stringify(t)} to an integer.`});if(a=D.util.IntegerPart(a),a<o||a>s)throw D.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${s}, got ${a}.`});return a}return!Number.isNaN(a)&&n?.clamp===!0?(a=Math.min(Math.max(a,o),s),Math.floor(a)%2===0?a=Math.floor(a):a=Math.ceil(a),a):Number.isNaN(a)||a===0&&Object.is(0,a)||a===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY?0:(a=D.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};D.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};D.util.Stringify=function(t){switch(D.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return m9e(t);case"String":return`"${t}"`;default:return`${t}`}};D.sequenceConverter=function(t){return(e,r,n,s)=>{if(D.util.Type(e)!=="Object")throw D.errors.exception({header:r,message:`${n} (${D.util.Stringify(e)}) is not iterable.`});let o=typeof s=="function"?s():e?.[Symbol.iterator]?.(),a=[],c=0;if(o===void 0||typeof o.next!="function")throw D.errors.exception({header:r,message:`${n} is not iterable.`});for(;;){let{done:l,value:u}=o.next();if(l)break;a.push(t(u,r,`${n}[${c++}]`))}return a}};D.recordConverter=function(t,e){return(r,n,s)=>{if(D.util.Type(r)!=="Object")throw D.errors.exception({header:n,message:`${s} ("${D.util.Type(r)}") is not an Object.`});let o={};if(!Za.isProxy(r)){let c=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let l of c){let u=t(l,n,s),d=e(r[l],n,s);o[u]=d}return o}let a=Reflect.ownKeys(r);for(let c of a)if(Reflect.getOwnPropertyDescriptor(r,c)?.enumerable){let u=t(c,n,s),d=e(r[c],n,s);o[u]=d}return o}};D.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw D.errors.exception({header:r,message:`Expected ${n} ("${D.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};D.dictionaryConverter=function(t){return(e,r,n)=>{let s=D.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw D.errors.exception({header:r,message:`Expected ${e} to be one of: Null, Undefined, Object.`});for(let a of t){let{key:c,defaultValue:l,required:u,converter:d}=a;if(u===!0&&!Object.hasOwn(e,c))throw D.errors.exception({header:r,message:`Missing required key "${c}".`});let p=e[c],f=Object.hasOwn(a,"defaultValue");if(f&&p!==null&&(p??=l()),u||f||p!==void 0){if(p=d(p,r,`${n}.${c}`),a.allowedValues&&!a.allowedValues.includes(p))throw D.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};D.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};D.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw D.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};D.converters.ByteString=function(t,e,r){let n=D.converters.DOMString(t,e,r);for(let s=0;s<n.length;s++)if(n.charCodeAt(s)>255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${s} has a value of ${n.charCodeAt(s)} which is greater than 255.`);return n};D.converters.USVString=A9e;D.converters.boolean=function(t){return!!t};D.converters.any=function(t){return t};D.converters["long long"]=function(t,e,r){return D.util.ConvertToInt(t,64,"signed",void 0,e,r)};D.converters["unsigned long long"]=function(t,e,r){return D.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};D.converters["unsigned long"]=function(t,e,r){return D.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};D.converters["unsigned short"]=function(t,e,r,n){return D.util.ConvertToInt(t,16,"unsigned",n,e,r)};D.converters.ArrayBuffer=function(t,e,r,n){if(D.util.Type(t)!=="Object"||!Za.isAnyArrayBuffer(t))throw D.errors.conversionFailed({prefix:e,argument:`${r} ("${D.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&Za.isSharedArrayBuffer(t))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.TypedArray=function(t,e,r,n,s){if(D.util.Type(t)!=="Object"||!Za.isTypedArray(t)||t.constructor.name!==e.name)throw D.errors.conversionFailed({prefix:r,argument:`${n} ("${D.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&Za.isSharedArrayBuffer(t.buffer))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.DataView=function(t,e,r,n){if(D.util.Type(t)!=="Object"||!Za.isDataView(t))throw D.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&Za.isSharedArrayBuffer(t.buffer))throw D.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw D.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};D.converters.BufferSource=function(t,e,r,n){if(Za.isAnyArrayBuffer(t))return D.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(Za.isTypedArray(t))return D.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(Za.isDataView(t))return D.converters.DataView(t,e,r,{...n,allowShared:!1});throw D.errors.conversionFailed({prefix:e,argument:`${r} ("${D.util.Stringify(t)}")`,types:["BufferSource"]})};D.converters["sequence<ByteString>"]=D.sequenceConverter(D.converters.ByteString);D.converters["sequence<sequence<ByteString>>"]=D.sequenceConverter(D.converters["sequence<ByteString>"]);D.converters["record<ByteString, ByteString>"]=D.recordConverter(D.converters.ByteString,D.converters.ByteString);ise.exports={webidl:D}});var Ao=S((V7t,Cse)=>{"use strict";var{Transform:g9e}=require("node:stream"),ase=require("node:zlib"),{redirectStatusSet:y9e,referrerPolicySet:E9e,badPortsSet:C9e}=eI(),{getGlobalOrigin:cse}=Iq(),{collectASequenceOfCodePoints:yf,collectAnHTTPQuotedString:I9e,removeChars:S9e,parseMIMEType:w9e}=vs(),{performance:x9e}=require("node:perf_hooks"),{isBlobLike:b9e,ReadableStreamFrom:B9e,isValidHTTPToken:lse,normalizedMethodRecordsBase:R9e}=Ye(),Ef=require("node:assert"),{isUint8Array:N9e}=require("node:util/types"),{webidl:rI}=bn(),use=[],$B;try{$B=require("node:crypto");let t=["sha256","sha384","sha512"];use=$B.getHashes().filter(e=>t.includes(e))}catch{}function dse(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(dse,"responseURL");function T9e(t,e){if(!y9e.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&fse(r)&&(pse(r)||(r=P9e(r)),r=new URL(r,dse(t))),r&&!r.hash&&(r.hash=e),r}i(T9e,"responseLocationURL");function pse(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>126||r<32)return!1}return!0}i(pse,"isValidEncodedURL");function P9e(t){return Buffer.from(t,"binary").toString("utf8")}i(P9e,"normalizeBinaryStringToUtf8");function sI(t){return t.urlList[t.urlList.length-1]}i(sI,"requestCurrentURL");function _9e(t){let e=sI(t);return yse(e)&&C9e.has(e.port)?"blocked":"allowed"}i(_9e,"requestBadPort");function v9e(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(v9e,"isErrorLike");function Q9e(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(!(r===9||r>=32&&r<=126||r>=128&&r<=255))return!1}return!0}i(Q9e,"isValidReasonPhrase");var D9e=lse;function fse(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(`
|
|
`)||t.includes("\r")||t.includes("\0"))===!1}i(fse,"isValidHeaderValue");function k9e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let o=n.length;o!==0;o--){let a=n[o-1].trim();if(E9e.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(k9e,"setRequestReferrerPolicyOnRedirect");function O9e(){return"allowed"}i(O9e,"crossOriginResourcePolicyCheck");function L9e(){return"success"}i(L9e,"corsCheck");function M9e(){return"success"}i(M9e,"TAOCheck");function F9e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(F9e,"appendFetchMetadata");function U9e(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&bq(t.origin)&&!bq(sI(t))&&(e=null);break;case"same-origin":GB(t,sI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(U9e,"appendRequestOriginHeader");function hA(t,e){return t}i(hA,"coarsenTime");function q9e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:hA(t.domainLookupStartTime,r),domainLookupEndTime:hA(t.domainLookupEndTime,r),connectionStartTime:hA(t.connectionStartTime,r),connectionEndTime:hA(t.connectionEndTime,r),secureConnectionStartTime:hA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(q9e,"clampAndCoarsenConnectionTimingInfo");function $9e(t){return hA(x9e.now(),t)}i($9e,"coarsenedSharedCurrentTime");function G9e(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}i(G9e,"createOpaqueTimingInfo");function mse(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(mse,"makePolicyContainer");function H9e(t){return{referrerPolicy:t.referrerPolicy}}i(H9e,"clonePolicyContainer");function z9e(t){let e=t.referrerPolicy;Ef(e);let r=null;if(t.referrer==="client"){let c=cse();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=xq(r),s=xq(r,!0);n.toString().length>4096&&(n=s);let o=GB(t,n),a=nI(n)&&!nI(t.url);switch(e){case"origin":return s??xq(r,!0);case"unsafe-url":return n;case"same-origin":return o?s:"no-referrer";case"origin-when-cross-origin":return o?n:s;case"strict-origin-when-cross-origin":{let c=sI(t);return GB(n,c)?n:nI(n)&&!nI(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(z9e,"determineRequestsReferrer");function xq(t,e){return Ef(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}i(xq,"stripURLForReferrer");function nI(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(nI,"isURLPotentiallyTrustworthy");function V9e(t,e){if($B===void 0)return!0;let r=hse(e);if(r==="no metadata"||r.length===0)return!0;let n=Y9e(r),s=J9e(r,n);for(let o of s){let a=o.algo,c=o.hash,l=$B.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),j9e(l,c))return!0}return!1}i(V9e,"bytesMatch");var W9e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function hse(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=W9e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();use.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(hse,"parseMetadata");function Y9e(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}i(Y9e,"getStrongestMetadata");function J9e(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}i(J9e,"filterMetadataListByAlgorithm");function j9e(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}i(j9e,"compareBase64Mixed");function K9e(t){}i(K9e,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function GB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}i(GB,"sameOrigin");function X9e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}i(X9e,"createDeferredPromise");function Z9e(t){return t.controller.state==="aborted"}i(Z9e,"isAborted");function eKe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(eKe,"isCancelled");function tKe(t){return R9e[t.toLowerCase()]??t}i(tKe,"normalizeMethod");function rKe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Ef(typeof e=="string"),e}i(rKe,"serializeJavascriptValueToJSONString");var nKe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ase(t,e,r=0,n=1){class s{static{i(this,"FastIterableIterator")}#e;#t;#n;constructor(a,c){this.#e=a,this.#t=c,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let a=this.#n,c=this.#e[e],l=c.length;if(a>=l)return{value:void 0,done:!0};let{[r]:u,[n]:d}=c[a];this.#n=a+1;let p;switch(this.#t){case"key":p=u;break;case"value":p=d;break;case"key+value":p=[u,d];break}return{value:p,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,nKe),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(o,a){return new s(o,a)}}i(Ase,"createIterator");function sKe(t,e,r,n=0,s=1){let o=Ase(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return rI.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return rI.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return rI.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(rI.brandCheck(this,e),rI.argumentLengthCheck(arguments,1,`${t}.forEach`),typeof l!="function")throw new TypeError(`Failed to execute 'forEach' on '${t}': parameter 1 is not of type 'Function'.`);for(let{0:d,1:p}of o(this,"key+value"))l.call(u,p,d,this)},"forEach")}};return Object.defineProperties(e.prototype,{...a,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:a.entries.value}})}i(sKe,"iteratorMixin");async function oKe(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await gse(o))}catch(a){s(a)}}i(oKe,"fullyReadBody");function iKe(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(iKe,"isReadableStreamLike");function aKe(t){try{t.close(),t.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed"))throw e}}i(aKe,"readableStreamClose");var cKe=/[^\x00-\xFF]/;function qB(t){return Ef(!cKe.test(t)),t}i(qB,"isomorphicEncode");async function gse(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!N9e(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(gse,"readAllBytes");function lKe(t){Ef("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(lKe,"urlIsLocal");function bq(t){return typeof t=="string"&&t[5]===":"&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&t[4]==="s"||t.protocol==="https:"}i(bq,"urlHasHttpsScheme");function yse(t){Ef("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(yse,"urlIsHttpHttpsScheme");function uKe(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&yf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&yf(l=>l===" "||l===" ",r,n);let s=yf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&yf(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&yf(l=>l===" "||l===" ",r,n);let a=yf(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),c=a.length?Number(a):null;return n.position<r.length||c===null&&o===null||o>c?"failure":{rangeStartValue:o,rangeEndValue:c}}i(uKe,"simpleRangeHeaderValue");function dKe(t,e,r){let n="bytes ";return n+=qB(`${t}`),n+="-",n+=qB(`${e}`),n+="/",n+=qB(`${r}`),n}i(dKe,"buildContentRange");var Bq=class extends g9e{static{i(this,"InflateStream")}#e;constructor(e){super(),this.#e=e}_transform(e,r,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?ase.createInflate(this.#e):ase.createInflateRaw(this.#e),this._inflateStream.on("data",this.push.bind(this)),this._inflateStream.on("end",()=>this.push(null)),this._inflateStream.on("error",s=>this.destroy(s))}this._inflateStream.write(e,r,n)}_final(e){this._inflateStream&&(this._inflateStream.end(),this._inflateStream=null),e()}};function pKe(t){return new Bq(t)}i(pKe,"createInflate");function fKe(t){let e=null,r=null,n=null,s=Ese("content-type",t);if(s===null)return"failure";for(let o of s){let a=w9e(o);a==="failure"||a.essence==="*/*"||(n=a,n.essence!==r?(e=null,n.parameters.has("charset")&&(e=n.parameters.get("charset")),r=n.essence):!n.parameters.has("charset")&&e!==null&&n.parameters.set("charset",e))}return n??"failure"}i(fKe,"extractMimeType");function mKe(t){let e=t,r={position:0},n=[],s="";for(;r.position<e.length;){if(s+=yf(o=>o!=='"'&&o!==",",e,r),r.position<e.length)if(e.charCodeAt(r.position)===34){if(s+=I9e(e,r),r.position<e.length)continue}else Ef(e.charCodeAt(r.position)===44),r.position++;s=S9e(s,!0,!0,o=>o===9||o===32),n.push(s),s=""}return n}i(mKe,"gettingDecodingSplitting");function Ese(t,e){let r=e.get(t,!0);return r===null?null:mKe(r)}i(Ese,"getDecodeSplit");var hKe=new TextDecoder;function AKe(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),hKe.decode(t))}i(AKe,"utf8DecodeBytes");var Rq=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return cse()}get origin(){return this.baseUrl?.origin}policyContainer=mse()},Nq=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new Rq},gKe=new Nq;Cse.exports={isAborted:Z9e,isCancelled:eKe,isValidEncodedURL:pse,createDeferredPromise:X9e,ReadableStreamFrom:B9e,tryUpgradeRequestToAPotentiallyTrustworthyURL:K9e,clampAndCoarsenConnectionTimingInfo:q9e,coarsenedSharedCurrentTime:$9e,determineRequestsReferrer:z9e,makePolicyContainer:mse,clonePolicyContainer:H9e,appendFetchMetadata:F9e,appendRequestOriginHeader:U9e,TAOCheck:M9e,corsCheck:L9e,crossOriginResourcePolicyCheck:O9e,createOpaqueTimingInfo:G9e,setRequestReferrerPolicyOnRedirect:k9e,isValidHTTPToken:lse,requestBadPort:_9e,requestCurrentURL:sI,responseURL:dse,responseLocationURL:T9e,isBlobLike:b9e,isURLPotentiallyTrustworthy:nI,isValidReasonPhrase:Q9e,sameOrigin:GB,normalizeMethod:tKe,serializeJavascriptValueToJSONString:rKe,iteratorMixin:sKe,createIterator:Ase,isValidHeaderName:D9e,isValidHeaderValue:fse,isErrorLike:v9e,fullyReadBody:oKe,bytesMatch:V9e,isReadableStreamLike:iKe,readableStreamClose:aKe,isomorphicEncode:qB,urlIsLocal:lKe,urlHasHttpsScheme:bq,urlIsHttpHttpsScheme:yse,readAllBytes:gse,simpleRangeHeaderValue:uKe,buildContentRange:dKe,parseMetadata:hse,createInflate:pKe,extractMimeType:fKe,getDecodeSplit:Ese,utf8DecodeBytes:AKe,environmentSettingsObject:gKe}});var nd=S((Y7t,Ise)=>{"use strict";Ise.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var Pq=S((J7t,Sse)=>{"use strict";var{Blob:yKe,File:EKe}=require("node:buffer"),{kState:ru}=nd(),{webidl:ec}=bn(),Tq=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[ru]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return ec.brandCheck(this,t),this[ru].blobLike.stream(...e)}arrayBuffer(...e){return ec.brandCheck(this,t),this[ru].blobLike.arrayBuffer(...e)}slice(...e){return ec.brandCheck(this,t),this[ru].blobLike.slice(...e)}text(...e){return ec.brandCheck(this,t),this[ru].blobLike.text(...e)}get size(){return ec.brandCheck(this,t),this[ru].blobLike.size}get type(){return ec.brandCheck(this,t),this[ru].blobLike.type}get name(){return ec.brandCheck(this,t),this[ru].name}get lastModified(){return ec.brandCheck(this,t),this[ru].lastModified}get[Symbol.toStringTag](){return"File"}};ec.converters.Blob=ec.interfaceConverter(yKe);function CKe(t){return t instanceof EKe||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(CKe,"isFileLike");Sse.exports={FileLike:Tq,isFileLike:CKe}});var iI=S((K7t,Rse)=>{"use strict";var{isBlobLike:HB,iteratorMixin:IKe}=Ao(),{kState:is}=nd(),{kEnumerableProperty:AA}=Ye(),{FileLike:wse,isFileLike:SKe}=Pq(),{webidl:Pt}=bn(),{File:Bse}=require("node:buffer"),xse=require("node:util"),bse=globalThis.File??Bse,oI=class t{static{i(this,"FormData")}constructor(e){if(Pt.util.markAsUncloneable(this),e!==void 0)throw Pt.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[is]=[]}append(e,r,n=void 0){Pt.brandCheck(this,t);let s="FormData.append";if(Pt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!HB(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Pt.converters.USVString(e,s,"name"),r=HB(r)?Pt.converters.Blob(r,s,"value",{strict:!1}):Pt.converters.USVString(r,s,"value"),n=arguments.length===3?Pt.converters.USVString(n,s,"filename"):void 0;let o=_q(e,r,n);this[is].push(o)}delete(e){Pt.brandCheck(this,t);let r="FormData.delete";Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[is]=this[is].filter(n=>n.name!==e)}get(e){Pt.brandCheck(this,t);let r="FormData.get";Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name");let n=this[is].findIndex(s=>s.name===e);return n===-1?null:this[is][n].value}getAll(e){Pt.brandCheck(this,t);let r="FormData.getAll";return Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[is].filter(n=>n.name===e).map(n=>n.value)}has(e){Pt.brandCheck(this,t);let r="FormData.has";return Pt.argumentLengthCheck(arguments,1,r),e=Pt.converters.USVString(e,r,"name"),this[is].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Pt.brandCheck(this,t);let s="FormData.set";if(Pt.argumentLengthCheck(arguments,2,s),arguments.length===3&&!HB(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Pt.converters.USVString(e,s,"name"),r=HB(r)?Pt.converters.Blob(r,s,"name",{strict:!1}):Pt.converters.USVString(r,s,"name"),n=arguments.length===3?Pt.converters.USVString(n,s,"name"):void 0;let o=_q(e,r,n),a=this[is].findIndex(c=>c.name===e);a!==-1?this[is]=[...this[is].slice(0,a),o,...this[is].slice(a+1).filter(c=>c.name!==e)]:this[is].push(o)}[xse.inspect.custom](e,r){let n=this[is].reduce((o,a)=>(o[a.name]?Array.isArray(o[a.name])?o[a.name].push(a.value):o[a.name]=[o[a.name],a.value]:o[a.name]=a.value,o),{__proto__:null});r.depth??=e,r.colors??=!0;let s=xse.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};IKe("FormData",oI,is,"name","value");Object.defineProperties(oI.prototype,{append:AA,delete:AA,get:AA,getAll:AA,has:AA,set:AA,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function _q(t,e,r){if(typeof e!="string"){if(SKe(e)||(e=e instanceof Blob?new bse([e],"blob",{type:e.type}):new wse(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof Bse?new bse([e],r,n):new wse(e,r,n)}}return{name:t,value:e}}i(_q,"makeEntry");Rse.exports={FormData:oI,makeEntry:_q}});var Qse=S((Z7t,vse)=>{"use strict";var{isUSVString:Nse,bufferToLowerCasedHeaderName:wKe}=Ye(),{utf8DecodeBytes:xKe}=Ao(),{HTTP_TOKEN_CODEPOINTS:bKe,isomorphicDecode:Tse}=vs(),{isFileLike:BKe}=Pq(),{makeEntry:RKe}=iI(),zB=require("node:assert"),{File:NKe}=require("node:buffer"),TKe=globalThis.File??NKe,PKe=Buffer.from('form-data; name="'),Pse=Buffer.from("; filename"),_Ke=Buffer.from("--"),vKe=Buffer.from(`--\r
|
|
`);function QKe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(QKe,"isAsciiString");function DKe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(DKe,"validateBoundary");function kKe(t,e){zB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],o={position:0};for(;t[o.position]===13&&t[o.position+1]===10;)o.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(o.position,o.position+n.length).equals(n))o.position+=n.length;else return"failure";if(o.position===t.length-2&&VB(t,_Ke,o)||o.position===t.length-4&&VB(t,vKe,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=OKe(t,o);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:p}=c;o.position+=2;let f;{let h=t.indexOf(n.subarray(2),o.position);if(h===-1)return"failure";f=t.subarray(o.position,h-4),o.position+=f.length,p==="base64"&&(f=Buffer.from(f.toString(),"base64"))}if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let m;u!==null?(d??="text/plain",QKe(d)||(d=""),m=new TKe([f],u,{type:d})):m=xKe(Buffer.from(f)),zB(Nse(l)),zB(typeof m=="string"&&Nse(m)||BKe(m)),s.push(RKe(l,m,u))}}i(kKe,"multipartFormDataParser");function OKe(t,e){let r=null,n=null,s=null,o=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:o};let a=gA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=vq(a,!0,!0,c=>c===9||c===32),!bKe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,gA(c=>c===32||c===9,t,e),wKe(a)){case"content-disposition":{if(r=n=null,!VB(t,PKe,e)||(e.position+=17,r=_se(t,e),r===null))return"failure";if(VB(t,Pse,e)){let c=e.position+Pse.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=_se(t,e),n===null))return"failure"}break}case"content-type":{let c=gA(l=>l!==10&&l!==13,t,e);c=vq(c,!1,!0,l=>l===9||l===32),s=Tse(c);break}case"content-transfer-encoding":{let c=gA(l=>l!==10&&l!==13,t,e);c=vq(c,!1,!0,l=>l===9||l===32),o=Tse(c);break}default:gA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(OKe,"parseMultipartFormDataHeaders");function _se(t,e){zB(t[e.position-1]===34);let r=gA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
|
|
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(_se,"parseMultipartFormDataName");function gA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(gA,"collectASequenceOfBytes");function vq(t,e,r,n){let s=0,o=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;o>0&&n(t[o]);)o--;return s===0&&o===t.length-1?t:t.subarray(s,o+1)}i(vq,"removeChars");function VB(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(VB,"bufferStartsWith");vse.exports={multipartFormDataParser:kKe,validateBoundary:DKe}});var CA=S((tZt,Gse)=>{"use strict";var aI=Ye(),{ReadableStreamFrom:LKe,isBlobLike:Dse,isReadableStreamLike:MKe,readableStreamClose:FKe,createDeferredPromise:UKe,fullyReadBody:qKe,extractMimeType:$Ke,utf8DecodeBytes:Lse}=Ao(),{FormData:kse}=iI(),{kState:EA}=nd(),{webidl:GKe}=bn(),{Blob:HKe}=require("node:buffer"),Qq=require("node:assert"),{isErrored:Mse,isDisturbed:zKe}=require("node:stream"),{isArrayBuffer:VKe}=require("node:util/types"),{serializeAMimeType:WKe}=vs(),{multipartFormDataParser:YKe}=Qse(),Dq;try{let t=require("node:crypto");Dq=i(e=>t.randomInt(0,e),"random")}catch{Dq=i(t=>Math.floor(Math.random(t)),"random")}var WB=new TextEncoder;function JKe(){}i(JKe,"noop");var Fse=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Use;Fse&&(Use=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!zKe(e)&&!Mse(e)&&e.cancel("Response object has been garbage collected").catch(JKe)}));function qse(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Dse(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?WB.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>FKe(l))},start(){},type:"bytes"}),Qq(MKe(r));let n=null,s=null,o=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(VKe(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(aI.isFormDataLike(t)){let l=`----formdata-undici-0${`${Dq(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
|
|
Content-Disposition: form-data`;let d=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),p=i(y=>y.replace(/\r?\n|\r/g,`\r
|
|
`),"normalizeLinefeeds"),f=[],m=new Uint8Array([13,10]);o=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let I=WB.encode(u+`; name="${d(p(y))}"\r
|
|
\r
|
|
${p(E)}\r
|
|
`);f.push(I),o+=I.byteLength}else{let I=WB.encode(`${u}; name="${d(p(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
|
|
Content-Type: ${E.type||"application/octet-stream"}\r
|
|
\r
|
|
`);f.push(I,E,m),typeof E.size=="number"?o+=I.byteLength+E.size+m.byteLength:h=!0}let A=WB.encode(`--${l}--\r
|
|
`);f.push(A),o+=A.byteLength,h&&(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(Dse(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(aI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:LKe(t)}if((typeof s=="string"||aI.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(!Mse(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(qse,"extractBody");function jKe(t,e=!1){return t instanceof ReadableStream&&(Qq(!aI.isDisturbed(t),"The body has already been consumed."),Qq(!t.locked,"The stream is locked.")),qse(t,e)}i(jKe,"safelyExtractBody");function KKe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(KKe,"cloneBody");function XKe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(XKe,"throwIfAborted");function ZKe(t){return{blob(){return yA(this,r=>{let n=Ose(this);return n===null?n="":n&&(n=WKe(n)),new HKe([r],{type:n})},t)},arrayBuffer(){return yA(this,r=>new Uint8Array(r).buffer,t)},text(){return yA(this,Lse,t)},json(){return yA(this,tXe,t)},formData(){return yA(this,r=>{let n=Ose(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=YKe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new kse;return o[EA]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new kse;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 yA(this,r=>new Uint8Array(r),t)}}}i(ZKe,"bodyMixinMethods");function eXe(t){Object.assign(t.prototype,ZKe(t))}i(eXe,"mixinBody");async function yA(t,e,r){if(GKe.brandCheck(t,r),$se(t))throw new TypeError("Body is unusable: Body has already been read");XKe(t[EA]);let n=UKe(),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 qKe(t[EA].body,o,s),n.promise)}i(yA,"consumeBody");function $se(t){let e=t[EA].body;return e!=null&&(e.stream.locked||aI.isDisturbed(e.stream))}i($se,"bodyUnusable");function tXe(t){return JSON.parse(Lse(t))}i(tXe,"parseJSONFromBytes");function Ose(t){let e=t[EA].headersList,r=$Ke(e);return r==="failure"?null:r}i(Ose,"bodyMimeType");Gse.exports={extractBody:qse,safelyExtractBody:jKe,cloneBody:KKe,mixinBody:eXe,streamRegistry:Use,hasFinalizationRegistry:Fse,bodyUnusable:$se}});var ooe=S((nZt,soe)=>{"use strict";var ge=require("node:assert"),le=Ye(),{channels:Hse}=aA(),kq=Aq(),{RequestContentLengthMismatchError:Cf,ResponseContentLengthMismatchError:zse,RequestAbortedError:Zse,InvalidArgumentError:rXe,HeadersTimeoutError:nXe,HeadersOverflowError:sXe,SocketError:IA,InformationalError:If,BodyTimeoutError:oXe,HTTPParserError:iXe,ResponseExceededMaxSizeError:aXe}=at(),{kUrl:eoe,kReset:Qs,kClient:KB,kParser:kt,kBlocking:uI,kRunning:kr,kPending:toe,kSize:Vse,kWriting:sd,kQueue:ea,kNoRef:cI,kKeepAliveDefaultTimeout:cXe,kHostHeader:lXe,kPendingIdx:uXe,kRunningIdx:si,kError:as,kPipelining:XB,kSocket:Sf,kKeepAliveTimeoutValue:eR,kMaxHeadersSize:Oq,kKeepAliveMaxTimeout:dXe,kKeepAliveTimeoutThreshold:pXe,kHeadersTimeout:fXe,kBodyTimeout:mXe,kStrictContentLength:Fq,kMaxRequests:Wse,kCounter:hXe,kMaxResponseSize:AXe,kOnError:Yse,kResume:nu,kHTTPContext:roe}=Ht(),go=Une(),Jse=Buffer.alloc(0),YB=Buffer[Symbol.species],JB=le.addListener,gXe=le.removeAllListeners,wf=Symbol("kIdleSocketValidation"),SA=Symbol("kIdleSocketValidationTimeout"),Gq=Symbol("kSocketUsed"),Lq;async function yXe(){let t=process.env.JEST_WORKER_ID?Eq():void 0,e;try{e=await WebAssembly.compile(Gne())}catch{e=await WebAssembly.compile(t||Eq())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{ge(lr.ptr===r);let o=n-rc+tc.byteOffset;return lr.onStatus(new YB(tc.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(ge(lr.ptr===r),lr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{ge(lr.ptr===r);let o=n-rc+tc.byteOffset;return lr.onHeaderField(new YB(tc.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{ge(lr.ptr===r);let o=n-rc+tc.byteOffset;return lr.onHeaderValue(new YB(tc.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(ge(lr.ptr===r),lr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{ge(lr.ptr===r);let o=n-rc+tc.byteOffset;return lr.onBody(new YB(tc.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(ge(lr.ptr===r),lr.onMessageComplete()||0),"wasm_on_message_complete")}})}i(yXe,"lazyllhttp");var Mq=null,Uq=yXe();Uq.catch();var lr=null,tc=null,jB=0,rc=null,EXe=0,lI=1,wA=2|lI,ZB=4|lI,qq=8|EXe,$q=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){ge(Number.isFinite(e[Oq])&&e[Oq]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[Oq],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[AXe]}setTimeout(e,r){e!==this.timeoutValue||r&lI^this.timeoutType&lI?(this.timeout&&(kq.clearTimeout(this.timeout),this.timeout=null),e&&(r&lI?this.timeout=kq.setFastTimeout(jse,e,new WeakRef(this)):(this.timeout=setTimeout(jse,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=r}resume(){this.socket.destroyed||!this.paused||(ge(this.ptr!=null),ge(lr==null),this.llhttp.llhttp_resume(this.ptr),ge(this.timeoutType===ZB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Jse),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){ge(this.ptr!=null),ge(lr==null),ge(!this.paused);let{socket:r,llhttp:n}=this;e.length>jB&&(rc&&n.free(rc),jB=Math.ceil(e.length/4096)*4096,rc=n.malloc(jB)),new Uint8Array(n.memory.buffer,rc,jB).set(e);try{let s;try{tc=e,lr=this,s=n.llhttp_execute(this.ptr,rc,e.length)}catch(a){throw a}finally{lr=null,tc=null}let o=n.llhttp_get_error_pos(this.ptr)-rc;if(s!==go.ERROR.OK){let a=e.subarray(o);if(s===go.ERROR.PAUSED_UPGRADE)this.onUpgrade(a);else if(s===go.ERROR.PAUSED)this.paused=!0,r.unshift(a);else throw this.createError(s,a)}}catch(s){le.destroy(r,s)}}finish(){ge(lr===null),ge(this.ptr!=null),ge(!this.paused);let{llhttp:e}=this,r;try{lr=this,r=e.llhttp_finish(this.ptr)}finally{lr=null}return r===go.ERROR.OK?null:r===go.ERROR.PAUSED||r===go.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,Jse)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new zse;let a=n.llhttp_get_error_reason(this.ptr),c="";if(a){let l=new Uint8Array(n.memory.buffer,a).indexOf(0);c="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,a,l).toString()+")"}return new iXe(c,go.ERROR[e],r)}destroy(){ge(this.ptr!=null),ge(lr==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&kq.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:r}=this;if(e.destroyed)return-1;if(r[kr]===0)return le.destroy(e,new IA("bad response",le.getSocketInfo(e))),-1;let n=r[ea][r[si]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let r=this.headers.length;(r&1)===0?this.headers.push(e):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let r=this.headers.length;(r&1)===1?(this.headers.push(e),r+=1):this.headers[r-1]=Buffer.concat([this.headers[r-1],e]);let n=this.headers[r-2];if(n.length===10){let s=le.bufferToLowerCasedHeaderName(n);s==="keep-alive"?this.keepAlive+=e.toString():s==="connection"&&(this.connection+=e.toString())}else n.length===14&&le.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&le.destroy(this.socket,new sXe)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a,statusText:c}=this;ge(r),ge(n[Sf]===s),ge(!s.destroyed),ge(!this.paused),ge((o.length&1)===0);let l=n[ea][n[si]];ge(l),ge(l.upgrade||l.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[kt].destroy(),s[kt]=null,s[KB]=null,s[as]=null,gXe(s),n[Sf]=null,n[roe]=null,n[ea][n[si]++]=null,n.emit("disconnect",n[eoe],[n],new If("upgrade"));try{l.onUpgrade(a,o,s,c)}catch(u){le.errorRequest(n,l,u),le.destroy(s,u)}n[nu]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[kr]===0)return le.destroy(o,new IA("bad response",le.getSocketInfo(o))),-1;let l=s[ea][s[si]];if(!l)return-1;if(ge(!this.upgrade),ge(this.statusCode<200),e===100)return le.destroy(o,new IA("bad response",le.getSocketInfo(o))),-1;if(r&&!l.upgrade)return le.destroy(o,new IA("bad upgrade",le.getSocketInfo(o))),-1;if(ge(this.timeoutType===wA),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[Qs]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[mXe];this.setTimeout(d,ZB)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return ge(s[kr]===1),this.upgrade=!0,2;if(r)return ge(s[kr]===1),this.upgrade=!0,2;if(ge((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[XB]){let d=this.keepAlive?le.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[pXe],s[dXe]);p<=0?o[Qs]=!0:s[eR]=p}else s[eR]=s[cXe]}else o[Qs]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[uI]&&(o[uI]=!1,s[nu]()),u?go.ERROR.PAUSED:0)}onBody(e){let{client:r,socket:n,statusCode:s,maxResponseSize:o}=this;if(n.destroyed)return-1;let a=r[ea][r[si]];if(ge(a),ge(this.timeoutType===ZB),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),ge(s>=200),o>-1&&this.bytesRead+e.length>o)return le.destroy(n,new aXe),-1;if(this.bytesRead+=e.length,a.onData(e)===!1)return go.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:r,statusCode:n,upgrade:s,headers:o,contentLength:a,bytesRead:c,shouldKeepAlive:l}=this;if(r.destroyed&&(!n||l))return-1;if(s)return;ge(n>=100),ge((this.headers.length&1)===0);let u=e[ea][e[si]];if(ge(u),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",this.headers=[],this.headersSize=0,!(n<200)){if(u.method!=="HEAD"&&a&&c!==parseInt(a,10))return le.destroy(r,new zse),-1;if(u.onComplete(o),e[ea][e[si]++]=null,r[Gq]=!0,r[sd])return ge(e[kr]===0),le.destroy(r,new If("reset")),go.ERROR.PAUSED;if(l){if(r[Qs]&&e[kr]===0)return le.destroy(r,new If("reset")),go.ERROR.PAUSED;e[XB]==null||e[XB]===1?setImmediate(()=>e[nu]()):e[nu]()}else return le.destroy(r,new If("reset")),go.ERROR.PAUSED}}};function jse(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===wA?(!e[sd]||e.writableNeedDrain||n[kr]>1)&&(ge(!s,"cannot be paused while waiting for headers"),le.destroy(e,new nXe)):r===ZB?s||le.destroy(e,new oXe):r===qq&&(ge(n[kr]===0&&n[eR]),le.destroy(e,new If("socket idle timeout")))}i(jse,"onParserTimeout");async function CXe(t,e){t[Sf]=e,Mq||(Mq=await Uq,Uq=null),e[cI]=!1,e[sd]=!1,e[Qs]=!1,e[uI]=!1,e[wf]=0,e[SA]=null,e[Gq]=!1,e[kt]=new $q(t,e,Mq),JB(e,"error",function(n){let s=this[kt];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[as]=o,this[KB][Yse](o));return}this[as]=n,this[KB][Yse](n)}),JB(e,"readable",function(){let n=this[kt];n&&n.readMore()}),JB(e,"end",function(){let n=this[kt];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&le.destroy(this,s);return}le.destroy(this,new IA("other side closed",le.getSocketInfo(this)))}),JB(e,"close",function(){let n=this[KB],s=this[kt];noe(this),s&&(!this[as]&&s.statusCode&&!s.shouldKeepAlive&&(this[as]=s.finish()||this[as]),this[kt].destroy(),this[kt]=null);let o=this[as]||new IA("closed",le.getSocketInfo(this));if(n[Sf]=null,n[roe]=null,n.destroyed){ge(n[toe]===0);let a=n[ea].splice(n[si]);for(let c=0;c<a.length;c++){let l=a[c];le.errorRequest(n,l,o)}}else if(n[kr]>0&&o.code!=="UND_ERR_INFO"){let a=n[ea][n[si]];n[ea][n[si]++]=null,le.errorRequest(n,a,o)}n[uXe]=n[si],ge(n[kr]===0),n.emit("disconnect",n[eoe],[n],o),n[nu]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return xXe(t,...n)},resume(){SXe(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[sd]||e[Qs]||e[uI]||e[wf]===1||n&&(t[kr]>0&&!n.idempotent||t[kr]>0&&(n.upgrade||n.method==="CONNECT")||t[kr]>0&&le.bodyLength(n.body)!==0&&(le.isStream(n.body)||le.isAsyncIterable(n.body)||le.isFormDataLike(n.body))))}}}i(CXe,"connectH1");function noe(t){t[SA]&&(clearImmediate(t[SA]),t[SA]=null),t[wf]=0}i(noe,"clearIdleSocketValidation");function IXe(t,e){e[wf]=1,e[SA]=setImmediate(()=>{e[SA]=null,e[wf]=2,t[Sf]===e&&!e.destroyed&&t[nu]()})}i(IXe,"scheduleIdleSocketValidation");function SXe(t){let e=t[Sf];if(e&&!e.destroyed){if(t[Vse]===0?!e[cI]&&e.unref&&(e.unref(),e[cI]=!0):e[cI]&&e.ref&&(e.ref(),e[cI]=!1),t[kr]===0&&t[toe]>0&&e[Gq]){if(e[wf]===0)return IXe(t,e),e[kt].readMore(),e.destroyed,void 0;if(e[wf]===1)return e[kt].readMore(),e.destroyed,void 0}if(t[kr]===0&&(e[kt].readMore(),e.destroyed))return;if(t[Vse]===0)e[kt].timeoutType!==qq&&e[kt].setTimeout(t[eR],qq);else if(t[kr]>0&&e[kt].statusCode<200&&e[kt].timeoutType!==wA){let r=t[ea][t[si]],n=r.headersTimeout!=null?r.headersTimeout:t[fXe];e[kt].setTimeout(n,wA)}}}i(SXe,"resumeH1");function wXe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(wXe,"shouldSendContentLength");function xXe(t,e){let{method:r,path:n,host:s,upgrade:o,blocking:a,reset:c}=e,{body:l,headers:u,contentLength:d}=e,p=r==="PUT"||r==="POST"||r==="PATCH"||r==="QUERY"||r==="PROPFIND"||r==="PROPPATCH";if(le.isFormDataLike(l)){Lq||(Lq=CA().extractBody);let[y,E]=Lq(l);e.contentType==null&&u.push("content-type",E),l=y.stream,d=y.length}else if(le.isBlobLike(l)&&e.contentType==null){let y=l.type;if(y){let E=`${y}`;if(!le.isValidHeaderValue(E))return le.errorRequest(t,e,new rXe("invalid content-type header")),!1;u.push("content-type",E)}}l&&typeof l.read=="function"&&l.read(0);let f=le.bodyLength(l);if(d=f??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),wXe(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[Fq])return le.errorRequest(t,e,new Cf),!1;process.emitWarning(new Cf)}let m=t[Sf];noe(m);let h=i(y=>{if(!e.aborted){if(e.completed){(e.upgrade||e.method==="CONNECT")&&le.destroy(m,new If("aborted"));return}le.errorRequest(t,e,y||new Zse),le.destroy(l),le.destroy(m,new If("aborted"))}},"abort");try{e.onConnect(h)}catch(y){le.errorRequest(t,e,y)}if(e.aborted)return!1;r==="HEAD"&&(m[Qs]=!0),(o||r==="CONNECT")&&(m[Qs]=!0),c!=null&&(m[Qs]=c),t[Wse]&&m[hXe]++>=t[Wse]&&(m[Qs]=!0),a&&(m[uI]=!0);let A=`${r} ${n} HTTP/1.1\r
|
|
`;if(typeof s=="string"?A+=`host: ${s}\r
|
|
`:A+=t[lXe],o?A+=`connection: upgrade\r
|
|
upgrade: ${o}\r
|
|
`:t[XB]&&!m[Qs]?A+=`connection: keep-alive\r
|
|
`:A+=`connection: close\r
|
|
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],I=u[y+1];if(Array.isArray(I))for(let x=0;x<I.length;x++)A+=`${E}: ${I[x]}\r
|
|
`;else A+=`${E}: ${I}\r
|
|
`}return Hse.sendHeaders.hasSubscribers&&Hse.sendHeaders.publish({request:e,headers:A,socket:m}),!l||f===0?Kse(h,null,t,e,m,d,A,p):le.isBuffer(l)?Kse(h,l,t,e,m,d,A,p):le.isBlobLike(l)?typeof l.stream=="function"?Xse(h,l.stream(),t,e,m,d,A,p):BXe(h,l,t,e,m,d,A,p):le.isStream(l)?bXe(h,l,t,e,m,d,A,p):le.isIterable(l)?Xse(h,l,t,e,m,d,A,p):ge(!1),!0}i(xXe,"writeH1");function bXe(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===0,"stream body cannot be pipelined");let l=!1,u=new tR({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a}),d=i(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(A){le.destroy(this,A)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new Zse;queueMicrotask(()=>m(h))}},"onClose"),m=i(function(h){if(!l){if(l=!0,ge(s.destroyed||s[sd]&&r[kr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!h)try{u.end()}catch(A){h=A}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?le.destroy(e,h):le.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(bXe,"writeStream");function Kse(t,e,r,n,s,o,a,c){try{e?le.isBuffer(e)&&(ge(o===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${o}\r
|
|
\r
|
|
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[Qs]=!0)):o===0?s.write(`${a}content-length: 0\r
|
|
\r
|
|
`,"latin1"):(ge(o===null,"no body must not have content length"),s.write(`${a}\r
|
|
`,"latin1")),n.onRequestSent(),r[nu]()}catch(l){t(l)}}i(Kse,"writeBuffer");async function BXe(t,e,r,n,s,o,a,c){ge(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Cf;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${o}\r
|
|
\r
|
|
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[Qs]=!0),r[nu]()}catch(l){t(l)}}i(BXe,"writeBlob");async function Xse(t,e,r,n,s,o,a,c){ge(o!==0||r[kr]===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)=>{ge(l===null),s[as]?m(s[as]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new tR({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[as])throw s[as];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(Xse,"writeIterable");var tR=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[sd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[as])throw r[as];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[Fq])throw new Cf;process.emitWarning(new Cf)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Qs]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
|
|
`,"latin1"):r.write(`${l}content-length: ${s}\r
|
|
\r
|
|
`,"latin1")),s===null&&r.write(`\r
|
|
${u.toString(16)}\r
|
|
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[kt].timeout&&r[kt].timeoutType===wA&&r[kt].timeout.refresh&&r[kt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[sd]=!1,e[as])throw e[as];if(!e.destroyed){if(s===0?o?e.write(`${a}content-length: 0\r
|
|
\r
|
|
`,"latin1"):e.write(`${a}\r
|
|
`,"latin1"):r===null&&e.write(`\r
|
|
0\r
|
|
\r
|
|
`,"latin1"),r!==null&&s!==r){if(n[Fq])throw new Cf;process.emitWarning(new Cf)}e[kt].timeout&&e[kt].timeoutType===wA&&e[kt].timeout.refresh&&e[kt].timeout.refresh(),n[nu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[sd]=!1,e&&(ge(n[kr]<=1,"pipeline should only contain this request"),s(e))}};soe.exports=CXe});var foe=S((oZt,poe)=>{"use strict";var sc=require("node:assert"),{errorMonitor:Hq}=require("node:events"),{pipeline:RXe}=require("node:stream"),Ke=Ye(),{RequestContentLengthMismatchError:Vq,RequestAbortedError:zq,SocketError:dI,InformationalError:rR}=at(),{kUrl:nR,kReset:oR,kClient:xA,kRunning:iR,kPending:NXe,kQueue:xf,kPendingIdx:Yq,kRunningIdx:nc,kError:ra,kSocket:sn,kStrictContentLength:TXe,kOnError:Jq,kMaxConcurrentStreams:uoe,kHTTP2Session:ta,kResume:id,kSize:PXe,kHTTPContext:_Xe}=Ht(),od=Symbol("open streams"),ioe,aoe=!1,sR;try{sR=require("node:http2")}catch{sR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vXe,HTTP2_HEADER_METHOD:QXe,HTTP2_HEADER_PATH:DXe,HTTP2_HEADER_SCHEME:kXe,HTTP2_HEADER_CONTENT_LENGTH:OXe,HTTP2_HEADER_EXPECT:LXe,HTTP2_HEADER_STATUS:Wq}}=sR;function doe(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(doe,"parseH2Headers");function MXe(t){let{[Wq]:e,...r}=t;return doe(r)}i(MXe,"parseH2ResponseHeaders");async function FXe(t,e){t[sn]=e,aoe||(aoe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=sR.connect(t[nR],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[uoe]});r[od]=0,r[xA]=t,r[sn]=e,Ke.addListener(r,"error",qXe),Ke.addListener(r,"frameError",$Xe),Ke.addListener(r,"end",GXe),Ke.addListener(r,"goaway",HXe),Ke.addListener(r,"close",function(){let{[xA]:s}=this,{[sn]:o}=s,a=this[sn][ra]||this[ra]||new dI("closed",Ke.getSocketInfo(o));if(s[ta]=null,s.destroyed){sc(s[NXe]===0);let c=s[xf].splice(s[nc]);for(let l=0;l<c.length;l++){let u=c[l];Ke.errorRequest(s,u,a)}}}),r.unref(),t[ta]=r,e[ta]=r,Ke.addListener(e,"error",function(s){this[ra]=s,this[xA][Jq](s)}),Ke.addListener(e,"end",function(){Ke.destroy(this,new dI("other side closed",Ke.getSocketInfo(this)))}),Ke.addListener(e,"close",function(){let s=this[ra]||new dI("closed",Ke.getSocketInfo(this));t[sn]=null,this[ta]!=null&&this[ta].destroy(s),t[Yq]=t[nc],sc(t[iR]===0),t.emit("disconnect",t[nR],[t],s),t[id]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VXe(t,...s)},resume(){UXe(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i(FXe,"connectH2");function UXe(t){let e=t[sn];e?.destroyed===!1&&(t[PXe]===0&&t[uoe]===0?(e.unref(),t[ta].unref()):(e.ref(),t[ta].ref()))}i(UXe,"resumeH2");function qXe(t){this[sn][ra]=t,this[xA][Jq](t)}i(qXe,"onHttp2SessionError");function $Xe(t,e,r){if(r===0){let n=new rR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[sn][ra]=n,this[xA][Jq](n)}}i($Xe,"onHttp2FrameError");function GXe(){let t=new dI("other side closed",Ke.getSocketInfo(this[sn]));this.destroy(t),Ke.destroy(this[sn],t)}i(GXe,"onHttp2SessionEnd");function HXe(t){let e=this[ra]||new dI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ke.getSocketInfo(this)),r=this[xA];if(r[sn]=null,r[_Xe]=null,this[ta]!=null&&(this[ta].destroy(e),this[ta]=null),Ke.destroy(this[sn],e),r[nc]<r[xf].length){let n=r[xf][r[nc]];r[xf][r[nc]++]=null,Ke.errorRequest(r,n,e),r[Yq]=r[nc]}sc(r[iR]===0),r.emit("disconnect",r[nR],[r],e),r[id]()}i(HXe,"onHTTP2GoAway");function zXe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(zXe,"shouldSendContentLength");function VXe(t,e){let r=t[ta],{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],v=u[b+1];if(Array.isArray(v))for(let _=0;_<v.length;_++)p[N]?p[N]+=`,${v[_]}`:p[N]=v[_];else p[N]=v}let f,{hostname:m,port:h}=t[nR];p[vXe]=o||`${m}${h?`:${h}`:""}`,p[QXe]=n;let A=i(b=>{if(!e.aborted){if(e.completed){n==="CONNECT"&&f!=null&&Ke.destroy(f,b||new zq);return}b=b||new zq,Ke.errorRequest(t,e,b),f!=null&&Ke.destroy(f,b),Ke.destroy(d,b),t[xf][t[nc]++]=null,t[id]()}},"abort");try{e.onConnect(A)}catch(b){Ke.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT"){r.ref(),f=r.request(p,{endStream:!1,signal:l});let b=!1,N=i(J=>{b=!0,f.off(Hq,v),e.onUpgradeResponse(Number(J[Wq]),J,MXe)},"onResponse"),v=i(J=>{b=!0,f.off("response",N),e.onUpgradeError(J)},"onUpgradeError"),_=i(()=>{try{e.onUpgrade(null,null,f)}catch(J){f.off("response",N),A(J);return}e.aborted||(f.off("error",A),f.once(Hq,v),t[xf][t[nc]++]=null)},"onReady");return f.once("response",N),f.once("error",A),++r[od],_(),f.once("close",()=>{!b&&e.completed&&(f.off("response",N),f.off(Hq,v),e.onUpgradeError(new rR(`HTTP/2: "stream error" received - code ${f.rstCode}`))),r[od]-=1,r[od]===0&&r.unref()}),!0}p[DXe]=s,p[kXe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Ke.bodyLength(d);if(Ke.isFormDataLike(d)){ioe??=CA().extractBody;let[b,N]=ioe(d);p["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),zXe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[TXe])return Ke.errorRequest(t,e,new Vq),!1;process.emitWarning(new Vq)}E!=null&&(sc(d,"no body must not have content length"),p[OXe]=`${E}`),r.ref();let I=n==="GET"||n==="HEAD"||d===null;return c?(p[LXe]="100-continue",f=r.request(p,{endStream:I,signal:l}),f.once("continue",x)):(f=r.request(p,{endStream:I,signal:l}),x()),++r[od],f.once("response",b=>{let{[Wq]:N,...v}=b;if(e.onResponseStarted(),e.aborted){let _=new zq;Ke.errorRequest(t,e,_),Ke.destroy(f,_);return}e.onHeaders(Number(N),doe(v),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",_=>{e.onData(_)===!1&&f.pause()})}),f.once("end",()=>{(f.state?.state==null||f.state.state<6)&&e.onComplete([]),r[od]===0&&r.unref(),A(new rR("HTTP/2: stream half-closed (remote)")),t[xf][t[nc]++]=null,t[Yq]=t[nc],t[id]()}),f.once("close",()=>{r[od]-=1,r[od]===0&&r.unref()}),f.once("error",function(b){A(b)}),f.once("frameError",(b,N)=>{A(new rR(`HTTP/2: "frameError" received - type ${b}, code ${N}`))}),!0;function x(){!d||E===0?coe(A,f,null,t,e,t[sn],E,y):Ke.isBuffer(d)?coe(A,f,d,t,e,t[sn],E,y):Ke.isBlobLike(d)?typeof d.stream=="function"?loe(A,f,d.stream(),t,e,t[sn],E,y):YXe(A,f,d,t,e,t[sn],E,y):Ke.isStream(d)?WXe(A,t[sn],y,f,d,t,e,E):Ke.isIterable(d)?loe(A,f,d,t,e,t[sn],E,y):sc(!1)}i(x,"writeBodyH2")}i(VXe,"writeH2");function coe(t,e,r,n,s,o,a,c){try{r!=null&&Ke.isBuffer(r)&&(sc(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[oR]=!0),s.onRequestSent(),n[id]()}catch(l){t(l)}}i(coe,"writeBuffer");function WXe(t,e,r,n,s,o,a,c){sc(c!==0||o[iR]===0,"stream body cannot be pipelined");let l=RXe(s,n,d=>{d?(Ke.destroy(l,d),t(d)):(Ke.removeAllListeners(l),a.onRequestSent(),r||(e[oR]=!0),o[id]())});Ke.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(WXe,"writeStream");async function YXe(t,e,r,n,s,o,a,c){sc(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new Vq;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[oR]=!0),n[id]()}catch(l){t(l)}}i(YXe,"writeBlob");async function loe(t,e,r,n,s,o,a,c){sc(a!==0||n[iR]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}i(u,"onDrain");let d=i(()=>new Promise((p,f)=>{sc(l===null),o[ra]?f(o[ra]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[ra])throw o[ra];let f=e.write(p);s.onBodySent(p),f||await d()}e.end(),s.onRequestSent(),c||(o[oR]=!0),n[id]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i(loe,"writeIterable");poe.exports=FXe});var cR=S((aZt,Aoe)=>{"use strict";var oc=Ye(),{kBodyUsed:pI}=Ht(),Kq=require("node:assert"),{InvalidArgumentError:JXe}=at(),jXe=require("node:events"),KXe=[300,301,302,303,307,308],moe=Symbol("body"),aR=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[moe]=e,this[pI]=!1}async*[Symbol.asyncIterator](){Kq(!this[pI],"disturbed"),this[pI]=!0,yield*this[moe]}},jq=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new JXe("maxRedirections must be a positive number");oc.validateHandler(s,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,maxRedirections:0},this.maxRedirections=r,this.handler=s,this.history=[],this.redirectionLimitReached=!1,oc.isStream(this.opts.body)?(oc.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){Kq(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[pI]=!1,jXe.prototype.on.call(this.opts.body,"data",function(){this[pI]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new aR(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&oc.isIterable(this.opts.body)&&(this.opts.body=new aR(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,r,n){this.handler.onUpgrade(e,r,n)}onError(e){this.handler.onError(e)}onHeaders(e,r,n,s){if(this.location=this.history.length>=this.maxRedirections||oc.isDisturbed(this.opts.body)?null:XXe(e,r),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(new Error("max redirects")),this.redirectionLimitReached=!0,this.abort(new Error("max redirects"));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,r,n,s);let{origin:o,pathname:a,search:c}=oc.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=ZXe(this.opts.headers,e===303,this.opts.origin!==o),this.opts.path=l,this.opts.origin=o,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!=="HEAD"&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function XXe(t,e){if(KXe.indexOf(t)===-1)return null;for(let r=0;r<e.length;r+=2)if(e[r].length===8&&oc.headerNameToString(e[r])==="location")return e[r+1]}i(XXe,"parseLocation");function hoe(t,e,r){if(t.length===4)return oc.headerNameToString(t)==="host";if(e&&oc.headerNameToString(t).startsWith("content-"))return!0;if(r&&(t.length===13||t.length===6||t.length===19)){let n=oc.headerNameToString(t);return n==="authorization"||n==="cookie"||n==="proxy-authorization"}return!1}i(hoe,"shouldRemoveHeader");function ZXe(t,e,r){let n=[];if(Array.isArray(t))for(let s=0;s<t.length;s+=2)hoe(t[s],e,r)||n.push(t[s],t[s+1]);else if(t&&typeof t=="object")for(let s of Object.keys(t))hoe(s,e,r)||n.push(s,t[s]);else Kq(t==null,"headers must be an object or an array");return n}i(ZXe,"cleanRequestHeaders");Aoe.exports=jq});var lR=S((lZt,goe)=>{"use strict";var e7e=cR();function t7e({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new e7e(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(t7e,"createRedirectInterceptor");goe.exports=t7e});var RA=S((dZt,Roe)=>{"use strict";var su=require("node:assert"),woe=require("node:net"),r7e=require("node:http"),bf=Ye(),{channels:bA}=aA(),n7e=Bne(),s7e=dA(),{InvalidArgumentError:wr,InformationalError:o7e,ClientDestroyedError:i7e}=at(),a7e=ZC(),{kUrl:ic,kServerName:ad,kClient:c7e,kBusy:Xq,kConnect:l7e,kResuming:Bf,kRunning:gI,kPending:yI,kSize:AI,kQueue:na,kConnected:u7e,kConnecting:BA,kNeedDrain:ld,kKeepAliveDefaultTimeout:yoe,kHostHeader:d7e,kPendingIdx:sa,kRunningIdx:ou,kError:p7e,kPipelining:uR,kKeepAliveTimeoutValue:f7e,kMaxHeadersSize:m7e,kKeepAliveMaxTimeout:h7e,kKeepAliveTimeoutThreshold:A7e,kHeadersTimeout:g7e,kBodyTimeout:y7e,kStrictContentLength:E7e,kConnector:fI,kMaxRedirections:C7e,kMaxRequests:Zq,kCounter:I7e,kClose:S7e,kDestroy:w7e,kDispatch:x7e,kInterceptors:Eoe,kLocalAddress:mI,kMaxResponseSize:b7e,kOnError:B7e,kHTTPContext:xr,kMaxConcurrentStreams:R7e,kResume:hI}=Ht(),N7e=ooe(),T7e=foe(),Coe=!1,cd=Symbol("kClosedResolve"),Ioe=i(()=>{},"noop");function xoe(t){return t[uR]??t[xr]?.defaultPipelining??1}i(xoe,"getPipelining");var e$=class extends s7e{static{i(this,"Client")}constructor(e,{interceptors:r,maxHeaderSize:n,headersTimeout:s,socketTimeout:o,requestTimeout:a,connectTimeout:c,bodyTimeout:l,idleTimeout:u,keepAlive:d,keepAliveTimeout:p,maxKeepAliveTimeout:f,keepAliveMaxTimeout:m,keepAliveTimeoutThreshold:h,socketPath:A,pipelining:y,tls:E,strictContentLength:I,maxCachedSessions:x,maxRedirections:b,connect:N,maxRequestsPerClient:v,localAddress:_,maxResponseSize:J,autoSelectFamily:Be,autoSelectFamilyAttemptTimeout:ke,maxConcurrentStreams:De,allowH2:ce,webSocket:Tt,eventSource:Re}={}){if(super({webSocket:Tt,eventSource:Re}),d!==void 0)throw new wr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new wr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new wr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new wr("unsupported idleTimeout, use keepAliveTimeout instead");if(f!==void 0)throw new wr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new wr("invalid maxHeaderSize");if(A!=null&&typeof A!="string")throw new wr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new wr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new wr("invalid keepAliveTimeout");if(m!=null&&(!Number.isFinite(m)||m<=0))throw new wr("invalid keepAliveMaxTimeout");if(h!=null&&!Number.isFinite(h))throw new wr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new wr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new wr("bodyTimeout must be a positive integer or zero");if(N!=null&&typeof N!="function"&&typeof N!="object")throw new wr("connect must be a function or an object");if(b!=null&&(!Number.isInteger(b)||b<0))throw new wr("maxRedirections must be a positive number");if(v!=null&&(!Number.isInteger(v)||v<0))throw new wr("maxRequestsPerClient must be a positive number");if(_!=null&&(typeof _!="string"||woe.isIP(_)===0))throw new wr("localAddress must be valid string IP address");if(J!=null&&(!Number.isInteger(J)||J<-1))throw new wr("maxResponseSize must be a positive number");if(ke!=null&&(!Number.isInteger(ke)||ke<-1))throw new wr("autoSelectFamilyAttemptTimeout must be a positive number");if(ce!=null&&typeof ce!="boolean")throw new wr("allowH2 must be a valid boolean value");if(De!=null&&(typeof De!="number"||De<1))throw new wr("maxConcurrentStreams must be a positive integer, greater than 0");typeof N!="function"&&(N=a7e({...E,maxCachedSessions:x,allowH2:ce,socketPath:A,timeout:c,...Be?{autoSelectFamily:Be,autoSelectFamilyAttemptTimeout:ke}:void 0,...N})),r?.Client&&Array.isArray(r.Client)?(this[Eoe]=r.Client,Coe||(Coe=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[Eoe]=[P7e({maxRedirections:b})],this[ic]=bf.parseOrigin(e),this[fI]=N,this[uR]=y??1,this[m7e]=n||r7e.maxHeaderSize,this[yoe]=p??4e3,this[h7e]=m??6e5,this[A7e]=h??2e3,this[f7e]=this[yoe],this[ad]=null,this[mI]=_??null,this[Bf]=0,this[ld]=0,this[d7e]=`host: ${this[ic].hostname}${this[ic].port?`:${this[ic].port}`:""}\r
|
|
`,this[y7e]=l??3e5,this[g7e]=s??3e5,this[E7e]=I??!0,this[C7e]=b,this[Zq]=v,this[cd]=null,this[b7e]=J>-1?J:-1,this[R7e]=De??100,this[xr]=null,this[na]=[],this[ou]=0,this[sa]=0,this[hI]=oe=>t$(this,oe),this[B7e]=oe=>boe(this,oe)}get pipelining(){return this[uR]}set pipelining(e){this[uR]=e,this[hI](!0)}get[yI](){return this[na].length-this[sa]}get[gI](){return this[sa]-this[ou]}get[AI](){return this[na].length-this[ou]}get[u7e](){return!!this[xr]&&!this[BA]&&!this[xr].destroyed}get[Xq](){return!!(this[xr]?.busy(null)||this[AI]>=(xoe(this)||1)||this[yI]>0)}[l7e](e){Boe(this),this.once("connect",e)}[x7e](e,r){let n=e.origin||this[ic].origin,s=new n7e(n,e,r);return this[na].push(s),this[Bf]||(bf.bodyLength(s.body)==null&&bf.isIterable(s.body)?(this[Bf]=1,queueMicrotask(()=>t$(this))):this[hI](!0)),this[Bf]&&this[ld]!==2&&this[Xq]&&(this[ld]=2),this[ld]<2}async[S7e](){return new Promise(e=>{this[AI]?this[cd]=e:e(null)})}async[w7e](e){return new Promise(r=>{let n=this[na].splice(this[sa]);for(let o=0;o<n.length;o++){let a=n[o];bf.errorRequest(this,a,e)}let s=i(()=>{this[cd]&&(this[cd](),this[cd]=null),r(null)},"callback");this[xr]?(this[xr].destroy(e,s),this[xr]=null):queueMicrotask(s),this[hI]()})}},P7e=lR();function boe(t,e){if(t[gI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){su(t[sa]===t[ou]);let r=t[na].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];bf.errorRequest(t,s,e)}su(t[AI]===0)}}i(boe,"onError");async function Boe(t){su(!t[BA]),su(!t[xr]);let{host:e,hostname:r,protocol:n,port:s}=t[ic];if(r[0]==="["){let o=r.indexOf("]");su(o!==-1);let a=r.substring(1,o);su(woe.isIP(a)),r=a}t[BA]=!0,bA.beforeConnect.hasSubscribers&&bA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[ad],localAddress:t[mI]},connector:t[fI]});try{let o=await new Promise((a,c)=>{t[fI]({host:e,hostname:r,protocol:n,port:s,servername:t[ad],localAddress:t[mI]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){bf.destroy(o.on("error",Ioe),new i7e);return}su(o);try{t[xr]=o.alpnProtocol==="h2"?await T7e(t,o):await N7e(t,o)}catch(a){throw o.destroy().on("error",Ioe),a}t[BA]=!1,o[I7e]=0,o[Zq]=t[Zq],o[c7e]=t,o[p7e]=null,bA.connected.hasSubscribers&&bA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[ad],localAddress:t[mI]},connector:t[fI],socket:o}),t.emit("connect",t[ic],[t])}catch(o){if(t.destroyed)return;if(t[BA]=!1,bA.connectError.hasSubscribers&&bA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[xr]?.version,servername:t[ad],localAddress:t[mI]},connector:t[fI],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(su(t[gI]===0);t[yI]>0&&t[na][t[sa]].servername===t[ad];){let a=t[na][t[sa]++];bf.errorRequest(t,a,o)}else boe(t,o);t.emit("connectionError",t[ic],[t],o)}t[hI]()}i(Boe,"connect");function Soe(t){t[ld]=0,t.emit("drain",t[ic],[t])}i(Soe,"emitDrain");function t$(t,e){t[Bf]!==2&&(t[Bf]=2,_7e(t,e),t[Bf]=0,t[ou]>256&&(t[na].splice(0,t[ou]),t[sa]-=t[ou],t[ou]=0))}i(t$,"resume");function _7e(t,e){for(;;){if(t.destroyed){su(t[yI]===0);return}if(t[cd]&&!t[AI]){t[cd](),t[cd]=null;return}if(t[xr]&&t[xr].resume(),t[Xq])t[ld]=2;else if(t[ld]===2){e?(t[ld]=1,queueMicrotask(()=>Soe(t))):Soe(t);continue}if(t[yI]===0||t[gI]>=(xoe(t)||1))return;let r=t[na][t[sa]];if(t[ic].protocol==="https:"&&t[ad]!==r.servername){if(t[gI]>0)return;t[ad]=r.servername,t[xr]?.destroy(new o7e("servername changed"),()=>{t[xr]=null,t$(t)})}if(t[BA])return;if(!t[xr]){Boe(t);return}if(t[xr].destroyed||t[xr].busy(r))return;!r.aborted&&t[xr].write(r)?t[sa]++:t[na].splice(t[sa],1)}}i(_7e,"_resume");Roe.exports=e$});var r$=S((mZt,Noe)=>{"use strict";var dR=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};Noe.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new dR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new dR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Poe=S((AZt,Toe)=>{var{kFree:v7e,kConnected:Q7e,kPending:D7e,kQueued:k7e,kRunning:O7e,kSize:L7e}=Ht(),Rf=Symbol("pool"),n$=class{static{i(this,"PoolStats")}constructor(e){this[Rf]=e}get connected(){return this[Rf][Q7e]}get free(){return this[Rf][v7e]}get pending(){return this[Rf][D7e]}get queued(){return this[Rf][k7e]}get running(){return this[Rf][O7e]}get size(){return this[Rf][L7e]}};Toe.exports=n$});var l$=S((yZt,Uoe)=>{"use strict";var M7e=dA(),F7e=r$(),{kConnected:s$,kSize:_oe,kRunning:voe,kPending:Qoe,kQueued:EI,kBusy:U7e,kFree:q7e,kUrl:$7e,kClose:G7e,kDestroy:H7e,kDispatch:z7e}=Ht(),V7e=Poe(),Ds=Symbol("clients"),cs=Symbol("needDrain"),CI=Symbol("queue"),o$=Symbol("closed resolve"),i$=Symbol("onDrain"),Doe=Symbol("onConnect"),koe=Symbol("onDisconnect"),Ooe=Symbol("onConnectionError"),a$=Symbol("get dispatcher"),Moe=Symbol("add client"),Foe=Symbol("remove client"),Loe=Symbol("stats"),c$=class extends M7e{static{i(this,"PoolBase")}constructor(e){super(e),this[CI]=new F7e,this[Ds]=[],this[EI]=0;let r=this;this[i$]=i(function(s,o){let a=r[CI],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[EI]--,c=!this.dispatch(l.opts,l.handler)}this[cs]=c,!this[cs]&&r[cs]&&(r[cs]=!1,r.emit("drain",s,[r,...o])),r[o$]&&a.isEmpty()&&Promise.all(r[Ds].map(l=>l.close())).then(r[o$])},"onDrain"),this[Doe]=(n,s)=>{r.emit("connect",n,[r,...s])},this[koe]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[Ooe]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[Loe]=new V7e(this)}get[U7e](){return this[cs]}get[s$](){return this[Ds].filter(e=>e[s$]).length}get[q7e](){return this[Ds].filter(e=>e[s$]&&!e[cs]).length}get[Qoe](){let e=this[EI];for(let{[Qoe]:r}of this[Ds])e+=r;return e}get[voe](){let e=0;for(let{[voe]:r}of this[Ds])e+=r;return e}get[_oe](){let e=this[EI];for(let{[_oe]:r}of this[Ds])e+=r;return e}get stats(){return this[Loe]}async[G7e](){this[CI].isEmpty()?await Promise.all(this[Ds].map(e=>e.close())):await new Promise(e=>{this[o$]=e})}async[H7e](e){for(;;){let r=this[CI].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Ds].map(r=>r.destroy(e)))}[z7e](e,r){let n=this[a$]();return n?n.dispatch(e,r)||(n[cs]=!0,this[cs]=!this[a$]()):(this[cs]=!0,this[CI].push({opts:e,handler:r}),this[EI]++),!this[cs]}[Moe](e){return e.on("drain",this[i$]).on("connect",this[Doe]).on("disconnect",this[koe]).on("connectionError",this[Ooe]),this[Ds].push(e),this[cs]&&queueMicrotask(()=>{this[cs]&&this[i$](e[$7e],[this,e])}),this}[Foe](e){e.close(()=>{let r=this[Ds].indexOf(e);r!==-1&&this[Ds].splice(r,1)}),this[cs]=this[Ds].some(r=>!r[cs]&&r.closed!==!0&&r.destroyed!==!0)}};Uoe.exports={PoolBase:c$,kClients:Ds,kNeedDrain:cs,kAddClient:Moe,kRemoveClient:Foe,kGetDispatcher:a$}});var NA=S((CZt,Hoe)=>{"use strict";var{PoolBase:W7e,kClients:pR,kNeedDrain:Y7e,kAddClient:J7e,kGetDispatcher:j7e}=l$(),K7e=RA(),{InvalidArgumentError:u$}=at(),qoe=Ye(),{kUrl:$oe,kInterceptors:X7e}=Ht(),Z7e=ZC(),d$=Symbol("options"),p$=Symbol("connections"),Goe=Symbol("factory");function eZe(t,e){return new K7e(t,e)}i(eZe,"defaultFactory");var f$=class extends W7e{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=eZe,connect:s,connectTimeout:o,tls:a,maxCachedSessions:c,socketPath:l,autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d,allowH2:p,...f}={}){if(r!=null&&(!Number.isFinite(r)||r<0))throw new u$("invalid connections");if(typeof n!="function")throw new u$("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new u$("connect must be a function or an object");typeof s!="function"&&(s=Z7e({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(f),this[X7e]=f.interceptors?.Pool&&Array.isArray(f.interceptors.Pool)?f.interceptors.Pool:[],this[p$]=r||null,this[$oe]=qoe.parseOrigin(e),this[d$]={...qoe.deepClone(f),connect:s,allowH2:p},this[d$].interceptors=f.interceptors?{...f.interceptors}:void 0,this[Goe]=n,this.on("connectionError",(m,h,A)=>{for(let y of h){let E=this[pR].indexOf(y);E!==-1&&this[pR].splice(E,1)}})}[j7e](){for(let e of this[pR])if(!e[Y7e])return e;if(!this[p$]||this[pR].length<this[p$]){let e=this[Goe](this[$oe],this[d$]);return this[J7e](e),e}}};Hoe.exports=f$});var Joe=S((SZt,Yoe)=>{"use strict";var{BalancedPoolMissingUpstreamError:tZe,InvalidArgumentError:rZe}=at(),{PoolBase:nZe,kClients:Un,kNeedDrain:II,kAddClient:sZe,kRemoveClient:oZe,kGetDispatcher:iZe}=l$(),aZe=NA(),{kUrl:m$,kInterceptors:cZe}=Ht(),{parseOrigin:zoe}=Ye(),Voe=Symbol("factory"),fR=Symbol("options"),Woe=Symbol("kGreatestCommonDivisor"),Nf=Symbol("kCurrentWeight"),Tf=Symbol("kIndex"),oi=Symbol("kWeight"),mR=Symbol("kMaxWeightPerServer"),hR=Symbol("kErrorPenalty");function lZe(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(lZe,"getGreatestCommonDivisor");function uZe(t,e){return new aZe(t,e)}i(uZe,"defaultFactory");var h$=class extends nZe{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=uZe,...n}={}){if(super(),this[fR]=n,this[Tf]=-1,this[Nf]=0,this[mR]=this[fR].maxWeightPerServer||100,this[hR]=this[fR].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new rZe("factory must be a function.");this[cZe]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[Voe]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=zoe(e).origin;if(this[Un].find(s=>s[m$].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[Voe](r,Object.assign({},this[fR]));this[sZe](n),n.on("connect",()=>{n[oi]=Math.min(this[mR],n[oi]+this[hR])}),n.on("connectionError",()=>{n[oi]=Math.max(1,n[oi]-this[hR]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[oi]=Math.max(1,n[oi]-this[hR]),this._updateBalancedPoolStats())});for(let s of this[Un])s[oi]=this[mR];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;r<this[Un].length;r++)e=lZe(this[Un][r][oi],e);this[Woe]=e}removeUpstream(e){let r=zoe(e).origin,n=this[Un].find(s=>s[m$].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[oZe](n),this}get upstreams(){return this[Un].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[m$].origin)}[iZe](){if(this[Un].length===0)throw new tZe;if(!this[Un].find(o=>!o[II]&&o.closed!==!0&&o.destroyed!==!0)||this[Un].map(o=>o[II]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[Un].findIndex(o=>!o[II]);for(;n++<this[Un].length;){this[Tf]=(this[Tf]+1)%this[Un].length;let o=this[Un][this[Tf]];if(o[oi]>this[Un][s][oi]&&!o[II]&&(s=this[Tf]),this[Tf]===0&&(this[Nf]=this[Nf]-this[Woe],this[Nf]<=0&&(this[Nf]=this[mR])),o[oi]>=this[Nf]&&!o[II])return o}return this[Nf]=this[Un][s][oi],this[Tf]=s,this[Un][s]}};Yoe.exports=h$});var TA=S((xZt,rie)=>{"use strict";var{InvalidArgumentError:AR}=at(),{kClients:ud,kRunning:joe,kClose:dZe,kDestroy:pZe,kDispatch:fZe,kInterceptors:mZe}=Ht(),hZe=dA(),AZe=NA(),gZe=RA(),yZe=Ye(),EZe=lR(),Koe=Symbol("onConnect"),Xoe=Symbol("onDisconnect"),Zoe=Symbol("onConnectionError"),CZe=Symbol("maxRedirections"),eie=Symbol("onDrain"),tie=Symbol("factory"),A$=Symbol("options");function IZe(t,e){return e&&e.connections===1?new gZe(t,e):new AZe(t,e)}i(IZe,"defaultFactory");var g$=class extends hZe{static{i(this,"Agent")}constructor({factory:e=IZe,maxRedirections:r=0,connect:n,tls:s,...o}={}){if(typeof e!="function")throw new AR("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new AR("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new AR("maxRedirections must be a positive number");super(o),n&&typeof n!="function"&&(n={...n}),s&&typeof s!="function"&&(s={...s}),this[mZe]=o.interceptors?.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[EZe({maxRedirections:r})],this[A$]={...yZe.deepClone(o),connect:n,tls:s},this[A$].interceptors=o.interceptors?{...o.interceptors}:void 0,this[CZe]=r,this[tie]=e,this[ud]=new Map,this[eie]=(a,c)=>{this.emit("drain",a,[this,...c])},this[Koe]=(a,c)=>{this.emit("connect",a,[this,...c])},this[Xoe]=(a,c,l)=>{this.emit("disconnect",a,[this,...c],l)},this[Zoe]=(a,c,l)=>{this.emit("connectionError",a,[this,...c],l)}}get[joe](){let e=0;for(let r of this[ud].values())e+=r[joe];return e}[fZe](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new AR("opts.origin must be a non-empty string or URL.");let s=this[ud].get(n);return s||(s=this[tie](e.origin,this[A$]).on("drain",this[eie]).on("connect",this[Koe]).on("disconnect",this[Xoe]).on("connectionError",this[Zoe]),this[ud].set(n,s)),s.dispatch(e,r)}async[dZe](){let e=[];for(let r of this[ud].values())e.push(r.close());this[ud].clear(),await Promise.all(e)}async[pZe](e){let r=[];for(let n of this[ud].values())r.push(n.destroy(e));this[ud].clear(),await Promise.all(r)}};rie.exports=g$});var S$=S((BZt,fie)=>{"use strict";var{kProxy:y$,kClose:cie,kDestroy:lie,kDispatch:nie,kInterceptors:SZe}=Ht(),{URL:Pf}=require("node:url"),wZe=TA(),uie=NA(),die=dA(),{InvalidArgumentError:PA,RequestAbortedError:xZe,SecureProxyConnectionError:bZe}=at(),sie=ZC(),pie=RA(),gR=Symbol("proxy agent"),yR=Symbol("proxy client"),dd=Symbol("proxy headers"),E$=Symbol("request tls settings"),oie=Symbol("proxy tls settings"),iie=Symbol("connect endpoint function"),aie=Symbol("tunnel proxy");function BZe(t){return t==="https:"?443:80}i(BZe,"defaultProtocolPort");function RZe(t,e){return new uie(t,e)}i(RZe,"defaultFactory");var NZe=i(()=>{},"noop");function TZe(t,e){return e.connections===1?new pie(t,e):new uie(t,e)}i(TZe,"defaultAgentFactory");var C$=class extends die{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new PA("Proxy URL is mandatory");this[dd]=r,s?this.#e=s(e,{connect:n}):this.#e=new pie(e,{connect:n})}[nie](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new PA("Proxy Authentication Required (407)"));return}n&&n.call(this,c,l,u)};let{origin:s,path:o="/",headers:a={}}=e;if(e.path=s+o,!("host"in a)&&!("Host"in a)){let{host:c}=new Pf(s);a.host=c}return e.headers={...this[dd],...a},this.#e[nie](e,r)}async[cie](){return this.#e.close()}async[lie](e){return this.#e.destroy(e)}},I$=class extends die{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof Pf)&&!e.uri)throw new PA("Proxy uri is mandatory");let{clientFactory:r=RZe}=e;if(typeof r!="function")throw new PA("Proxy opts.clientFactory must be a function.");let{proxyTunnel:n=!0}=e,s=this.#e(e),{href:o,origin:a,port:c,protocol:l,username:u,password:d,hostname:p}=s;if(this[y$]={uri:o,protocol:l},this[SZe]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[E$]=e.requestTls,this[oie]=e.proxyTls,this[dd]=e.headers||{},this[aie]=n,e.auth&&e.token)throw new PA("opts.auth cannot be used in combination with opts.token");e.auth?this[dd]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[dd]["proxy-authorization"]=e.token:u&&d&&(this[dd]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let f=sie({...e.proxyTls});this[iie]=sie({...e.requestTls});let m=e.factory||TZe,h=i((A,y)=>{let{protocol:E}=new Pf(A);return!this[aie]&&E==="http:"&&this[y$].protocol==="http:"?new C$(this[y$].uri,{headers:this[dd],connect:f,factory:m}):m(A,y)},"factory");this[yR]=r(s,{connect:f}),this[gR]=new wZe({...e,factory:h,connect:i(async(A,y)=>{let E=A.host;A.port||(E+=`:${BZe(A.protocol)}`);try{let{socket:I,statusCode:x}=await this[yR].connect({origin:a,port:c,path:E,signal:A.signal,headers:{...this[dd],host:A.host},servername:this[oie]?.servername||p});if(x!==200&&(I.on("error",NZe).destroy(),y(new xZe(`Proxy response (${x}) !== 200 when HTTP Tunneling`))),A.protocol!=="https:"){y(null,I);return}let b;this[E$]?b=this[E$].servername:b=A.servername,this[iie]({...A,servername:b,httpSocket:I},y)}catch(I){I.code==="ERR_TLS_CERT_ALTNAME_INVALID"?y(new bZe(I)):y(I)}},"connect")})}dispatch(e,r){let n=PZe(e.headers);if(_Ze(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new Pf(e.origin);n.host=s}return this[gR].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new Pf(e):e instanceof Pf?e:new Pf(e.uri)}async[cie](){await this[gR].close(),await this[yR].close()}async[lie](){await this[gR].destroy(),await this[yR].destroy()}};function PZe(t){if(Array.isArray(t)){let e={};for(let r=0;r<t.length;r+=2)e[t[r]]=t[r+1];return e}return t}i(PZe,"buildHeaders");function _Ze(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new PA("Proxy-Authorization should be sent in ProxyAgent constructor")}i(_Ze,"throwIfProxyAuthIsSent");fie.exports=I$});var Eie=S((NZt,yie)=>{"use strict";var vZe=dA(),{kClose:QZe,kDestroy:DZe,kClosed:mie,kDestroyed:hie,kDispatch:kZe,kNoProxyAgent:SI,kHttpProxyAgent:pd,kHttpsProxyAgent:_f}=Ht(),Aie=S$(),OZe=TA(),LZe={"http:":80,"https:":443},gie=!1,w$=class extends vZe{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,gie||(gie=!0,process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"}));let{httpProxy:r,httpsProxy:n,noProxy:s,...o}=e;this[SI]=new OZe(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[pd]=new Aie({...o,uri:a}):this[pd]=this[SI];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[_f]=new Aie({...o,uri:c}):this[_f]=this[pd],this.#o()}[kZe](e,r){let n=new URL(e.origin);return this.#r(n).dispatch(e,r)}async[QZe](){await this[SI].close(),this[pd][mie]||await this[pd].close(),this[_f][mie]||await this[_f].close()}async[DZe](e){await this[SI].destroy(e),this[pd][hie]||await this[pd].destroy(e),this[_f][hie]||await this[_f].destroy(e)}#r(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||LZe[r]||0,this.#s(n,s)?r==="https:"?this[_f]:this[pd]:this[SI]}#s(e,r){if(this.#i&&this.#o(),this.#t.length===0)return!0;if(this.#e==="*")return!1;for(let n=0;n<this.#t.length;n++){let s=this.#t[n];if(!(s.port&&s.port!==r)){if(/^[.*]/.test(s.hostname)){if(e.endsWith(s.hostname.replace(/^\*/,"")))return!1}else if(e===s.hostname)return!1}}return!0}#o(){let e=this.#n.noProxy??this.#a,r=e.split(/[,\s]/),n=[];for(let s=0;s<r.length;s++){let o=r[s];if(!o)continue;let a=o.match(/^(.+):(\d+)$/);n.push({hostname:(a?a[1]:o).toLowerCase(),port:a?Number.parseInt(a[2],10):0})}this.#e=e,this.#t=n}get#i(){return this.#n.noProxy!==void 0?!1:this.#e!==this.#a}get#a(){return process.env.no_proxy??process.env.NO_PROXY??""}};yie.exports=w$});var ER=S((PZt,xie)=>{"use strict";var wI=require("node:assert"),{kRetryHandlerDefaultRetry:Cie}=Ht(),{RequestRetryError:vf}=at(),{isDisturbed:Iie,parseHeaders:MZe,parseRangeHeader:Sie,wrapRequestBody:FZe}=Ye();function UZe(t){let e=Date.now();return new Date(t).getTime()-e}i(UZe,"calculateRetryAfterHeader");function wie(t,e,r,n){let s=t["content-length"];if(s==null||!Number.isFinite(e.start)||!Number.isFinite(e.end))return null;let o=Number(s),a=e.end-e.start+1;return!Number.isFinite(o)||o!==a?new vf("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}i(wie,"validatePartialResponseContentLength");var x$=class t{static{i(this,"RetryHandler")}constructor(e,r){let{retryOptions:n,...s}=e,{retry:o,maxRetries:a,maxTimeout:c,minTimeout:l,timeoutFactor:u,methods:d,errorCodes:p,retryAfter:f,statusCodes:m}=n??{};this.dispatch=r.dispatch,this.handler=r.handler,this.opts={...s,body:FZe(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[Cie],retryAfter:f??!0,maxTimeout:c??30*1e3,minTimeout:l??500,timeoutFactor:u??2,maxRetries:a??5,methods:d??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:m??[500,502,503,504,429],errorCodes:p??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]},this.retryCount=0,this.retryCountCheckpoint=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.headersSent=!1,this.handler.onConnect(h=>{this.aborted=!0,this.abort?this.abort(h):this.reason=h})}checkpointResponseEnd(e,r){if(this.end==null&&this.opts.method!=="HEAD"){let n=e["content-length"];this.end=n!=null?Number(n)-1:null,wI(this.end==null||Number.isFinite(this.end),"invalid content-length")}this.resume=this.end!=null?r:null}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,r,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,r,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[Cie](e,{state:r,opts:n},s){let{statusCode:o,code:a,headers:c}=e,{method:l,retryOptions:u}=n,{maxRetries:d,minTimeout:p,maxTimeout:f,timeoutFactor:m,statusCodes:h,errorCodes:A,methods:y}=u,{counter:E}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!A.includes(a)){s(e);return}if(Array.isArray(y)&&!y.includes(l)){s(e);return}if(o!=null&&Array.isArray(h)&&!h.includes(o)){s(e);return}if(E>d){s(e);return}let I=c?.["retry-after"];I&&(I=Number(I),I=Number.isNaN(I)?UZe(I):I*1e3);let x=I>0?Math.min(I,f):Math.min(p*m**(E-1),f);setTimeout(()=>s(null),x)}onHeaders(e,r,n,s){let o=MZe(r);if(this.retryCount+=1,e>=300)return!this.headersSent&&this.retryOpts.statusCodes.includes(e)===!1?(this.headersSent=!0,this.checkpointResponseEnd(o,n),this.handler.onHeaders(e,r,n,s)):(this.abort(new vf("Request failed",e,{headers:o,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new vf("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=Sie(o["content-range"]);if(!c)return this.abort(new vf("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new vf("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let l=wie(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;return this.start!==u||this.end!=null&&this.end!==p?(this.abort(new vf("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=Sie(o["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,s);let l=wie(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;wI(u!=null&&Number.isFinite(u),"content-range mismatch"),wI(p!=null&&Number.isFinite(p),"invalid content-length"),this.start=u,this.end=p}if(this.end==null){let c=o["content-length"];this.end=c!=null?Number(c)-1:null}return wI(Number.isFinite(this.start)),wI(this.end==null||Number.isFinite(this.end),"invalid content-length"),this.resume=n,this.headersSent=!0,this.etag=o.etag!=null?o.etag:null,this.etag!=null&&this.etag.startsWith("W/")&&(this.etag=null),this.handler.onHeaders(e,r,n,s)}let a=new vf("Request failed",e,{headers:o,data:{count:this.retryCount}});return this.abort(a),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||Iie(this.opts.body)||this.headersSent&&this.resume==null)return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},r.bind(this));function r(n){if(n!=null||this.aborted||Iie(this.opts.body))return this.handler.onError(n);if(this.start!==0){let s={range:`bytes=${this.start}-${this.end??""}`};this.etag!=null&&(s["if-match"]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...s}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(s){this.handler.onError(s)}}i(r,"onRetry")}};xie.exports=x$});var Bie=S((vZt,bie)=>{"use strict";var qZe=KC(),$Ze=ER(),b$=class extends qZe{static{i(this,"RetryAgent")}#e=null;#t=null;constructor(e,r={}){super(r),this.#e=e,this.#t=r}dispatch(e,r){let n=new $Ze({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:r});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}};bie.exports=b$});var _$=S((DZt,kie)=>{"use strict";var _ie=require("node:assert"),{Readable:GZe}=require("node:stream"),{RequestAbortedError:vie,NotSupportedError:HZe,InvalidArgumentError:zZe,AbortError:B$}=at(),Qie=Ye(),{ReadableStreamFrom:VZe}=Ye(),yo=Symbol("kConsume"),xI=Symbol("kReading"),fd=Symbol("kBody"),Rie=Symbol("kAbort"),Die=Symbol("kContentType"),Nie=Symbol("kContentLength"),WZe=i(()=>{},"noop"),R$=class extends GZe{static{i(this,"BodyReadable")}constructor({resume:e,abort:r,contentType:n="",contentLength:s,highWaterMark:o=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:o}),this._readableState.dataEmitted=!1,this[Rie]=r,this[yo]=null,this[fd]=null,this[Die]=n,this[Nie]=s,this[xI]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new vie),e&&this[Rie](),super.destroy(e)}_destroy(e,r){this[xI]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[xI]=!0),super.on(e,...r)}addListener(e,...r){return this.on(e,...r)}off(e,...r){let n=super.off(e,...r);return(e==="data"||e==="readable")&&(this[xI]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[yo]&&e!==null?(T$(this[yo],e),this[xI]?super.push(e):!0):super.push(e)}async text(){return bI(this,"text")}async json(){return bI(this,"json")}async blob(){return bI(this,"blob")}async bytes(){return bI(this,"bytes")}async arrayBuffer(){return bI(this,"arrayBuffer")}async formData(){throw new HZe}get bodyUsed(){return Qie.isDisturbed(this)}get body(){return this[fd]||(this[fd]=VZe(this),this[yo]&&(this[fd].getReader(),_ie(this[fd].locked))),this[fd]}async dump(e){let r=Number.isFinite(e?.limit)?e.limit:131072,n=e?.signal;if(n!=null&&(typeof n!="object"||!("aborted"in n)))throw new zZe("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[Nie]>r&&this.destroy(new B$);let a=i(()=>{this.destroy(n.reason??new B$)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new B$):s(null)}).on("error",WZe).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function YZe(t){return t[fd]&&t[fd].locked===!0||t[yo]}i(YZe,"isLocked");function JZe(t){return Qie.isDisturbed(t)||YZe(t)}i(JZe,"isUnusable");async function bI(t,e){return _ie(!t[yo]),new Promise((r,n)=>{if(JZe(t)){let s=t._readableState;s.destroyed&&s.closeEmitted===!1?t.on("error",o=>{n(o)}).on("close",()=>{n(new TypeError("unusable"))}):n(s.errored??new TypeError("unusable"))}else queueMicrotask(()=>{t[yo]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){P$(this[yo],s)}).on("close",function(){this[yo].body!==null&&P$(this[yo],new vie)}),jZe(t[yo])})})}i(bI,"consume");function jZe(t){if(t.body===null)return;let{_readableState:e}=t.stream;if(e.bufferIndex){let r=e.bufferIndex,n=e.buffer.length;for(let s=r;s<n;s++)T$(t,e.buffer[s])}else for(let r of e.buffer)T$(t,r);for(e.endEmitted?Pie(this[yo]):t.stream.on("end",function(){Pie(this[yo])}),t.stream.resume();t.stream.read()!=null;);}i(jZe,"consumeStart");function N$(t,e){if(t.length===0||e===0)return"";let r=t.length===1?t[0]:Buffer.concat(t,e),n=r.length,s=n>2&&r[0]===239&&r[1]===187&&r[2]===191?3:0;return r.utf8Slice(s,n)}i(N$,"chunksDecode");function Tie(t,e){if(t.length===0||e===0)return new Uint8Array(0);if(t.length===1)return new Uint8Array(t[0]);let r=new Uint8Array(Buffer.allocUnsafeSlow(e).buffer),n=0;for(let s=0;s<t.length;++s){let o=t[s];r.set(o,n),n+=o.length}return r}i(Tie,"chunksConcat");function Pie(t){let{type:e,body:r,resolve:n,stream:s,length:o}=t;try{e==="text"?n(N$(r,o)):e==="json"?n(JSON.parse(N$(r,o))):e==="arrayBuffer"?n(Tie(r,o).buffer):e==="blob"?n(new Blob(r,{type:s[Die]})):e==="bytes"&&n(Tie(r,o)),P$(t)}catch(a){s.destroy(a)}}i(Pie,"consumeEnd");function T$(t,e){t.length+=e.length,t.body.push(e)}i(T$,"consumePush");function P$(t,e){t.body!==null&&(e?t.reject(e):t.resolve(),t.type=null,t.stream=null,t.resolve=null,t.reject=null,t.length=0,t.body=null)}i(P$,"consumeFinish");kie.exports={Readable:R$,chunksDecode:N$}});var v$=S((OZt,Uie)=>{var KZe=require("node:assert"),{ResponseStatusCodeError:Oie}=at(),{chunksDecode:Lie}=_$(),XZe=128*1024;async function ZZe({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){KZe(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>XZe){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new Oie(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{Mie(r)?d=JSON.parse(Lie(a,c)):Fie(r)&&(d=Lie(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new Oie(l,n,o,d)))}i(ZZe,"getResolveErrorBodyCallback");var Mie=i(t=>t.length>15&&t[11]==="/"&&t[0]==="a"&&t[1]==="p"&&t[2]==="p"&&t[3]==="l"&&t[4]==="i"&&t[5]==="c"&&t[6]==="a"&&t[7]==="t"&&t[8]==="i"&&t[9]==="o"&&t[10]==="n"&&t[12]==="j"&&t[13]==="s"&&t[14]==="o"&&t[15]==="n","isContentTypeApplicationJson"),Fie=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Uie.exports={getResolveErrorBodyCallback:ZZe,isContentTypeApplicationJson:Mie,isContentTypeText:Fie}});var Gie=S((MZt,Q$)=>{"use strict";var eet=require("node:assert"),{Readable:tet}=_$(),{InvalidArgumentError:_A,RequestAbortedError:qie}=at(),Eo=Ye(),{getResolveErrorBodyCallback:ret}=v$(),{AsyncResource:net}=require("node:async_hooks"),CR=class extends net{static{i(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new _A("invalid opts");let{signal:n,method:s,opaque:o,body:a,onInfo:c,responseHeaders:l,throwOnError:u,highWaterMark:d}=e;try{if(typeof r!="function")throw new _A("invalid callback");if(d&&(typeof d!="number"||d<0))throw new _A("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new _A("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new _A("invalid method");if(c&&typeof c!="function")throw new _A("invalid onInfo callback");super("UNDICI_REQUEST")}catch(p){throw Eo.isStream(a)&&Eo.destroy(a.on("error",Eo.nop),p),p}this.method=s,this.responseHeaders=l||null,this.opaque=o||null,this.callback=r,this.res=null,this.abort=null,this.body=a,this.trailers={},this.context=null,this.onInfo=c||null,this.throwOnError=u,this.highWaterMark=d,this.signal=n,this.reason=null,this.removeAbortListener=null,Eo.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new qie:this.removeAbortListener=Eo.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new qie,this.res?Eo.destroy(this.res.on("error",Eo.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&(this.res?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}))}onConnect(e,r){if(this.reason){e(this.reason);return}eet(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{callback:o,opaque:a,abort:c,context:l,responseHeaders:u,highWaterMark:d}=this,p=u==="raw"?Eo.parseRawHeaders(r):Eo.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let f=u==="raw"?Eo.parseHeaders(r):p,m=f["content-type"],h=f["content-length"],A=new tet({resume:n,abort:c,contentType:m,contentLength:this.method!=="HEAD"&&h?Number(h):null,highWaterMark:d});this.removeAbortListener&&A.on("close",this.removeAbortListener),this.callback=null,this.res=A,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(ret,null,{callback:o,body:A,contentType:m,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:A,context:l}))}onData(e){return this.res.push(e)}onComplete(e){Eo.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:r,callback:n,body:s,opaque:o}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:o})})),r&&(this.res=null,queueMicrotask(()=>{Eo.destroy(r,e)})),s&&(this.body=null,Eo.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function $ie(t,e){if(e===void 0)return new Promise((r,n)=>{$ie.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new CR(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i($ie,"request");Q$.exports=$ie;Q$.exports.RequestHandler=CR});var BI=S((UZt,Vie)=>{var{addAbortListener:set}=Ye(),{RequestAbortedError:oet}=at(),vA=Symbol("kListener"),ac=Symbol("kSignal");function Hie(t){t.abort?t.abort(t[ac]?.reason):t.reason=t[ac]?.reason??new oet,zie(t)}i(Hie,"abort");function iet(t,e){if(t.reason=null,t[ac]=null,t[vA]=null,!!e){if(e.aborted){Hie(t);return}t[ac]=e,t[vA]=()=>{Hie(t)},set(t[ac],t[vA])}}i(iet,"addSignal");function zie(t){t[ac]&&("removeEventListener"in t[ac]?t[ac].removeEventListener("abort",t[vA]):t[ac].removeListener("abort",t[vA]),t[ac]=null,t[vA]=null)}i(zie,"removeSignal");Vie.exports={addSignal:iet,removeSignal:zie}});var jie=S(($Zt,Jie)=>{"use strict";var aet=require("node:assert"),{finished:cet,PassThrough:uet}=require("node:stream"),{InvalidArgumentError:QA,InvalidReturnValueError:det}=at(),oa=Ye(),{getResolveErrorBodyCallback:pet}=v$(),{AsyncResource:fet}=require("node:async_hooks"),{addSignal:met,removeSignal:Wie}=BI(),D$=class extends fet{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new QA("invalid opts");let{signal:s,method:o,opaque:a,body:c,onInfo:l,responseHeaders:u,throwOnError:d}=e;try{if(typeof n!="function")throw new QA("invalid callback");if(typeof r!="function")throw new QA("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new QA("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new QA("invalid method");if(l&&typeof l!="function")throw new QA("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw oa.isStream(c)&&oa.destroy(c.on("error",oa.nop),p),p}this.responseHeaders=u||null,this.opaque=a||null,this.factory=r,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=d||!1,oa.isStream(c)&&c.on("error",p=>{this.onError(p)}),met(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}aet(this.callback),this.abort=e,this.context=r}onHeaders(e,r,n,s){let{factory:o,opaque:a,context:c,callback:l,responseHeaders:u}=this,d=u==="raw"?oa.parseRawHeaders(r):oa.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:d});return}this.factory=null;let p;if(this.throwOnError&&e>=400){let h=(u==="raw"?oa.parseHeaders(r):d)["content-type"];p=new uet,this.callback=null,this.runInAsyncScope(pet,null,{callback:l,body:p,contentType:h,statusCode:e,statusMessage:s,headers:d})}else{if(o===null)return;if(p=this.runInAsyncScope(o,null,{statusCode:e,headers:d,opaque:a,context:c}),!p||typeof p.write!="function"||typeof p.end!="function"||typeof p.on!="function")throw new det("expected Writable");cet(p,{readable:!1},m=>{let{callback:h,res:A,opaque:y,trailers:E,abort:I}=this;this.res=null,(m||!A.readable)&&oa.destroy(A,m),this.callback=null,this.runInAsyncScope(h,null,m||null,{opaque:y,trailers:E}),m&&I()})}return p.on("drain",n),this.res=p,(p.writableNeedDrain!==void 0?p.writableNeedDrain:p._writableState?.needDrain)!==!0}onData(e){let{res:r}=this;return r?r.write(e):!0}onComplete(e){let{res:r}=this;Wie(this),r&&(this.trailers=oa.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;Wie(this),this.factory=null,r?(this.res=null,oa.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,oa.destroy(o,e))}};function Yie(t,e,r){if(r===void 0)return new Promise((n,s)=>{Yie.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new D$(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Yie,"stream");Jie.exports=Yie});var eae=S((HZt,Zie)=>{"use strict";var{Readable:Xie,Duplex:het,PassThrough:Aet}=require("node:stream"),{InvalidArgumentError:RI,InvalidReturnValueError:get,RequestAbortedError:k$}=at(),ii=Ye(),{AsyncResource:yet}=require("node:async_hooks"),{addSignal:Eet,removeSignal:Cet}=BI(),Kie=require("node:assert"),DA=Symbol("resume"),O$=class extends Xie{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[DA]=null}_read(){let{[DA]:e}=this;e&&(this[DA]=null,e())}_destroy(e,r){this._read(),r(e)}},L$=class extends Xie{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[DA]=e}_read(){this[DA]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new k$),r(e)}},M$=class extends yet{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new RI("invalid opts");if(typeof r!="function")throw new RI("invalid handler");let{signal:n,method:s,opaque:o,onInfo:a,responseHeaders:c}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new RI("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new RI("invalid method");if(a&&typeof a!="function")throw new RI("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=r,this.abort=null,this.context=null,this.onInfo=a||null,this.req=new O$().on("error",ii.nop),this.ret=new het({readableObjectMode:e.objectMode,autoDestroy:!0,read:i(()=>{let{body:l}=this;l?.resume&&l.resume()},"read"),write:i((l,u,d)=>{let{req:p}=this;p.push(l,u)||p._readableState.destroyed?d():p[DA]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:f,ret:m,abort:h}=this;!l&&!m._readableState.endEmitted&&(l=new k$),h&&l&&h(),ii.destroy(d,l),ii.destroy(p,l),ii.destroy(f,l),Cet(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,Eet(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}Kie(!s,"pipeline cannot be retried"),Kie(!n.destroyed),this.abort=e,this.context=r}onHeaders(e,r,n){let{opaque:s,handler:o,context:a}=this;if(e<200){if(this.onInfo){let l=this.responseHeaders==="raw"?ii.parseRawHeaders(r):ii.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new L$(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?ii.parseRawHeaders(r):ii.parseHeaders(r);c=this.runInAsyncScope(o,null,{statusCode:e,headers:l,opaque:s,body:this.res,context:a})}catch(l){throw this.res.on("error",ii.nop),l}if(!c||typeof c.on!="function")throw new get("expected Readable");c.on("data",l=>{let{ret:u,body:d}=this;!u.push(l)&&d.pause&&d.pause()}).on("error",l=>{let{ret:u}=this;ii.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||ii.destroy(l,new k$)}),this.body=c}onData(e){let{res:r}=this;return r.push(e)}onComplete(e){let{res:r}=this;r.push(null)}onError(e){let{ret:r}=this;this.handler=null,ii.destroy(r,e)}};function Iet(t,e){try{let r=new M$(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new Aet().destroy(r)}}i(Iet,"pipeline");Zie.exports=Iet});var iae=S((VZt,oae)=>{"use strict";var{InvalidArgumentError:F$,SocketError:wet}=at(),{AsyncResource:xet}=require("node:async_hooks"),tae=Ye(),{addSignal:bet,removeSignal:rae}=BI(),nae=require("node:assert"),U$=class extends xet{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new F$("invalid opts");if(typeof r!="function")throw new F$("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new F$("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=s||null,this.callback=r,this.abort=null,this.context=null,bet(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}nae(this.callback),this.abort=e,this.context=null}onHeaders(){throw new wet("bad upgrade",null)}onUpgrade(e,r,n){nae(e===101);let{callback:s,opaque:o,context:a}=this;rae(this),this.callback=null;let c=this.responseHeaders==="raw"?tae.parseRawHeaders(r):tae.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;rae(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function sae(t,e){if(e===void 0)return new Promise((r,n)=>{sae.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new U$(t,e);this.dispatch({...t,method:t.method||"GET",upgrade:t.protocol||"Websocket"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(sae,"upgrade");oae.exports=sae});var dae=S((YZt,uae)=>{"use strict";var Bet=require("node:assert"),{AsyncResource:Ret}=require("node:async_hooks"),{InvalidArgumentError:q$,SocketError:Net}=at(),aae=Ye(),{addSignal:Tet,removeSignal:cae}=BI(),$$=class extends Ret{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new q$("invalid opts");if(typeof r!="function")throw new q$("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new q$("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,Tet(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Bet(this.callback),this.abort=e,this.context=r}onHeaders(){throw new Net("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;cae(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?aae.parseRawHeaders(r):aae.parseHeaders(r)),this.runInAsyncScope(s,null,null,{statusCode:e,headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;cae(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function lae(t,e){if(e===void 0)return new Promise((r,n)=>{lae.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new $$(t,e);this.dispatch({...t,method:"CONNECT"},r)}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(lae,"connect");uae.exports=lae});var pae=S((jZt,kA)=>{"use strict";kA.exports.request=Gie();kA.exports.stream=jie();kA.exports.pipeline=eae();kA.exports.upgrade=iae();kA.exports.connect=dae()});var H$=S((KZt,mae)=>{"use strict";var{UndiciError:Pet}=at(),fae=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),G$=class t extends Pet{static{i(this,"MockNotMatchedError")}constructor(e){super(e),Error.captureStackTrace(this,t),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[fae]===!0}[fae]=!0};mae.exports={MockNotMatchedError:G$}});var OA=S((ZZt,hae)=>{"use strict";hae.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}});var NI=S((eer,Bae)=>{"use strict";var{MockNotMatchedError:Qf}=H$(),{kDispatches:IR,kMockAgent:_et,kOriginalDispatch:vet,kOrigin:Qet,kGetNetConnect:Det}=OA(),{buildURL:ket}=Ye(),{STATUS_CODES:Oet}=require("node:http"),{types:{isPromise:Let}}=require("node:util");function iu(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(iu,"matchValue");function gae(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(gae,"lowerCaseEntries");function yae(t,e){if(Array.isArray(t)){for(let r=0;r<t.length;r+=2)if(t[r].toLocaleLowerCase()===e.toLocaleLowerCase())return t[r+1];return}else return typeof t.get=="function"?t.get(e):gae(t)[e.toLocaleLowerCase()]}i(yae,"getHeaderByName");function W$(t){let e=t.slice(),r=[];for(let n=0;n<e.length;n+=2)r.push([e[n],e[n+1]]);return Object.fromEntries(r)}i(W$,"buildHeadersFromArray");function Eae(t,e){if(typeof t.headers=="function")return Array.isArray(e)&&(e=W$(e)),t.headers(e?gae(e):{});if(typeof t.headers>"u")return!0;if(typeof e!="object"||typeof t.headers!="object")return!1;for(let[r,n]of Object.entries(t.headers)){let s=yae(e,r);if(!iu(n,s))return!1}return!0}i(Eae,"matchHeaders");function Aae(t){if(typeof t!="string")return t;let e=t.split("?");if(e.length!==2)return t;let r=new URLSearchParams(e.pop());return r.sort(),[...e,r.toString()].join("?")}i(Aae,"safeUrl");function Met(t,{path:e,method:r,body:n,headers:s}){let o=iu(t.path,e),a=iu(t.method,r),c=typeof t.body<"u"?iu(t.body,n):!0,l=Eae(t,s);return o&&a&&c&&l}i(Met,"matchKey");function Cae(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(Cae,"getResponseData");function Iae(t,e){let r=e.query?ket(e.path,e.query):e.path,n=typeof r=="string"?Aae(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>iu(Aae(o),n));if(s.length===0)throw new Qf(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>iu(o,e.method)),s.length===0)throw new Qf(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?iu(o,e.body):!0),s.length===0)throw new Qf(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>Eae(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new Qf(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(Iae,"getMockDispatch");function Fet(t,e,r){let n={timesInvoked:0,times:1,persist:!1,consumed:!1},s=typeof r=="function"?{callback:r}:{...r},o={...n,...e,pending:!0,data:{error:null,...s}};return t.push(o),o}i(Fet,"addMockDispatch");function z$(t,e){let r=t.findIndex(n=>n.consumed?Met(n,e):!1);r!==-1&&t.splice(r,1)}i(z$,"deleteMockDispatch");function Sae(t){let{path:e,method:r,body:n,headers:s,query:o}=t;return{path:e,method:r,body:n,headers:s,query:o}}i(Sae,"buildKey");function V$(t){let e=Object.keys(t),r=[];for(let n=0;n<e.length;++n){let s=e[n],o=t[s],a=Buffer.from(`${s}`);if(Array.isArray(o))for(let c=0;c<o.length;++c)r.push(a,Buffer.from(`${o[c]}`));else r.push(a,Buffer.from(`${o}`))}return r}i(V$,"generateKeyValues");function wae(t){return Oet[t]||"unknown"}i(wae,"getStatusText");async function Uet(t){let e=[];for await(let r of t)e.push(r);return Buffer.concat(e).toString("utf8")}i(Uet,"getResponse");function xae(t,e){let r=Sae(t),n=Iae(this[IR],r);n.timesInvoked++,n.data.callback&&(n.data={...n.data,...n.data.callback(t)});let{data:{statusCode:s,data:o,headers:a,trailers:c,error:l},delay:u,persist:d}=n,{timesInvoked:p,times:f}=n;if(n.consumed=!d&&p>=f,n.pending=p<f,l!==null)return z$(this[IR],r),e.onError(l),!0;typeof u=="number"&&u>0?setTimeout(()=>{m(this[IR])},u):m(this[IR]);function m(A,y=o){let E=Array.isArray(t.headers)?W$(t.headers):t.headers,I=typeof y=="function"?y({...t,headers:E}):y;if(Let(I)){I.then(v=>m(A,v));return}let x=Cae(I),b=V$(a),N=V$(c);e.onConnect?.(v=>e.onError(v),null),e.onHeaders?.(s,b,h,wae(s)),e.onData?.(Buffer.from(x)),e.onComplete?.(N),z$(A,r)}i(m,"handleReply");function h(){}return i(h,"resume"),!0}i(xae,"mockDispatch");function qet(){let t=this[_et],e=this[Qet],r=this[vet];return i(function(s,o){if(t.isMockActive)try{xae.call(this,s,o)}catch(a){if(a instanceof Qf){let c=t[Det]();if(c===!1)throw new Qf(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(bae(c,e))r.call(this,s,o);else throw new Qf(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect is not enabled for this origin)`)}else throw a}else r.call(this,s,o)},"dispatch")}i(qet,"buildMockDispatch");function bae(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>iu(n,r.host)))}i(bae,"checkNetConnect");function $et(t){if(t){let{agent:e,...r}=t;return r}}i($et,"buildMockOptions");Bae.exports={getResponseData:Cae,getMockDispatch:Iae,addMockDispatch:Fet,deleteMockDispatch:z$,buildKey:Sae,generateKeyValues:V$,matchValue:iu,getResponse:Uet,getStatusText:wae,mockDispatch:xae,buildMockDispatch:qet,checkNetConnect:bae,buildMockOptions:$et,getHeaderByName:yae,buildHeadersFromArray:W$}});var eG=S((rer,Z$)=>{"use strict";var{getResponseData:Get,buildKey:Het,addMockDispatch:Y$}=NI(),{kDispatches:SR,kDispatchKey:wR,kDefaultHeaders:J$,kDefaultTrailers:j$,kContentLength:K$,kMockDispatch:xR}=OA(),{InvalidArgumentError:cc}=at(),{buildURL:zet}=Ye(),LA=class{static{i(this,"MockScope")}constructor(e){this[xR]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new cc("waitInMs must be a valid integer > 0");return this[xR].delay=e,this}persist(){return this[xR].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new cc("repeatTimes must be a valid integer > 0");return this[xR].times=e,this}},X$=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new cc("opts must be an object");if(typeof e.path>"u")throw new cc("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=zet(e.path,e.query);else{let n=new URL(e.path,"data://");e.path=n.pathname+n.search}typeof e.method=="string"&&(e.method=e.method.toUpperCase()),this[wR]=Het(e),this[SR]=r,this[J$]={},this[j$]={},this[K$]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=Get(r),o=this[K$]?{"content-length":s.length}:{},a={...this[J$],...o,...n.headers},c={...this[j$],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new cc("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new cc("responseOptions must be an object")}reply(e){if(typeof e=="function"){let o=i(c=>{let l=e(c);if(typeof l!="object"||l===null)throw new cc("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=Y$(this[SR],this[wR],o);return new LA(a)}let r={statusCode:e,data:arguments[1]===void 0?"":arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(r);let n=this.createMockScopeDispatchData(r),s=Y$(this[SR],this[wR],n);return new LA(s)}replyWithError(e){if(typeof e>"u")throw new cc("error must be defined");let r=Y$(this[SR],this[wR],{error:e});return new LA(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new cc("headers must be defined");return this[J$]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new cc("trailers must be defined");return this[j$]=e,this}replyContentLength(){return this[K$]=!0,this}};Z$.exports.MockInterceptor=X$;Z$.exports.MockScope=LA});var nG=S((ser,Qae)=>{"use strict";var{promisify:Vet}=require("node:util"),Wet=RA(),{buildMockDispatch:Yet}=NI(),{kDispatches:Rae,kMockAgent:Nae,kClose:Tae,kOriginalClose:Pae,kOrigin:_ae,kOriginalDispatch:Jet,kConnected:tG}=OA(),{MockInterceptor:jet}=eG(),vae=Ht(),{InvalidArgumentError:Ket}=at(),rG=class extends Wet{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new Ket("Argument opts.agent must implement Agent");this[Nae]=r.agent,this[_ae]=e,this[Rae]=[],this[tG]=1,this[Jet]=this.dispatch,this[Pae]=this.close.bind(this),this.dispatch=Yet.call(this),this.close=this[Tae]}get[vae.kConnected](){return this[tG]}intercept(e){return new jet(e,this[Rae])}async[Tae](){await Vet(this[Pae])(),this[tG]=0,this[Nae][vae.kClients].delete(this[_ae])}};Qae.exports=rG});var iG=S((ier,Uae)=>{"use strict";var{promisify:Xet}=require("node:util"),Zet=NA(),{buildMockDispatch:ett}=NI(),{kDispatches:Dae,kMockAgent:kae,kClose:Oae,kOriginalClose:Lae,kOrigin:Mae,kOriginalDispatch:ttt,kConnected:sG}=OA(),{MockInterceptor:rtt}=eG(),Fae=Ht(),{InvalidArgumentError:ntt}=at(),oG=class extends Zet{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new ntt("Argument opts.agent must implement Agent");this[kae]=r.agent,this[Mae]=e,this[Dae]=[],this[sG]=1,this[ttt]=this.dispatch,this[Lae]=this.close.bind(this),this.dispatch=ett.call(this),this.close=this[Oae]}get[Fae.kConnected](){return this[sG]}intercept(e){return new rtt(e,this[Dae])}async[Oae](){await Xet(this[Lae])(),this[sG]=0,this[kae][Fae.kClients].delete(this[Mae])}};Uae.exports=oG});var $ae=S((ler,qae)=>{"use strict";var stt={pronoun:"it",is:"is",was:"was",this:"this"},ott={pronoun:"they",is:"are",was:"were",this:"these"};qae.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?stt:ott,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var Hae=S((per,Gae)=>{"use strict";var{Transform:itt}=require("node:stream"),{Console:att}=require("node:console"),ctt=process.versions.icu?"\u2705":"Y ",ltt=process.versions.icu?"\u274C":"N ";Gae.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new itt({transform(r,n,s){s(null,r)}}),this.logger=new att({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let r=e.map(({method:n,path:s,data:{statusCode:o},persist:a,times:c,timesInvoked:l,origin:u})=>({Method:n,Origin:u,Path:s,"Status code":o,Persistent:a?ctt:ltt,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var Yae=S((mer,Wae)=>{"use strict";var{kClients:Df}=Ht(),utt=TA(),{kAgent:aG,kMockAgentSet:bR,kMockAgentGet:zae,kDispatches:cG,kIsMockActive:BR,kNetConnect:kf,kGetNetConnect:dtt,kOptions:RR,kFactory:NR}=OA(),ptt=nG(),ftt=iG(),{matchValue:mtt,buildMockOptions:htt}=NI(),{InvalidArgumentError:Vae,UndiciError:Att}=at(),gtt=KC(),ytt=$ae(),Ett=Hae(),lG=class extends gtt{static{i(this,"MockAgent")}constructor(e){if(super(e),this[kf]=!0,this[BR]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new Vae("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new utt(e);this[aG]=r,this[Df]=r[Df],this[RR]=htt(e)}get(e){let r=this[zae](e);return r||(r=this[NR](e),this[bR](e,r)),r}dispatch(e,r){return this.get(e.origin),this[aG].dispatch(e,r)}async close(){await this[aG].close(),this[Df].clear()}deactivate(){this[BR]=!1}activate(){this[BR]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[kf])?this[kf].push(e):this[kf]=[e];else if(typeof e>"u")this[kf]=!0;else throw new Vae("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[kf]=!1}get isMockActive(){return this[BR]}[bR](e,r){this[Df].set(e,r)}[NR](e){let r=Object.assign({agent:this},this[RR]);return this[RR]&&this[RR].connections===1?new ptt(e,r):new ftt(e,r)}[zae](e){let r=this[Df].get(e);if(r)return r;if(typeof e!="string"){let n=this[NR]("http://localhost:9999");return this[bR](e,n),n}for(let[n,s]of Array.from(this[Df]))if(s&&typeof n!="string"&&mtt(n,e)){let o=this[NR](e);return this[bR](e,o),o[cG]=s[cG],o}}[dtt](){return this[kf]}pendingInterceptors(){let e=this[Df];return Array.from(e.entries()).flatMap(([r,n])=>n[cG].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new Ett}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new ytt("interceptor","interceptors").pluralize(r.length);throw new Att(`
|
|
${n.count} ${n.noun} ${n.is} pending:
|
|
|
|
${e.format(r)}
|
|
`.trim())}};Wae.exports=lG});var TI=S((Aer,Xae)=>{"use strict";var Jae=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Ctt}=at(),Itt=TA();Kae()===void 0&&jae(new Itt);function jae(t){if(!t||typeof t.dispatch!="function")throw new Ctt("Argument agent must implement Agent");Object.defineProperty(globalThis,Jae,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(jae,"setGlobalDispatcher");function Kae(){return globalThis[Jae]}i(Kae,"getGlobalDispatcher");Xae.exports={setGlobalDispatcher:jae,getGlobalDispatcher:Kae}});var TR=S((Eer,Zae)=>{"use strict";Zae.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var tce=S((Ier,ece)=>{"use strict";var Stt=cR();ece.exports=t=>{let e=t?.maxRedirections;return r=>i(function(s,o){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,o);let l=new Stt(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var nce=S((wer,rce)=>{"use strict";var wtt=ER();rce.exports=t=>e=>i(function(n,s){return e(n,new wtt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var oce=S((ber,sce)=>{"use strict";var xtt=Ye(),{InvalidArgumentError:btt,RequestAbortedError:Btt}=at(),Rtt=TR(),uG=class extends Rtt{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#o=null;#i=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new btt("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#i=r}onConnect(e){this.#t=e,this.#i.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#o=e}onHeaders(e,r,n,s){let a=xtt.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Btt(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#i.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#o??e,this.#i.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#i.onError(this.#o):this.#i.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#i.onError(this.reason);return}this.#i.onComplete(e)}}};function Ntt({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new uG({maxSize:o},s);return e(n,a)},"Intercept")}i(Ntt,"createDumpInterceptor");sce.exports=Ntt});var cce=S((Rer,ace)=>{"use strict";var{isIP:Ttt}=require("node:net"),{lookup:Ptt}=require("node:dns"),_tt=TR(),{InvalidArgumentError:MA,InformationalError:vtt}=at(),ice=Math.pow(2,31)-1,dG=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let o={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,o,(a,c)=>{if(a||c==null||c.length===0){n(a??new vtt("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,o.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,o.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){Ptt(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,o)=>{if(s)return n(s);let a=new Map;for(let c of o)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:o,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===ice?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),o[n]!=null&&o[n].ips.length>0?c=o[n]:c=o[n===4?6:4]):c=o[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===ice?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let o of r){o.timestamp=n,typeof o.ttl=="number"?o.ttl=Math.min(o.ttl,this.#e):o.ttl=this.#e;let a=s.records[o.family]??{ips:[]};a.ips.push(o),s.records[o.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new pG(this,e,r)}},pG=class extends _tt{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},o){super(n),this.#s=r,this.#r=n,this.#t={...o},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)return this.#r.onError(r);let s={...this.#t,origin:n};this.#n(s,this)});return}this.#r.onError(e);return}case"ENOTFOUND":this.#e.deleteRecord(this.#s);default:this.#r.onError(e);break}}};ace.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new MA("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new MA("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new MA("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new MA("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new MA("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new MA("Invalid pick. Must be a function");let e=t?.dualStack??!0,r;e?r=t?.affinity??null:r=t?.affinity??4;let n={maxTTL:t?.maxTTL??1e4,lookup:t?.lookup??null,pick:t?.pick??null,dualStack:e,affinity:r,maxItems:t?.maxItems??1/0},s=new dG(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return Ttt(u.hostname)!==0?o(c,l):(s.runLookup(u,c,(d,p)=>{if(d)return l.onError(d);let f=null;f={...c,servername:u.hostname,origin:p,headers:{host:u.hostname,...c.headers}},o(f,s.getHandler({origin:u,dispatch:o,handler:l},c))}),!0)},"dnsInterceptor")}});var Of=S((Ter,hce)=>{"use strict";var{kConstruct:Qtt}=Ht(),{kEnumerableProperty:FA}=Ye(),{iteratorMixin:Dtt,isValidHeaderName:PI,isValidHeaderValue:uce}=Ao(),{webidl:nt}=bn(),fG=require("node:assert"),PR=require("node:util"),Or=Symbol("headers map"),Co=Symbol("headers map sorted");function lce(t){return t===10||t===13||t===9||t===32}i(lce,"isHTTPWhiteSpaceCharCode");function dce(t){let e=0,r=t.length;for(;r>e&&lce(t.charCodeAt(r-1));)--r;for(;r>e&&lce(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(dce,"headerValueNormalize");function pce(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw nt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});mG(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)mG(t,r[n],e[r[n]])}else throw nt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}i(pce,"fill");function mG(t,e,r){if(r=dce(r),PI(e)){if(!uce(r))throw nt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw nt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(mce(t)==="immutable")throw new TypeError("immutable");return hG(t).append(e,r,!1)}i(mG,"appendHeader");function fce(t,e){return t[0]<e[0]?-1:1}i(fce,"compareHeaderName");var _R=class t{static{i(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[Or]=new Map(e[Or]),this[Co]=e[Co],this.cookies=e.cookies===null?null:[...e.cookies]):(this[Or]=new Map(e),this[Co]=null)}contains(e,r){return this[Or].has(r?e:e.toLowerCase())}clear(){this[Or].clear(),this[Co]=null,this.cookies=null}append(e,r,n){this[Co]=null;let s=n?e:e.toLowerCase(),o=this[Or].get(s);if(o){let a=s==="cookie"?"; ":", ";this[Or].set(s,{name:o.name,value:`${o.value}${a}${r}`})}else this[Or].set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this[Co]=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this[Or].set(s,{name:e,value:r})}delete(e,r){this[Co]=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this[Or].delete(e)}get(e,r){return this[Or].get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this[Or])yield[e,r]}get entries(){let e={};if(this[Or].size!==0)for(let{name:r,value:n}of this[Or].values())e[r]=n;return e}rawValues(){return this[Or].values()}get entriesList(){let e=[];if(this[Or].size!==0)for(let{0:r,1:{name:n,value:s}}of this[Or])if(r==="set-cookie")for(let o of this.cookies)e.push([n,o]);else e.push([n,s]);return e}toSortedArray(){let e=this[Or].size,r=new Array(e);if(e<=32){if(e===0)return r;let n=this[Or][Symbol.iterator](),s=n.next().value;r[0]=[s[0],s[1].value],fG(s[1].value!==null);for(let o=1,a=0,c=0,l=0,u=0,d,p;o<e;++o){for(p=n.next().value,d=r[o]=[p[0],p[1].value],fG(d[1]!==null),l=0,c=o;l<c;)u=l+(c-l>>1),r[u][0]<=d[0]?l=u+1:c=u;if(o!==u){for(a=o;a>l;)r[a]=r[--a];r[l]=d}}if(!n.next().done)throw new TypeError("Unreachable");return r}else{let n=0;for(let{0:s,1:{value:o}}of this[Or])r[n++]=[s,o],fG(o!==null);return r.sort(fce)}}},ia=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){nt.util.markAsUncloneable(this),e!==Qtt&&(this.#t=new _R,this.#e="none",e!==void 0&&(e=nt.converters.HeadersInit(e,"Headers contructor","init"),pce(this,e)))}append(e,r){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=nt.converters.ByteString(e,n,"name"),r=nt.converters.ByteString(r,n,"value"),mG(this,e,r)}delete(e){if(nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.delete"),e=nt.converters.ByteString(e,"Headers.delete","name"),!PI(e))throw nt.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.contains(e,!1)&&this.#t.delete(e,!1)}get(e){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=nt.converters.ByteString(e,r,"name"),!PI(e))throw nt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=nt.converters.ByteString(e,r,"name"),!PI(e))throw nt.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){nt.brandCheck(this,t),nt.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=nt.converters.ByteString(e,n,"name"),r=nt.converters.ByteString(r,n,"value"),r=dce(r),PI(e)){if(!uce(r))throw nt.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw nt.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){nt.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[Co](){if(this.#t[Co])return this.#t[Co];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[Co]=r;for(let s=0;s<r.length;++s){let{0:o,1:a}=r[s];if(o==="set-cookie")for(let c=0;c<n.length;++c)e.push([o,n[c]]);else e.push([o,a])}return this.#t[Co]=e}[PR.inspect.custom](e,r){return r.depth??=e,`Headers ${PR.formatWithOptions(r,this.#t.entries)}`}static getHeadersGuard(e){return e.#e}static setHeadersGuard(e,r){e.#e=r}static getHeadersList(e){return e.#t}static setHeadersList(e,r){e.#t=r}},{getHeadersGuard:mce,setHeadersGuard:ktt,getHeadersList:hG,setHeadersList:Ott}=ia;Reflect.deleteProperty(ia,"getHeadersGuard");Reflect.deleteProperty(ia,"setHeadersGuard");Reflect.deleteProperty(ia,"getHeadersList");Reflect.deleteProperty(ia,"setHeadersList");Dtt("Headers",ia,Co,0,1);Object.defineProperties(ia.prototype,{append:FA,delete:FA,get:FA,has:FA,set:FA,getSetCookie:FA,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[PR.inspect.custom]:{enumerable:!1}});nt.converters.HeadersInit=function(t,e,r){if(nt.util.Type(t)==="Object"){let n=Reflect.get(t,Symbol.iterator);if(!PR.types.isProxy(t)&&n===ia.prototype.entries)try{return hG(t).entriesList}catch{}return typeof n=="function"?nt.converters["sequence<sequence<ByteString>>"](t,e,r,n.bind(t)):nt.converters["record<ByteString, ByteString>"](t,e,r)}throw nt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};hce.exports={fill:pce,compareHeaderName:fce,Headers:ia,HeadersList:_R,getHeadersGuard:mce,setHeadersGuard:ktt,setHeadersList:Ott,getHeadersList:hG}});var vI=S((_er,Rce)=>{"use strict";var{Headers:Ice,HeadersList:Ace,fill:Ltt,getHeadersGuard:Mtt,setHeadersGuard:Sce,setHeadersList:wce}=Of(),{extractBody:gce,cloneBody:Ftt,mixinBody:Utt,hasFinalizationRegistry:xce,streamRegistry:bce,bodyUnusable:qtt}=CA(),AG=Ye(),yce=require("node:util"),{kEnumerableProperty:Io}=AG,{isValidReasonPhrase:$tt,isCancelled:Gtt,isAborted:Htt,isBlobLike:ztt,serializeJavascriptValueToJSONString:Vtt,isErrorLike:Wtt,isomorphicEncode:Ytt,environmentSettingsObject:Jtt}=Ao(),{redirectStatusSet:jtt,nullBodyStatus:Ktt}=eI(),{kState:Vt,kHeaders:au}=nd(),{webidl:$e}=bn(),{FormData:Xtt}=iI(),{URLSerializer:Ece}=vs(),{kConstruct:QR}=Ht(),gG=require("node:assert"),{types:Ztt}=require("node:util"),ert=new TextEncoder("utf-8"),Lf=class t{static{i(this,"Response")}static error(){return _I(DR(),"immutable")}static json(e,r={}){$e.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=$e.converters.ResponseInit(r));let n=ert.encode(Vtt(e)),s=gce(n),o=_I(UA({}),"response");return Cce(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){$e.argumentLengthCheck(arguments,1,"Response.redirect"),e=$e.converters.USVString(e),r=$e.converters["unsigned short"](r);let n;try{n=new URL(e,Jtt.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!jtt.has(r))throw new RangeError(`Invalid status code ${r}`);let s=_I(UA({}),"immutable");s[Vt].status=r;let o=Ytt(Ece(n));return s[Vt].headersList.append("location",o,!0),s}constructor(e=null,r={}){if($e.util.markAsUncloneable(this),e===QR)return;e!==null&&(e=$e.converters.BodyInit(e)),r=$e.converters.ResponseInit(r),this[Vt]=UA({}),this[au]=new Ice(QR),Sce(this[au],"response"),wce(this[au],this[Vt].headersList);let n=null;if(e!=null){let[s,o]=gce(e);n={body:s,type:o}}Cce(this,r,n)}get type(){return $e.brandCheck(this,t),this[Vt].type}get url(){$e.brandCheck(this,t);let e=this[Vt].urlList,r=e[e.length-1]??null;return r===null?"":Ece(r,!0)}get redirected(){return $e.brandCheck(this,t),this[Vt].urlList.length>1}get status(){return $e.brandCheck(this,t),this[Vt].status}get ok(){return $e.brandCheck(this,t),this[Vt].status>=200&&this[Vt].status<=299}get statusText(){return $e.brandCheck(this,t),this[Vt].statusText}get headers(){return $e.brandCheck(this,t),this[au]}get body(){return $e.brandCheck(this,t),this[Vt].body?this[Vt].body.stream:null}get bodyUsed(){return $e.brandCheck(this,t),!!this[Vt].body&&AG.isDisturbed(this[Vt].body.stream)}clone(){if($e.brandCheck(this,t),qtt(this))throw $e.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=yG(this[Vt]);return xce&&this[Vt].body?.stream&&bce.register(this,new WeakRef(this[Vt].body.stream)),_I(e,Mtt(this[au]))}[yce.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${yce.formatWithOptions(r,n)}`}};Utt(Lf);Object.defineProperties(Lf.prototype,{type:Io,url:Io,status:Io,ok:Io,redirected:Io,statusText:Io,headers:Io,clone:Io,body:Io,bodyUsed:Io,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(Lf,{json:Io,redirect:Io,error:Io});function yG(t){if(t.internalResponse)return Bce(yG(t.internalResponse),t.type);let e=UA({...t,body:null});return t.body!=null&&(e.body=Ftt(e,t.body)),e}i(yG,"cloneResponse");function UA(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Ace(t?.headersList):new Ace,urlList:t?.urlList?[...t.urlList]:[]}}i(UA,"makeResponse");function DR(t){let e=Wtt(t);return UA({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(DR,"makeNetworkError");function trt(t){return t.type==="error"&&t.status===0}i(trt,"isNetworkError");function vR(t,e){return e={internalResponse:t,...e},new Proxy(t,{get(r,n){return n in e?e[n]:r[n]},set(r,n,s){return gG(!(n in e)),r[n]=s,!0}})}i(vR,"makeFilteredResponse");function Bce(t,e){if(e==="basic")return vR(t,{type:"basic",headersList:t.headersList});if(e==="cors")return vR(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return vR(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return vR(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});gG(!1)}i(Bce,"filterResponse");function rrt(t,e=null){return gG(Gtt(t)),Htt(t)?DR(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):DR(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(rrt,"makeAppropriateNetworkError");function Cce(t,e,r){if(e.status!==null&&(e.status<200||e.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in e&&e.statusText!=null&&!$tt(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[Vt].status=e.status),"statusText"in e&&e.statusText!=null&&(t[Vt].statusText=e.statusText),"headers"in e&&e.headers!=null&&Ltt(t[au],e.headers),r){if(Ktt.includes(t.status))throw $e.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[Vt].body=r.body,r.type!=null&&!t[Vt].headersList.contains("content-type",!0)&&t[Vt].headersList.append("content-type",r.type,!0)}}i(Cce,"initializeResponse");function _I(t,e){let r=new Lf(QR);return r[Vt]=t,r[au]=new Ice(QR),wce(r[au],t.headersList),Sce(r[au],e),xce&&t.body?.stream&&bce.register(r,new WeakRef(t.body.stream)),r}i(_I,"fromInnerResponse");$e.converters.ReadableStream=$e.interfaceConverter(ReadableStream);$e.converters.FormData=$e.interfaceConverter(Xtt);$e.converters.URLSearchParams=$e.interfaceConverter(URLSearchParams);$e.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?$e.converters.USVString(t,e,r):ztt(t)?$e.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Ztt.isArrayBuffer(t)?$e.converters.BufferSource(t,e,r):AG.isFormDataLike(t)?$e.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?$e.converters.URLSearchParams(t,e,r):$e.converters.DOMString(t,e,r)};$e.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?$e.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:$e.converters.XMLHttpRequestBodyInit(t,e,r)};$e.converters.ResponseInit=$e.dictionaryConverter([{key:"status",converter:$e.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:$e.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:$e.converters.HeadersInit}]);Rce.exports={isNetworkError:trt,makeNetworkError:DR,makeResponse:UA,makeAppropriateNetworkError:rrt,filterResponse:Bce,Response:Lf,cloneResponse:yG,fromInnerResponse:_I}});var _ce=S((Qer,Pce)=>{"use strict";var{kConnected:Nce,kSize:Tce}=Ht(),EG=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[Nce]===0&&this.value[Tce]===0?void 0:this.value}},CG=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[Nce]===0&&e[Tce]===0&&this.finalizer(r)})}unregister(e){}};Pce.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:EG,FinalizationRegistry:CG}):{WeakRef,FinalizationRegistry}}});var qA=S((ker,Vce)=>{"use strict";var{extractBody:nrt,mixinBody:srt,cloneBody:ort,bodyUnusable:vce}=CA(),{Headers:qce,fill:irt,HeadersList:MR,setHeadersGuard:SG,getHeadersGuard:art,setHeadersList:$ce,getHeadersList:Qce}=Of(),{FinalizationRegistry:crt}=_ce()(),OR=Ye(),Dce=require("node:util"),{isValidHTTPToken:lrt,sameOrigin:kce,environmentSettingsObject:kR}=Ao(),{forbiddenMethodsSet:urt,corsSafeListedMethodsSet:drt,referrerPolicy:prt,requestRedirect:frt,requestMode:mrt,requestCredentials:hrt,requestCache:Art,requestDuplex:grt}=eI(),{kEnumerableProperty:Lr,normalizedMethodRecordsBase:yrt,normalizedMethodRecords:Ert}=OR,{kHeaders:So,kSignal:LR,kState:Ot,kDispatcher:IG}=nd(),{webidl:Ee}=bn(),{URLSerializer:Crt}=vs(),{kConstruct:FR}=Ht(),Irt=require("node:assert"),{getMaxListeners:Oce,setMaxListeners:Lce,getEventListeners:Srt,defaultMaxListeners:Mce}=require("node:events"),wrt=Symbol("abortController"),Gce=new crt(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),UR=new WeakMap;function Fce(t){return e;function e(){let r=t.deref();if(r!==void 0){Gce.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=UR.get(r.signal);if(n!==void 0){if(n.size!==0){for(let s of n){let o=s.deref();o!==void 0&&o.abort(this.reason)}n.clear()}UR.delete(r.signal)}}}}i(Fce,"buildAbort");var Uce=!1,md=class t{static{i(this,"Request")}constructor(e,r={}){if(Ee.util.markAsUncloneable(this),e===FR)return;let n="Request constructor";Ee.argumentLengthCheck(arguments,1,n),e=Ee.converters.RequestInfo(e,n,"input"),r=Ee.converters.RequestInit(r,n,"init");let s=null,o=null,a=kR.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[IG]=r.dispatcher;let E;try{E=new URL(e,a)}catch(I){throw new TypeError("Failed to parse URL from "+e,{cause:I})}if(E.username||E.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=qR({urlList:[E]}),o="cors"}else this[IG]=r.dispatcher||e[IG],Irt(e instanceof t),s=e[Ot],c=e[LR];let l=kR.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&kce(s.window,l)&&(u=s.window),r.window!=null)throw new TypeError(`'window' option '${u}' must be null`);"window"in r&&(u="no-window"),s=qR({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:kR.settingsObject,window:u,priority:s.priority,origin:s.origin,referrer:s.referrer,referrerPolicy:s.referrerPolicy,mode:s.mode,credentials:s.credentials,cache:s.cache,redirect:s.redirect,integrity:s.integrity,keepalive:s.keepalive,reloadNavigation:s.reloadNavigation,historyNavigation:s.historyNavigation,urlList:[...s.urlList]});let d=Object.keys(r).length!==0;if(d&&(s.mode==="navigate"&&(s.mode="same-origin"),s.reloadNavigation=!1,s.historyNavigation=!1,s.origin="client",s.referrer="client",s.referrerPolicy="",s.url=s.urlList[s.urlList.length-1],s.urlList=[s.url]),r.referrer!==void 0){let E=r.referrer;if(E==="")s.referrer="no-referrer";else{let I;try{I=new URL(E,a)}catch(x){throw new TypeError(`Referrer "${E}" is not a valid URL.`,{cause:x})}I.protocol==="about:"&&I.hostname==="client"||l&&!kce(I,kR.settingsObject.baseUrl)?s.referrer="client":s.referrer=I}}r.referrerPolicy!==void 0&&(s.referrerPolicy=r.referrerPolicy);let p;if(r.mode!==void 0?p=r.mode:p=o,p==="navigate")throw Ee.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(p!=null&&(s.mode=p),r.credentials!==void 0&&(s.credentials=r.credentials),r.cache!==void 0&&(s.cache=r.cache),s.cache==="only-if-cached"&&s.mode!=="same-origin")throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(r.redirect!==void 0&&(s.redirect=r.redirect),r.integrity!=null&&(s.integrity=String(r.integrity)),r.keepalive!==void 0&&(s.keepalive=!!r.keepalive),r.method!==void 0){let E=r.method,I=Ert[E];if(I!==void 0)s.method=I;else{if(!lrt(E))throw new TypeError(`'${E}' is not a valid HTTP method.`);let x=E.toUpperCase();if(urt.has(x))throw new TypeError(`'${E}' HTTP method is unsupported.`);E=yrt[x]??E,s.method=E}!Uce&&s.method==="patch"&&(process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"}),Uce=!0)}r.signal!==void 0&&(c=r.signal),this[Ot]=s;let f=new AbortController;if(this[LR]=f.signal,c!=null){if(!c||typeof c.aborted!="boolean"||typeof c.addEventListener!="function")throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(c.aborted)f.abort(c.reason);else{this[wrt]=f;let E=new WeakRef(f),I=Fce(E);try{(typeof Oce=="function"&&Oce(c)===Mce||Srt(c,"abort").length>=Mce)&&Lce(1500,c)}catch{}OR.addAbortListener(c,I),Gce.register(f,{signal:c,abort:I},I)}}if(this[So]=new qce(FR),$ce(this[So],s.headersList),SG(this[So],"request"),p==="no-cors"){if(!drt.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);SG(this[So],"request-no-cors")}if(d){let E=Qce(this[So]),I=r.headers!==void 0?r.headers:new MR(E);if(E.clear(),I instanceof MR){for(let{name:x,value:b}of I.rawValues())E.append(x,b,!1);E.cookies=I.cookies}else irt(this[So],I)}let m=e instanceof t?e[Ot].body:null;if((r.body!=null||m!=null)&&(s.method==="GET"||s.method==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body.");let h=null;if(r.body!=null){let[E,I]=nrt(r.body,s.keepalive);h=E,I&&!Qce(this[So]).contains("content-type",!0)&&this[So].append("content-type",I)}let A=h??m;if(A!=null&&A.source==null){if(h!=null&&r.duplex==null)throw new TypeError("RequestInit: duplex option is required when sending a body.");if(s.mode!=="same-origin"&&s.mode!=="cors")throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');s.useCORSPreflightFlag=!0}let y=A;if(h==null&&m!=null){if(vce(e))throw new TypeError("Cannot construct a Request with a Request object that has already been used.");let E=new TransformStream;m.stream.pipeThrough(E),y={source:m.source,length:m.length,stream:E.readable}}this[Ot].body=y}get method(){return Ee.brandCheck(this,t),this[Ot].method}get url(){return Ee.brandCheck(this,t),Crt(this[Ot].url)}get headers(){return Ee.brandCheck(this,t),this[So]}get destination(){return Ee.brandCheck(this,t),this[Ot].destination}get referrer(){return Ee.brandCheck(this,t),this[Ot].referrer==="no-referrer"?"":this[Ot].referrer==="client"?"about:client":this[Ot].referrer.toString()}get referrerPolicy(){return Ee.brandCheck(this,t),this[Ot].referrerPolicy}get mode(){return Ee.brandCheck(this,t),this[Ot].mode}get credentials(){return this[Ot].credentials}get cache(){return Ee.brandCheck(this,t),this[Ot].cache}get redirect(){return Ee.brandCheck(this,t),this[Ot].redirect}get integrity(){return Ee.brandCheck(this,t),this[Ot].integrity}get keepalive(){return Ee.brandCheck(this,t),this[Ot].keepalive}get isReloadNavigation(){return Ee.brandCheck(this,t),this[Ot].reloadNavigation}get isHistoryNavigation(){return Ee.brandCheck(this,t),this[Ot].historyNavigation}get signal(){return Ee.brandCheck(this,t),this[LR]}get body(){return Ee.brandCheck(this,t),this[Ot].body?this[Ot].body.stream:null}get bodyUsed(){return Ee.brandCheck(this,t),!!this[Ot].body&&OR.isDisturbed(this[Ot].body.stream)}get duplex(){return Ee.brandCheck(this,t),"half"}clone(){if(Ee.brandCheck(this,t),vce(this))throw new TypeError("unusable");let e=Hce(this[Ot]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=UR.get(this.signal);n===void 0&&(n=new Set,UR.set(this.signal,n));let s=new WeakRef(r);n.add(s),OR.addAbortListener(r.signal,Fce(s))}return zce(e,r.signal,art(this[So]))}[Dce.inspect.custom](e,r){r.depth===null&&(r.depth=2),r.colors??=!0;let n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${Dce.formatWithOptions(r,n)}`}};srt(md);function qR(t){return{method:t.method??"GET",localURLsOnly:t.localURLsOnly??!1,unsafeRequest:t.unsafeRequest??!1,body:t.body??null,client:t.client??null,reservedClient:t.reservedClient??null,replacesClientId:t.replacesClientId??"",window:t.window??"client",keepalive:t.keepalive??!1,serviceWorkers:t.serviceWorkers??"all",initiator:t.initiator??"",destination:t.destination??"",priority:t.priority??null,origin:t.origin??"client",policyContainer:t.policyContainer??"client",referrer:t.referrer??"client",referrerPolicy:t.referrerPolicy??"",mode:t.mode??"no-cors",useCORSPreflightFlag:t.useCORSPreflightFlag??!1,credentials:t.credentials??"same-origin",useCredentials:t.useCredentials??!1,cache:t.cache??"default",redirect:t.redirect??"follow",integrity:t.integrity??"",cryptoGraphicsNonceMetadata:t.cryptoGraphicsNonceMetadata??"",parserMetadata:t.parserMetadata??"",reloadNavigation:t.reloadNavigation??!1,historyNavigation:t.historyNavigation??!1,userActivation:t.userActivation??!1,taintedOrigin:t.taintedOrigin??!1,redirectCount:t.redirectCount??0,responseTainting:t.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:t.preventNoCacheCacheControlHeaderModification??!1,done:t.done??!1,timingAllowFailed:t.timingAllowFailed??!1,urlList:t.urlList,url:t.urlList[0],headersList:t.headersList?new MR(t.headersList):new MR}}i(qR,"makeRequest");function Hce(t){let e=qR({...t,body:null});return t.body!=null&&(e.body=ort(e,t.body)),e}i(Hce,"cloneRequest");function zce(t,e,r){let n=new md(FR);return n[Ot]=t,n[LR]=e,n[So]=new qce(FR),$ce(n[So],t.headersList),SG(n[So],r),n}i(zce,"fromInnerRequest");Object.defineProperties(md.prototype,{method:Lr,url:Lr,headers:Lr,redirect:Lr,clone:Lr,signal:Lr,duplex:Lr,destination:Lr,body:Lr,bodyUsed:Lr,isHistoryNavigation:Lr,isReloadNavigation:Lr,keepalive:Lr,integrity:Lr,cache:Lr,credentials:Lr,attribute:Lr,referrerPolicy:Lr,referrer:Lr,mode:Lr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});Ee.converters.Request=Ee.interfaceConverter(md);Ee.converters.RequestInfo=function(t,e,r){return typeof t=="string"?Ee.converters.USVString(t,e,r):t instanceof md?Ee.converters.Request(t,e,r):Ee.converters.USVString(t,e,r)};Ee.converters.AbortSignal=Ee.interfaceConverter(AbortSignal);Ee.converters.RequestInit=Ee.dictionaryConverter([{key:"method",converter:Ee.converters.ByteString},{key:"headers",converter:Ee.converters.HeadersInit},{key:"body",converter:Ee.nullableConverter(Ee.converters.BodyInit)},{key:"referrer",converter:Ee.converters.USVString},{key:"referrerPolicy",converter:Ee.converters.DOMString,allowedValues:prt},{key:"mode",converter:Ee.converters.DOMString,allowedValues:mrt},{key:"credentials",converter:Ee.converters.DOMString,allowedValues:hrt},{key:"cache",converter:Ee.converters.DOMString,allowedValues:Art},{key:"redirect",converter:Ee.converters.DOMString,allowedValues:frt},{key:"integrity",converter:Ee.converters.DOMString},{key:"keepalive",converter:Ee.converters.boolean},{key:"signal",converter:Ee.nullableConverter(t=>Ee.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:Ee.converters.any},{key:"duplex",converter:Ee.converters.DOMString,allowedValues:grt},{key:"dispatcher",converter:Ee.converters.any}]);Vce.exports={Request:md,makeRequest:qR,fromInnerRequest:zce,cloneRequest:Hce}});var DI=S((Ler,ale)=>{"use strict";var{makeNetworkError:gt,makeAppropriateNetworkError:$R,filterResponse:wG,makeResponse:GR,fromInnerResponse:xrt}=vI(),{HeadersList:Wce}=Of(),{Request:brt,cloneRequest:Brt}=qA(),hd=require("node:zlib"),{bytesMatch:Rrt,makePolicyContainer:Nrt,clonePolicyContainer:Trt,requestBadPort:Prt,TAOCheck:_rt,appendRequestOriginHeader:vrt,responseLocationURL:Qrt,requestCurrentURL:lc,setRequestReferrerPolicyOnRedirect:Drt,tryUpgradeRequestToAPotentiallyTrustworthyURL:krt,createOpaqueTimingInfo:NG,appendFetchMetadata:Ort,corsCheck:Lrt,crossOriginResourcePolicyCheck:Mrt,determineRequestsReferrer:Frt,coarsenedSharedCurrentTime:QI,createDeferredPromise:Urt,isBlobLike:qrt,sameOrigin:RG,isCancelled:Mf,isAborted:Yce,isErrorLike:$rt,fullyReadBody:Grt,readableStreamClose:Hrt,isomorphicEncode:HR,urlIsLocal:zrt,urlIsHttpHttpsScheme:TG,urlHasHttpsScheme:Vrt,clampAndCoarsenConnectionTimingInfo:Wrt,simpleRangeHeaderValue:Yrt,buildContentRange:Jrt,createInflate:jrt,extractMimeType:Krt}=Ao(),{kState:Xce,kDispatcher:Xrt}=nd(),Ff=require("node:assert"),{safelyExtractBody:PG,extractBody:Jce}=CA(),{redirectStatusSet:Zce,nullBodyStatus:ele,safeMethodsSet:Zrt,requestBodyHeader:ent,subresourceSet:tnt}=eI(),rnt=require("node:events"),{Readable:nnt,pipeline:snt,finished:ont}=require("node:stream"),{addAbortListener:int,isErrored:ant,isReadable:zR,bufferToLowerCasedHeaderName:jce}=Ye(),{dataURLProcessor:cnt,serializeAMimeType:lnt,minimizeSupportedMimeType:unt}=vs(),{getGlobalDispatcher:dnt}=TI(),{webidl:pnt}=bn(),{STATUS_CODES:fnt}=require("node:http"),mnt=["GET","HEAD"],hnt=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",xG,VR=class extends rnt{static{i(this,"Fetch")}constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing"}terminate(e){this.state==="ongoing"&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){this.state==="ongoing"&&(this.state="aborted",e||(e=new DOMException("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}};function Ant(t){tle(t,"fetch")}i(Ant,"handleFetchDone");function gnt(t,e=void 0){pnt.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=Urt(),n;try{n=new brt(t,e)}catch(d){return r.reject(d),r.promise}let s=n[Xce];if(n.signal.aborted)return bG(r,s,null,n.signal.reason),r.promise;s.client.globalObject?.constructor?.name==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let a=null,c=!1,l=null;return int(n.signal,()=>{c=!0,Ff(l!=null),l.abort(n.signal.reason);let d=a?.deref();bG(r,s,d,n.signal.reason)}),l=nle({request:s,processResponseEndOfBody:Ant,processResponse:i(d=>{if(!c){if(d.aborted){bG(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(xrt(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[Xrt]}),r.promise}i(gnt,"fetch");function tle(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;TG(r)&&n!==null&&(t.timingAllowPassed||(n=NG({startTime:n.startTime}),s=""),n.endTime=QI(),t.timingInfo=n,rle(n,r.href,e,globalThis,s))}i(tle,"finalizeAndReportTiming");var rle=performance.markResourceTiming;function bG(t,e,r,n){if(t&&t.reject(n),e.body!=null&&zR(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[Xce];s.body!=null&&zR(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(bG,"abortFetch");function nle({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=dnt()}){Ff(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=QI(u),p=NG({startTime:d}),f={controller:new VR(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return Ff(!t.body||t.body.stream),t.window==="client"&&(t.window=t.client?.globalObject?.constructor?.name==="Window"?t.client:"no-window"),t.origin==="client"&&(t.origin=t.client.origin),t.policyContainer==="client"&&(t.client!=null?t.policyContainer=Trt(t.client.policyContainer):t.policyContainer=Nrt()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,tnt.has(t.destination),sle(f).catch(m=>{f.controller.terminate(m)}),f.controller}i(nle,"fetching");async function sle(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!zrt(lc(r))&&(n=gt("local URLs only")),krt(r),Prt(r)==="blocked"&&(n=gt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=Frt(r)),n===null&&(n=await(async()=>{let o=lc(r);return RG(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await Kce(t)):r.mode==="same-origin"?gt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?gt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await Kce(t)):TG(lc(r))?(r.responseTainting="cors",await ole(t)):gt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=wG(n,"basic"):r.responseTainting==="cors"?n=wG(n,"cors"):r.responseTainting==="opaque"?n=wG(n,"opaque"):Ff(!1));let s=n.status===0?n:n.internalResponse;if(s.urlList.length===0&&s.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),n.type==="opaque"&&s.status===206&&s.rangeRequested&&!r.headers.contains("range",!0)&&(n=s=gt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||ele.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>BG(t,gt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!Rrt(c,r.integrity)){o("integrity mismatch");return}n.body=PG(c)[0],BG(t,n)},"processBody");await Grt(n.body,a,o)}else BG(t,n)}i(sle,"mainFetch");function Kce(t){if(Mf(t)&&t.request.redirectCount===0)return Promise.resolve($R(t));let{request:e}=t,{protocol:r}=lc(e);switch(r){case"about:":return Promise.resolve(gt("about scheme is not supported"));case"blob:":{xG||(xG=require("node:buffer").resolveObjectURL);let n=lc(e);if(n.search.length!==0)return Promise.resolve(gt("NetworkError when attempting to fetch resource."));let s=xG(n.toString());if(e.method!=="GET"||!qrt(s))return Promise.resolve(gt("invalid method"));let o=GR(),a=s.size,c=HR(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=Yrt(u,!0);if(d==="failure")return Promise.resolve(gt("failed to fetch the data URL"));let{rangeStartValue:p,rangeEndValue:f}=d;if(p===null)p=a-f,f=p+f-1;else{if(p>=a)return Promise.resolve(gt("Range start is greater than the blob's size."));(f===null||f>=a)&&(f=a-1)}let m=s.slice(p,f,l),h=Jce(m);o.body=h[0];let A=HR(`${m.size}`),y=Jrt(p,f,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",A,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",y,!0)}else{let u=Jce(s);o.statusText="OK",o.body=u[0],o.headersList.set("content-length",c,!0),o.headersList.set("content-type",l,!0)}return Promise.resolve(o)}case"data:":{let n=lc(e),s=cnt(n);if(s==="failure")return Promise.resolve(gt("failed to fetch the data URL"));let o=lnt(s.mimeType);return Promise.resolve(GR({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:PG(s.body)[0]}))}case"file:":return Promise.resolve(gt("not implemented... yet..."));case"http:":case"https:":return ole(t).catch(n=>gt(n));default:return Promise.resolve(gt("unknown scheme"))}}i(Kce,"schemeFetch");function ynt(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(ynt,"finalizeResponse");function BG(t,e){let r=t.timingInfo,n=i(()=>{let o=Date.now();t.request.destination==="document"&&(t.controller.fullTimingInfo=r),t.controller.reportTimingSteps=()=>{if(t.request.url.protocol!=="https:")return;r.endTime=o;let c=e.cacheState,l=e.bodyInfo;e.timingAllowPassed||(r=NG(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=Krt(e.headersList);d!=="failure"&&(l.contentType=unt(d))}t.request.initiatorType!=null&&rle(r,t.request.url.href,t.request.initiatorType,globalThis,c,l,u)};let a=i(()=>{t.request.done=!0,t.processResponseEndOfBody!=null&&queueMicrotask(()=>t.processResponseEndOfBody(e)),t.request.initiatorType!=null&&t.controller.reportTimingSteps()},"processResponseEndOfBodyTask");queueMicrotask(()=>a())},"processResponseEndOfBody");t.processResponse!=null&&queueMicrotask(()=>{t.processResponse(e),t.processResponse=null});let s=e.type==="error"?e:e.internalResponse??e;s.body==null?n():ont(s.body.stream,()=>{n()})}i(BG,"fetchFinale");async function ole(t){let e=t.request,r=null,n=null,s=t.timingInfo;if(e.serviceWorkers,r===null){if(e.redirect==="follow"&&(e.serviceWorkers="none"),n=r=await ile(t),e.responseTainting==="cors"&&Lrt(e,r)==="failure")return gt("cors failure");_rt(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&Mrt(e.origin,e.client,e.destination,n)==="blocked"?gt("blocked"):(Zce.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=gt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await Ent(t,r):Ff(!1)),r.timingInfo=s,r)}i(ole,"httpFetch");function Ent(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=Qrt(n,lc(r).hash),s==null)return e}catch(a){return Promise.resolve(gt(a))}if(!TG(s))return Promise.resolve(gt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(gt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!RG(r,s))return Promise.resolve(gt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(gt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(gt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!mnt.includes(r.method)){r.method="GET",r.body=null;for(let a of ent)r.headersList.delete(a)}RG(lc(r),s)||(r.headersList.delete("authorization",!0),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie",!0),r.headersList.delete("host",!0)),r.body!=null&&(Ff(r.body.source!=null),r.body=PG(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=QI(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),Drt(r,n),sle(t,!0)}i(Ent,"httpRedirectFetch");async function ile(t,e=!1,r=!1){let n=t.request,s=null,o=null,a=null,c=null,l=!1;n.window==="no-window"&&n.redirect==="error"?(s=t,o=n):(o=Brt(n),s={...t},s.request=o);let u=n.credentials==="include"||n.credentials==="same-origin"&&n.responseTainting==="basic",d=o.body?o.body.length:null,p=null;if(o.body==null&&["POST","PUT"].includes(o.method)&&(p="0"),d!=null&&(p=HR(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",HR(o.referrer.href),!0),vrt(o),Ort(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",hnt),o.cache==="default"&&(o.headersList.contains("if-modified-since",!0)||o.headersList.contains("if-none-match",!0)||o.headersList.contains("if-unmodified-since",!0)||o.headersList.contains("if-match",!0)||o.headersList.contains("if-range",!0))&&(o.cache="no-store"),o.cache==="no-cache"&&!o.preventNoCacheCacheControlHeaderModification&&!o.headersList.contains("cache-control",!0)&&o.headersList.append("cache-control","max-age=0",!0),(o.cache==="no-store"||o.cache==="reload")&&(o.headersList.contains("pragma",!0)||o.headersList.append("pragma","no-cache",!0),o.headersList.contains("cache-control",!0)||o.headersList.append("cache-control","no-cache",!0)),o.headersList.contains("range",!0)&&o.headersList.append("accept-encoding","identity",!0),o.headersList.contains("accept-encoding",!0)||(Vrt(lc(o))?o.headersList.append("accept-encoding","br, gzip, deflate",!0):o.headersList.append("accept-encoding","gzip, deflate",!0)),o.headersList.delete("host",!0),c==null&&(o.cache="no-store"),o.cache!=="no-store"&&o.cache,a==null){if(o.cache==="only-if-cached")return gt("only if cached");let f=await Cnt(s,u,r);!Zrt.has(o.method)&&f.status>=200&&f.status<=399,l&&f.status,a==null&&(a=f)}if(a.urlList=[...o.urlList],o.headersList.contains("range",!0)&&(a.rangeRequested=!0),a.requestIncludesCredentials=u,a.status===407)return n.window==="no-window"?gt():Mf(t)?$R(t):gt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(Mf(t))return $R(t);t.controller.connection.destroy(),a=await ile(t,e,!0)}return a}i(ile,"httpNetworkOrCacheFetch");async function Cnt(t,e=!1,r=!1){Ff(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(h,A=!0){this.destroyed||(this.destroyed=!0,A&&this.abort?.(h??new DOMException("The operation was aborted.","AbortError")))}};let n=t.request,s=null,o=t.timingInfo;null==null&&(n.cache="no-store");let c=r?"yes":"no";n.mode;let l=null;if(n.body==null&&t.processRequestEndOfBody)queueMicrotask(()=>t.processRequestEndOfBody());else if(n.body!=null){let h=i(async function*(E){Mf(t)||(yield E,t.processRequestBodyChunkLength?.(E.byteLength))},"processBodyChunk"),A=i(()=>{Mf(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),y=i(E=>{Mf(t)||(E.name==="AbortError"?t.controller.abort():t.controller.terminate(E))},"processBodyError");l=(async function*(){try{for await(let E of n.body.stream)yield*h(E);A()}catch(E){y(E)}})()}try{let{body:h,status:A,statusText:y,headersList:E,socket:I}=await m({body:l});if(I)s=GR({status:A,statusText:y,headersList:E,socket:I});else{let x=h[Symbol.asyncIterator]();t.controller.next=()=>x.next(),s=GR({status:A,statusText:y,headersList:E})}}catch(h){return h.name==="AbortError"?(t.controller.connection.destroy(),$R(t,h)):gt(h)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(h=>{Mf(t)||t.controller.abort(h)},"cancelAlgorithm"),p=new ReadableStream({async start(h){t.controller.controller=h},async pull(h){await u(h)},async cancel(h){await d(h)},type:"bytes"});s.body={stream:p,source:null,length:null},t.controller.resume||t.controller.on("terminated",f),t.controller.resume=async()=>{for(;;){let h,A;try{let{done:E,value:I}=await t.controller.next();if(Yce(t))break;h=E?void 0:I}catch(E){t.controller.ended&&!o.encodedBodySize?h=void 0:(h=E,A=!0)}if(h===void 0){Hrt(t.controller.controller),ynt(t,s);return}if(o.decodedBodySize+=h?.byteLength??0,A){t.controller.terminate(h);return}let y=new Uint8Array(h);if(y.byteLength&&t.controller.controller.enqueue(y),ant(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function f(h){Yce(t)?(s.aborted=!0,zR(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):zR(p)&&t.controller.controller.error(new TypeError("terminated",{cause:$rt(h)?h:void 0})),t.controller.connection.destroy()}return i(f,"onAborted"),s;function m({body:h}){let A=lc(n),y=t.controller.dispatcher;return new Promise((E,I)=>y.dispatch({path:A.pathname+A.search,origin:A.origin,method:n.method,body:y.isMockActive?n.body&&(n.body.source||n.body.stream):h,headers:n.headersList.entries,maxRedirections:0,upgrade:n.mode==="websocket"?"websocket":void 0},{body:null,abort:null,onConnect(x){let{connection:b}=t.controller;o.finalConnectionTimingInfo=Wrt(void 0,o.postRedirectStartTime,t.crossOriginIsolatedCapability),b.destroyed?x(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",x),this.abort=b.abort=x),o.finalNetworkRequestStartTime=QI(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=QI(t.crossOriginIsolatedCapability)},onHeaders(x,b,N,v){if(x<200)return;let _="",J=new Wce;for(let ce=0;ce<b.length;ce+=2)J.append(jce(b[ce]),b[ce+1].toString("latin1"),!0);_=J.get("location",!0);let Be=[],ke=_&&n.redirect==="follow"&&Zce.has(x);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!ele.includes(x)&&!ke){let ce=J.get("content-encoding",!0),Tt=ce?ce.toLowerCase().split(","):[],Re=5;if(Tt.length>Re)return this.abort(new Error(`too many content-encodings in response: ${Tt.length}, maximum allowed is ${Re}`)),!0;for(let oe=Tt.length-1;oe>=0;--oe){let Q=Tt[oe].trim();if(Q==="x-gzip"||Q==="gzip")Be.push(hd.createGunzip({flush:hd.constants.Z_SYNC_FLUSH,finishFlush:hd.constants.Z_SYNC_FLUSH}));else if(Q==="deflate")Be.push(jrt({flush:hd.constants.Z_SYNC_FLUSH,finishFlush:hd.constants.Z_SYNC_FLUSH}));else if(Q==="br")Be.push(hd.createBrotliDecompress({flush:hd.constants.BROTLI_OPERATION_FLUSH,finishFlush:hd.constants.BROTLI_OPERATION_FLUSH}));else{Be.length=0;break}}}this.body=new nnt({read:N});let De=this.onError.bind(this);return E({status:x,statusText:v,headersList:J,body:Be.length?snt(this.body,...Be,ce=>{ce&&this.onError(ce)}).on("error",De):this.body.on("error",De)}),!0},onData(x){if(t.controller.dump)return;let b=x;return o.encodedBodySize+=b.byteLength,this.body.push(b)},onComplete(){this.abort&&t.controller.off("terminated",this.abort),t.controller.ended=!0,this.body.push(null)},onError(x){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(x),t.controller.terminate(x),I(x)},onUpgrade(x,b,N){if(x!==101)return;let v=new Wce;for(let _=0;_<b.length;_+=2)v.append(jce(b[_]),b[_+1].toString("latin1"),!0);return E({status:x,statusText:fnt[x],headersList:v,socket:N}),!0}}))}i(m,"dispatch")}i(Cnt,"httpNetworkFetch");ale.exports={fetch:gnt,Fetch:VR,fetching:nle,finalizeAndReportTiming:tle}});var _G=S((Fer,cle)=>{"use strict";cle.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}});var ule=S((Uer,lle)=>{"use strict";var{webidl:wo}=bn(),WR=Symbol("ProgressEvent state"),vG=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=wo.converters.DOMString(e,"ProgressEvent constructor","type"),r=wo.converters.ProgressEventInit(r??{}),super(e,r),this[WR]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return wo.brandCheck(this,t),this[WR].lengthComputable}get loaded(){return wo.brandCheck(this,t),this[WR].loaded}get total(){return wo.brandCheck(this,t),this[WR].total}};wo.converters.ProgressEventInit=wo.dictionaryConverter([{key:"lengthComputable",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:wo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:wo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:wo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);lle.exports={ProgressEvent:vG}});var ple=S(($er,dle)=>{"use strict";function Int(t){if(!t)return"failure";switch(t.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}i(Int,"getEncoding");dle.exports={getEncoding:Int}});var Cle=S((Her,Ele)=>{"use strict";var{kState:$A,kError:QG,kResult:fle,kAborted:kI,kLastProgressEventFired:DG}=_G(),{ProgressEvent:Snt}=ule(),{getEncoding:mle}=ple(),{serializeAMimeType:wnt,parseMIMEType:hle}=vs(),{types:xnt}=require("node:util"),{StringDecoder:Ale}=require("string_decoder"),{btoa:gle}=require("node:buffer"),bnt={enumerable:!0,writable:!1,configurable:!1};function Bnt(t,e,r,n){if(t[$A]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[$A]="loading",t[fle]=null,t[QG]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[kI];)try{let{done:u,value:d}=await c;if(l&&!t[kI]&&queueMicrotask(()=>{Ad("loadstart",t)}),l=!1,!u&&xnt.isUint8Array(d))a.push(d),(t[DG]===void 0||Date.now()-t[DG]>=50)&&!t[kI]&&(t[DG]=Date.now(),queueMicrotask(()=>{Ad("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[$A]="done";try{let p=Rnt(a,r,e.type,n);if(t[kI])return;t[fle]=p,Ad("load",t)}catch(p){t[QG]=p,Ad("error",t)}t[$A]!=="loading"&&Ad("loadend",t)});break}}catch(u){if(t[kI])return;queueMicrotask(()=>{t[$A]="done",t[QG]=u,Ad("error",t),t[$A]!=="loading"&&Ad("loadend",t)});break}})()}i(Bnt,"readOperation");function Ad(t,e){let r=new Snt(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(Ad,"fireAProgressEvent");function Rnt(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=hle(r||"application/octet-stream");o!=="failure"&&(s+=wnt(o)),s+=";base64,";let a=new Ale("latin1");for(let c of t)s+=gle(a.write(c));return s+=gle(a.end()),s}case"Text":{let s="failure";if(n&&(s=mle(n)),s==="failure"&&r){let o=hle(r);o!=="failure"&&(s=mle(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),Nnt(t,s)}case"ArrayBuffer":return yle(t).buffer;case"BinaryString":{let s="",o=new Ale("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(Rnt,"packageData");function Nnt(t,e){let r=yle(t),n=Tnt(r),s=0;n!==null&&(e=n,s=n==="UTF-8"?3:2);let o=r.slice(s);return new TextDecoder(e).decode(o)}i(Nnt,"decode");function Tnt(t){let[e,r,n]=t;return e===239&&r===187&&n===191?"UTF-8":e===254&&r===255?"UTF-16BE":e===255&&r===254?"UTF-16LE":null}i(Tnt,"BOMSniffing");function yle(t){let e=t.reduce((n,s)=>n+s.byteLength,0),r=0;return t.reduce((n,s)=>(n.set(s,r),r+=s.byteLength,n),new Uint8Array(e))}i(yle,"combineByteSequences");Ele.exports={staticPropertyDescriptors:bnt,readOperation:Bnt,fireAProgressEvent:Ad}});var xle=S((Ver,wle)=>{"use strict";var{staticPropertyDescriptors:GA,readOperation:YR,fireAProgressEvent:Ile}=Cle(),{kState:Uf,kError:Sle,kResult:JR,kEvents:dt,kAborted:Pnt}=_G(),{webidl:St}=bn(),{kEnumerableProperty:ks}=Ye(),aa=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[Uf]="empty",this[JR]=null,this[Sle]=null,this[dt]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=St.converters.Blob(e,{strict:!1}),YR(this,e,"ArrayBuffer")}readAsBinaryString(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=St.converters.Blob(e,{strict:!1}),YR(this,e,"BinaryString")}readAsText(e,r=void 0){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=St.converters.Blob(e,{strict:!1}),r!==void 0&&(r=St.converters.DOMString(r,"FileReader.readAsText","encoding")),YR(this,e,"Text",r)}readAsDataURL(e){St.brandCheck(this,t),St.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=St.converters.Blob(e,{strict:!1}),YR(this,e,"DataURL")}abort(){if(this[Uf]==="empty"||this[Uf]==="done"){this[JR]=null;return}this[Uf]==="loading"&&(this[Uf]="done",this[JR]=null),this[Pnt]=!0,Ile("abort",this),this[Uf]!=="loading"&&Ile("loadend",this)}get readyState(){switch(St.brandCheck(this,t),this[Uf]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return St.brandCheck(this,t),this[JR]}get error(){return St.brandCheck(this,t),this[Sle]}get onloadend(){return St.brandCheck(this,t),this[dt].loadend}set onloadend(e){St.brandCheck(this,t),this[dt].loadend&&this.removeEventListener("loadend",this[dt].loadend),typeof e=="function"?(this[dt].loadend=e,this.addEventListener("loadend",e)):this[dt].loadend=null}get onerror(){return St.brandCheck(this,t),this[dt].error}set onerror(e){St.brandCheck(this,t),this[dt].error&&this.removeEventListener("error",this[dt].error),typeof e=="function"?(this[dt].error=e,this.addEventListener("error",e)):this[dt].error=null}get onloadstart(){return St.brandCheck(this,t),this[dt].loadstart}set onloadstart(e){St.brandCheck(this,t),this[dt].loadstart&&this.removeEventListener("loadstart",this[dt].loadstart),typeof e=="function"?(this[dt].loadstart=e,this.addEventListener("loadstart",e)):this[dt].loadstart=null}get onprogress(){return St.brandCheck(this,t),this[dt].progress}set onprogress(e){St.brandCheck(this,t),this[dt].progress&&this.removeEventListener("progress",this[dt].progress),typeof e=="function"?(this[dt].progress=e,this.addEventListener("progress",e)):this[dt].progress=null}get onload(){return St.brandCheck(this,t),this[dt].load}set onload(e){St.brandCheck(this,t),this[dt].load&&this.removeEventListener("load",this[dt].load),typeof e=="function"?(this[dt].load=e,this.addEventListener("load",e)):this[dt].load=null}get onabort(){return St.brandCheck(this,t),this[dt].abort}set onabort(e){St.brandCheck(this,t),this[dt].abort&&this.removeEventListener("abort",this[dt].abort),typeof e=="function"?(this[dt].abort=e,this.addEventListener("abort",e)):this[dt].abort=null}};aa.EMPTY=aa.prototype.EMPTY=0;aa.LOADING=aa.prototype.LOADING=1;aa.DONE=aa.prototype.DONE=2;Object.defineProperties(aa.prototype,{EMPTY:GA,LOADING:GA,DONE:GA,readAsArrayBuffer:ks,readAsBinaryString:ks,readAsText:ks,readAsDataURL:ks,abort:ks,readyState:ks,result:ks,error:ks,onloadstart:ks,onprogress:ks,onload:ks,onabort:ks,onerror:ks,onloadend:ks,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(aa,{EMPTY:GA,LOADING:GA,DONE:GA});wle.exports={FileReader:aa}});var jR=S((Yer,ble)=>{"use strict";ble.exports={kConstruct:Ht().kConstruct}});var Nle=S((Jer,Rle)=>{"use strict";var _nt=require("node:assert"),{URLSerializer:Ble}=vs(),{isValidHeaderName:vnt}=Ao();function Qnt(t,e,r=!1){let n=Ble(t,r),s=Ble(e,r);return n===s}i(Qnt,"urlEquals");function Dnt(t){_nt(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),vnt(r)&&e.push(r);return e}i(Dnt,"getFieldValues");Rle.exports={urlEquals:Qnt,getFieldValues:Dnt}});var _le=S((Ker,Ple)=>{"use strict";var{kConstruct:knt}=jR(),{urlEquals:Ont,getFieldValues:kG}=Nle(),{kEnumerableProperty:qf,isDisturbed:Lnt}=Ye(),{webidl:ue}=bn(),{Response:Mnt,cloneResponse:Fnt,fromInnerResponse:Unt}=vI(),{Request:cu,fromInnerRequest:qnt}=qA(),{kState:ca}=nd(),{fetching:$nt}=DI(),{urlIsHttpHttpsScheme:KR,createDeferredPromise:HA,readAllBytes:Gnt}=Ao(),OG=require("node:assert"),XR=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==knt&&ue.illegalConstructor(),ue.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){ue.brandCheck(this,t);let n="Cache.match";ue.argumentLengthCheck(arguments,1,n),e=ue.converters.RequestInfo(e,n,"request"),r=ue.converters.CacheQueryOptions(r,n,"options");let s=this.#s(e,r,1);if(s.length!==0)return s[0]}async matchAll(e=void 0,r={}){ue.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=ue.converters.RequestInfo(e,n,"request")),r=ue.converters.CacheQueryOptions(r,n,"options"),this.#s(e,r)}async add(e){ue.brandCheck(this,t);let r="Cache.add";ue.argumentLengthCheck(arguments,1,r),e=ue.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){ue.brandCheck(this,t);let r="Cache.addAll";ue.argumentLengthCheck(arguments,1,r);let n=[],s=[];for(let f of e){if(f===void 0)throw ue.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(f=ue.converters.RequestInfo(f),typeof f=="string")continue;let m=f[ca];if(!KR(m.url)||m.method!=="GET")throw ue.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let f of e){let m=new cu(f)[ca];if(!KR(m.url))throw ue.errors.exception({header:r,message:"Expected http/s scheme."});m.initiator="fetch",m.destination="subresource",s.push(m);let h=HA();o.push($nt({request:m,processResponse(A){if(A.type==="error"||A.status===206||A.status<200||A.status>299)h.reject(ue.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(A.headersList.contains("vary")){let y=kG(A.headersList.get("vary"));for(let E of y)if(E==="*"){h.reject(ue.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let I of o)I.abort();return}}},processResponseEndOfBody(A){if(A.aborted){h.reject(new DOMException("aborted","AbortError"));return}h.resolve(A)}})),n.push(h.promise)}let c=await Promise.all(n),l=[],u=0;for(let f of c){let m={type:"put",request:s[u],response:f};l.push(m),u++}let d=HA(),p=null;try{this.#t(l)}catch(f){p=f}return queueMicrotask(()=>{p===null?d.resolve(void 0):d.reject(p)}),d.promise}async put(e,r){ue.brandCheck(this,t);let n="Cache.put";ue.argumentLengthCheck(arguments,2,n),e=ue.converters.RequestInfo(e,n,"request"),r=ue.converters.Response(r,n,"response");let s=null;if(e instanceof cu?s=e[ca]:s=new cu(e)[ca],!KR(s.url)||s.method!=="GET")throw ue.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let o=r[ca];if(o.status===206)throw ue.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let m=kG(o.headersList.get("vary"));for(let h of m)if(h==="*")throw ue.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(Lnt(o.body.stream)||o.body.stream.locked))throw ue.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=Fnt(o),c=HA();if(o.body!=null){let h=o.body.stream.getReader();Gnt(h).then(c.resolve,c.reject)}else c.resolve(void 0);let l=[],u={type:"put",request:s,response:a};l.push(u);let d=await c.promise;a.body!=null&&(a.body.source=d);let p=HA(),f=null;try{this.#t(l)}catch(m){f=m}return queueMicrotask(()=>{f===null?p.resolve():p.reject(f)}),p.promise}async delete(e,r={}){ue.brandCheck(this,t);let n="Cache.delete";ue.argumentLengthCheck(arguments,1,n),e=ue.converters.RequestInfo(e,n,"request"),r=ue.converters.CacheQueryOptions(r,n,"options");let s=null;if(e instanceof cu){if(s=e[ca],s.method!=="GET"&&!r.ignoreMethod)return!1}else OG(typeof e=="string"),s=new cu(e)[ca];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=HA(),l=null,u;try{u=this.#t(o)}catch(d){l=d}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(e=void 0,r={}){ue.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=ue.converters.RequestInfo(e,n,"request")),r=ue.converters.CacheQueryOptions(r,n,"options");let s=null;if(e!==void 0)if(e instanceof cu){if(s=e[ca],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new cu(e)[ca]);let o=HA(),a=[];if(e===void 0)for(let c of this.#e)a.push(c[0]);else{let c=this.#n(s,r);for(let l of c)a.push(l[0])}return queueMicrotask(()=>{let c=[];for(let l of a){let u=qnt(l,new AbortController().signal,"immutable");c.push(u)}o.resolve(Object.freeze(c))}),o.promise}#t(e){let r=this.#e,n=[...r],s=[],o=[];try{for(let a of e){if(a.type!=="delete"&&a.type!=="put")throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#n(a.request,a.options,s).length)throw new DOMException("???","InvalidStateError");let c;if(a.type==="delete"){if(c=this.#n(a.request,a.options),c.length===0)return[];for(let l of c){let u=r.indexOf(l);OG(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!KR(l.url))throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw ue.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});c=this.#n(a.request);for(let u of c){let d=r.indexOf(u);OG(d!==-1),r.splice(d,1)}r.push([a.request,a.response]),s.push([a.request,a.response])}o.push([a.request,a.response])}return o}catch(a){throw this.#e.length=0,this.#e=n,a}}#n(e,r,n){let s=[],o=n??this.#e;for(let a of o){let[c,l]=a;this.#r(e,c,l,r)&&s.push(a)}return s}#r(e,r,n=null,s){let o=new URL(e.url),a=new URL(r.url);if(s?.ignoreSearch&&(a.search="",o.search=""),!Ont(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=kG(n.headersList.get("vary"));for(let l of c){if(l==="*")return!1;let u=r.headersList.get(l),d=e.headersList.get(l);if(u!==d)return!1}return!0}#s(e,r,n=1/0){let s=null;if(e!==void 0)if(e instanceof cu){if(s=e[ca],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new cu(e)[ca]);let o=[];if(e===void 0)for(let c of this.#e)o.push(c[1]);else{let c=this.#n(s,r);for(let l of c)o.push(l[1])}let a=[];for(let c of o){let l=Unt(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(XR.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:qf,matchAll:qf,add:qf,addAll:qf,put:qf,delete:qf,keys:qf});var Tle=[{key:"ignoreSearch",converter:ue.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:ue.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreVary",converter:ue.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];ue.converters.CacheQueryOptions=ue.dictionaryConverter(Tle);ue.converters.MultiCacheQueryOptions=ue.dictionaryConverter([...Tle,{key:"cacheName",converter:ue.converters.DOMString}]);ue.converters.Response=ue.interfaceConverter(Mnt);ue.converters["sequence<RequestInfo>"]=ue.sequenceConverter(ue.converters.RequestInfo);Ple.exports={Cache:XR}});var Qle=S((Zer,vle)=>{"use strict";var{kConstruct:OI}=jR(),{Cache:ZR}=_le(),{webidl:qn}=bn(),{kEnumerableProperty:LI}=Ye(),eN=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==OI&&qn.illegalConstructor(),qn.util.markAsUncloneable(this)}async match(e,r={}){if(qn.brandCheck(this,t),qn.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=qn.converters.RequestInfo(e),r=qn.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new ZR(OI,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new ZR(OI,n).match(e,r);if(o!==void 0)return o}}async has(e){qn.brandCheck(this,t);let r="CacheStorage.has";return qn.argumentLengthCheck(arguments,1,r),e=qn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){qn.brandCheck(this,t);let r="CacheStorage.open";if(qn.argumentLengthCheck(arguments,1,r),e=qn.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new ZR(OI,s)}let n=[];return this.#e.set(e,n),new ZR(OI,n)}async delete(e){qn.brandCheck(this,t);let r="CacheStorage.delete";return qn.argumentLengthCheck(arguments,1,r),e=qn.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return qn.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(eN.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:LI,has:LI,open:LI,delete:LI,keys:LI});vle.exports={CacheStorage:eN}});var kle=S((ttr,Dle)=>{"use strict";Dle.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var FG=S((rtr,Fle)=>{"use strict";function Hnt(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>=0&&r<=8||r>=10&&r<=31||r===127)return!0}return!1}i(Hnt,"isCTLExcludingHtab");function LG(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===60||r===62||r===64||r===44||r===59||r===58||r===92||r===47||r===91||r===93||r===63||r===61||r===123||r===125)throw new Error("Invalid cookie name")}}i(LG,"validateCookieName");function MG(t){let e=t.length,r=0;if(t[0]==='"'){if(e===1||t[e-1]!=='"')throw new Error("Invalid cookie value");--e,++r}for(;r<e;){let n=t.charCodeAt(r++);if(n<33||n>126||n===34||n===44||n===59||n===92)throw new Error("Invalid cookie value")}}i(MG,"validateCookieValue");function Lle(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<32||r>126||r===59)throw new Error("Invalid cookie path")}}i(Lle,"validateCookiePath");function Ole(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}i(Ole,"isLetterOrDigit");function znt(t){if(t===" ")return;if(t.length>255)throw new Error("Invalid cookie domain");let e=0;for(let r=0;r<t.length;++r){let n=t.charCodeAt(r);if(n===46){if(e===0)throw new Error("Invalid cookie domain");if(t.charCodeAt(r-1)===45)throw new Error("Invalid cookie domain");e=0;continue}if(e===0&&!Ole(n))throw new Error("Invalid cookie domain");if(!Ole(n)&&n!==45)throw new Error("Invalid cookie domain");if(++e>63)throw new Error("Invalid cookie domain")}if(e===0||t.charCodeAt(t.length-1)===45)throw new Error("Invalid cookie domain")}i(znt,"validateCookieDomain");var Vnt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Wnt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tN=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function Mle(t){return typeof t=="number"&&(t=new Date(t)),`${Vnt[t.getUTCDay()]}, ${tN[t.getUTCDate()]} ${Wnt[t.getUTCMonth()]} ${t.getUTCFullYear()} ${tN[t.getUTCHours()]}:${tN[t.getUTCMinutes()]}:${tN[t.getUTCSeconds()]} GMT`}i(Mle,"toIMFDate");function Ynt(t){if(t<0)throw new Error("Invalid cookie max-age")}i(Ynt,"validateCookieMaxAge");function Jnt(t){if(t.name.length===0)return null;LG(t.name),MG(t.value);let e=[`${t.name}=${t.value}`];t.name.startsWith("__Secure-")&&(t.secure=!0),t.name.startsWith("__Host-")&&(t.secure=!0,t.domain=null,t.path="/"),t.secure&&e.push("Secure"),t.httpOnly&&e.push("HttpOnly"),typeof t.maxAge=="number"&&(Ynt(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(znt(t.domain),e.push(`Domain=${t.domain}`)),t.path&&(Lle(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${Mle(t.expires)}`),t.sameSite&&e.push(`SameSite=${t.sameSite}`);for(let r of t.unparsed){if(!r.includes("="))throw new Error("Invalid unparsed");let[n,...s]=r.split("="),o=n.trim(),a=s.join("=");LG(o),MG(a),e.push(`${o}=${a}`)}return e.join("; ")}i(Jnt,"stringify");Fle.exports={isCTLExcludingHtab:Hnt,validateCookieName:LG,validateCookiePath:Lle,validateCookieValue:MG,toIMFDate:Mle,stringify:Jnt}});var qle=S((str,Ule)=>{"use strict";var{maxNameValuePairSize:jnt,maxAttributeValueSize:Knt}=kle(),{isCTLExcludingHtab:Xnt}=FG(),{collectASequenceOfCodePointsFast:rN}=vs(),Znt=require("node:assert");function est(t){if(Xnt(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=rN(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=rN("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>jnt?null:{name:n,value:s,...zA(r)}}i(est,"parseSetCookie");function zA(t,e={}){if(t.length===0)return e;Znt(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=rN(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=rN("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>Knt)return zA(t,e);let o=n.toLowerCase();if(o==="expires"){let a=new Date(s);e.expires=a}else if(o==="max-age"){let a=s.charCodeAt(0);if((a<48||a>57)&&s[0]!=="-"||!/^\d+$/.test(s))return zA(t,e);let c=Number(s);e.maxAge=c}else if(o==="domain"){let a=s;a[0]==="."&&(a=a.slice(1)),a=a.toLowerCase(),e.domain=a}else if(o==="path"){let a="";s.length===0||s[0]!=="/"?a="/":a=s,e.path=a}else if(o==="secure")e.secure=!0;else if(o==="httponly")e.httpOnly=!0;else if(o==="samesite"){let a=s.toLowerCase();a==="none"?e.sameSite="None":a==="strict"?e.sameSite="Strict":a==="lax"&&(e.sameSite="Lax")}else e.unparsed??=[],e.unparsed.push(`${n}=${s}`);return zA(t,e)}i(zA,"parseUnparsedAttributes");Ule.exports={parseSetCookie:est,parseUnparsedAttributes:zA}});var Hle=S((itr,Gle)=>{"use strict";var{parseSetCookie:tst}=qle(),{stringify:rst}=FG(),{webidl:tt}=bn(),{Headers:nN}=Of();function nst(t){tt.argumentLengthCheck(arguments,1,"getCookies"),tt.brandCheck(t,nN,{strict:!1});let e=t.get("cookie"),r={};if(!e)return r;for(let n of e.split(";")){let[s,...o]=n.split("=");r[s.trim()]=o.join("=")}return r}i(nst,"getCookies");function sst(t,e,r){tt.brandCheck(t,nN,{strict:!1});let n="deleteCookie";tt.argumentLengthCheck(arguments,2,n),e=tt.converters.DOMString(e,n,"name"),r=tt.converters.DeleteCookieAttributes(r),$le(t,{name:e,value:"",expires:new Date(0),...r})}i(sst,"deleteCookie");function ost(t){tt.argumentLengthCheck(arguments,1,"getSetCookies"),tt.brandCheck(t,nN,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>tst(r)):[]}i(ost,"getSetCookies");function $le(t,e){tt.argumentLengthCheck(arguments,2,"setCookie"),tt.brandCheck(t,nN,{strict:!1}),e=tt.converters.Cookie(e);let r=rst(e);r&&t.append("Set-Cookie",r)}i($le,"setCookie");tt.converters.DeleteCookieAttributes=tt.dictionaryConverter([{converter:tt.nullableConverter(tt.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);tt.converters.Cookie=tt.dictionaryConverter([{converter:tt.converters.DOMString,key:"name"},{converter:tt.converters.DOMString,key:"value"},{converter:tt.nullableConverter(t=>typeof t=="number"?tt.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:tt.nullableConverter(tt.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:tt.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:tt.sequenceConverter(tt.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);Gle.exports={getCookies:nst,deleteCookie:sst,getSetCookies:ost,setCookie:$le}});var WA=S((ctr,Vle)=>{"use strict";var{webidl:ie}=bn(),{kEnumerableProperty:Os}=Ye(),{kConstruct:zle}=Ht(),{MessagePort:ist}=require("node:worker_threads"),VA=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===zle){super(arguments[1],arguments[2]),ie.util.markAsUncloneable(this);return}let n="MessageEvent constructor";ie.argumentLengthCheck(arguments,1,n),e=ie.converters.DOMString(e,n,"type"),r=ie.converters.MessageEventInit(r,n,"eventInitDict"),super(e,r),this.#e=r,ie.util.markAsUncloneable(this)}get data(){return ie.brandCheck(this,t),this.#e.data}get origin(){return ie.brandCheck(this,t),this.#e.origin}get lastEventId(){return ie.brandCheck(this,t),this.#e.lastEventId}get source(){return ie.brandCheck(this,t),this.#e.source}get ports(){return ie.brandCheck(this,t),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(e,r=!1,n=!1,s=null,o="",a="",c=null,l=[]){return ie.brandCheck(this,t),ie.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent"),new t(e,{bubbles:r,cancelable:n,data:s,origin:o,lastEventId:a,source:c,ports:l})}static createFastMessageEvent(e,r){let n=new t(zle,e,r);return n.#e=r,n.#e.data??=null,n.#e.origin??="",n.#e.lastEventId??="",n.#e.source??=null,n.#e.ports??=[],n}},{createFastMessageEvent:ast}=VA;delete VA.createFastMessageEvent;var sN=class t extends Event{static{i(this,"CloseEvent")}#e;constructor(e,r={}){let n="CloseEvent constructor";ie.argumentLengthCheck(arguments,1,n),e=ie.converters.DOMString(e,n,"type"),r=ie.converters.CloseEventInit(r),super(e,r),this.#e=r,ie.util.markAsUncloneable(this)}get wasClean(){return ie.brandCheck(this,t),this.#e.wasClean}get code(){return ie.brandCheck(this,t),this.#e.code}get reason(){return ie.brandCheck(this,t),this.#e.reason}},oN=class t extends Event{static{i(this,"ErrorEvent")}#e;constructor(e,r){let n="ErrorEvent constructor";ie.argumentLengthCheck(arguments,1,n),super(e,r),ie.util.markAsUncloneable(this),e=ie.converters.DOMString(e,n,"type"),r=ie.converters.ErrorEventInit(r??{}),this.#e=r}get message(){return ie.brandCheck(this,t),this.#e.message}get filename(){return ie.brandCheck(this,t),this.#e.filename}get lineno(){return ie.brandCheck(this,t),this.#e.lineno}get colno(){return ie.brandCheck(this,t),this.#e.colno}get error(){return ie.brandCheck(this,t),this.#e.error}};Object.defineProperties(VA.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:Os,origin:Os,lastEventId:Os,source:Os,ports:Os,initMessageEvent:Os});Object.defineProperties(sN.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:Os,code:Os,wasClean:Os});Object.defineProperties(oN.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:Os,filename:Os,lineno:Os,colno:Os,error:Os});ie.converters.MessagePort=ie.interfaceConverter(ist);ie.converters["sequence<MessagePort>"]=ie.sequenceConverter(ie.converters.MessagePort);var UG=[{key:"bubbles",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];ie.converters.MessageEventInit=ie.dictionaryConverter([...UG,{key:"data",converter:ie.converters.any,defaultValue:i(()=>null,"defaultValue")},{key:"origin",converter:ie.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lastEventId",converter:ie.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"source",converter:ie.nullableConverter(ie.converters.MessagePort),defaultValue:i(()=>null,"defaultValue")},{key:"ports",converter:ie.converters["sequence<MessagePort>"],defaultValue:i(()=>new Array(0),"defaultValue")}]);ie.converters.CloseEventInit=ie.dictionaryConverter([...UG,{key:"wasClean",converter:ie.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"code",converter:ie.converters["unsigned short"],defaultValue:i(()=>0,"defaultValue")},{key:"reason",converter:ie.converters.USVString,defaultValue:i(()=>"","defaultValue")}]);ie.converters.ErrorEventInit=ie.dictionaryConverter([...UG,{key:"message",converter:ie.converters.DOMString,defaultValue:i(()=>"","defaultValue")},{key:"filename",converter:ie.converters.USVString,defaultValue:i(()=>"","defaultValue")},{key:"lineno",converter:ie.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"colno",converter:ie.converters["unsigned long"],defaultValue:i(()=>0,"defaultValue")},{key:"error",converter:ie.converters.any}]);Vle.exports={MessageEvent:VA,CloseEvent:sN,ErrorEvent:oN,createFastMessageEvent:ast}});var $f=S((utr,Wle)=>{"use strict";var cst="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",lst={enumerable:!0,writable:!1,configurable:!1},ust={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},dst={NOT_SENT:0,PROCESSING:1,SENT:2},pst={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},fst=2**16-1,mst={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},hst=Buffer.allocUnsafe(0),Ast={string:1,typedArray:2,arrayBuffer:3,blob:4};Wle.exports={uid:cst,sentCloseFrameState:dst,staticPropertyDescriptors:lst,states:ust,opcodes:pst,maxUnsigned16Bit:fst,parserStates:mst,emptyBuffer:hst,sendHints:Ast}});var MI=S((dtr,Yle)=>{"use strict";Yle.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}});var qI=S((ptr,nue)=>{"use strict";var{kReadyState:FI,kController:gst,kResponse:yst,kBinaryType:Est,kWebSocketURL:Cst}=MI(),{states:UI,opcodes:gd}=$f(),{ErrorEvent:Ist,createFastMessageEvent:Sst}=WA(),{isUtf8:wst}=require("node:buffer"),{collectASequenceOfCodePointsFast:xst,removeHTTPWhitespace:Jle}=vs();function bst(t){return t[FI]===UI.CONNECTING}i(bst,"isConnecting");function Bst(t){return t[FI]===UI.OPEN}i(Bst,"isEstablished");function Rst(t){return t[FI]===UI.CLOSING}i(Rst,"isClosing");function Nst(t){return t[FI]===UI.CLOSED}i(Nst,"isClosed");function qG(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i(qG,"fireEvent");function Tst(t,e,r){if(t[FI]!==UI.OPEN)return;let n;if(e===gd.TEXT)try{n=rue(r)}catch{Kle(t,"Received invalid UTF-8 in text frame.");return}else e===gd.BINARY&&(t[Est]==="blob"?n=new Blob([r]):n=Pst(r));qG("message",t,Sst,{origin:t[Cst].origin,data:n})}i(Tst,"websocketMessageReceived");function Pst(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(Pst,"toArrayBuffer");function _st(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r<33||r>126||r===34||r===40||r===41||r===44||r===47||r===58||r===59||r===60||r===61||r===62||r===63||r===64||r===91||r===92||r===93||r===123||r===125)return!1}return!0}i(_st,"isValidSubprotocol");function vst(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(vst,"isValidStatusCode");function Kle(t,e){let{[gst]:r,[yst]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&qG("error",t,(s,o)=>new Ist(s,o),{error:new Error(e),message:e})}i(Kle,"failWebsocketConnection");function Xle(t){return t===gd.CLOSE||t===gd.PING||t===gd.PONG}i(Xle,"isControlFrame");function Zle(t){return t===gd.CONTINUATION}i(Zle,"isContinuationFrame");function eue(t){return t===gd.TEXT||t===gd.BINARY}i(eue,"isTextBinaryFrame");function Qst(t){return eue(t)||Zle(t)||Xle(t)}i(Qst,"isValidOpcode");function Dst(t){let e={position:0},r=new Map;for(;e.position<t.length;){let n=xst(";",t,e),[s,o=""]=n.split("=");r.set(Jle(s,!0,!1),Jle(o,!1,!0)),e.position++}return r}i(Dst,"parseExtensions");function kst(t){if(t.length===0)return!1;for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(n<48||n>57)return!1}let e=Number.parseInt(t,10);return e>=8&&e<=15}i(kst,"isValidClientWindowBits");var tue=typeof process.versions.icu=="string",jle=tue?new TextDecoder("utf-8",{fatal:!0}):void 0,rue=tue?jle.decode.bind(jle):function(t){if(wst(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};nue.exports={isConnecting:bst,isEstablished:Bst,isClosing:Rst,isClosed:Nst,fireEvent:qG,isValidSubprotocol:_st,isValidStatusCode:vst,failWebsocketConnection:Kle,websocketMessageReceived:Tst,utf8Decode:rue,isControlFrame:Xle,isContinuationFrame:Zle,isTextBinaryFrame:eue,isValidOpcode:Qst,parseExtensions:Dst,isValidClientWindowBits:kst}});var aN=S((mtr,sue)=>{"use strict";var{maxUnsigned16Bit:Ost}=$f(),iN=16386,$G,$I=null,YA=iN;try{$G=require("node:crypto")}catch{$G={randomFillSync:i(function(e,r,n){for(let s=0;s<e.length;++s)e[s]=Math.random()*255|0;return e},"randomFillSync")}}function Lst(){return YA===iN&&(YA=0,$G.randomFillSync($I??=Buffer.allocUnsafe(iN),0,iN)),[$I[YA++],$I[YA++],$I[YA++],$I[YA++]]}i(Lst,"generateMask");var GG=class{static{i(this,"WebsocketFrameSend")}constructor(e){this.frameData=e}createFrame(e){let r=this.frameData,n=Lst(),s=r?.byteLength??0,o=s,a=6;s>Ost?(a+=8,o=127):s>125&&(a+=2,o=126);let c=Buffer.allocUnsafe(s+a);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e;c[a-4]=n[0],c[a-3]=n[1],c[a-2]=n[2],c[a-1]=n[3],c[1]=o,o===126?c.writeUInt16BE(s,2):o===127&&(c[2]=c[3]=0,c.writeUIntBE(s,4,6)),c[1]|=128;for(let l=0;l<s;++l)c[a+l]=r[l]^n[l&3];return c}};sue.exports={WebsocketFrameSend:GG}});var zG=S((Atr,due)=>{"use strict";var{uid:Mst,states:GI,sentCloseFrameState:cN,emptyBuffer:Fst,opcodes:Ust}=$f(),{kReadyState:HI,kSentClose:lN,kByteParser:iue,kReceivedClose:oue,kResponse:aue}=MI(),{fireEvent:qst,failWebsocketConnection:yd,isClosing:$st,isClosed:Gst,isEstablished:Hst,parseExtensions:zst}=qI(),{channels:JA}=aA(),{CloseEvent:Vst}=WA(),{makeRequest:Wst}=qA(),{fetching:Yst}=DI(),{Headers:Jst,getHeadersList:jst}=Of(),{getDecodeSplit:Kst}=Ao(),{WebsocketFrameSend:Xst}=aN(),HG;try{HG=require("node:crypto")}catch{}function Zst(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=Wst({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=jst(new Jst(o.headers));c.headersList=p}let l=HG.randomBytes(16).toString("base64");c.headersList.append("sec-websocket-key",l),c.headersList.append("sec-websocket-version","13");for(let p of e)c.headersList.append("sec-websocket-protocol",p);return c.headersList.append("sec-websocket-extensions","permessage-deflate; client_max_window_bits"),Yst({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){yd(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){yd(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){yd(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){yd(n,'Server did not set Connection header to "upgrade".');return}let f=p.headersList.get("Sec-WebSocket-Accept"),m=HG.createHash("sha1").update(l+Mst).digest("base64");if(f!==m){yd(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let h=p.headersList.get("Sec-WebSocket-Extensions"),A;if(h!==null&&(A=zst(h),!A.has("permessage-deflate"))){yd(n,"Sec-WebSocket-Extensions header does not match.");return}let y=p.headersList.get("Sec-WebSocket-Protocol");if(y!==null){let E=Kst("sec-websocket-protocol",c.headersList);if(E===null||!E.includes(y)){yd(n,"Protocol was not set in the opening handshake.");return}}p.socket.on("data",cue),p.socket.on("close",lue),p.socket.on("error",uue),JA.open.hasSubscribers&&JA.open.publish({address:p.socket.address(),protocol:y,extensions:h}),s(p,A)}})}i(Zst,"establishWebSocketConnection");function eot(t,e,r,n){if(!($st(t)||Gst(t)))if(!Hst(t))yd(t,"Connection was closed before it was established."),t[HI]=GI.CLOSING;else if(t[lN]===cN.NOT_SENT){t[lN]=cN.PROCESSING;let s=new Xst;e!==void 0&&r===void 0?(s.frameData=Buffer.allocUnsafe(2),s.frameData.writeUInt16BE(e,0)):e!==void 0&&r!==void 0?(s.frameData=Buffer.allocUnsafe(2+n),s.frameData.writeUInt16BE(e,0),s.frameData.write(r,2,"utf-8")):s.frameData=Fst,t[aue].socket.write(s.createFrame(Ust.CLOSE)),t[lN]=cN.SENT,t[HI]=GI.CLOSING}else t[HI]=GI.CLOSING}i(eot,"closeWebSocketConnection");function cue(t){this.ws[iue].write(t)||this.pause()}i(cue,"onSocketData");function lue(){let{ws:t}=this,{[aue]:e}=t;e.socket.off("data",cue),e.socket.off("close",lue),e.socket.off("error",uue);let r=t[lN]===cN.SENT&&t[oue],n=1005,s="",o=t[iue].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[oue]||(n=1006),t[HI]=GI.CLOSED,qst("close",t,(a,c)=>new Vst(a,c),{wasClean:r,code:n,reason:s}),JA.close.hasSubscribers&&JA.close.publish({websocket:t,code:n,reason:s})}i(lue,"onSocketClose");function uue(t){let{ws:e}=this;e[HI]=GI.CLOSING,JA.socketError.hasSubscribers&&JA.socketError.publish(t),this.destroy()}i(uue,"onSocketError");due.exports={establishWebSocketConnection:Zst,closeWebSocketConnection:eot}});var fue=S((ytr,pue)=>{"use strict";var{createInflateRaw:tot,Z_DEFAULT_WINDOWBITS:rot}=require("node:zlib"),{isValidClientWindowBits:not}=qI(),{MessageSizeExceededError:sot}=at(),oot=Buffer.from([0,0,255,255]),uN=Symbol("kBuffer"),zI=Symbol("kLength"),VG=class{static{i(this,"PerMessageDeflate")}#e;#t={};#n=0;constructor(e,r){this.#t.serverNoContextTakeover=e.has("server_no_context_takeover"),this.#t.serverMaxWindowBits=e.get("server_max_window_bits"),this.#n=r.maxPayloadSize}decompress(e,r,n){if(!this.#e){let s=rot;if(this.#t.serverMaxWindowBits){if(!not(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=tot({windowBits:s})}catch(o){n(o);return}this.#e[uN]=[],this.#e[zI]=0,this.#e.on("data",o=>{if(this.#e[zI]+=o.length,this.#n>0&&this.#e[zI]>this.#n){n(new sot),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[uN].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write(oot),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[uN],this.#e[zI]);this.#e[uN].length=0,this.#e[zI]=0,n(null,s)})}};pue.exports={PerMessageDeflate:VG}});var Sue=S((Ctr,Iue)=>{"use strict";var{Writable:iot}=require("node:stream"),aot=require("node:assert"),{parserStates:Ls,opcodes:jA,states:cot,emptyBuffer:mue,sentCloseFrameState:hue}=$f(),{kReadyState:lot,kSentClose:Aue,kResponse:WG,kReceivedClose:gue}=MI(),{channels:dN}=aA(),{isValidStatusCode:uot,isValidOpcode:dot,failWebsocketConnection:xo,websocketMessageReceived:yue,utf8Decode:pot,isControlFrame:YG,isTextBinaryFrame:JG,isContinuationFrame:fot}=qI(),{WebsocketFrameSend:Eue}=aN(),{closeWebSocketConnection:Cue}=zG(),{PerMessageDeflate:mot}=fue(),{MessageSizeExceededError:jG}=at();function VI(t,e,r){Cue(t,e,r,Buffer.byteLength(r)),xo(t,r)}i(VI,"failWebsocketConnectionWithCode");var KG=class extends iot{static{i(this,"ByteParser")}#e=[];#t=0;#n=0;#r=!1;#s=Ls.INFO;#o={};#i=[];#a;#l;#c;constructor(e,r,n={}){super(),this.ws=e,this.#a=r??new Map,this.#l=n.maxFragments??0,this.#c=n.maxPayloadSize??0,this.#a.has("permessage-deflate")&&this.#a.set("permessage-deflate",new mot(r,n))}_write(e,r,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#u(){return this.#c>0&&!YG(this.#o.opcode)&&this.#o.payloadLength+this.#t>this.#c?(VI(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#r;)if(this.#s===Ls.INFO){if(this.#n<2)return e();let r=this.consume(2),n=(r[0]&128)!==0,s=r[0]&15,o=(r[1]&128)===128,a=!n&&s!==jA.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!dot(s))return xo(this.ws,"Invalid opcode received"),e();if(o)return xo(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){xo(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){xo(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!JG(s)){xo(this.ws,"Invalid frame type was fragmented.");return}if(JG(s)&&this.#i.length>0){xo(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&a){xo(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&YG(s)){xo(this.ws,"Control frame either too large or fragmented");return}if(fot(s)&&this.#i.length===0&&!this.#o.compressed){xo(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#o.payloadLength=c,this.#s=Ls.READ_DATA,!this.#u())return}else c===126?this.#s=Ls.PAYLOADLENGTH_16:c===127&&(this.#s=Ls.PAYLOADLENGTH_64);JG(s)&&(this.#o.binaryType=s,this.#o.compressed=l!==0),this.#o.opcode=s,this.#o.masked=o,this.#o.fin=n,this.#o.fragmented=a}else if(this.#s===Ls.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#o.payloadLength=r.readUInt16BE(0),this.#s=Ls.READ_DATA,!this.#u())return}else if(this.#s===Ls.PAYLOADLENGTH_64){if(this.#n<8)return e();let r=this.consume(8),n=r.readUInt32BE(0),s=r.readUInt32BE(4);if(n!==0||s>2**31-1){xo(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#o.payloadLength=s,this.#s=Ls.READ_DATA,!this.#u())return}else if(this.#s===Ls.READ_DATA){if(this.#n<this.#o.payloadLength)return e();let r=this.consume(this.#o.payloadLength);if(YG(this.#o.opcode)){this.#r=this.parseControlFrame(r),this.#s=Ls.INFO;let n=this.ws[WG].socket;if(this.#r&&n.writableNeedDrain){this.#r=!1,n.once("drain",()=>{this.destroyed||(this.#r=!0,this.run(e))});return}}else if(this.#o.compressed){this.#a.get("permessage-deflate").decompress(r,this.#o.fin,(n,s)=>{if(n){let o=n instanceof jG?1009:1007;VI(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){VI(this.ws,1009,new jG().message);return}if(!this.#o.fin){this.#s=Ls.INFO,this.#r=!0,this.run(e);return}yue(this.ws,this.#o.binaryType,this.consumeFragments()),this.#r=!0,this.#s=Ls.INFO,this.run(e)}}),this.#r=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){VI(this.ws,1009,new jG().message);return}!this.#o.fragmented&&this.#o.fin&&yue(this.ws,this.#o.binaryType,this.consumeFragments()),this.#s=Ls.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return mue;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let r=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let s=this.#e[0],{length:o}=s;if(o+n===e){r.set(this.#e.shift(),n);break}else if(o+n>e){r.set(s.subarray(0,e-n),n),this.#e[0]=s.subarray(e-n);break}else r.set(this.#e.shift(),n),n+=s.length}return this.#n-=e,r}writeFragments(e){return this.#l>0&&this.#i.length===this.#l?(VI(this.ws,1008,"Too many message fragments"),!1):(this.#t+=e.length,this.#i.push(e),!0)}consumeFragments(){let e=this.#i;if(e.length===1)return this.#t=0,e.shift();let r=Buffer.concat(e,this.#t);return this.#i=[],this.#t=0,r}parseCloseBody(e){aot(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!uot(r))return{code:1002,reason:"Invalid status code",error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=pot(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:!0}}return{code:r,reason:n,error:!1}}parseControlFrame(e){let{opcode:r,payloadLength:n}=this.#o;if(r===jA.CLOSE){if(n===1)return xo(this.ws,"Received close frame with a 1-byte body."),!1;if(this.#o.closeInfo=this.parseCloseBody(e),this.#o.closeInfo.error){let{code:s,reason:o}=this.#o.closeInfo;return Cue(this.ws,s,o,o.length),xo(this.ws,o),!1}if(this.ws[Aue]!==hue.SENT){let s=mue;this.#o.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#o.closeInfo.code,0));let o=new Eue(s);this.ws[WG].socket.write(o.createFrame(jA.CLOSE),a=>{a||(this.ws[Aue]=hue.SENT)})}return this.ws[lot]=cot.CLOSING,this.ws[gue]=!0,!1}else if(r===jA.PING){if(!this.ws[gue]){let s=new Eue(e);this.ws[WG].socket.write(s.createFrame(jA.PONG)),dN.ping.hasSubscribers&&dN.ping.publish({payload:e})}}else r===jA.PONG&&dN.pong.hasSubscribers&&dN.pong.publish({payload:e});return!0}get closingInfo(){return this.#o.closeInfo}};Iue.exports={ByteParser:KG}});var Rue=S((Str,Bue)=>{"use strict";var{WebsocketFrameSend:hot}=aN(),{opcodes:wue,sendHints:KA}=$f(),Aot=r$(),xue=Buffer[Symbol.species],XG=class{static{i(this,"SendQueue")}#e=new Aot;#t=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==KA.blob){let o=bue(e,n);if(!this.#t)this.#n.write(o,r);else{let a={promise:null,callback:r,frame:o};this.#e.push(a)}return}let s={promise:e.arrayBuffer().then(o=>{s.promise=null,s.frame=bue(o,n)}),callback:r,frame:null};this.#e.push(s),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let r=e.shift();r.promise!==null&&await r.promise,this.#n.write(r.frame,r.callback),r.callback=r.frame=null}this.#t=!1}};function bue(t,e){return new hot(got(t,e)).createFrame(e===KA.string?wue.TEXT:wue.BINARY)}i(bue,"createFrame");function got(t,e){switch(e){case KA.string:return Buffer.from(t);case KA.arrayBuffer:case KA.blob:return new xue(t);case KA.typedArray:return new xue(t.buffer,t.byteOffset,t.byteLength)}}i(got,"toBuffer");Bue.exports={SendQueue:XG}});var Lue=S((xtr,Oue)=>{"use strict";var{webidl:Pe}=bn(),{URLSerializer:yot}=vs(),{environmentSettingsObject:Nue}=Ao(),{staticPropertyDescriptors:Ed,states:WI,sentCloseFrameState:Eot,sendHints:pN}=$f(),{kWebSocketURL:Tue,kReadyState:ZG,kController:Pue,kBinaryType:fN,kResponse:_ue,kSentClose:Cot,kByteParser:Iot}=MI(),{isConnecting:Sot,isEstablished:wot,isClosing:xot,isValidSubprotocol:bot,fireEvent:vue}=qI(),{establishWebSocketConnection:Bot,closeWebSocketConnection:Que}=zG(),{ByteParser:Rot}=Sue(),{kEnumerableProperty:ai,isBlobLike:Due}=Ye(),{getGlobalDispatcher:Not}=TI(),{types:kue}=require("node:util"),{ErrorEvent:Tot,CloseEvent:Pot}=WA(),{SendQueue:_ot}=Rue(),bo=class t extends EventTarget{static{i(this,"WebSocket")}#e={open:null,error:null,close:null,message:null};#t=0;#n="";#r="";#s;constructor(e,r=[]){super(),Pe.util.markAsUncloneable(this);let n="WebSocket constructor";Pe.argumentLengthCheck(arguments,1,n);let s=Pe.converters["DOMString or sequence<DOMString> or WebSocketInit"](r,n,"options");e=Pe.converters.USVString(e,n,"url"),r=s.protocols;let o=Nue.settingsObject.baseUrl,a;try{a=new URL(e,o)}catch(l){throw new DOMException(l,"SyntaxError")}if(a.protocol==="http:"?a.protocol="ws:":a.protocol==="https:"&&(a.protocol="wss:"),a.protocol!=="ws:"&&a.protocol!=="wss:")throw new DOMException(`Expected a ws: or wss: protocol, got ${a.protocol}`,"SyntaxError");if(a.hash||a.href.endsWith("#"))throw new DOMException("Got fragment","SyntaxError");if(typeof r=="string"&&(r=[r]),r.length!==new Set(r.map(l=>l.toLowerCase())).size)throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(r.length>0&&!r.every(l=>bot(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[Tue]=new URL(a.href);let c=Nue.settingsObject;this[Pue]=Bot(a,r,c,this,(l,u)=>this.#o(l,u),s),this[ZG]=t.CONNECTING,this[Cot]=Eot.NOT_SENT,this[fN]="blob"}close(e=void 0,r=void 0){Pe.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=Pe.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=Pe.converters.USVString(r,n,"reason")),e!==void 0&&e!==1e3&&(e<3e3||e>4999))throw new DOMException("invalid code","InvalidAccessError");let s=0;if(r!==void 0&&(s=Buffer.byteLength(r),s>123))throw new DOMException(`Reason must be less than 123 bytes; received ${s}`,"SyntaxError");Que(this,e,r,s)}send(e){Pe.brandCheck(this,t);let r="WebSocket.send";if(Pe.argumentLengthCheck(arguments,1,r),e=Pe.converters.WebSocketSendData(e,r,"data"),Sot(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!wot(this)||xot(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#s.add(e,()=>{this.#t-=n},pN.string)}else kue.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},pN.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},pN.typedArray)):Due(e)&&(this.#t+=e.size,this.#s.add(e,()=>{this.#t-=e.size},pN.blob))}get readyState(){return Pe.brandCheck(this,t),this[ZG]}get bufferedAmount(){return Pe.brandCheck(this,t),this.#t}get url(){return Pe.brandCheck(this,t),yot(this[Tue])}get extensions(){return Pe.brandCheck(this,t),this.#r}get protocol(){return Pe.brandCheck(this,t),this.#n}get onopen(){return Pe.brandCheck(this,t),this.#e.open}set onopen(e){Pe.brandCheck(this,t),this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onerror(){return Pe.brandCheck(this,t),this.#e.error}set onerror(e){Pe.brandCheck(this,t),this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}get onclose(){return Pe.brandCheck(this,t),this.#e.close}set onclose(e){Pe.brandCheck(this,t),this.#e.close&&this.removeEventListener("close",this.#e.close),typeof e=="function"?(this.#e.close=e,this.addEventListener("close",e)):this.#e.close=null}get onmessage(){return Pe.brandCheck(this,t),this.#e.message}set onmessage(e){Pe.brandCheck(this,t),this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get binaryType(){return Pe.brandCheck(this,t),this[fN]}set binaryType(e){Pe.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[fN]="blob":this[fN]=e}#o(e,r){this[_ue]=e;let n=this[Pue]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new Rot(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",vot),a.on("error",Qot.bind(this)),e.socket.ws=this,this[Iot]=a,this.#s=new _ot(e.socket),this[ZG]=WI.OPEN;let c=e.headersList.get("sec-websocket-extensions");c!==null&&(this.#r=c);let l=e.headersList.get("sec-websocket-protocol");l!==null&&(this.#n=l),vue("open",this)}};bo.CONNECTING=bo.prototype.CONNECTING=WI.CONNECTING;bo.OPEN=bo.prototype.OPEN=WI.OPEN;bo.CLOSING=bo.prototype.CLOSING=WI.CLOSING;bo.CLOSED=bo.prototype.CLOSED=WI.CLOSED;Object.defineProperties(bo.prototype,{CONNECTING:Ed,OPEN:Ed,CLOSING:Ed,CLOSED:Ed,url:ai,readyState:ai,bufferedAmount:ai,onopen:ai,onerror:ai,onclose:ai,close:ai,onmessage:ai,binaryType:ai,send:ai,extensions:ai,protocol:ai,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(bo,{CONNECTING:Ed,OPEN:Ed,CLOSING:Ed,CLOSED:Ed});Pe.converters["sequence<DOMString>"]=Pe.sequenceConverter(Pe.converters.DOMString);Pe.converters["DOMString or sequence<DOMString>"]=function(t,e,r){return Pe.util.Type(t)==="Object"&&Symbol.iterator in t?Pe.converters["sequence<DOMString>"](t):Pe.converters.DOMString(t,e,r)};Pe.converters.WebSocketInit=Pe.dictionaryConverter([{key:"protocols",converter:Pe.converters["DOMString or sequence<DOMString>"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:Pe.converters.any,defaultValue:i(()=>Not(),"defaultValue")},{key:"headers",converter:Pe.nullableConverter(Pe.converters.HeadersInit)}]);Pe.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(t){return Pe.util.Type(t)==="Object"&&!(Symbol.iterator in t)?Pe.converters.WebSocketInit(t):{protocols:Pe.converters["DOMString or sequence<DOMString>"](t)}};Pe.converters.WebSocketSendData=function(t){if(Pe.util.Type(t)==="Object"){if(Due(t))return Pe.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||kue.isArrayBuffer(t))return Pe.converters.BufferSource(t)}return Pe.converters.USVString(t)};function vot(){this.ws[_ue].socket.resume()}i(vot,"onParserDrain");function Qot(t){let e,r;t instanceof Pot?(e=t.reason,r=t.code):e=t.message,vue("error",this,()=>new Tot("error",{error:t,message:e})),Que(this,r)}i(Qot,"onParserError");Oue.exports={WebSocket:bo}});var eH=S((Btr,Mue)=>{"use strict";function Dot(t){return t.indexOf("\0")===-1}i(Dot,"isValidLastEventId");function kot(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++)if(t.charCodeAt(e)<48||t.charCodeAt(e)>57)return!1;return!0}i(kot,"isASCIINumber");function Oot(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(Oot,"delay");Mue.exports={isValidLastEventId:Dot,isASCIINumber:kot,delay:Oot}});var Uue=S((Ntr,Fue)=>{"use strict";var Lot=require("node:buffer"),{Transform:Mot}=require("node:stream"),{isASCIINumber:Fot,isValidLastEventId:Uot}=eH(),XA=[239,187,191],mN=10,YI=13,qot=58,$ot=32,Got=Lot.kStringMaxLength,Hot=Buffer.from("data"),zot=Buffer.from("event"),Vot=Buffer.from("id"),Wot=Buffer.from("retry"),Yot=1024,Jot=131072,jot=128;function Kot(t,e){if(e>=t.length)return!1;for(let r=e;r<t.length;r++)if(t[r]<48||t[r]>57)return!1;return!0}i(Kot,"isASCIINumberBytes");function Xot(t,e){for(let r=e;r<t.length;r++)if(t[r]===0)return!1;return!0}i(Xot,"isValidLastEventIdBytes");function hN(t,e,r){if(e!==r.length)return!1;for(let n=0;n<e;n++)if(t[n]!==r[n])return!1;return!0}i(hN,"isFieldName");function AN(){let t=new Error("EventSource message size exceeded");return t.aborted=!1,t}i(AN,"createMaxEventSizeExceededError");var tH=class extends Mot{static{i(this,"EventSourceStream")}state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;chunks=[];chunkIndex=0;pos=0;lineChunkIndex=0;linePos=0;lineLength=0;eventSize=0;eventFieldSizes={data:0,event:0,id:0,retry:0};dataLineCount=0;maxEventSize;maxDataLines;maxBufferedChunks;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},this.maxEventSize=e.maxEventSize??Got;let r=this.maxEventSize>0?Math.min(Jot,Math.max(Yot,Math.floor(this.maxEventSize/jot))):0;this.maxDataLines=r,this.maxBufferedChunks=r,e.push&&(this.push=e.push)}_transform(e,r,n){if(e.length===0){n();return}if(this.maxEventSize>0&&this.chunks.length>=this.maxBufferedChunks&&e[0]!==mN&&e[0]!==YI){n(AN());return}if(this.chunks.push(e),this.checkBOM&&this.handleBOM()){n();return}for(;this.hasCurrentByte();){let s=this.currentByte();if(this.eventEndCheck){if(this.crlfCheck){if(s===mN){this.crlfCheck=!1,this.consumeCurrentByte();continue}this.crlfCheck=!1}if(s===mN||s===YI){s===YI&&(this.crlfCheck=!0),this.consumeCurrentByte(),this.hasPendingEvent()&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(s===mN||s===YI){s===YI&&(this.crlfCheck=!0);try{this.parseLine(this.readLine(),this.event)}catch(o){n(o);return}this.consumeCurrentByte(),this.eventEndCheck=!0;continue}if(this.maxEventSize>0&&++this.lineLength>this.maxEventSize+7){n(AN());return}this.advanceCursor()}n()}_destroy(e,r){this.chunks.length=0,this.clearEvent(),super._destroy(e,r)}parseLine(e,r){if(e.length===0)return;let n=e.indexOf(qot);if(n===0)return;let s=e.length,o=e.length;if(n!==-1&&(s=n,o=n+1,e[o]===$ot&&++o),hN(e,s,Hot)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines)throw AN();let a=e.length-o,c=this.eventFieldSizes.data+(r.data===void 0?0:1)+a;this.setEventFieldSize("data",c);let l=e.toString("utf8",o);r.data===void 0?r.data=l:r.data+=`
|
|
${l}`,this.dataLineCount++;return}if(hN(e,s,Wot)){Kot(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(hN(e,s,Vot)){Xot(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}hN(e,s,zot)&&o<e.length&&(this.setEventFieldSize("event",e.length-o),r.event=e.toString("utf8",o))}setEventFieldSize(e,r){let n=this.eventSize-this.eventFieldSizes[e]+r;if(this.maxEventSize>0&&n>this.maxEventSize)throw AN();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&Fot(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Uot(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event.data=void 0,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0,this.eventSize=0,this.dataLineCount=0,this.eventFieldSizes.data=0,this.eventFieldSizes.event=0,this.eventFieldSizes.id=0,this.eventFieldSizes.retry=0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.lineLength=0,this.dropConsumedChunks()}dropConsumedChunks(){if(this.lineChunkIndex>0){let e=this.lineChunkIndex;this.chunks.splice(0,e),this.lineChunkIndex=0,this.chunkIndex-=e}this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],o=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:s.length,c=s.subarray(o,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],o=s.length-n;if(e<o)return s[n+e];e-=o,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===XA[0]||(this.checkBOM=!1),!0):n===void 0?e===XA[0]&&r===XA[1]?!0:(this.checkBOM=!1,!1):(e===XA[0]&&r===XA[1]&&n===XA[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Fue.exports={EventSourceStream:tH}});var Yue=S((Ptr,Wue)=>{"use strict";var{pipeline:Zot}=require("node:stream"),{fetching:eit}=DI(),{makeRequest:tit}=qA(),{webidl:lu}=bn(),{EventSourceStream:rit}=Uue(),{parseMIMEType:nit}=vs(),{createFastMessageEvent:sit}=WA(),{isNetworkError:que}=vI(),{delay:oit}=eH(),{kEnumerableProperty:Gf}=Ye(),{environmentSettingsObject:$ue}=Ao(),{getGlobalDispatcher:iit}=TI(),Gue=!1,Hue=3e3,JI=0,zue=1,jI=2,ait="anonymous",cit="use-credentials",ZA=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=JI;#s=null;#o=null;#i;#a;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),Gue||(Gue=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Hue};let s=$ue,o;try{o=new URL(e,s.settingsObject.baseUrl),this.#a.origin=o.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=o.href;let a=ait;r.withCredentials&&(a=cit,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=$ue.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=tit(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===jI)return;this.#r=JI;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{que(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(que(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),o=s!==null?nit(s):"failure",a=o!=="failure"&&o.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=zue,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new rit({eventSourceSettings:this.#a,maxEventSize:this.#i.eventSourceOptions?.maxEventSize,push:i(l=>{this.dispatchEvent(sit(l.type,l.options))},"push")});Zot(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=eit(e)}async#c(){this.#r!==jI&&(this.#r=JI,this.dispatchEvent(new Event("error")),await oit(this.#a.reconnectionTime),this.#r===JI&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){lu.brandCheck(this,t),this.#r!==jI&&(this.#r=jI,this.#o.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Vue={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:JI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zue,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:jI,writable:!1}};Object.defineProperties(ZA,Vue);Object.defineProperties(ZA.prototype,Vue);Object.defineProperties(ZA.prototype,{close:Gf,onerror:Gf,onmessage:Gf,onopen:Gf,readyState:Gf,url:Gf,withCredentials:Gf});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:lu.converters.any,defaultValue:i(()=>iit(),"defaultValue")}]);Wue.exports={EventSource:ZA,defaultReconnectionTime:Hue}});var Hf=S((vtr,Se)=>{"use strict";var lit=RA(),Jue=KC(),uit=NA(),dit=Joe(),pit=TA(),fit=S$(),mit=Eie(),hit=Bie(),jue=at(),yN=Ye(),{InvalidArgumentError:gN}=jue,eg=pae(),Ait=ZC(),git=nG(),yit=Yae(),Eit=iG(),Cit=H$(),Iit=ER(),{getGlobalDispatcher:Kue,setGlobalDispatcher:Sit}=TI(),wit=TR(),xit=cR(),bit=lR();Object.assign(Jue.prototype,eg);Se.exports.Dispatcher=Jue;Se.exports.Client=lit;Se.exports.Pool=uit;Se.exports.BalancedPool=dit;Se.exports.Agent=pit;Se.exports.ProxyAgent=fit;Se.exports.EnvHttpProxyAgent=mit;Se.exports.RetryAgent=hit;Se.exports.RetryHandler=Iit;Se.exports.DecoratorHandler=wit;Se.exports.RedirectHandler=xit;Se.exports.createRedirectInterceptor=bit;Se.exports.interceptors={redirect:tce(),retry:nce(),dump:oce(),dns:cce()};Se.exports.buildConnector=Ait;Se.exports.errors=jue;Se.exports.util={parseHeaders:yN.parseHeaders,headerNameToString:yN.headerNameToString};function KI(t){return(e,r,n)=>{if(typeof r=="function"&&(n=r,r=null),!e||typeof e!="string"&&typeof e!="object"&&!(e instanceof URL))throw new gN("invalid url");if(r!=null&&typeof r!="object")throw new gN("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new gN("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(yN.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=yN.parseURL(e);let{agent:s,dispatcher:o=Kue()}=r;if(s)throw new gN("unsupported opts.agent. Did you mean opts.client?");return t.call(o,{...r,origin:e.origin,path:e.search?`${e.pathname}${e.search}`:e.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}i(KI,"makeDispatcher");Se.exports.setGlobalDispatcher=Sit;Se.exports.getGlobalDispatcher=Kue;var Bit=DI().fetch;Se.exports.fetch=i(async function(e,r=void 0){try{return await Bit(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Se.exports.Headers=Of().Headers;Se.exports.Response=vI().Response;Se.exports.Request=qA().Request;Se.exports.FormData=iI().FormData;Se.exports.File=globalThis.File??require("node:buffer").File;Se.exports.FileReader=xle().FileReader;var{setGlobalOrigin:Rit,getGlobalOrigin:Nit}=Iq();Se.exports.setGlobalOrigin=Rit;Se.exports.getGlobalOrigin=Nit;var{CacheStorage:Tit}=Qle(),{kConstruct:Pit}=jR();Se.exports.caches=new Tit(Pit);var{deleteCookie:_it,getCookies:vit,getSetCookies:Qit,setCookie:Dit}=Hle();Se.exports.deleteCookie=_it;Se.exports.getCookies=vit;Se.exports.getSetCookies=Qit;Se.exports.setCookie=Dit;var{parseMIMEType:kit,serializeAMimeType:Oit}=vs();Se.exports.parseMIMEType=kit;Se.exports.serializeAMimeType=Oit;var{CloseEvent:Lit,ErrorEvent:Mit,MessageEvent:Fit}=WA();Se.exports.WebSocket=Lue().WebSocket;Se.exports.CloseEvent=Lit;Se.exports.ErrorEvent=Mit;Se.exports.MessageEvent=Fit;Se.exports.request=KI(eg.request);Se.exports.stream=KI(eg.stream);Se.exports.pipeline=KI(eg.pipeline);Se.exports.connect=KI(eg.connect);Se.exports.upgrade=KI(eg.upgrade);Se.exports.MockClient=git;Se.exports.MockPool=Eit;Se.exports.MockAgent=yit;Se.exports.mockErrors=Cit;var{EventSource:Uit}=Yue();Se.exports.EventSource=Uit});var lS=S((pnr,Dde)=>{"use strict";var mat="2.0.0",hat=Number.MAX_SAFE_INTEGER||9007199254740991,Aat=16,gat=250,yat=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Dde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Aat,MAX_SAFE_BUILD_LENGTH:gat,MAX_SAFE_INTEGER:hat,RELEASE_TYPES:yat,SEMVER_SPEC_VERSION:mat,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var uS=S((fnr,kde)=>{"use strict";var Eat=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};kde.exports=Eat});var sg=S((pc,Ode)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:IH,MAX_SAFE_BUILD_LENGTH:Cat,MAX_LENGTH:Iat}=lS(),Sat=uS();pc=Ode.exports={};var wat=pc.re=[],xat=pc.safeRe=[],G=pc.src=[],bat=pc.safeSrc=[],H=pc.t={},Bat=0,SH="[a-zA-Z0-9-]",Rat=[["\\s",1],["\\d",Iat],[SH,Cat]],Nat=i(t=>{for(let[e,r]of Rat)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Oe=i((t,e,r)=>{let n=Nat(e),s=Bat++;Sat(t,s,e),H[t]=s,G[s]=e,bat[s]=n,wat[s]=new RegExp(e,r?"g":void 0),xat[s]=new RegExp(n,r?"g":void 0)},"createToken");Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","\\d+");Oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${SH}*`);Oe("MAINVERSION",`(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})\\.(${G[H.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})\\.(${G[H.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${G[H.NONNUMERICIDENTIFIER]}|${G[H.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASE",`(?:-(${G[H.PRERELEASEIDENTIFIER]}(?:\\.${G[H.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${G[H.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${G[H.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER",`${SH}+`);Oe("BUILD",`(?:\\+(${G[H.BUILDIDENTIFIER]}(?:\\.${G[H.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${G[H.MAINVERSION]}${G[H.PRERELEASE]}?${G[H.BUILD]}?`);Oe("FULL",`^${G[H.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${G[H.MAINVERSIONLOOSE]}${G[H.PRERELEASELOOSE]}?${G[H.BUILD]}?`);Oe("LOOSE",`^${G[H.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${G[H.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${G[H.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:\\.(${G[H.XRANGEIDENTIFIER]})(?:${G[H.PRERELEASE]})?${G[H.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:\\.(${G[H.XRANGEIDENTIFIERLOOSE]})(?:${G[H.PRERELEASELOOSE]})?${G[H.BUILD]}?)?)?`);Oe("XRANGE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${G[H.GTLT]}\\s*${G[H.XRANGEPLAINLOOSE]}$`);Oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${IH}})(?:\\.(\\d{1,${IH}}))?(?:\\.(\\d{1,${IH}}))?`);Oe("COERCE",`${G[H.COERCEPLAIN]}(?:$|[^\\d])`);Oe("COERCEFULL",G[H.COERCEPLAIN]+`(?:${G[H.PRERELEASE]})?(?:${G[H.BUILD]})?(?:$|[^\\d])`);Oe("COERCERTL",G[H.COERCE],!0);Oe("COERCERTLFULL",G[H.COERCEFULL],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${G[H.LONETILDE]}\\s+`,!0);pc.tildeTrimReplace="$1~";Oe("TILDE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${G[H.LONETILDE]}${G[H.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${G[H.LONECARET]}\\s+`,!0);pc.caretTrimReplace="$1^";Oe("CARET",`^${G[H.LONECARET]}${G[H.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${G[H.LONECARET]}${G[H.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${G[H.GTLT]}\\s*(${G[H.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${G[H.GTLT]}\\s*(${G[H.LOOSEPLAIN]}|${G[H.XRANGEPLAIN]})`,!0);pc.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${G[H.XRANGEPLAIN]})\\s+-\\s+(${G[H.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${G[H.XRANGEPLAINLOOSE]})\\s+-\\s+(${G[H.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var RN=S((hnr,Lde)=>{"use strict";var Tat=Object.freeze({loose:!0}),Pat=Object.freeze({}),_at=i(t=>t?typeof t!="object"?Tat:t:Pat,"parseOptions");Lde.exports=_at});var wH=S((gnr,Ude)=>{"use strict";var Mde=/^[0-9]+$/,Fde=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Mde.test(t),n=Mde.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),vat=i((t,e)=>Fde(e,t),"rcompareIdentifiers");Ude.exports={compareIdentifiers:Fde,rcompareIdentifiers:vat}});var Gn=S((Enr,$de)=>{"use strict";var NN=uS(),{MAX_LENGTH:qde,MAX_SAFE_INTEGER:TN}=lS(),{safeRe:PN,t:_N}=sg(),Qat=RN(),{compareIdentifiers:xH}=wH(),bH=class t{static{i(this,"SemVer")}constructor(e,r){if(r=Qat(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>qde)throw new TypeError(`version is longer than ${qde} characters`);NN("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?PN[_N.LOOSE]:PN[_N.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>TN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>TN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>TN||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<TN)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(NN("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(NN("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return xH(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(NN("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return xH(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?PN[_N.PRERELEASELOOSE]:PN[_N.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];n===!1&&(o=[r]),xH(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};$de.exports=bH});var jf=S((Inr,Hde)=>{"use strict";var Gde=Gn(),Dat=i((t,e,r=!1)=>{if(t instanceof Gde)return t;try{return new Gde(t,e)}catch(n){if(!r)return null;throw n}},"parse");Hde.exports=Dat});var Vde=S((wnr,zde)=>{"use strict";var kat=jf(),Oat=i((t,e)=>{let r=kat(t,e);return r?r.version:null},"valid");zde.exports=Oat});var Yde=S((bnr,Wde)=>{"use strict";var Lat=jf(),Mat=i((t,e)=>{let r=Lat(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Wde.exports=Mat});var Kde=S((Rnr,jde)=>{"use strict";var Jde=Gn(),Fat=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Jde(t instanceof Jde?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");jde.exports=Fat});var epe=S((Tnr,Zde)=>{"use strict";var Xde=jf(),Uat=i((t,e)=>{let r=Xde(t,null,!0),n=Xde(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Zde.exports=Uat});var rpe=S((_nr,tpe)=>{"use strict";var qat=Gn(),$at=i((t,e)=>new qat(t,e).major,"major");tpe.exports=$at});var spe=S((Qnr,npe)=>{"use strict";var Gat=Gn(),Hat=i((t,e)=>new Gat(t,e).minor,"minor");npe.exports=Hat});var ipe=S((knr,ope)=>{"use strict";var zat=Gn(),Vat=i((t,e)=>new zat(t,e).patch,"patch");ope.exports=Vat});var cpe=S((Lnr,ape)=>{"use strict";var Wat=jf(),Yat=i((t,e)=>{let r=Wat(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");ape.exports=Yat});var li=S((Fnr,upe)=>{"use strict";var lpe=Gn(),Jat=i((t,e,r)=>new lpe(t,r).compare(new lpe(e,r)),"compare");upe.exports=Jat});var ppe=S((qnr,dpe)=>{"use strict";var jat=li(),Kat=i((t,e,r)=>jat(e,t,r),"rcompare");dpe.exports=Kat});var mpe=S((Gnr,fpe)=>{"use strict";var Xat=li(),Zat=i((t,e)=>Xat(t,e,!0),"compareLoose");fpe.exports=Zat});var vN=S((znr,Ape)=>{"use strict";var hpe=Gn(),ect=i((t,e,r)=>{let n=new hpe(t,r),s=new hpe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Ape.exports=ect});var ype=S((Wnr,gpe)=>{"use strict";var tct=vN(),rct=i((t,e)=>t.sort((r,n)=>tct(r,n,e)),"sort");gpe.exports=rct});var Cpe=S((Jnr,Epe)=>{"use strict";var nct=vN(),sct=i((t,e)=>t.sort((r,n)=>nct(n,r,e)),"rsort");Epe.exports=sct});var dS=S((Knr,Ipe)=>{"use strict";var oct=li(),ict=i((t,e,r)=>oct(t,e,r)>0,"gt");Ipe.exports=ict});var QN=S((Znr,Spe)=>{"use strict";var act=li(),cct=i((t,e,r)=>act(t,e,r)<0,"lt");Spe.exports=cct});var BH=S((tsr,wpe)=>{"use strict";var lct=li(),uct=i((t,e,r)=>lct(t,e,r)===0,"eq");wpe.exports=uct});var RH=S((nsr,xpe)=>{"use strict";var dct=li(),pct=i((t,e,r)=>dct(t,e,r)!==0,"neq");xpe.exports=pct});var DN=S((osr,bpe)=>{"use strict";var fct=li(),mct=i((t,e,r)=>fct(t,e,r)>=0,"gte");bpe.exports=mct});var kN=S((asr,Bpe)=>{"use strict";var hct=li(),Act=i((t,e,r)=>hct(t,e,r)<=0,"lte");Bpe.exports=Act});var NH=S((lsr,Rpe)=>{"use strict";var gct=BH(),yct=RH(),Ect=dS(),Cct=DN(),Ict=QN(),Sct=kN(),wct=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return gct(t,r,n);case"!=":return yct(t,r,n);case">":return Ect(t,r,n);case">=":return Cct(t,r,n);case"<":return Ict(t,r,n);case"<=":return Sct(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Rpe.exports=wct});var Tpe=S((dsr,Npe)=>{"use strict";var xct=Gn(),bct=jf(),{safeRe:ON,t:LN}=sg(),Bct=i((t,e)=>{if(t instanceof xct)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?ON[LN.COERCEFULL]:ON[LN.COERCE]);else{let l=e.includePrerelease?ON[LN.COERCERTLFULL]:ON[LN.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return bct(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Npe.exports=Bct});var _pe=S((fsr,Ppe)=>{"use strict";var TH=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Ppe.exports=TH});var ui=S((hsr,kpe)=>{"use strict";var Rct=/\s+/g,PH=class t{static{i(this,"Range")}constructor(e,r){if(r=Tct(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof _H)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(Rct," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Qpe(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Oct(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Dct)|(this.options.loose&&kct))+":"+e,s=vpe.get(n);if(s)return s;let o=this.options.loose,a=o?ds[Hn.HYPHENRANGELOOSE]:ds[Hn.HYPHENRANGE];e=e.replace(a,Vct(this.options.includePrerelease)),Lt("hyphen replace",e),e=e.replace(ds[Hn.COMPARATORTRIM],_ct),Lt("comparator trim",e),e=e.replace(ds[Hn.TILDETRIM],vct),Lt("tilde trim",e),e=e.replace(ds[Hn.CARETTRIM],Qct),Lt("caret trim",e);let c=e.split(" ").map(p=>Lct(p,this.options)).join(" ").split(/\s+/).map(p=>zct(p,this.options));o&&(c=c.filter(p=>(Lt("loose invalid filter",p,this.options),!!p.match(ds[Hn.COMPARATORLOOSE])))),Lt("range list",c);let l=new Map,u=c.map(p=>new _H(p,this.options));for(let p of u){if(Qpe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return vpe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Dpe(n,r)&&e.set.some(s=>Dpe(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Pct(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Wct(this.set[r],e,this.options))return!0;return!1}};kpe.exports=PH;var Nct=_pe(),vpe=new Nct,Tct=RN(),_H=pS(),Lt=uS(),Pct=Gn(),{safeRe:ds,t:Hn,comparatorTrimReplace:_ct,tildeTrimReplace:vct,caretTrimReplace:Qct}=sg(),{FLAG_INCLUDE_PRERELEASE:Dct,FLAG_LOOSE:kct}=lS(),Qpe=i(t=>t.value==="<0.0.0-0","isNullSet"),Oct=i(t=>t.value==="","isAny"),Dpe=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),Lct=i((t,e)=>(t=t.replace(ds[Hn.BUILD],""),Lt("comp",t,e),t=Uct(t,e),Lt("caret",t),t=Mct(t,e),Lt("tildes",t),t=$ct(t,e),Lt("xrange",t),t=Hct(t,e),Lt("stars",t),t),"parseComparator"),ps=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Mct=i((t,e)=>t.trim().split(/\s+/).map(r=>Fct(r,e)).join(" "),"replaceTildes"),Fct=i((t,e)=>{let r=e.loose?ds[Hn.TILDELOOSE]:ds[Hn.TILDE];return t.replace(r,(n,s,o,a,c)=>{Lt("tilde",t,n,s,o,a,c);let l;return ps(s)?l="":ps(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:ps(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Lt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Lt("tilde return",l),l})},"replaceTilde"),Uct=i((t,e)=>t.trim().split(/\s+/).map(r=>qct(r,e)).join(" "),"replaceCarets"),qct=i((t,e)=>{Lt("caret",t,e);let r=e.loose?ds[Hn.CARETLOOSE]:ds[Hn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Lt("caret",t,s,o,a,c,l);let u;return ps(o)?u="":ps(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ps(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Lt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Lt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Lt("caret return",u),u})},"replaceCaret"),$ct=i((t,e)=>(Lt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Gct(r,e)).join(" ")),"replaceXRanges"),Gct=i((t,e)=>{t=t.trim();let r=e.loose?ds[Hn.XRANGELOOSE]:ds[Hn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Lt("xRange",t,n,s,o,a,c,l);let u=ps(o),d=u||ps(a),p=d||ps(c),f=p;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&f?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Lt("xRange return",n),n})},"replaceXRange"),Hct=i((t,e)=>(Lt("replaceStars",t,e),t.trim().replace(ds[Hn.STAR],"")),"replaceStars"),zct=i((t,e)=>(Lt("replaceGTE0",t,e),t.trim().replace(ds[e.includePrerelease?Hn.GTE0PRE:Hn.GTE0],"")),"replaceGTE0"),Vct=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(ps(n)?r="":ps(s)?r=`>=${n}.0.0${t?"-0":""}`:ps(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ps(u)?l="":ps(d)?l=`<${+u+1}.0.0-0`:ps(p)?l=`<${u}.${+d+1}.0-0`:f?l=`<=${u}.${d}.${p}-${f}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),Wct=i((t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(Lt(t[n].semver),t[n].semver!==_H.ANY&&t[n].semver.prerelease.length>0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var pS=S((gsr,qpe)=>{"use strict";var fS=Symbol("SemVer ANY"),DH=class t{static{i(this,"Comparator")}static get ANY(){return fS}constructor(e,r){if(r=Ope(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),QH("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===fS?this.value="":this.value=this.operator+this.semver.version,QH("comp",this)}parse(e){let r=this.options.loose?Lpe[Mpe.COMPARATORLOOSE]:Lpe[Mpe.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Fpe(n[2],this.options.loose):this.semver=fS}toString(){return this.value}test(e){if(QH("Comparator.test",e,this.options.loose),this.semver===fS||e===fS)return!0;if(typeof e=="string")try{e=new Fpe(e,this.options)}catch{return!1}return vH(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Upe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Upe(this.value,r).test(e.semver):(r=Ope(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||vH(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||vH(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};qpe.exports=DH;var Ope=RN(),{safeRe:Lpe,t:Mpe}=sg(),vH=NH(),QH=uS(),Fpe=Gn(),Upe=ui()});var mS=S((Esr,$pe)=>{"use strict";var Yct=ui(),Jct=i((t,e,r)=>{try{e=new Yct(e,r)}catch{return!1}return e.test(t)},"satisfies");$pe.exports=Jct});var Hpe=S((Isr,Gpe)=>{"use strict";var jct=ui(),Kct=i((t,e)=>new jct(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Gpe.exports=Kct});var Vpe=S((wsr,zpe)=>{"use strict";var Xct=Gn(),Zct=ui(),elt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Zct(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Xct(n,r))}),n},"maxSatisfying");zpe.exports=elt});var Ype=S((bsr,Wpe)=>{"use strict";var tlt=Gn(),rlt=ui(),nlt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new rlt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new tlt(n,r))}),n},"minSatisfying");Wpe.exports=nlt});var Kpe=S((Rsr,jpe)=>{"use strict";var kH=Gn(),slt=ui(),Jpe=dS(),olt=i((t,e)=>{t=new slt(t,e);let r=new kH("0.0.0");if(t.test(r)||(r=new kH("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let s=t.set[n],o=null;s.forEach(a=>{let c=new kH(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Jpe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Jpe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");jpe.exports=olt});var Zpe=S((Tsr,Xpe)=>{"use strict";var ilt=ui(),alt=i((t,e)=>{try{return new ilt(t,e).range||"*"}catch{return null}},"validRange");Xpe.exports=alt});var MN=S((_sr,nfe)=>{"use strict";var clt=Gn(),rfe=pS(),{ANY:llt}=rfe,ult=ui(),dlt=mS(),efe=dS(),tfe=QN(),plt=kN(),flt=DN(),mlt=i((t,e,r,n)=>{t=new clt(t,n),e=new ult(e,n);let s,o,a,c,l;switch(r){case">":s=efe,o=plt,a=tfe,c=">",l=">=";break;case"<":s=tfe,o=flt,a=efe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(dlt(t,e,n))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],p=null,f=null;if(d.forEach(m=>{m.semver===llt&&(m=new rfe(">=0.0.0")),p=p||m,f=f||m,s(m.semver,p.semver,n)?p=m:a(m.semver,f.semver,n)&&(f=m)}),p.operator===c||p.operator===l||(!f.operator||f.operator===c)&&o(t,f.semver))return!1;if(f.operator===l&&a(t,f.semver))return!1}return!0},"outside");nfe.exports=mlt});var ofe=S((Qsr,sfe)=>{"use strict";var hlt=MN(),Alt=i((t,e,r)=>hlt(t,e,">",r),"gtr");sfe.exports=Alt});var afe=S((ksr,ife)=>{"use strict";var glt=MN(),ylt=i((t,e,r)=>glt(t,e,"<",r),"ltr");ife.exports=ylt});var ufe=S((Lsr,lfe)=>{"use strict";var cfe=ui(),Elt=i((t,e,r)=>(t=new cfe(t,r),e=new cfe(e,r),t.intersects(e,r)),"intersects");lfe.exports=Elt});var pfe=S((Fsr,dfe)=>{"use strict";var Clt=mS(),Ilt=li();dfe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>Ilt(d,p,r));for(let d of a)Clt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var yfe=S((Usr,gfe)=>{"use strict";var ffe=ui(),LH=pS(),{ANY:OH}=LH,hS=mS(),MH=li(),Slt=i((t,e,r={})=>{if(t===e)return!0;t=new ffe(t,r),e=new ffe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=xlt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),wlt=[new LH(">=0.0.0-0")],mfe=[new LH(">=0.0.0")],xlt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===OH){if(e.length===1&&e[0].semver===OH)return!0;r.includePrerelease?t=wlt:t=mfe}if(e.length===1&&e[0].semver===OH){if(r.includePrerelease)return!0;e=mfe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=hfe(s,m,r):m.operator==="<"||m.operator==="<="?o=Afe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=MH(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let m of n){if(s&&!hS(m,String(s),r)||o&&!hS(m,String(o),r))return null;for(let h of e)if(!hS(m,String(h),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let m of e){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(c=hfe(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!hS(s.semver,String(m),r))return!1}if(o){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(l=Afe(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!hS(o.semver,String(m),r))return!1}if(!m.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||f||p)},"simpleSubset"),hfe=i((t,e,r)=>{if(!t)return e;let n=MH(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Afe=i((t,e,r)=>{if(!t)return e;let n=MH(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");gfe.exports=Slt});var UH=S(($sr,Ife)=>{"use strict";var FH=sg(),Efe=lS(),blt=Gn(),Cfe=wH(),Blt=jf(),Rlt=Vde(),Nlt=Yde(),Tlt=Kde(),Plt=epe(),_lt=rpe(),vlt=spe(),Qlt=ipe(),Dlt=cpe(),klt=li(),Olt=ppe(),Llt=mpe(),Mlt=vN(),Flt=ype(),Ult=Cpe(),qlt=dS(),$lt=QN(),Glt=BH(),Hlt=RH(),zlt=DN(),Vlt=kN(),Wlt=NH(),Ylt=Tpe(),Jlt=pS(),jlt=ui(),Klt=mS(),Xlt=Hpe(),Zlt=Vpe(),eut=Ype(),tut=Kpe(),rut=Zpe(),nut=MN(),sut=ofe(),out=afe(),iut=ufe(),aut=pfe(),cut=yfe();Ife.exports={parse:Blt,valid:Rlt,clean:Nlt,inc:Tlt,diff:Plt,major:_lt,minor:vlt,patch:Qlt,prerelease:Dlt,compare:klt,rcompare:Olt,compareLoose:Llt,compareBuild:Mlt,sort:Flt,rsort:Ult,gt:qlt,lt:$lt,eq:Glt,neq:Hlt,gte:zlt,lte:Vlt,cmp:Wlt,coerce:Ylt,Comparator:Jlt,Range:jlt,satisfies:Klt,toComparators:Xlt,maxSatisfying:Zlt,minSatisfying:eut,minVersion:tut,validRange:rut,outside:nut,gtr:sut,ltr:out,intersects:iut,simplifyRange:aut,subset:cut,SemVer:blt,re:FH.re,src:FH.src,tokens:FH.t,SEMVER_SPEC_VERSION:Efe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Efe.RELEASE_TYPES,compareIdentifiers:Cfe.compareIdentifiers,rcompareIdentifiers:Cfe.rcompareIdentifiers}});var lg=S((ear,sme)=>{"use strict";var qdt="2.0.0",$dt=Number.MAX_SAFE_INTEGER||9007199254740991,Gdt=16,Hdt=250,zdt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sme.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Gdt,MAX_SAFE_BUILD_LENGTH:Hdt,MAX_SAFE_INTEGER:$dt,RELEASE_TYPES:zdt,SEMVER_SPEC_VERSION:qdt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var bS=S((tar,ome)=>{"use strict";var Vdt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};ome.exports=Vdt});var ug=S((mc,ime)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:sz,MAX_SAFE_BUILD_LENGTH:Wdt,MAX_LENGTH:Ydt}=lg(),Jdt=bS();mc=ime.exports={};var jdt=mc.re=[],Kdt=mc.safeRe=[],z=mc.src=[],Xdt=mc.safeSrc=[],V=mc.t={},Zdt=0,oz="[a-zA-Z0-9-]",ept=[["\\s",1],["\\d",Ydt],[oz,Wdt]],tpt=i(t=>{for(let[e,r]of ept)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Le=i((t,e,r)=>{let n=tpt(e),s=Zdt++;Jdt(t,s,e),V[t]=s,z[s]=e,Xdt[s]=n,jdt[s]=new RegExp(e,r?"g":void 0),Kdt[s]=new RegExp(n,r?"g":void 0)},"createToken");Le("NUMERICIDENTIFIER","0|[1-9]\\d*");Le("NUMERICIDENTIFIERLOOSE","\\d+");Le("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${oz}*`);Le("MAINVERSION",`(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})`);Le("MAINVERSIONLOOSE",`(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASEIDENTIFIER",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIER]})`);Le("PRERELEASEIDENTIFIERLOOSE",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIERLOOSE]})`);Le("PRERELEASE",`(?:-(${z[V.PRERELEASEIDENTIFIER]}(?:\\.${z[V.PRERELEASEIDENTIFIER]})*))`);Le("PRERELEASELOOSE",`(?:-?(${z[V.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[V.PRERELEASEIDENTIFIERLOOSE]})*))`);Le("BUILDIDENTIFIER",`${oz}+`);Le("BUILD",`(?:\\+(${z[V.BUILDIDENTIFIER]}(?:\\.${z[V.BUILDIDENTIFIER]})*))`);Le("FULLPLAIN",`v?${z[V.MAINVERSION]}${z[V.PRERELEASE]}?${z[V.BUILD]}?`);Le("FULL",`^${z[V.FULLPLAIN]}$`);Le("LOOSEPLAIN",`[v=\\s]*${z[V.MAINVERSIONLOOSE]}${z[V.PRERELEASELOOSE]}?${z[V.BUILD]}?`);Le("LOOSE",`^${z[V.LOOSEPLAIN]}$`);Le("GTLT","((?:<|>)?=?)");Le("XRANGEIDENTIFIERLOOSE",`${z[V.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Le("XRANGEIDENTIFIER",`${z[V.NUMERICIDENTIFIER]}|x|X|\\*`);Le("XRANGEPLAIN",`[v=\\s]*(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:${z[V.PRERELEASE]})?${z[V.BUILD]}?)?)?`);Le("XRANGEPLAINLOOSE",`[v=\\s]*(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:${z[V.PRERELEASELOOSE]})?${z[V.BUILD]}?)?)?`);Le("XRANGE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAIN]}$`);Le("XRANGELOOSE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAINLOOSE]}$`);Le("COERCEPLAIN",`(^|[^\\d])(\\d{1,${sz}})(?:\\.(\\d{1,${sz}}))?(?:\\.(\\d{1,${sz}}))?`);Le("COERCE",`${z[V.COERCEPLAIN]}(?:$|[^\\d])`);Le("COERCEFULL",z[V.COERCEPLAIN]+`(?:${z[V.PRERELEASE]})?(?:${z[V.BUILD]})?(?:$|[^\\d])`);Le("COERCERTL",z[V.COERCE],!0);Le("COERCERTLFULL",z[V.COERCEFULL],!0);Le("LONETILDE","(?:~>?)");Le("TILDETRIM",`(\\s*)${z[V.LONETILDE]}\\s+`,!0);mc.tildeTrimReplace="$1~";Le("TILDE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAIN]}$`);Le("TILDELOOSE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAINLOOSE]}$`);Le("LONECARET","(?:\\^)");Le("CARETTRIM",`(\\s*)${z[V.LONECARET]}\\s+`,!0);mc.caretTrimReplace="$1^";Le("CARET",`^${z[V.LONECARET]}${z[V.XRANGEPLAIN]}$`);Le("CARETLOOSE",`^${z[V.LONECARET]}${z[V.XRANGEPLAINLOOSE]}$`);Le("COMPARATORLOOSE",`^${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]})$|^$`);Le("COMPARATOR",`^${z[V.GTLT]}\\s*(${z[V.FULLPLAIN]})$|^$`);Le("COMPARATORTRIM",`(\\s*)${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]}|${z[V.XRANGEPLAIN]})`,!0);mc.comparatorTrimReplace="$1$2$3";Le("HYPHENRANGE",`^\\s*(${z[V.XRANGEPLAIN]})\\s+-\\s+(${z[V.XRANGEPLAIN]})\\s*$`);Le("HYPHENRANGELOOSE",`^\\s*(${z[V.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[V.XRANGEPLAINLOOSE]})\\s*$`);Le("STAR","(<|>)?=?\\s*\\*");Le("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Le("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var VN=S((nar,ame)=>{"use strict";var rpt=Object.freeze({loose:!0}),npt=Object.freeze({}),spt=i(t=>t?typeof t!="object"?rpt:t:npt,"parseOptions");ame.exports=spt});var iz=S((oar,ume)=>{"use strict";var cme=/^[0-9]+$/,lme=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=cme.test(t),n=cme.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),opt=i((t,e)=>lme(e,t),"rcompareIdentifiers");ume.exports={compareIdentifiers:lme,rcompareIdentifiers:opt}});var Bn=S((aar,pme)=>{"use strict";var WN=bS(),{MAX_LENGTH:dme,MAX_SAFE_INTEGER:YN}=lg(),{safeRe:JN,t:jN}=ug(),ipt=VN(),{compareIdentifiers:az}=iz(),apt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(az(t[n],r[n])!==0)return!1;return!0},"isPrereleaseIdentifier"),cz=class t{static{i(this,"SemVer")}constructor(e,r){if(r=ipt(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>dme)throw new TypeError(`version is longer than ${dme} characters`);WN("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?JN[jN.LOOSE]:JN[jN.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>YN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>YN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>YN||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<YN)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(WN("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(WN("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return az(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(WN("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return az(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?JN[jN.PRERELEASELOOSE]:JN[jN.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];if(n===!1&&(o=[r]),apt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};pme.exports=cz});var Pd=S((lar,mme)=>{"use strict";var fme=Bn(),cpt=i((t,e,r=!1)=>{if(t instanceof fme)return t;try{return new fme(t,e)}catch(n){if(!r)return null;throw n}},"parse");mme.exports=cpt});var Ame=S((dar,hme)=>{"use strict";var lpt=Pd(),upt=i((t,e)=>{let r=lpt(t,e);return r?r.version:null},"valid");hme.exports=upt});var yme=S((far,gme)=>{"use strict";var dpt=Pd(),ppt=i((t,e)=>{let r=dpt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");gme.exports=ppt});var Ime=S((har,Cme)=>{"use strict";var Eme=Bn(),fpt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Eme(t instanceof Eme?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Cme.exports=fpt});var xme=S((gar,wme)=>{"use strict";var Sme=Pd(),mpt=i((t,e)=>{let r=Sme(t,null,!0),n=Sme(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");wme.exports=mpt});var Bme=S((Ear,bme)=>{"use strict";var hpt=Bn(),Apt=i((t,e)=>new hpt(t,e).major,"major");bme.exports=Apt});var Nme=S((Iar,Rme)=>{"use strict";var gpt=Bn(),ypt=i((t,e)=>new gpt(t,e).minor,"minor");Rme.exports=ypt});var Pme=S((war,Tme)=>{"use strict";var Ept=Bn(),Cpt=i((t,e)=>new Ept(t,e).patch,"patch");Tme.exports=Cpt});var vme=S((bar,_me)=>{"use strict";var Ipt=Pd(),Spt=i((t,e)=>{let r=Ipt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");_me.exports=Spt});var mi=S((Rar,Dme)=>{"use strict";var Qme=Bn(),wpt=i((t,e,r)=>new Qme(t,r).compare(new Qme(e,r)),"compare");Dme.exports=wpt});var Ome=S((Tar,kme)=>{"use strict";var xpt=mi(),bpt=i((t,e,r)=>xpt(e,t,r),"rcompare");kme.exports=bpt});var Mme=S((_ar,Lme)=>{"use strict";var Bpt=mi(),Rpt=i((t,e)=>Bpt(t,e,!0),"compareLoose");Lme.exports=Rpt});var KN=S((Dar,Ume)=>{"use strict";var Fme=Bn(),Npt=i((t,e,r)=>{let n=new Fme(t,r),s=new Fme(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Ume.exports=Npt});var $me=S((Oar,qme)=>{"use strict";var Tpt=KN(),Ppt=i((t,e)=>t.sort((r,n)=>Tpt(r,n,e)),"sort");qme.exports=Ppt});var Hme=S((Mar,Gme)=>{"use strict";var _pt=KN(),vpt=i((t,e)=>t.sort((r,n)=>_pt(n,r,e)),"rsort");Gme.exports=vpt});var BS=S((Uar,zme)=>{"use strict";var Qpt=mi(),Dpt=i((t,e,r)=>Qpt(t,e,r)>0,"gt");zme.exports=Dpt});var XN=S(($ar,Vme)=>{"use strict";var kpt=mi(),Opt=i((t,e,r)=>kpt(t,e,r)<0,"lt");Vme.exports=Opt});var lz=S((Har,Wme)=>{"use strict";var Lpt=mi(),Mpt=i((t,e,r)=>Lpt(t,e,r)===0,"eq");Wme.exports=Mpt});var uz=S((Var,Yme)=>{"use strict";var Fpt=mi(),Upt=i((t,e,r)=>Fpt(t,e,r)!==0,"neq");Yme.exports=Upt});var ZN=S((Yar,Jme)=>{"use strict";var qpt=mi(),$pt=i((t,e,r)=>qpt(t,e,r)>=0,"gte");Jme.exports=$pt});var eT=S((jar,jme)=>{"use strict";var Gpt=mi(),Hpt=i((t,e,r)=>Gpt(t,e,r)<=0,"lte");jme.exports=Hpt});var dz=S((Xar,Kme)=>{"use strict";var zpt=lz(),Vpt=uz(),Wpt=BS(),Ypt=ZN(),Jpt=XN(),jpt=eT(),Kpt=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return zpt(t,r,n);case"!=":return Vpt(t,r,n);case">":return Wpt(t,r,n);case">=":return Ypt(t,r,n);case"<":return Jpt(t,r,n);case"<=":return jpt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Kme.exports=Kpt});var Zme=S((ecr,Xme)=>{"use strict";var Xpt=Bn(),Zpt=Pd(),{safeRe:tT,t:rT}=ug(),eft=i((t,e)=>{if(t instanceof Xpt)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?tT[rT.COERCEFULL]:tT[rT.COERCE]);else{let l=e.includePrerelease?tT[rT.COERCERTLFULL]:tT[rT.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return Zpt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Xme.exports=eft});var the=S((rcr,ehe)=>{"use strict";var tft=Pd(),rft=lg(),nft=Bn(),sft=i((t,e,r)=>{if(!rft.RELEASE_TYPES.includes(e))return null;let n=oft(t,r);return n&&ift(n,e)},"truncate"),oft=i((t,e)=>{let r=t instanceof nft?t.version:t;return tft(r,e)},"cloneInputVersion"),ift=i((t,e)=>{if(aft(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),aft=i(t=>t.startsWith("pre"),"isPrerelease");ehe.exports=sft});var nhe=S((scr,rhe)=>{"use strict";var pz=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};rhe.exports=pz});var hi=S((icr,ahe)=>{"use strict";var cft=/\s+/g,fz=class t{static{i(this,"Range")}constructor(e,r){if(r=uft(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof mz)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace(cft," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!ohe(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Eft(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(yft,"");let n=((this.options.includePrerelease&&Aft)|(this.options.loose&&gft))+":"+e,s=she.get(n);if(s)return s;let o=this.options.loose,a=o?ms[Rn.HYPHENRANGELOOSE]:ms[Rn.HYPHENRANGE];e=e.replace(a,Pft(this.options.includePrerelease)),Mt("hyphen replace",e),e=e.replace(ms[Rn.COMPARATORTRIM],fft),Mt("comparator trim",e),e=e.replace(ms[Rn.TILDETRIM],mft),Mt("tilde trim",e),e=e.replace(ms[Rn.CARETTRIM],hft),Mt("caret trim",e);let c=e.split(" ").map(p=>Cft(p,this.options)).join(" ").split(/\s+/).map(p=>Tft(p,this.options));o&&(c=c.filter(p=>(Mt("loose invalid filter",p,this.options),!!p.match(ms[Rn.COMPARATORLOOSE])))),Mt("range list",c);let l=new Map,u=c.map(p=>new mz(p,this.options));for(let p of u){if(ohe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return she.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>ihe(n,r)&&e.set.some(s=>ihe(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new dft(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(_ft(this.set[r],e,this.options))return!0;return!1}};ahe.exports=fz;var lft=nhe(),she=new lft,uft=VN(),mz=RS(),Mt=bS(),dft=Bn(),{safeRe:ms,src:pft,t:Rn,comparatorTrimReplace:fft,tildeTrimReplace:mft,caretTrimReplace:hft}=ug(),{FLAG_INCLUDE_PRERELEASE:Aft,FLAG_LOOSE:gft}=lg(),yft=new RegExp(pft[Rn.BUILD],"g"),ohe=i(t=>t.value==="<0.0.0-0","isNullSet"),Eft=i(t=>t.value==="","isAny"),ihe=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),Cft=i((t,e)=>(t=t.replace(ms[Rn.BUILD],""),Mt("comp",t,e),t=xft(t,e),Mt("caret",t),t=Sft(t,e),Mt("tildes",t),t=Bft(t,e),Mt("xrange",t),t=Nft(t,e),Mt("stars",t),t),"parseComparator"),Hr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Ift=i((t,e,r)=>Hr(t)&&!Hr(e)||Hr(e)&&r&&!Hr(r),"invalidXRangeOrder"),Sft=i((t,e)=>t.trim().split(/\s+/).map(r=>wft(r,e)).join(" "),"replaceTildes"),wft=i((t,e)=>{let r=e.loose?ms[Rn.TILDELOOSE]:ms[Rn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Mt("tilde",t,s,o,a,c,l);let u;return Hr(o)?u="":Hr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Mt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Mt("tilde return",u),u})},"replaceTilde"),xft=i((t,e)=>t.trim().split(/\s+/).map(r=>bft(r,e)).join(" "),"replaceCarets"),bft=i((t,e)=>{Mt("caret",t,e);let r=e.loose?ms[Rn.CARETLOOSE]:ms[Rn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Mt("caret",t,s,o,a,c,l);let u;return Hr(o)?u="":Hr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Hr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Mt("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Mt("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Mt("caret return",u),u})},"replaceCaret"),Bft=i((t,e)=>(Mt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Rft(r,e)).join(" ")),"replaceXRanges"),Rft=i((t,e)=>{t=t.trim();let r=e.loose?ms[Rn.XRANGELOOSE]:ms[Rn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Mt("xRange",t,n,s,o,a,c,l),Ift(o,a,c))return t;let u=Hr(o),d=u||Hr(a),p=d||Hr(c),f=p;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&f?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Mt("xRange return",n),n})},"replaceXRange"),Nft=i((t,e)=>(Mt("replaceStars",t,e),t.trim().replace(ms[Rn.STAR],"")),"replaceStars"),Tft=i((t,e)=>(Mt("replaceGTE0",t,e),t.trim().replace(ms[e.includePrerelease?Rn.GTE0PRE:Rn.GTE0],"")),"replaceGTE0"),Pft=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Hr(n)?r="":Hr(s)?r=`>=${n}.0.0${t?"-0":""}`:Hr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Hr(u)?l="":Hr(d)?l=`<${+u+1}.0.0-0`:Hr(p)?l=`<${u}.${+d+1}.0-0`:f?l=`<=${u}.${d}.${p}-${f}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),_ft=i((t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(Mt(t[n].semver),t[n].semver!==mz.ANY&&t[n].semver.prerelease.length>0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var RS=S((ccr,fhe)=>{"use strict";var NS=Symbol("SemVer ANY"),gz=class t{static{i(this,"Comparator")}static get ANY(){return NS}constructor(e,r){if(r=che(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Az("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===NS?this.value="":this.value=this.operator+this.semver.version,Az("comp",this)}parse(e){let r=this.options.loose?lhe[uhe.COMPARATORLOOSE]:lhe[uhe.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new dhe(n[2],this.options.loose):this.semver=NS}toString(){return this.value}test(e){if(Az("Comparator.test",e,this.options.loose),this.semver===NS||e===NS)return!0;if(typeof e=="string")try{e=new dhe(e,this.options)}catch{return!1}return hz(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new phe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new phe(this.value,r).test(e.semver):(r=che(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||hz(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||hz(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};fhe.exports=gz;var che=VN(),{safeRe:lhe,t:uhe}=ug(),hz=dz(),Az=bS(),dhe=Bn(),phe=hi()});var TS=S((ucr,mhe)=>{"use strict";var vft=hi(),Qft=i((t,e,r)=>{try{e=new vft(e,r)}catch{return!1}return e.test(t)},"satisfies");mhe.exports=Qft});var Ahe=S((pcr,hhe)=>{"use strict";var Dft=hi(),kft=i((t,e)=>new Dft(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");hhe.exports=kft});var yhe=S((mcr,ghe)=>{"use strict";var Oft=Bn(),Lft=hi(),Mft=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Lft(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Oft(n,r))}),n},"maxSatisfying");ghe.exports=Mft});var Che=S((Acr,Ehe)=>{"use strict";var Fft=Bn(),Uft=hi(),qft=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Uft(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new Fft(n,r))}),n},"minSatisfying");Ehe.exports=qft});var whe=S((ycr,She)=>{"use strict";var yz=Bn(),$ft=hi(),Ihe=BS(),Gft=i((t,e)=>{t=new $ft(t,e);let r=new yz("0.0.0");if(t.test(r)||(r=new yz("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let s=t.set[n],o=null;s.forEach(a=>{let c=new yz(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Ihe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Ihe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");She.exports=Gft});var bhe=S((Ccr,xhe)=>{"use strict";var Hft=hi(),zft=i((t,e)=>{try{return new Hft(t,e).range||"*"}catch{return null}},"validRange");xhe.exports=zft});var nT=S((Scr,The)=>{"use strict";var Vft=Bn(),Nhe=RS(),{ANY:Wft}=Nhe,Yft=hi(),Jft=TS(),Bhe=BS(),Rhe=XN(),jft=eT(),Kft=ZN(),Xft=i((t,e,r,n)=>{t=new Vft(t,n),e=new Yft(e,n);let s,o,a,c,l;switch(r){case">":s=Bhe,o=jft,a=Rhe,c=">",l=">=";break;case"<":s=Rhe,o=Kft,a=Bhe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Jft(t,e,n))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],p=null,f=null;if(d.forEach(m=>{m.semver===Wft&&(m=new Nhe(">=0.0.0")),p=p||m,f=f||m,s(m.semver,p.semver,n)?p=m:a(m.semver,f.semver,n)&&(f=m)}),p.operator===c||p.operator===l||(!f.operator||f.operator===c)&&o(t,f.semver))return!1;if(f.operator===l&&a(t,f.semver))return!1}return!0},"outside");The.exports=Xft});var _he=S((xcr,Phe)=>{"use strict";var Zft=nT(),emt=i((t,e,r)=>Zft(t,e,">",r),"gtr");Phe.exports=emt});var Qhe=S((Bcr,vhe)=>{"use strict";var tmt=nT(),rmt=i((t,e,r)=>tmt(t,e,"<",r),"ltr");vhe.exports=rmt});var Ohe=S((Ncr,khe)=>{"use strict";var Dhe=hi(),nmt=i((t,e,r)=>(t=new Dhe(t,r),e=new Dhe(e,r),t.intersects(e,r)),"intersects");khe.exports=nmt});var Mhe=S((Pcr,Lhe)=>{"use strict";var smt=TS(),omt=mi();Lhe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>omt(d,p,r));for(let d of a)smt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var Hhe=S((_cr,Ghe)=>{"use strict";var Fhe=hi(),Iz=RS(),{ANY:Ez}=Iz,Cz=TS(),Sz=mi(),imt=i((t,e,r={})=>{if(t===e)return!0;t=new Fhe(t,r),e=new Fhe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=cmt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),amt=[new Iz(">=0.0.0-0")],Uhe=[new Iz(">=0.0.0")],cmt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ez){if(e.length===1&&e[0].semver===Ez)return!0;r.includePrerelease?t=amt:t=Uhe}if(e.length===1&&e[0].semver===Ez){if(r.includePrerelease)return!0;e=Uhe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=qhe(s,m,r):m.operator==="<"||m.operator==="<="?o=$he(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Sz(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let m of n){if(s&&!Cz(m,String(s),r)||o&&!Cz(m,String(o),r))return null;for(let h of e)if(!Cz(m,String(h),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let m of e){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(c=qhe(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!m.test(s.semver))return!1}if(o){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(l=$he(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!m.test(o.semver))return!1}if(!m.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||f||p)},"simpleSubset"),qhe=i((t,e,r)=>{if(!t)return e;let n=Sz(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),$he=i((t,e,r)=>{if(!t)return e;let n=Sz(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Ghe.exports=imt});var Yhe=S((Qcr,Whe)=>{"use strict";var wz=ug(),zhe=lg(),lmt=Bn(),Vhe=iz(),umt=Pd(),dmt=Ame(),pmt=yme(),fmt=Ime(),mmt=xme(),hmt=Bme(),Amt=Nme(),gmt=Pme(),ymt=vme(),Emt=mi(),Cmt=Ome(),Imt=Mme(),Smt=KN(),wmt=$me(),xmt=Hme(),bmt=BS(),Bmt=XN(),Rmt=lz(),Nmt=uz(),Tmt=ZN(),Pmt=eT(),_mt=dz(),vmt=Zme(),Qmt=the(),Dmt=RS(),kmt=hi(),Omt=TS(),Lmt=Ahe(),Mmt=yhe(),Fmt=Che(),Umt=whe(),qmt=bhe(),$mt=nT(),Gmt=_he(),Hmt=Qhe(),zmt=Ohe(),Vmt=Mhe(),Wmt=Hhe();Whe.exports={parse:umt,valid:dmt,clean:pmt,inc:fmt,diff:mmt,major:hmt,minor:Amt,patch:gmt,prerelease:ymt,compare:Emt,rcompare:Cmt,compareLoose:Imt,compareBuild:Smt,sort:wmt,rsort:xmt,gt:bmt,lt:Bmt,eq:Rmt,neq:Nmt,gte:Tmt,lte:Pmt,cmp:_mt,coerce:vmt,truncate:Qmt,Comparator:Dmt,Range:kmt,satisfies:Omt,toComparators:Lmt,maxSatisfying:Mmt,minSatisfying:Fmt,minVersion:Umt,validRange:qmt,outside:$mt,gtr:Gmt,ltr:Hmt,intersects:zmt,simplifyRange:Vmt,subset:Wmt,SemVer:lmt,re:wz.re,src:wz.src,tokens:wz.t,SEMVER_SPEC_VERSION:zhe.SEMVER_SPEC_VERSION,RELEASE_TYPES:zhe.RELEASE_TYPES,compareIdentifiers:Vhe.compareIdentifiers,rcompareIdentifiers:Vhe.rcompareIdentifiers}});var LAe=S((Lur,OAe)=>{var gg=1e3,yg=gg*60,Eg=yg*60,am=Eg*24,Tht=am*7,Pht=am*365.25;OAe.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return _ht(t);if(r==="number"&&isFinite(t))return e.long?Qht(t):vht(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function _ht(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Pht;case"weeks":case"week":case"w":return r*Tht;case"days":case"day":case"d":return r*am;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Eg;case"minutes":case"minute":case"mins":case"min":case"m":return r*yg;case"seconds":case"second":case"secs":case"sec":case"s":return r*gg;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(_ht,"parse");function vht(t){var e=Math.abs(t);return e>=am?Math.round(t/am)+"d":e>=Eg?Math.round(t/Eg)+"h":e>=yg?Math.round(t/yg)+"m":e>=gg?Math.round(t/gg)+"s":t+"ms"}i(vht,"fmtShort");function Qht(t){var e=Math.abs(t);return e>=am?TT(t,e,am,"day"):e>=Eg?TT(t,e,Eg,"hour"):e>=yg?TT(t,e,yg,"minute"):e>=gg?TT(t,e,gg,"second"):t+" ms"}i(Qht,"fmtLong");function TT(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(TT,"plural")});var Yz=S((Fur,MAe)=>{function Dht(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=LAe(),r.destroy=u,Object.keys(t).forEach(d=>{r[d]=t[d]}),r.names=[],r.skips=[],r.formatters={};function e(d){let p=0;for(let f=0;f<d.length;f++)p=(p<<5)-p+d.charCodeAt(f),p|=0;return r.colors[Math.abs(p)%r.colors.length]}i(e,"selectColor"),r.selectColor=e;function r(d){let p,f=null,m,h;function A(...y){if(!A.enabled)return;let E=A,I=Number(new Date),x=I-(p||I);E.diff=x,E.prev=p,E.curr=I,p=I,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let b=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(v,_)=>{if(v==="%%")return"%";b++;let J=r.formatters[_];if(typeof J=="function"){let Be=y[b];v=J.call(E,Be),y.splice(b,1),b--}return v}),r.formatArgs.call(E,y),(E.log||r.log).apply(E,y)}return i(A,"debug"),A.namespace=d,A.useColors=r.useColors(),A.color=r.selectColor(d),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:i(()=>f!==null?f:(m!==r.namespaces&&(m=r.namespaces,h=r.enabled(d)),h),"get"),set:i(y=>{f=y},"set")}),typeof r.init=="function"&&r.init(A),A}i(r,"createDebug");function n(d,p){let f=r(this.namespace+(typeof p>"u"?":":p)+d);return f.log=this.log,f}i(n,"extend");function s(d){r.save(d),r.namespaces=d,r.names=[],r.skips=[];let p,f=(typeof d=="string"?d:"").split(/[\s,]+/),m=f.length;for(p=0;p<m;p++)f[p]&&(d=f[p].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.slice(1)+"$")):r.names.push(new RegExp("^"+d+"$")))}i(s,"enable");function o(){let d=[...r.names.map(c),...r.skips.map(c).map(p=>"-"+p)].join(",");return r.enable(""),d}i(o,"disable");function a(d){if(d[d.length-1]==="*")return!0;let p,f;for(p=0,f=r.skips.length;p<f;p++)if(r.skips[p].test(d))return!1;for(p=0,f=r.names.length;p<f;p++)if(r.names[p].test(d))return!0;return!1}i(a,"enabled");function c(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}i(c,"toNamespace");function l(d){return d instanceof Error?d.stack||d.message:d}i(l,"coerce");function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i(u,"destroy"),r.enable(r.load()),r}i(Dht,"setup");MAe.exports=Dht});var FAe=S((Po,PT)=>{Po.formatArgs=Oht;Po.save=Lht;Po.load=Mht;Po.useColors=kht;Po.storage=Fht();Po.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Po.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function kht(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(kht,"useColors");function Oht(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+PT.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),t.splice(n,0,e)}i(Oht,"formatArgs");Po.log=console.debug||console.log||(()=>{});function Lht(t){try{t?Po.storage.setItem("debug",t):Po.storage.removeItem("debug")}catch{}}i(Lht,"save");function Mht(){let t;try{t=Po.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(Mht,"load");function Fht(){try{return localStorage}catch{}}i(Fht,"localstorage");PT.exports=Yz()(Po);var{formatters:Uht}=PT.exports;Uht.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var qAe=S(($ur,UAe)=>{"use strict";UAe.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),s=e.indexOf("--");return n!==-1&&(s===-1||n<s)}});var HAe=S((Gur,GAe)=>{"use strict";var qht=require("os"),$Ae=require("tty"),gi=qAe(),{env:on}=process,Qd;gi("no-color")||gi("no-colors")||gi("color=false")||gi("color=never")?Qd=0:(gi("color")||gi("colors")||gi("color=true")||gi("color=always"))&&(Qd=1);"FORCE_COLOR"in on&&(on.FORCE_COLOR==="true"?Qd=1:on.FORCE_COLOR==="false"?Qd=0:Qd=on.FORCE_COLOR.length===0?1:Math.min(parseInt(on.FORCE_COLOR,10),3));function Jz(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(Jz,"translateLevel");function jz(t,e){if(Qd===0)return 0;if(gi("color=16m")||gi("color=full")||gi("color=truecolor"))return 3;if(gi("color=256"))return 2;if(t&&!e&&Qd===void 0)return 0;let r=Qd||0;if(on.TERM==="dumb")return r;if(process.platform==="win32"){let n=qht.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in on)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in on)||on.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in on)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(on.TEAMCITY_VERSION)?1:0;if(on.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in on){let n=parseInt((on.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(on.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(on.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(on.TERM)||"COLORTERM"in on?1:r}i(jz,"supportsColor");function $ht(t){let e=jz(t,t&&t.isTTY);return Jz(e)}i($ht,"getSupportLevel");GAe.exports={supportsColor:$ht,stdout:Jz(jz(!0,$Ae.isatty(1))),stderr:Jz(jz(!0,$Ae.isatty(2)))}});var VAe=S((Nn,vT)=>{var Ght=require("tty"),_T=require("util");Nn.init=jht;Nn.log=Wht;Nn.formatArgs=zht;Nn.save=Yht;Nn.load=Jht;Nn.useColors=Hht;Nn.destroy=_T.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Nn.colors=[6,2,3,4,5,1];try{let t=HAe();t&&(t.stderr||t).level>=2&&(Nn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Nn.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function Hht(){return"colors"in Nn.inspectOpts?!!Nn.inspectOpts.colors:Ght.isatty(process.stderr.fd)}i(Hht,"useColors");function zht(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(`
|
|
`).join(`
|
|
`+o),t.push(s+"m+"+vT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Vht()+e+" "+t[0]}i(zht,"formatArgs");function Vht(){return Nn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(Vht,"getDate");function Wht(...t){return process.stderr.write(_T.format(...t)+`
|
|
`)}i(Wht,"log");function Yht(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(Yht,"save");function Jht(){return process.env.DEBUG}i(Jht,"load");function jht(t){t.inspectOpts={};let e=Object.keys(Nn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Nn.inspectOpts[e[r]]}i(jht,"init");vT.exports=Yz()(Nn);var{formatters:zAe}=vT.exports;zAe.o=function(t){return this.inspectOpts.colors=this.useColors,_T.inspect(t,this.inspectOpts).split(`
|
|
`).map(e=>e.trim()).join(" ")};zAe.O=function(t){return this.inspectOpts.colors=this.useColors,_T.inspect(t,this.inspectOpts)}});var cm=S((Vur,Kz)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kz.exports=FAe():Kz.exports=VAe()});var JAe=S($s=>{"use strict";var Kht=$s&&$s.__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]})),Xht=$s&&$s.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WAe=$s&&$s.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Kht(e,t,r);return Xht(e,t),e};Object.defineProperty($s,"__esModule",{value:!0});$s.req=$s.json=$s.toBuffer=void 0;var Zht=WAe(require("http")),eAt=WAe(require("https"));async function YAe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(YAe,"toBuffer");$s.toBuffer=YAe;async function tAt(t){let r=(await YAe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(tAt,"json");$s.json=tAt;function rAt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?eAt:Zht).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(rAt,"req");$s.req=rAt});var ZAe=S(_o=>{"use strict";var KAe=_o&&_o.__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]})),nAt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),XAe=_o&&_o.__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)&&KAe(e,t,r);return nAt(e,t),e},sAt=_o&&_o.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&KAe(e,t,r)};Object.defineProperty(_o,"__esModule",{value:!0});_o.Agent=void 0;var oAt=XAe(require("net")),jAe=XAe(require("http")),iAt=require("https");sAt(JAe(),_o);var yc=Symbol("AgentBaseInternalState"),Xz=class extends jAe.Agent{static{i(this,"Agent")}constructor(e){super(e),this[yc]={}}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 oAt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?iAt.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),c instanceof jAe.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[yc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[yc].currentSocket;if(this[yc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[yc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[yc]&&(this[yc].defaultPort=e)}get protocol(){return this[yc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[yc]&&(this[yc].protocol=e)}};_o.Agent=Xz});var ege=S(Cg=>{"use strict";var aAt=Cg&&Cg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cg,"__esModule",{value:!0});Cg.parseProxyResponse=void 0;var cAt=aAt(cm()),QT=(0,cAt.default)("https-proxy-agent:parse-proxy-response");function lAt(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),QT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),QT("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),f=p.indexOf(`\r
|
|
\r
|
|
`);if(f===-1){QT("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
|
|
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.slice(2).join(" "),I={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),v=x.slice(b+1).trimStart(),_=I[N];typeof _=="string"?I[N]=[_,v]:Array.isArray(_)?_.push(v):I[N]=v}QT("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(lAt,"parseProxyResponse");Cg.parseProxyResponse=lAt});var ige=S(yi=>{"use strict";var uAt=yi&&yi.__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]})),dAt=yi&&yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),sge=yi&&yi.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&uAt(e,t,r);return dAt(e,t),e},oge=yi&&yi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yi,"__esModule",{value:!0});yi.HttpsProxyAgent=void 0;var DT=sge(require("net")),tge=sge(require("tls")),pAt=oge(require("assert")),fAt=oge(cm()),mAt=ZAe(),hAt=require("url"),AAt=ege(),FS=(0,fAt.default)("https-proxy-agent"),rge=i(t=>t.servername===void 0&&t.host&&!DT.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),kT=class extends mAt.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new hAt.URL(e):e,this.proxyHeaders=r?.headers??{},FS("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?nge(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:"?(FS("Creating `tls.Socket`: %o",this.connectOpts),s=tge.connect(rge(this.connectOpts))):(FS("Creating `net.Socket`: %o",this.connectOpts),s=DT.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=DT.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
|
|
`;let l=(0,AAt.parseProxyResponse)(s);s.write(`${c}\r
|
|
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",gAt),r.secureEndpoint?(FS("Upgrading socket connection to TLS"),tge.connect({...nge(rge(r),"host","path","port"),socket:s})):s;s.destroy();let p=new DT.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{FS("Replaying proxy buffer for failed request"),(0,pAt.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}};kT.protocols=["http","https"];yi.HttpsProxyAgent=kT;function gAt(t){t.resume()}i(gAt,"resume");function nge(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(nge,"omit")});var lge=S(Gs=>{"use strict";var yAt=Gs&&Gs.__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]})),EAt=Gs&&Gs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),age=Gs&&Gs.__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)&&yAt(e,t,r);return EAt(e,t),e};Object.defineProperty(Gs,"__esModule",{value:!0});Gs.req=Gs.json=Gs.toBuffer=void 0;var CAt=age(require("http")),IAt=age(require("https"));async function cge(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(cge,"toBuffer");Gs.toBuffer=cge;async function SAt(t){let r=(await cge(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(SAt,"json");Gs.json=SAt;function wAt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?IAt:CAt).request(t,e),s=new Promise((o,a)=>{n.once("response",o).once("error",a).end()});return n.then=s.then.bind(s),n}i(wAt,"req");Gs.req=wAt});var pge=S(vo=>{"use strict";var dge=vo&&vo.__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]})),xAt=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bAt=vo&&vo.__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)&&dge(e,t,r);return xAt(e,t),e},BAt=vo&&vo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&dge(e,t,r)};Object.defineProperty(vo,"__esModule",{value:!0});vo.Agent=void 0;var uge=bAt(require("http"));BAt(lge(),vo);var Ec=Symbol("AgentBaseInternalState"),Zz=class extends uge.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Ec]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
|
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)};Promise.resolve().then(()=>this.connect(e,s)).then(o=>{if(o instanceof uge.Agent)return o.addRequest(e,s);this[Ec].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[Ec].currentSocket;if(this[Ec].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ec].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ec]&&(this[Ec].defaultPort=e)}get protocol(){return this[Ec].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ec]&&(this[Ec].protocol=e)}};vo.Agent=Zz});var hge=S(Ei=>{"use strict";var RAt=Ei&&Ei.__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]})),NAt=Ei&&Ei.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),mge=Ei&&Ei.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&RAt(e,t,r);return NAt(e,t),e},TAt=Ei&&Ei.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.HttpProxyAgent=void 0;var PAt=mge(require("net")),_At=mge(require("tls")),vAt=TAt(cm()),QAt=require("events"),DAt=pge(),fge=require("url"),Ig=(0,vAt.default)("http-proxy-agent"),OT=class extends DAt.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new fge.URL(e):e,this.proxyHeaders=r?.headers??{},Ig("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?kAt(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",o=e.getHeader("host")||"localhost",a=`${s}//${o}`,c=new fge.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;Ig("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ig("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
|
\r
|
|
`)+4,e.outputData[0].data=e._header+n.substring(s),Ig("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(Ig("Creating `tls.Socket`: %o",this.connectOpts),o=_At.connect(this.connectOpts)):(Ig("Creating `net.Socket`: %o",this.connectOpts),o=PAt.connect(this.connectOpts)),await(0,QAt.once)(o,"connect"),o}};OT.protocols=["http","https"];Ei.HttpProxyAgent=OT;function kAt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(kAt,"omit")});var Lge=S(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.state=void 0;jT.state={instrumenterImplementation:void 0}});var eye=S(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.state=void 0;tP.state={operationRequestMap:new WeakMap}});var PCe=S($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});var SSt=require("os"),wSt=require("util");function xSt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(xSt,"_interopDefaultLegacy");var bSt=xSt(wSt);function BSt(t,...e){process.stderr.write(`${bSt.default.format(t,...e)}${SSt.EOL}`)}i(BSt,"log");var CCe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,SCe,M8=[],F8=[],S_=[];CCe&&U8(CCe);var wCe=Object.assign(t=>xCe(t),{enable:U8,enabled:q8,disable:RSt,log:BSt});function U8(t){SCe=t,M8=[],F8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?F8.push(new RegExp(`^${n.substr(1)}$`)):M8.push(new RegExp(`^${n}$`));for(let n of S_)n.enabled=q8(n.namespace)}i(U8,"enable");function q8(t){if(t.endsWith("*"))return!0;for(let e of F8)if(e.test(t))return!1;for(let e of M8)if(e.test(t))return!0;return!1}i(q8,"enabled");function RSt(){let t=SCe||"";return U8(""),t}i(RSt,"disable");function xCe(t){let e=Object.assign(r,{enabled:q8(t),destroy:NSt,log:wCe.log,namespace:t,extend:TSt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),S_.push(e),e}i(xCe,"createDebugger");function NSt(){let t=S_.indexOf(this);return t>=0?(S_.splice(t,1),!0):!1}i(NSt,"destroy");function TSt(t){let e=xCe(`${this.namespace}:${t}`);return e.log=this.log,e}i(TSt,"extend");var Tw=wCe,bCe=new Set,C_=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,w_,x_=Tw("azure");x_.log=(...t)=>{Tw.log(...t)};var $8=["verbose","info","warning","error"];C_&&(TCe(C_)?BCe(C_):console.error(`AZURE_LOG_LEVEL set to unknown log level '${C_}'; logging is not enabled. Acceptable values: ${$8.join(", ")}.`));function BCe(t){if(t&&!TCe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${$8.join(",")}`);w_=t;let e=[];for(let r of bCe)NCe(r)&&e.push(r.namespace);Tw.enable(e.join(","))}i(BCe,"setLogLevel");function PSt(){return w_}i(PSt,"getLogLevel");var ICe={verbose:400,info:300,warning:200,error:100};function _St(t){let e=x_.extend(t);return RCe(x_,e),{error:I_(e,"error"),warning:I_(e,"warning"),info:I_(e,"info"),verbose:I_(e,"verbose")}}i(_St,"createClientLogger");function RCe(t,e){e.log=(...r)=>{t.log(...r)}}i(RCe,"patchLogMethod");function I_(t,e){let r=Object.assign(t.extend(e),{level:e});if(RCe(t,r),NCe(r)){let n=Tw.disable();Tw.enable(n+","+r.namespace)}return bCe.add(r),r}i(I_,"createLogger");function NCe(t){return!!(w_&&ICe[t.level]<=ICe[w_])}i(NCe,"shouldEnable");function TCe(t){return $8.includes(t)}i(TCe,"isAzureLogLevel");$g.AzureLogger=x_;$g.createClientLogger=_St;$g.getLogLevel=PSt;$g.setLogLevel=BCe});var z8=S(_w=>{"use strict";Object.defineProperty(_w,"__esModule",{value:!0});var Gg=new WeakMap,b_=new WeakMap,Pw=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Gg.set(this,[]),b_.set(this,!1)}get aborted(){if(!b_.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return b_.get(this)}static get none(){return new t}addEventListener(e,r){if(!Gg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Gg.get(this).push(r)}removeEventListener(e,r){if(!Gg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Gg.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function _Ce(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Gg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),b_.set(t,!0)}i(_Ce,"abortSignal");var G8=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},H8=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new Pw,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){_Ce(this._signal)}static timeout(e){let r=new Pw,n=setTimeout(_Ce,e,r);return typeof n.unref=="function"&&n.unref(),r}};_w.AbortController=H8;_w.AbortError=G8;_w.AbortSignal=Pw});var OCe=S(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var vSt=z8(),J8=require("crypto"),V8,QSt=typeof process<"u"&&!!process.version&&!!(!((V8=process.versions)===null||V8===void 0)&&V8.node);function vCe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new vSt.AbortError(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(vCe,"createAbortablePromise");var DSt="The delay was aborted.";function kSt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return vCe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??DSt})}i(kSt,"delay");function OSt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(OSt,"getRandomIntegerInclusive");function QCe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(QCe,"isObject");function DCe(t){if(QCe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(DCe,"isError");function LSt(t){if(DCe(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(LSt,"getErrorMessage");async function MSt(t,e,r){let n=Buffer.from(t,"base64");return J8.createHmac("sha256",n).update(e).digest(r)}i(MSt,"computeSha256Hmac");async function FSt(t,e){return J8.createHash("sha256").update(t).digest(e)}i(FSt,"computeSha256Hash");function j8(t){return typeof t<"u"&&t!==null}i(j8,"isDefined");function USt(t,e){if(!j8(t)||typeof t!="object")return!1;for(let r of e)if(!kCe(t,r))return!1;return!0}i(USt,"isObjectWithProperties");function kCe(t,e){return j8(t)&&typeof t=="object"&&e in t}i(kCe,"objectHasProperty");function qSt(){let t="";for(let e=0;e<32;e++){let r=Math.floor(Math.random()*16);e===12?t+="4":e===16?t+=r&3|8:t+=r.toString(16),(e===7||e===11||e===15||e===19)&&(t+="-")}return t}i(qSt,"generateUUID");var W8,Y8=typeof((W8=globalThis?.crypto)===null||W8===void 0?void 0:W8.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):J8.randomUUID;Y8||(Y8=qSt);function $St(){return Y8()}i($St,"randomUUID");Cs.computeSha256Hash=FSt;Cs.computeSha256Hmac=MSt;Cs.createAbortablePromise=vCe;Cs.delay=kSt;Cs.getErrorMessage=LSt;Cs.getRandomIntegerInclusive=OSt;Cs.isDefined=j8;Cs.isError=DCe;Cs.isNode=QSt;Cs.isObject=QCe;Cs.isObjectWithProperties=USt;Cs.objectHasProperty=kCe;Cs.randomUUID=$St});var nIe=S(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var GSt=PCe(),LCe=z8(),HSt=OCe(),Pm=GSt.createClientLogger("core-lro"),FCe=2e3,UCe=["succeeded","canceled","failed"];function qCe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(qCe,"deserializeState");function MCe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(MCe,"setStateError");function zSt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(zSt,"appendReadableErrorMessage");function VSt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=zSt(e,n.message);return{code:r,message:e}}i(VSt,"simplifyError");function $Ce(t){let{state:e,stateProxy:r,status:n,isDone:s,processResult:o,getError:a,response:c,setErrorAsResult:l}=t;switch(n){case"succeeded":{r.setSucceeded(e);break}case"failed":{let u=a?.(c),d="";if(u){let{code:f,message:m}=VSt(u);d=`. ${f}. ${m}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),Pm.warning(p);break}case"canceled":{r.setCanceled(e);break}}(s?.(c,e)||s===void 0&&["succeeded","canceled"].concat(l?[]:["failed"]).includes(n))&&r.setResult(e,WSt({response:c,state:e,processResult:o}))}i($Ce,"processOperationStatus");function WSt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(WSt,"buildResult");async function GCe(t){let{init:e,stateProxy:r,processResult:n,getOperationStatus:s,withOperationLocation:o,setErrorAsResult:a}=t,{operationLocation:c,resourceLocation:l,metadata:u,response:d}=await e();c&&o?.(c,!1);let p={metadata:u,operationLocation:c,resourceLocation:l};Pm.verbose("LRO: Operation description:",p);let f=r.initState(p),m=s({response:d,state:f,operationLocation:c});return $Ce({state:f,status:m,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),f}i(GCe,"initOperation");async function YSt(t){let{poll:e,state:r,stateProxy:n,operationLocation:s,getOperationStatus:o,getResourceLocation:a,isOperationError:c,options:l}=t,u=await e(s,l).catch(MCe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(Pm.verbose(`LRO: Status:
|
|
Polling from: ${r.config.operationLocation}
|
|
Operation status: ${d}
|
|
Polling status: ${UCe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(MCe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(YSt,"pollOperationHelper");async function HCe(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:o,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:p,getError:f,updateState:m,setDelay:h,isDone:A,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:I,status:x}=await YSt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if($Ce({status:x,response:I,state:r,stateProxy:n,isDone:A,processResult:p,getError:f,setErrorAsResult:y}),!UCe.includes(x)){let b=d?.(I);b&&h(b);let N=c?.(I,r);if(N!==void 0){let v=E!==N;r.config.operationLocation=N,u?.(N,v)}else u?.(E,!1)}m?.(r,I)}}i(HCe,"pollOperation");function zCe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(zCe,"getOperationLocationPollingUrl");function VCe(t){return t.headers.location}i(VCe,"getLocationHeader");function WCe(t){return t.headers["operation-location"]}i(WCe,"getOperationLocationHeader");function YCe(t){return t.headers["azure-asyncoperation"]}i(YCe,"getAzureAsyncOperationHeader");function JSt(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}i(JSt,"findResourceLocation");function JCe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=WCe(e),a=YCe(e),c=zCe({operationLocation:o,azureAsyncOperation:a}),l=VCe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:JSt({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(JCe,"inferLroMode");function jCe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return Z8(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Pm.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(jCe,"transformStatus");function jSt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return jCe({status:r,statusCode:t.statusCode})}i(jSt,"getStatus");function KSt(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},o=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return jCe({status:o,statusCode:t.statusCode})}i(KSt,"getProvisioningState");function Z8(t){return t===202?"running":t<300?"succeeded":"failed"}i(Z8,"toOperationStatus");function KCe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?XSt(new Date(e)):r*1e3}}i(KCe,"parseRetryAfter");function XCe(t){let e=t.flatResponse.error;if(!e){Pm.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Pm.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(XCe,"getErrorFromResponse");function XSt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(XSt,"calculatePollingIntervalFromDate");function ZCe(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return Z8(e.rawResponse.statusCode);case"Body":return eY(e,r);default:return"running"}}i(s,"helper");let o=s();return o==="running"&&n===void 0?"succeeded":o}i(ZCe,"getStatusFromInitialResponse");async function ZSt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:o}=t;return GCe({init:i(async()=>{let a=await s.sendInitialRequest(),c=JCe({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:ZCe,setErrorAsResult:o})}i(ZSt,"initHttpOperation");function eIe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return zCe({operationLocation:WCe(t),azureAsyncOperation:YCe(t)});case"ResourceLocation":return VCe(t);default:return}}i(eIe,"getOperationLocation");function eY({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return jSt(t);case"ResourceLocation":return Z8(t.statusCode);case"Body":return KSt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(eY,"getOperationStatus");function tIe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(tIe,"getResourceLocation");function rIe(t){return t.name==="RestError"}i(rIe,"isOperationError");async function ewt(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return HCe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:XCe,updateState:o,getPollingInterval:KCe,getOperationLocation:eIe,getOperationStatus:eY,isOperationError:rIe,getResourceLocation:tIe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(ewt,"pollHttpOperation");var twt=i(()=>({initState:i(t=>({status:"running",config:t}),"initState"),setCanceled:i(t=>t.status="canceled","setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.status="running","setRunning"),setSucceeded:i(t=>t.status="succeeded","setSucceeded"),setFailed:i(t=>t.status="failed","setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>t.status==="canceled","isCanceled"),isFailed:i(t=>t.status==="failed","isFailed"),isRunning:i(t=>t.status==="running","isRunning"),isSucceeded:i(t=>t.status==="succeeded","isSucceeded")}),"createStateProxy$1");function rwt(t){let{getOperationLocation:e,getStatusFromInitialResponse:r,getStatusFromPollResponse:n,isOperationError:s,getResourceLocation:o,getPollingInterval:a,getError:c,resolveOnUnsuccessful:l}=t;return async({init:u,poll:d},p)=>{let{processResult:f,updateState:m,withOperationLocation:h,intervalInMs:A=FCe,restoreFrom:y}=p||{},E=twt(),I=h?(()=>{let De=!1;return(ce,Tt)=>{Tt?h(ce):De||h(ce),De=!0}})():void 0,x=y?qCe(y):await GCe({init:u,stateProxy:E,processResult:f,getOperationStatus:r,withOperationLocation:I,setErrorAsResult:!l}),b,N=new LCe.AbortController,v=new Map,_=i(async()=>v.forEach(De=>De(x)),"handleProgressEvents"),J="Operation was canceled",Be=A,ke={getOperationState:i(()=>x,"getOperationState"),getResult:i(()=>x.result,"getResult"),isDone:i(()=>["succeeded","failed","canceled"].includes(x.status),"isDone"),isStopped:i(()=>b===void 0,"isStopped"),stopPolling:i(()=>{N.abort()},"stopPolling"),toString:i(()=>JSON.stringify({state:x}),"toString"),onProgress:i(De=>{let ce=Symbol();return v.set(ce,De),()=>v.delete(ce)},"onProgress"),pollUntilDone:i(De=>b??(b=(async()=>{let{abortSignal:ce}=De||{},{signal:Tt}=ce?new LCe.AbortController([ce,N.signal]):N;if(!ke.isDone())for(await ke.poll({abortSignal:Tt});!ke.isDone();)await HSt.delay(Be,{abortSignal:Tt}),await ke.poll({abortSignal:Tt});if(l)return ke.getResult();switch(x.status){case"succeeded":return ke.getResult();case"canceled":throw new Error(J);case"failed":throw x.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{b=void 0})),"pollUntilDone"),async poll(De){if(l){if(ke.isDone())return}else switch(x.status){case"succeeded":return;case"canceled":throw new Error(J);case"failed":throw x.error}if(await HCe({poll:d,state:x,stateProxy:E,getOperationLocation:e,isOperationError:s,withOperationLocation:I,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:f,getError:c,updateState:m,options:De,setDelay:i(ce=>{Be=ce},"setDelay"),setErrorAsResult:!l}),await _(),!l)switch(x.status){case"canceled":throw new Error(J);case"failed":throw x.error}}};return ke}}i(rwt,"buildCreatePoller");async function nwt(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return rwt({getStatusFromInitialResponse:ZCe,getStatusFromPollResponse:eY,isOperationError:rIe,getOperationLocation:eIe,getResourceLocation:tIe,getPollingInterval:KCe,getError:XCe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=JCe({rawResponse:u.rawResponse,requestPath:t.requestPath,requestMethod:t.requestMethod,resourceLocationConfig:r});return Object.assign({response:u,operationLocation:d?.operationLocation,resourceLocation:d?.resourceLocation},d?.mode?{metadata:{mode:d.mode}}:{})},"init"),poll:t.sendPollRequest},{intervalInMs:n,withOperationLocation:c,restoreFrom:o,updateState:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u})}i(nwt,"createHttpPoller");var swt=i(()=>({initState:i(t=>({config:t,isStarted:!0}),"initState"),setCanceled:i(t=>t.isCancelled=!0,"setCanceled"),setError:i((t,e)=>t.error=e,"setError"),setResult:i((t,e)=>t.result=e,"setResult"),setRunning:i(t=>t.isStarted=!0,"setRunning"),setSucceeded:i(t=>t.isCompleted=!0,"setSucceeded"),setFailed:i(()=>{},"setFailed"),getError:i(t=>t.error,"getError"),getResult:i(t=>t.result,"getResult"),isCanceled:i(t=>!!t.isCancelled,"isCanceled"),isFailed:i(t=>!!t.error,"isFailed"),isRunning:i(t=>!!t.isStarted,"isRunning"),isSucceeded:i(t=>!!(t.isCompleted&&!t.isCancelled&&!t.error),"isSucceeded")}),"createStateProxy"),K8=class{static{i(this,"GenericPollOperation")}constructor(e,r,n,s,o,a,c){this.state=e,this.lro=r,this.setErrorAsResult=n,this.lroResourceLocationConfig=s,this.processResult=o,this.updateState=a,this.isDone=c}setPollerConfig(e){this.pollerConfig=e}async update(e){var r;let n=swt();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await ZSt({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult})));let s=this.updateState,o=this.isDone;return!this.state.isCompleted&&this.state.error===void 0&&await ewt({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:s?(a,{rawResponse:c})=>s(a,c):void 0,isDone:o?({flatResponse:a},c)=>o(a,c):void 0,options:e,setDelay:i(a=>{this.pollerConfig.intervalInMs=a},"setDelay"),setErrorAsResult:this.setErrorAsResult}),(r=e?.fireProgress)===null||r===void 0||r.call(e,this.state),this}async cancel(){return Pm.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},B_=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},R_=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},N_=class{static{i(this,"Poller")}constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((r,n)=>{this.resolve=r,this.reject=n}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let r of this.pollProgressCallbacks)r(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let r=i(()=>{this.pollOncePromise=void 0},"clearPollOncePromise");this.pollOncePromise.then(r,r).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new R_("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(r=>r!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new B_("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw new Error("A cancel request is currently pending");return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},X8=class extends N_{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=FCe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?qCe(s):{},p=new K8(d,e,!o,c,l,u,a);super(p),this.resolveOnUnsuccessful=o,this.config={intervalInMs:n},p.setPollerConfig(this.config)}delay(){return new Promise(e=>setTimeout(()=>e(),this.config.intervalInMs))}};_m.LroEngine=X8;_m.Poller=N_;_m.PollerCancelledError=R_;_m.PollerStoppedError=B_;_m.createHttpPoller=nwt});var bIe=S((WTr,bwt)=>{bwt.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"~1.23.0","@azure/storage-blob":"~12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var RIe=S((YTr,BIe)=>{var Bwt=bIe();BIe.exports={version:Bwt.version}});var q_=S(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0});Yg.isJsonObject=Yg.typeofJsonValue=void 0;function Dwt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(Dwt,"typeofJsonValue");Yg.typeofJsonValue=Dwt;function kwt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(kwt,"isJsonObject");Yg.isJsonObject=kwt});var G_=S(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.base64encode=Jg.base64decode=void 0;var Nu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),$_=[];for(let t=0;t<Nu.length;t++)$_[Nu[t].charCodeAt(0)]=t;$_[45]=Nu.indexOf("+");$_[95]=Nu.indexOf("/");function Owt(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,o,a=0;for(let c=0;c<t.length;c++){if(o=$_[t.charCodeAt(c)],o===void 0)switch(t[c]){case"=":s=0;case`
|
|
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=o,s=1;break;case 1:r[n++]=a<<2|(o&48)>>4,a=o,s=2;break;case 2:r[n++]=(a&15)<<4|(o&60)>>2,a=o,s=3;break;case 3:r[n++]=(a&3)<<6|o,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(Owt,"base64decode");Jg.base64decode=Owt;function Lwt(t){let e="",r=0,n,s=0;for(let o=0;o<t.length;o++)switch(n=t[o],r){case 0:e+=Nu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Nu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Nu[s|n>>6],e+=Nu[n&63],r=0;break}return r&&(e+=Nu[s],e+="=",r==1&&(e+="=")),e}i(Lwt,"base64encode");Jg.base64encode=Lwt});var QIe=S(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.utf8read=void 0;var dY=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Mwt(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,o,a=t.length;for(;e<a;)o=t[e++],o<128?n[s++]=o:o>191&&o<224?n[s++]=(o&31)<<6|t[e++]&63:o>239&&o<365?(o=((o&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(o>>10),n[s++]=56320+(o&1023)):n[s++]=(o&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(dY(n)),s=0);return r.length?(s&&r.push(dY(n.slice(0,s))),r.join("")):dY(n.slice(0,s))}i(Mwt,"utf8read");H_.utf8read=Mwt});var Fw=S(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.WireType=Vc.mergeBinaryOptions=Vc.UnknownFieldHandler=void 0;var Fwt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,o,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:o,data:a})},t.onWrite=(r,n,s)=>{for(let{no:o,wireType:a,data:c}of t.list(n))s.tag(o,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(o=>o.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(Fwt=Vc.UnknownFieldHandler||(Vc.UnknownFieldHandler={}));function Uwt(t,e){return Object.assign(Object.assign({},t),e)}i(Uwt,"mergeBinaryOptions");Vc.mergeBinaryOptions=Uwt;var qwt;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(qwt=Vc.WireType||(Vc.WireType={}))});var V_=S(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.varint32read=js.varint32write=js.int64toString=js.int64fromString=js.varint64write=js.varint64read=void 0;function $wt(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i($wt,"varint64read");js.varint64read=$wt;function Gwt(t,e,r){for(let o=0;o<28;o=o+7){let a=t>>>o,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let o=3;o<31;o=o+7){let a=e>>>o,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}i(Gwt,"varint64write");js.varint64write=Gwt;var z_=65536*65536;function Hwt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function o(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=z_&&(s=s+(n/z_|0),n=n%z_)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(Hwt,"int64fromString");js.int64fromString=Hwt;function zwt(t,e){if(e>>>0<=2097151)return""+(z_*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,o=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,p){let f=d?String(d):"";return p?"0000000".slice(f.length)+f:f}return i(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(o,1)}i(zwt,"int64toString");js.int64toString=zwt;function Vwt(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}i(Vwt,"varint32write");js.varint32write=Vwt;function Wwt(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}i(Wwt,"varint32read");js.varint32read=Wwt});var zd=S(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.PbLong=Hd.PbULong=Hd.detectBi=void 0;var Uw=V_(),Rt;function DIe(){let t=new DataView(new ArrayBuffer(8));Rt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}i(DIe,"detectBi");Hd.detectBi=DIe;DIe();function kIe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i(kIe,"assertBi");var OIe=/^-?[0-9]+$/,Y_=4294967296,W_=2147483648,J_=class{static{i(this,"SharedPbLong")}constructor(e,r){this.lo=e|0,this.hi=r|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*Y_+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},qw=class t extends J_{static{i(this,"PbULong")}static from(e){if(Rt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Rt.C(e);case"number":if(e===0)return this.ZERO;e=Rt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Rt.UMIN)throw new Error("signed value for ulong");if(e>Rt.UMAX)throw new Error("ulong too large");return Rt.V.setBigUint64(0,e,!0),new t(Rt.V.getInt32(0,!0),Rt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!OIe.test(e))throw new Error("string is no integer");let[r,n,s]=Uw.int64fromString(e);if(r)throw new Error("signed value for ulong");return new t(n,s);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new t(e,e/Y_)}throw new Error("unknown value "+typeof e)}toString(){return Rt?this.toBigInt().toString():Uw.int64toString(this.lo,this.hi)}toBigInt(){return kIe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigUint64(0,!0)}};Hd.PbULong=qw;qw.ZERO=new qw(0,0);var $w=class t extends J_{static{i(this,"PbLong")}static from(e){if(Rt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Rt.C(e);case"number":if(e===0)return this.ZERO;e=Rt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Rt.MIN)throw new Error("signed long too small");if(e>Rt.MAX)throw new Error("signed long too large");return Rt.V.setBigInt64(0,e,!0),new t(Rt.V.getInt32(0,!0),Rt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!OIe.test(e))throw new Error("string is no integer");let[r,n,s]=Uw.int64fromString(e);if(r){if(s>W_||s==W_&&n!=0)throw new Error("signed long too small")}else if(s>=W_)throw new Error("signed long too large");let o=new t(n,s);return r?o.negate():o;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new t(e,e/Y_):new t(-e,-e/Y_).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&W_)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Rt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+Uw.int64toString(e.lo,e.hi)}return Uw.int64toString(this.lo,this.hi)}toBigInt(){return kIe(Rt),Rt.V.setInt32(0,this.lo,!0),Rt.V.setInt32(4,this.hi,!0),Rt.V.getBigInt64(0,!0)}};Hd.PbLong=$w;$w.ZERO=new $w(0,0)});var pY=S(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.BinaryReader=Kg.binaryReadOptions=void 0;var jg=Fw(),Gw=zd(),LIe=V_(),MIe={readUnknownField:!0,readerFactory:i(t=>new j_(t),"readerFactory")};function Ywt(t){return t?Object.assign(Object.assign({},MIe),t):MIe}i(Ywt,"binaryReadOptions");Kg.binaryReadOptions=Ywt;var j_=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=LIe.varint64read,this.uint32=LIe.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=r??new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),r=e>>>3,n=e&7;if(r<=0||n<0||n>5)throw new Error("illegal tag: field no "+r+" wire type "+n);return[r,n]}skip(e){let r=this.pos;switch(e){case jg.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case jg.WireType.Bit64:this.pos+=4;case jg.WireType.Bit32:this.pos+=4;break;case jg.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case jg.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==jg.WireType.EndGroup;)this.skip(s);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new Gw.PbLong(...this.varint64())}uint64(){return new Gw.PbULong(...this.varint64())}sint64(){let[e,r]=this.varint64(),n=-(e&1);return e=(e>>>1|(r&1)<<31)^n,r=r>>>1^n,new Gw.PbLong(e,r)}bool(){let[e,r]=this.varint64();return e!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new Gw.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new Gw.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),r=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(r,r+e)}string(){return this.textDecoder.decode(this.bytes())}};Kg.BinaryReader=j_});var Xg=S(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.assertFloat32=Bi.assertUInt32=Bi.assertInt32=Bi.assertNever=Bi.assert=void 0;function Jwt(t,e){if(!t)throw new Error(e)}i(Jwt,"assert");Bi.assert=Jwt;function jwt(t,e){throw new Error(e??"Unexpected object: "+t)}i(jwt,"assertNever");Bi.assertNever=jwt;var Kwt=34028234663852886e22,Xwt=-34028234663852886e22,Zwt=4294967295,ext=2147483647,txt=-2147483648;function rxt(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>ext||t<txt)throw new Error("invalid int 32: "+t)}i(rxt,"assertInt32");Bi.assertInt32=rxt;function nxt(t){if(typeof t!="number")throw new Error("invalid uint 32: "+typeof t);if(!Number.isInteger(t)||t>Zwt||t<0)throw new Error("invalid uint 32: "+t)}i(nxt,"assertUInt32");Bi.assertUInt32=nxt;function sxt(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>Kwt||t<Xwt))throw new Error("invalid float 32: "+t)}i(sxt,"assertFloat32");Bi.assertFloat32=sxt});var fY=S(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.BinaryWriter=ey.binaryWriteOptions=void 0;var Hw=zd(),zw=V_(),Zg=Xg(),FIe={writeUnknownFields:!0,writerFactory:i(()=>new K_,"writerFactory")};function oxt(t){return t?Object.assign(Object.assign({},FIe),t):FIe}i(oxt,"binaryWriteOptions");ey.binaryWriteOptions=oxt;var K_=class{static{i(this,"BinaryWriter")}constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let s=0;s<this.chunks.length;s++)e+=this.chunks[s].length;let r=new Uint8Array(e),n=0;for(let s=0;s<this.chunks.length;s++)r.set(this.chunks[s],n),n+=this.chunks[s].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,r){return this.uint32((e<<3|r)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Zg.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return Zg.assertInt32(e),zw.varint32write(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let r=this.textEncoder.encode(e);return this.uint32(r.byteLength),this.raw(r)}float(e){Zg.assertFloat32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,e,!0),this.raw(r)}double(e){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,e,!0),this.raw(r)}fixed32(e){Zg.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){Zg.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return Zg.assertInt32(e),e=(e<<1^e>>31)>>>0,zw.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=Hw.PbLong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}fixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=Hw.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=Hw.PbLong.from(e);return zw.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=Hw.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return zw.varint64write(s,o,this.buf),this}uint64(e){let r=Hw.PbULong.from(e);return zw.varint64write(r.lo,r.hi,this.buf),this}};ey.BinaryWriter=K_});var mY=S(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.mergeJsonOptions=Vd.jsonWriteOptions=Vd.jsonReadOptions=void 0;var UIe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},qIe={ignoreUnknownFields:!1};function ixt(t){return t?Object.assign(Object.assign({},qIe),t):qIe}i(ixt,"jsonReadOptions");Vd.jsonReadOptions=ixt;function axt(t){return t?Object.assign(Object.assign({},UIe),t):UIe}i(axt,"jsonWriteOptions");Vd.jsonWriteOptions=axt;function cxt(t,e){var r,n;let s=Object.assign(Object.assign({},t),e);return s.typeRegistry=[...(r=t?.typeRegistry)!==null&&r!==void 0?r:[],...(n=e?.typeRegistry)!==null&&n!==void 0?n:[]],s}i(cxt,"mergeJsonOptions");Vd.mergeJsonOptions=cxt});var Vw=S(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.MESSAGE_TYPE=void 0;X_.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var hY=S(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.lowerCamelCase=void 0;function lxt(t){let e=!1,r=[];for(let n=0;n<t.length;n++){let s=t.charAt(n);s=="_"?e=!0:/\d/.test(s)?(r.push(s),e=!0):e?(r.push(s.toUpperCase()),e=!1):n==0?r.push(s.toLowerCase()):r.push(s)}return r.join("")}i(lxt,"lowerCamelCase");Z_.lowerCamelCase=lxt});var Ea=S(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.readMessageOption=Jr.readFieldOption=Jr.readFieldOptions=Jr.normalizeFieldInfo=Jr.RepeatType=Jr.LongType=Jr.ScalarType=void 0;var $Ie=hY(),uxt;(function(t){t[t.DOUBLE=1]="DOUBLE",t[t.FLOAT=2]="FLOAT",t[t.INT64=3]="INT64",t[t.UINT64=4]="UINT64",t[t.INT32=5]="INT32",t[t.FIXED64=6]="FIXED64",t[t.FIXED32=7]="FIXED32",t[t.BOOL=8]="BOOL",t[t.STRING=9]="STRING",t[t.BYTES=12]="BYTES",t[t.UINT32=13]="UINT32",t[t.SFIXED32=15]="SFIXED32",t[t.SFIXED64=16]="SFIXED64",t[t.SINT32=17]="SINT32",t[t.SINT64=18]="SINT64"})(uxt=Jr.ScalarType||(Jr.ScalarType={}));var dxt;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(dxt=Jr.LongType||(Jr.LongType={}));var GIe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(GIe=Jr.RepeatType||(Jr.RepeatType={}));function pxt(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:$Ie.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:$Ie.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:GIe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(pxt,"normalizeFieldInfo");Jr.normalizeFieldInfo=pxt;function fxt(t,e,r,n){var s;let o=(s=t.fields.find((a,c)=>a.localName==e||c==e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(fxt,"readFieldOptions");Jr.readFieldOptions=fxt;function mxt(t,e,r,n){var s;let o=(s=t.fields.find((c,l)=>c.localName==e||l==e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(mxt,"readFieldOption");Jr.readFieldOption=mxt;function hxt(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(hxt,"readMessageOption");Jr.readMessageOption=hxt});var AY=S(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.getSelectedOneofValue=Ks.clearOneofValue=Ks.setUnknownOneofValue=Ks.setOneofValue=Ks.getOneofValue=Ks.isOneofGroup=void 0;function Axt(t){if(typeof t!="object"||t===null||!t.hasOwnProperty("oneofKind"))return!1;switch(typeof t.oneofKind){case"string":return t[t.oneofKind]===void 0?!1:Object.keys(t).length==2;case"undefined":return Object.keys(t).length==1;default:return!1}}i(Axt,"isOneofGroup");Ks.isOneofGroup=Axt;function gxt(t,e){return t[e]}i(gxt,"getOneofValue");Ks.getOneofValue=gxt;function yxt(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(yxt,"setOneofValue");Ks.setOneofValue=yxt;function Ext(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(Ext,"setUnknownOneofValue");Ks.setUnknownOneofValue=Ext;function Cxt(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(Cxt,"clearOneofValue");Ks.clearOneofValue=Cxt;function Ixt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(Ixt,"getSelectedOneofValue");Ks.getSelectedOneofValue=Ixt});var yY=S(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});ev.ReflectionTypeCheck=void 0;var hr=Ea(),Sxt=AY(),gY=class{static{i(this,"ReflectionTypeCheck")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}prepare(){if(this.data)return;let e=[],r=[],n=[];for(let s of this.fields)if(s.oneof)n.includes(s.oneof)||(n.push(s.oneof),e.push(s.oneof),r.push(s.oneof));else switch(r.push(s.localName),s.kind){case"scalar":case"enum":(!s.opt||s.repeat)&&e.push(s.localName);break;case"message":s.repeat&&e.push(s.localName);break;case"map":e.push(s.localName);break}this.data={req:e,known:r,oneofs:Object.values(n)}}is(e,r,n=!1){if(r<0)return!0;if(e==null||typeof e!="object")return!1;this.prepare();let s=Object.keys(e),o=this.data;if(s.length<o.req.length||o.req.some(a=>!s.includes(a))||!n&&s.some(a=>!o.known.includes(a)))return!1;if(r<1)return!0;for(let a of o.oneofs){let c=e[a];if(!Sxt.isOneofGroup(c))return!1;if(c.oneofKind===void 0)continue;let l=this.fields.find(u=>u.localName===c.oneofKind);if(!l||!this.field(c[c.oneofKind],l,n,r))return!1}for(let a of this.fields)if(a.oneof===void 0&&!this.field(e[a.localName],a,n,r))return!1;return!0}field(e,r,n,s){let o=r.repeat;switch(r.kind){case"scalar":return e===void 0?r.opt:o?this.scalars(e,r.T,s,r.L):this.scalar(e,r.T,r.L);case"enum":return e===void 0?r.opt:o?this.scalars(e,hr.ScalarType.INT32,s):this.scalar(e,hr.ScalarType.INT32);case"message":return e===void 0?!0:o?this.messages(e,r.T(),n,s):this.message(e,r.T(),n,s);case"map":if(typeof e!="object"||e===null)return!1;if(s<2)return!0;if(!this.mapKeys(e,r.K,s))return!1;switch(r.V.kind){case"scalar":return this.scalars(Object.values(e),r.V.T,s,r.V.L);case"enum":return this.scalars(Object.values(e),hr.ScalarType.INT32,s);case"message":return this.messages(Object.values(e),r.V.T(),n,s)}break}return!0}message(e,r,n,s){return n?r.isAssignable(e,s):r.is(e,s)}messages(e,r,n,s){if(!Array.isArray(e))return!1;if(s<2)return!0;if(n){for(let o=0;o<e.length&&o<s;o++)if(!r.isAssignable(e[o],s-1))return!1}else for(let o=0;o<e.length&&o<s;o++)if(!r.is(e[o],s-1))return!1;return!0}scalar(e,r,n){let s=typeof e;switch(r){case hr.ScalarType.UINT64:case hr.ScalarType.FIXED64:case hr.ScalarType.INT64:case hr.ScalarType.SFIXED64:case hr.ScalarType.SINT64:switch(n){case hr.LongType.BIGINT:return s=="bigint";case hr.LongType.NUMBER:return s=="number"&&!isNaN(e);default:return s=="string"}case hr.ScalarType.BOOL:return s=="boolean";case hr.ScalarType.STRING:return s=="string";case hr.ScalarType.BYTES:return e instanceof Uint8Array;case hr.ScalarType.DOUBLE:case hr.ScalarType.FLOAT:return s=="number"&&!isNaN(e);default:return s=="number"&&Number.isInteger(e)}}scalars(e,r,n,s){if(!Array.isArray(e))return!1;if(n<2)return!0;if(Array.isArray(e)){for(let o=0;o<e.length&&o<n;o++)if(!this.scalar(e[o],r,s))return!1}return!0}mapKeys(e,r,n){let s=Object.keys(e);switch(r){case hr.ScalarType.INT32:case hr.ScalarType.FIXED32:case hr.ScalarType.SFIXED32:case hr.ScalarType.SINT32:case hr.ScalarType.UINT32:return this.scalars(s.slice(0,n).map(o=>parseInt(o)),r,n);case hr.ScalarType.BOOL:return this.scalars(s.slice(0,n).map(o=>o=="true"?!0:o=="false"?!1:o),r,n);default:return this.scalars(s,r,n,hr.LongType.STRING)}}};ev.ReflectionTypeCheck=gY});var rv=S(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});tv.reflectionLongConvert=void 0;var HIe=Ea();function wxt(t,e){switch(e){case HIe.LongType.BIGINT:return t.toBigInt();case HIe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(wxt,"reflectionLongConvert");tv.reflectionLongConvert=wxt});var CY=S(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});ov.ReflectionJsonReader=void 0;var zIe=q_(),xxt=G_(),jr=Ea(),nv=zd(),Qm=Xg(),sv=rv(),EY=class{static{i(this,"ReflectionJsonReader")}constructor(e){this.info=e}prepare(){var e;if(this.fMap===void 0){this.fMap={};let r=(e=this.info.fields)!==null&&e!==void 0?e:[];for(let n of r)this.fMap[n.name]=n,this.fMap[n.jsonName]=n,this.fMap[n.localName]=n}}assert(e,r,n){if(!e){let s=zIe.typeofJsonValue(n);throw(s=="number"||s=="boolean")&&(s=n.toString()),new Error(`Cannot parse JSON ${s} for ${this.info.typeName}#${r}`)}}read(e,r,n){this.prepare();let s=[];for(let[o,a]of Object.entries(e)){let c=this.fMap[o];if(!c){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let l=c.localName,u;if(c.oneof){if(a===null&&(c.kind!=="enum"||c.T()[0]!=="google.protobuf.NullValue"))continue;if(s.includes(c.oneof))throw new Error(`Multiple members of the oneof group "${c.oneof}" of ${this.info.typeName} are present in JSON.`);s.push(c.oneof),u=r[c.oneof]={oneofKind:l}}else u=r;if(c.kind=="map"){if(a===null)continue;this.assert(zIe.isJsonObject(a),c.name,a);let d=u[l];for(let[p,f]of Object.entries(a)){this.assert(f!==null,c.name+" map value",null);let m;switch(c.V.kind){case"message":m=c.V.T().internalJsonRead(f,n);break;case"enum":if(m=this.enum(c.V.T(),f,c.name,n.ignoreUnknownFields),m===!1)continue;break;case"scalar":m=this.scalar(f,c.V.T,c.V.L,c.name);break}this.assert(m!==void 0,c.name+" map value",f);let h=p;c.K==jr.ScalarType.BOOL&&(h=h=="true"?!0:h=="false"?!1:h),h=this.scalar(h,c.K,jr.LongType.STRING,c.name).toString(),d[h]=m}}else if(c.repeat){if(a===null)continue;this.assert(Array.isArray(a),c.name,a);let d=u[l];for(let p of a){this.assert(p!==null,c.name,null);let f;switch(c.kind){case"message":f=c.T().internalJsonRead(p,n);break;case"enum":if(f=this.enum(c.T(),p,c.name,n.ignoreUnknownFields),f===!1)continue;break;case"scalar":f=this.scalar(p,c.T,c.L,c.name);break}this.assert(f!==void 0,c.name,a),d.push(f)}}else switch(c.kind){case"message":if(a===null&&c.T().typeName!="google.protobuf.Value"){this.assert(c.oneof===void 0,c.name+" (oneof member)",null);continue}u[l]=c.T().internalJsonRead(a,n,u[l]);break;case"enum":if(a===null)continue;let d=this.enum(c.T(),a,c.name,n.ignoreUnknownFields);if(d===!1)continue;u[l]=d;break;case"scalar":if(a===null)continue;u[l]=this.scalar(a,c.T,c.L,c.name);break}}}enum(e,r,n,s){if(e[0]=="google.protobuf.NullValue"&&Qm.assert(r===null||r==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),r===null)return 0;switch(typeof r){case"number":return Qm.assert(Number.isInteger(r),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${r}.`),r;case"string":let o=r;e[2]&&r.substring(0,e[2].length)===e[2]&&(o=r.substring(e[2].length));let a=e[1][o];return typeof a>"u"&&s?!1:(Qm.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}Qm.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof r}".`)}scalar(e,r,n,s){let o;try{switch(r){case jr.ScalarType.DOUBLE:case jr.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){o="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){o="extra whitespace";break}if(typeof e!="string"&&typeof e!="number")break;let a=Number(e);if(Number.isNaN(a)){o="not a number";break}if(!Number.isFinite(a)){o="too large or small";break}return r==jr.ScalarType.FLOAT&&Qm.assertFloat32(a),a;case jr.ScalarType.INT32:case jr.ScalarType.FIXED32:case jr.ScalarType.SFIXED32:case jr.ScalarType.SINT32:case jr.ScalarType.UINT32:if(e===null)return 0;let c;if(typeof e=="number"?c=e:e===""?o="empty string":typeof e=="string"&&(e.trim().length!==e.length?o="extra whitespace":c=Number(e)),c===void 0)break;return r==jr.ScalarType.UINT32?Qm.assertUInt32(c):Qm.assertInt32(c),c;case jr.ScalarType.INT64:case jr.ScalarType.SFIXED64:case jr.ScalarType.SINT64:if(e===null)return sv.reflectionLongConvert(nv.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return sv.reflectionLongConvert(nv.PbLong.from(e),n);case jr.ScalarType.FIXED64:case jr.ScalarType.UINT64:if(e===null)return sv.reflectionLongConvert(nv.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return sv.reflectionLongConvert(nv.PbULong.from(e),n);case jr.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case jr.ScalarType.STRING:if(e===null)return"";if(typeof e!="string"){o="extra whitespace";break}try{encodeURIComponent(e)}catch(l){l="invalid UTF8";break}return e;case jr.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return xxt.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};ov.ReflectionJsonReader=EY});var SY=S(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.ReflectionJsonWriter=void 0;var bxt=G_(),VIe=zd(),Is=Ea(),Jt=Xg(),IY=class{static{i(this,"ReflectionJsonWriter")}constructor(e){var r;this.fields=(r=e.fields)!==null&&r!==void 0?r:[]}write(e,r){let n={},s=e;for(let o of this.fields){if(!o.oneof){let u=this.field(o,s[o.localName],r);u!==void 0&&(n[r.useProtoFieldName?o.name:o.jsonName]=u);continue}let a=s[o.oneof];if(a.oneofKind!==o.localName)continue;let c=o.kind=="scalar"||o.kind=="enum"?Object.assign(Object.assign({},r),{emitDefaultValues:!0}):r,l=this.field(o,a[o.localName],c);Jt.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){Jt.assert(typeof r=="object"&&r!==null);let o={};switch(e.V.kind){case"scalar":for(let[l,u]of Object.entries(r)){let d=this.scalar(e.V.T,u,e.name,!1,!0);Jt.assert(d!==void 0),o[l.toString()]=d}break;case"message":let a=e.V.T();for(let[l,u]of Object.entries(r)){let d=this.message(a,u,e.name,n);Jt.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){Jt.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);Jt.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){Jt.assert(Array.isArray(r));let o=[];switch(e.kind){case"scalar":for(let l=0;l<r.length;l++){let u=this.scalar(e.T,r[l],e.name,e.opt,!0);Jt.assert(u!==void 0),o.push(u)}break;case"enum":let a=e.T();for(let l=0;l<r.length;l++){Jt.assert(r[l]===void 0||typeof r[l]=="number");let u=this.enum(a,r[l],e.name,e.opt,!0,n.enumAsInteger);Jt.assert(u!==void 0),o.push(u)}break;case"message":let c=e.T();for(let l=0;l<r.length;l++){let u=this.message(c,r[l],e.name,n);Jt.assert(u!==void 0),o.push(u)}break}(n.emitDefaultValues||o.length>0||n.emitDefaultValues)&&(s=o)}else switch(e.kind){case"scalar":s=this.scalar(e.T,r,e.name,e.opt,n.emitDefaultValues);break;case"enum":s=this.enum(e.T(),r,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":s=this.message(e.T(),r,e.name,n);break}return s}enum(e,r,n,s,o,a){if(e[0]=="google.protobuf.NullValue")return!o&&!s?void 0:null;if(r===void 0){Jt.assert(s);return}if(!(r===0&&!o&&!s))return Jt.assert(typeof r=="number"),Jt.assert(Number.isInteger(r)),a||!e[1].hasOwnProperty(r)?r:e[2]?e[2]+e[1][r]:e[1][r]}message(e,r,n,s){return r===void 0?s.emitDefaultValues?null:void 0:e.internalJsonWrite(r,s)}scalar(e,r,n,s,o){if(r===void 0){Jt.assert(s);return}let a=o||s;switch(e){case Is.ScalarType.INT32:case Is.ScalarType.SFIXED32:case Is.ScalarType.SINT32:return r===0?a?0:void 0:(Jt.assertInt32(r),r);case Is.ScalarType.FIXED32:case Is.ScalarType.UINT32:return r===0?a?0:void 0:(Jt.assertUInt32(r),r);case Is.ScalarType.FLOAT:Jt.assertFloat32(r);case Is.ScalarType.DOUBLE:return r===0?a?0:void 0:(Jt.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Is.ScalarType.STRING:return r===""?a?"":void 0:(Jt.assert(typeof r=="string"),r);case Is.ScalarType.BOOL:return r===!1?a?!1:void 0:(Jt.assert(typeof r=="boolean"),r);case Is.ScalarType.UINT64:case Is.ScalarType.FIXED64:Jt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=VIe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Is.ScalarType.INT64:case Is.ScalarType.SFIXED64:case Is.ScalarType.SINT64:Jt.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=VIe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Is.ScalarType.BYTES:return Jt.assert(r instanceof Uint8Array),r.byteLength?bxt.base64encode(r):a?"":void 0}}};iv.ReflectionJsonWriter=IY});var cv=S(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});av.reflectionScalarDefault=void 0;var Ca=Ea(),WIe=rv(),YIe=zd();function Bxt(t,e=Ca.LongType.STRING){switch(t){case Ca.ScalarType.BOOL:return!1;case Ca.ScalarType.UINT64:case Ca.ScalarType.FIXED64:return WIe.reflectionLongConvert(YIe.PbULong.ZERO,e);case Ca.ScalarType.INT64:case Ca.ScalarType.SFIXED64:case Ca.ScalarType.SINT64:return WIe.reflectionLongConvert(YIe.PbLong.ZERO,e);case Ca.ScalarType.DOUBLE:case Ca.ScalarType.FLOAT:return 0;case Ca.ScalarType.BYTES:return new Uint8Array(0);case Ca.ScalarType.STRING:return"";default:return 0}}i(Bxt,"reflectionScalarDefault");av.reflectionScalarDefault=Bxt});var xY=S(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});lv.ReflectionBinaryReader=void 0;var JIe=Fw(),Pr=Ea(),Ww=rv(),jIe=cv(),wY=class{static{i(this,"ReflectionBinaryReader")}constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let r=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(r.map(n=>[n.no,n]))}}read(e,r,n,s){this.prepare();let o=s===void 0?e.len:e.pos+s;for(;e.pos<o;){let[a,c]=e.tag(),l=this.fieldNoToField.get(a);if(!l){let f=n.readUnknownField;if(f=="throw")throw new Error(`Unknown field ${a} (wire type ${c}) for ${this.info.typeName}`);let m=e.skip(c);f!==!1&&(f===!0?JIe.UnknownFieldHandler.onRead:f)(this.info.typeName,r,a,c,m);continue}let u=r,d=l.repeat,p=l.localName;switch(l.oneof&&(u=u[l.oneof],u.oneofKind!==p&&(u=r[l.oneof]={oneofKind:p})),l.kind){case"scalar":case"enum":let f=l.kind=="enum"?Pr.ScalarType.INT32:l.T,m=l.kind=="scalar"?l.L:void 0;if(d){let y=u[p];if(c==JIe.WireType.LengthDelimited&&f!=Pr.ScalarType.STRING&&f!=Pr.ScalarType.BYTES){let E=e.uint32()+e.pos;for(;e.pos<E;)y.push(this.scalar(e,f,m))}else y.push(this.scalar(e,f,m))}else u[p]=this.scalar(e,f,m);break;case"message":if(d){let y=u[p],E=l.T().internalBinaryRead(e,e.uint32(),n);y.push(E)}else u[p]=l.T().internalBinaryRead(e,e.uint32(),n,u[p]);break;case"map":let[h,A]=this.mapEntry(l,e,n);u[p][h]=A;break}}}mapEntry(e,r,n){let s=r.uint32(),o=r.pos+s,a,c;for(;r.pos<o;){let[l,u]=r.tag();switch(l){case 1:e.K==Pr.ScalarType.BOOL?a=r.bool().toString():a=this.scalar(r,e.K,Pr.LongType.STRING);break;case 2:switch(e.V.kind){case"scalar":c=this.scalar(r,e.V.T,e.V.L);break;case"enum":c=r.int32();break;case"message":c=e.V.T().internalBinaryRead(r,r.uint32(),n);break}break;default:throw new Error(`Unknown field ${l} (wire type ${u}) in map entry for ${this.info.typeName}#${e.name}`)}}if(a===void 0){let l=jIe.reflectionScalarDefault(e.K);a=e.K==Pr.ScalarType.BOOL?l.toString():l}if(c===void 0)switch(e.V.kind){case"scalar":c=jIe.reflectionScalarDefault(e.V.T,e.V.L);break;case"enum":c=0;break;case"message":c=e.V.T().create();break}return[a,c]}scalar(e,r,n){switch(r){case Pr.ScalarType.INT32:return e.int32();case Pr.ScalarType.STRING:return e.string();case Pr.ScalarType.BOOL:return e.bool();case Pr.ScalarType.DOUBLE:return e.double();case Pr.ScalarType.FLOAT:return e.float();case Pr.ScalarType.INT64:return Ww.reflectionLongConvert(e.int64(),n);case Pr.ScalarType.UINT64:return Ww.reflectionLongConvert(e.uint64(),n);case Pr.ScalarType.FIXED64:return Ww.reflectionLongConvert(e.fixed64(),n);case Pr.ScalarType.FIXED32:return e.fixed32();case Pr.ScalarType.BYTES:return e.bytes();case Pr.ScalarType.UINT32:return e.uint32();case Pr.ScalarType.SFIXED32:return e.sfixed32();case Pr.ScalarType.SFIXED64:return Ww.reflectionLongConvert(e.sfixed64(),n);case Pr.ScalarType.SINT32:return e.sint32();case Pr.ScalarType.SINT64:return Ww.reflectionLongConvert(e.sint64(),n)}}};lv.ReflectionBinaryReader=wY});var BY=S(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});uv.ReflectionBinaryWriter=void 0;var Fo=Fw(),_t=Ea(),ty=Xg(),Yw=zd(),bY=class{static{i(this,"ReflectionBinaryWriter")}constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((r,n)=>r.no-n.no)}}write(e,r,n){this.prepare();for(let o of this.fields){let a,c,l=o.repeat,u=o.localName;if(o.oneof){let d=e[o.oneof];if(d.oneofKind!==u)continue;a=d[u],c=!0}else a=e[u],c=!1;switch(o.kind){case"scalar":case"enum":let d=o.kind=="enum"?_t.ScalarType.INT32:o.T;if(l)if(ty.assert(Array.isArray(a)),l==_t.RepeatType.PACKED)this.packed(r,d,o.no,a);else for(let p of a)this.scalar(r,d,o.no,p,!0);else a===void 0?ty.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){ty.assert(Array.isArray(a));for(let p of a)this.message(r,n,o.T(),o.no,p)}else this.message(r,n,o.T(),o.no,a);break;case"map":ty.assert(typeof a=="object"&&a!==null);for(let[p,f]of Object.entries(a))this.mapEntry(r,n,o,p,f);break}}let s=n.writeUnknownFields;s!==!1&&(s===!0?Fo.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,Fo.WireType.LengthDelimited),e.fork();let a=s;switch(n.K){case _t.ScalarType.INT32:case _t.ScalarType.FIXED32:case _t.ScalarType.UINT32:case _t.ScalarType.SFIXED32:case _t.ScalarType.SINT32:a=Number.parseInt(s);break;case _t.ScalarType.BOOL:ty.assert(s=="true"||s=="false"),a=s=="true";break}switch(this.scalar(e,n.K,1,a,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,o,!0);break;case"enum":this.scalar(e,_t.ScalarType.INT32,2,o,!0);break;case"message":this.message(e,r,n.V.T(),2,o);break}e.join()}message(e,r,n,s,o){o!==void 0&&(n.internalBinaryWrite(o,e.tag(s,Fo.WireType.LengthDelimited).fork(),r),e.join())}scalar(e,r,n,s,o){let[a,c,l]=this.scalarInfo(r,s);(!l||o)&&(e.tag(n,a),e[c](s))}packed(e,r,n,s){if(!s.length)return;ty.assert(r!==_t.ScalarType.BYTES&&r!==_t.ScalarType.STRING),e.tag(n,Fo.WireType.LengthDelimited),e.fork();let[,o]=this.scalarInfo(r);for(let a=0;a<s.length;a++)e[o](s[a]);e.join()}scalarInfo(e,r){let n=Fo.WireType.Varint,s,o=r===void 0,a=r===0;switch(e){case _t.ScalarType.INT32:s="int32";break;case _t.ScalarType.STRING:a=o||!r.length,n=Fo.WireType.LengthDelimited,s="string";break;case _t.ScalarType.BOOL:a=r===!1,s="bool";break;case _t.ScalarType.UINT32:s="uint32";break;case _t.ScalarType.DOUBLE:n=Fo.WireType.Bit64,s="double";break;case _t.ScalarType.FLOAT:n=Fo.WireType.Bit32,s="float";break;case _t.ScalarType.INT64:a=o||Yw.PbLong.from(r).isZero(),s="int64";break;case _t.ScalarType.UINT64:a=o||Yw.PbULong.from(r).isZero(),s="uint64";break;case _t.ScalarType.FIXED64:a=o||Yw.PbULong.from(r).isZero(),n=Fo.WireType.Bit64,s="fixed64";break;case _t.ScalarType.BYTES:a=o||!r.byteLength,n=Fo.WireType.LengthDelimited,s="bytes";break;case _t.ScalarType.FIXED32:n=Fo.WireType.Bit32,s="fixed32";break;case _t.ScalarType.SFIXED32:n=Fo.WireType.Bit32,s="sfixed32";break;case _t.ScalarType.SFIXED64:a=o||Yw.PbLong.from(r).isZero(),n=Fo.WireType.Bit64,s="sfixed64";break;case _t.ScalarType.SINT32:s="sint32";break;case _t.ScalarType.SINT64:a=o||Yw.PbLong.from(r).isZero(),s="sint64";break}return[n,s,o||a]}};uv.ReflectionBinaryWriter=bY});var RY=S(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});dv.reflectionCreate=void 0;var Rxt=cv(),Nxt=Vw();function Txt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},Nxt.MESSAGE_TYPE,{value:t});for(let r of t.fields){let n=r.localName;if(!r.opt)if(r.oneof)e[r.oneof]={oneofKind:void 0};else if(r.repeat)e[n]=[];else switch(r.kind){case"scalar":e[n]=Rxt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(Txt,"reflectionCreate");dv.reflectionCreate=Txt});var NY=S(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.reflectionMergePartial=void 0;function Pxt(t,e,r){let n,s=r,o;for(let a of t.fields){let c=a.localName;if(a.oneof){let l=s[a.oneof];if(l?.oneofKind==null)continue;if(n=l[c],o=e[a.oneof],o.oneofKind=l.oneofKind,n==null){delete o[c];continue}}else if(n=s[c],o=e,n==null)continue;switch(a.repeat&&(o[c].length=n.length),a.kind){case"scalar":case"enum":if(a.repeat)for(let u=0;u<n.length;u++)o[c][u]=n[u];else o[c]=n;break;case"message":let l=a.T();if(a.repeat)for(let u=0;u<n.length;u++)o[c][u]=l.create(n[u]);else o[c]===void 0?o[c]=l.create(n):l.mergePartial(o[c],n);break;case"map":switch(a.V.kind){case"scalar":case"enum":Object.assign(o[c],n);break;case"message":let u=a.V.T();for(let d of Object.keys(n))o[c][d]=u.create(n[d]);break}break}}}i(Pxt,"reflectionMergePartial");pv.reflectionMergePartial=Pxt});var PY=S(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});mv.reflectionEquals=void 0;var TY=Ea();function _xt(t,e,r){if(e===r)return!0;if(!e||!r)return!1;for(let n of t.fields){let s=n.localName,o=n.oneof?e[n.oneof][s]:e[s],a=n.oneof?r[n.oneof][s]:r[s];switch(n.kind){case"enum":case"scalar":let c=n.kind=="enum"?TY.ScalarType.INT32:n.T;if(!(n.repeat?KIe(c,o,a):ZIe(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?XIe(n.V.T(),fv(o),fv(a)):KIe(n.V.kind=="enum"?TY.ScalarType.INT32:n.V.T,fv(o),fv(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?XIe(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(_xt,"reflectionEquals");mv.reflectionEquals=_xt;var fv=Object.values;function ZIe(t,e,r){if(e===r)return!0;if(t!==TY.ScalarType.BYTES)return!1;let n=e,s=r;if(n.length!==s.length)return!1;for(let o=0;o<n.length;o++)if(n[o]!=s[o])return!1;return!0}i(ZIe,"primitiveEq");function KIe(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!ZIe(t,e[n],r[n]))return!1;return!0}i(KIe,"repeatedPrimitiveEq");function XIe(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t.equals(e[n],r[n]))return!1;return!0}i(XIe,"repeatedMsgEq")});var rSe=S(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});hv.MessageType=void 0;var vxt=Vw(),Qxt=Ea(),Dxt=yY(),kxt=CY(),Oxt=SY(),Lxt=xY(),Mxt=BY(),Fxt=RY(),_Y=NY(),Uxt=q_(),eSe=mY(),qxt=PY(),$xt=fY(),Gxt=pY(),tSe=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),Hxt=tSe[vxt.MESSAGE_TYPE]={},vY=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(Qxt.normalizeFieldInfo),this.options=n??{},Hxt.value=this,this.messagePrototype=Object.create(null,tSe),this.refTypeCheck=new Dxt.ReflectionTypeCheck(this),this.refJsonReader=new kxt.ReflectionJsonReader(this),this.refJsonWriter=new Oxt.ReflectionJsonWriter(this),this.refBinReader=new Lxt.ReflectionBinaryReader(this),this.refBinWriter=new Mxt.ReflectionBinaryWriter(this)}create(e){let r=Fxt.reflectionCreate(this);return e!==void 0&&_Y.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return _Y.reflectionMergePartial(this,r,e),r}equals(e,r){return qxt.reflectionEquals(this,e,r)}is(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!1)}isAssignable(e,r=this.defaultCheckDepth){return this.refTypeCheck.is(e,r,!0)}mergePartial(e,r){_Y.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=Gxt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,eSe.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,eSe.jsonWriteOptions(r))}toJsonString(e,r){var n;let s=this.toJson(e,r);return JSON.stringify(s,null,(n=r?.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,r){let n=$xt.binaryWriteOptions(r);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,r,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let s=n??this.create();return this.refJsonReader.read(e,s,r),s}throw new Error(`Unable to parse message ${this.typeName} from JSON ${Uxt.typeofJsonValue(e)}.`)}internalJsonWrite(e,r){return this.refJsonWriter.write(e,r)}internalBinaryWrite(e,r,n){return this.refBinWriter.write(e,r,n),r}internalBinaryRead(e,r,n,s){let o=s??this.create();return this.refBinReader.read(e,o,n,r),o}};hv.MessageType=vY});var nSe=S(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.containsMessageType=void 0;var zxt=Vw();function Vxt(t){return t[zxt.MESSAGE_TYPE]!=null}i(Vxt,"containsMessageType");Av.containsMessageType=Vxt});var oSe=S(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.listEnumNumbers=Wc.listEnumNames=Wc.listEnumValues=Wc.isEnumObject=void 0;function sSe(t){if(typeof t!="object"||t===null||!t.hasOwnProperty(0))return!1;for(let e of Object.keys(t)){let r=parseInt(e);if(Number.isNaN(r)){let n=t[e];if(n===void 0||typeof n!="number"||t[n]===void 0)return!1}else{let n=t[r];if(n===void 0||t[n]!==r)return!1}}return!0}i(sSe,"isEnumObject");Wc.isEnumObject=sSe;function QY(t){if(!sSe(t))throw new Error("not a typescript enum object");let e=[];for(let[r,n]of Object.entries(t))typeof n=="number"&&e.push({name:r,number:n});return e}i(QY,"listEnumValues");Wc.listEnumValues=QY;function Wxt(t){return QY(t).map(e=>e.name)}i(Wxt,"listEnumNames");Wc.listEnumNames=Wxt;function Yxt(t){return QY(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(Yxt,"listEnumNumbers");Wc.listEnumNumbers=Yxt});var _r=S(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});var iSe=q_();Object.defineProperty(me,"typeofJsonValue",{enumerable:!0,get:i(function(){return iSe.typeofJsonValue},"get")});Object.defineProperty(me,"isJsonObject",{enumerable:!0,get:i(function(){return iSe.isJsonObject},"get")});var aSe=G_();Object.defineProperty(me,"base64decode",{enumerable:!0,get:i(function(){return aSe.base64decode},"get")});Object.defineProperty(me,"base64encode",{enumerable:!0,get:i(function(){return aSe.base64encode},"get")});var Jxt=QIe();Object.defineProperty(me,"utf8read",{enumerable:!0,get:i(function(){return Jxt.utf8read},"get")});var DY=Fw();Object.defineProperty(me,"WireType",{enumerable:!0,get:i(function(){return DY.WireType},"get")});Object.defineProperty(me,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return DY.mergeBinaryOptions},"get")});Object.defineProperty(me,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return DY.UnknownFieldHandler},"get")});var cSe=pY();Object.defineProperty(me,"BinaryReader",{enumerable:!0,get:i(function(){return cSe.BinaryReader},"get")});Object.defineProperty(me,"binaryReadOptions",{enumerable:!0,get:i(function(){return cSe.binaryReadOptions},"get")});var lSe=fY();Object.defineProperty(me,"BinaryWriter",{enumerable:!0,get:i(function(){return lSe.BinaryWriter},"get")});Object.defineProperty(me,"binaryWriteOptions",{enumerable:!0,get:i(function(){return lSe.binaryWriteOptions},"get")});var uSe=zd();Object.defineProperty(me,"PbLong",{enumerable:!0,get:i(function(){return uSe.PbLong},"get")});Object.defineProperty(me,"PbULong",{enumerable:!0,get:i(function(){return uSe.PbULong},"get")});var kY=mY();Object.defineProperty(me,"jsonReadOptions",{enumerable:!0,get:i(function(){return kY.jsonReadOptions},"get")});Object.defineProperty(me,"jsonWriteOptions",{enumerable:!0,get:i(function(){return kY.jsonWriteOptions},"get")});Object.defineProperty(me,"mergeJsonOptions",{enumerable:!0,get:i(function(){return kY.mergeJsonOptions},"get")});var jxt=Vw();Object.defineProperty(me,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return jxt.MESSAGE_TYPE},"get")});var Kxt=rSe();Object.defineProperty(me,"MessageType",{enumerable:!0,get:i(function(){return Kxt.MessageType},"get")});var Dm=Ea();Object.defineProperty(me,"ScalarType",{enumerable:!0,get:i(function(){return Dm.ScalarType},"get")});Object.defineProperty(me,"LongType",{enumerable:!0,get:i(function(){return Dm.LongType},"get")});Object.defineProperty(me,"RepeatType",{enumerable:!0,get:i(function(){return Dm.RepeatType},"get")});Object.defineProperty(me,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return Dm.normalizeFieldInfo},"get")});Object.defineProperty(me,"readFieldOptions",{enumerable:!0,get:i(function(){return Dm.readFieldOptions},"get")});Object.defineProperty(me,"readFieldOption",{enumerable:!0,get:i(function(){return Dm.readFieldOption},"get")});Object.defineProperty(me,"readMessageOption",{enumerable:!0,get:i(function(){return Dm.readMessageOption},"get")});var Xxt=yY();Object.defineProperty(me,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return Xxt.ReflectionTypeCheck},"get")});var Zxt=RY();Object.defineProperty(me,"reflectionCreate",{enumerable:!0,get:i(function(){return Zxt.reflectionCreate},"get")});var ebt=cv();Object.defineProperty(me,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return ebt.reflectionScalarDefault},"get")});var tbt=NY();Object.defineProperty(me,"reflectionMergePartial",{enumerable:!0,get:i(function(){return tbt.reflectionMergePartial},"get")});var rbt=PY();Object.defineProperty(me,"reflectionEquals",{enumerable:!0,get:i(function(){return rbt.reflectionEquals},"get")});var nbt=xY();Object.defineProperty(me,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return nbt.ReflectionBinaryReader},"get")});var sbt=BY();Object.defineProperty(me,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return sbt.ReflectionBinaryWriter},"get")});var obt=CY();Object.defineProperty(me,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return obt.ReflectionJsonReader},"get")});var ibt=SY();Object.defineProperty(me,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return ibt.ReflectionJsonWriter},"get")});var abt=nSe();Object.defineProperty(me,"containsMessageType",{enumerable:!0,get:i(function(){return abt.containsMessageType},"get")});var Jw=AY();Object.defineProperty(me,"isOneofGroup",{enumerable:!0,get:i(function(){return Jw.isOneofGroup},"get")});Object.defineProperty(me,"setOneofValue",{enumerable:!0,get:i(function(){return Jw.setOneofValue},"get")});Object.defineProperty(me,"getOneofValue",{enumerable:!0,get:i(function(){return Jw.getOneofValue},"get")});Object.defineProperty(me,"clearOneofValue",{enumerable:!0,get:i(function(){return Jw.clearOneofValue},"get")});Object.defineProperty(me,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return Jw.getSelectedOneofValue},"get")});var gv=oSe();Object.defineProperty(me,"listEnumValues",{enumerable:!0,get:i(function(){return gv.listEnumValues},"get")});Object.defineProperty(me,"listEnumNames",{enumerable:!0,get:i(function(){return gv.listEnumNames},"get")});Object.defineProperty(me,"listEnumNumbers",{enumerable:!0,get:i(function(){return gv.listEnumNumbers},"get")});Object.defineProperty(me,"isEnumObject",{enumerable:!0,get:i(function(){return gv.isEnumObject},"get")});var cbt=hY();Object.defineProperty(me,"lowerCamelCase",{enumerable:!0,get:i(function(){return cbt.lowerCamelCase},"get")});var jw=Xg();Object.defineProperty(me,"assert",{enumerable:!0,get:i(function(){return jw.assert},"get")});Object.defineProperty(me,"assertNever",{enumerable:!0,get:i(function(){return jw.assertNever},"get")});Object.defineProperty(me,"assertInt32",{enumerable:!0,get:i(function(){return jw.assertInt32},"get")});Object.defineProperty(me,"assertUInt32",{enumerable:!0,get:i(function(){return jw.assertUInt32},"get")});Object.defineProperty(me,"assertFloat32",{enumerable:!0,get:i(function(){return jw.assertFloat32},"get")})});var OY=S(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.readServiceOption=Yc.readMethodOption=Yc.readMethodOptions=Yc.normalizeMethodInfo=void 0;var lbt=_r();function ubt(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:lbt.lowerCamelCase(o.name),o.serverStreaming=!!o.serverStreaming,o.clientStreaming=!!o.clientStreaming,o.options=(n=o.options)!==null&&n!==void 0?n:{},o.idempotency=(s=o.idempotency)!==null&&s!==void 0?s:void 0,o}i(ubt,"normalizeMethodInfo");Yc.normalizeMethodInfo=ubt;function dbt(t,e,r,n){var s;let o=(s=t.methods.find((a,c)=>a.localName===e||c===e))===null||s===void 0?void 0:s.options;return o&&o[r]?n.fromJson(o[r]):void 0}i(dbt,"readMethodOptions");Yc.readMethodOptions=dbt;function pbt(t,e,r,n){var s;let o=(s=t.methods.find((c,l)=>c.localName===e||l===e))===null||s===void 0?void 0:s.options;if(!o)return;let a=o[r];return a===void 0?a:n?n.fromJson(a):a}i(pbt,"readMethodOption");Yc.readMethodOption=pbt;function fbt(t,e,r){let n=t.options;if(!n)return;let s=n[e];return s===void 0?s:r?r.fromJson(s):s}i(fbt,"readServiceOption");Yc.readServiceOption=fbt});var dSe=S(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});yv.ServiceType=void 0;var mbt=OY(),LY=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>mbt.normalizeMethodInfo(s,this)),this.options=n??{}}};yv.ServiceType=LY});var FY=S(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.RpcError=void 0;var MY=class extends Error{static{i(this,"RpcError")}constructor(e,r="UNKNOWN",n){super(e),this.name="RpcError",Object.setPrototypeOf(this,new.target.prototype),this.code=r,this.meta=n??{}}toString(){let e=[this.name+": "+this.message];this.code&&(e.push(""),e.push("Code: "+this.code)),this.serviceName&&this.methodName&&e.push("Method: "+this.serviceName+"/"+this.methodName);let r=Object.entries(this.meta);if(r.length){e.push(""),e.push("Meta:");for(let[n,s]of r)e.push(` ${n}: ${s}`)}return e.join(`
|
|
`)}};Ev.RpcError=MY});var UY=S(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.mergeRpcOptions=void 0;var pSe=_r();function hbt(t,e){if(!e)return t;let r={};Cv(t,r),Cv(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=pSe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=pSe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Cv(t.meta,r.meta),Cv(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(hbt,"mergeRpcOptions");Iv.mergeRpcOptions=hbt;function Cv(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}i(Cv,"copy")});var $Y=S(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.Deferred=km.DeferredState=void 0;var Jc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Jc=km.DeferredState||(km.DeferredState={}));var qY=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Jc.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Jc.PENDING)throw new Error(`cannot resolve ${Jc[this.state].toLowerCase()}`);this._resolve(e),this._state=Jc.RESOLVED}reject(e){if(this.state!==Jc.PENDING)throw new Error(`cannot reject ${Jc[this.state].toLowerCase()}`);this._reject(e),this._state=Jc.REJECTED}resolvePending(e){this._state===Jc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Jc.PENDING&&this.reject(e)}};km.Deferred=qY});var HY=S(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});Sv.RpcOutputStreamController=void 0;var fSe=$Y(),Om=_r(),GY=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){Om.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){Om.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){Om.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){Om.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:i(()=>{let e=this._itState;Om.assert(e,"bad state"),Om.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new fSe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Om.assert(n.state==fSe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Sv.RpcOutputStreamController=GY});var VY=S(ry=>{"use strict";var Abt=ry&&ry.__awaiter||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())})};Object.defineProperty(ry,"__esModule",{value:!0});ry.UnaryCall=void 0;var zY=class{static{i(this,"UnaryCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Abt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};ry.UnaryCall=zY});var YY=S(ny=>{"use strict";var gbt=ny&&ny.__awaiter||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())})};Object.defineProperty(ny,"__esModule",{value:!0});ny.ServerStreamingCall=void 0;var WY=class{static{i(this,"ServerStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.responses=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return gbt(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:r,trailers:n}})}};ny.ServerStreamingCall=WY});var jY=S(sy=>{"use strict";var ybt=sy&&sy.__awaiter||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())})};Object.defineProperty(sy,"__esModule",{value:!0});sy.ClientStreamingCall=void 0;var JY=class{static{i(this,"ClientStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.response=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return ybt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:r,status:n,trailers:s}})}};sy.ClientStreamingCall=JY});var XY=S(oy=>{"use strict";var Ebt=oy&&oy.__awaiter||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())})};Object.defineProperty(oy,"__esModule",{value:!0});oy.DuplexStreamingCall=void 0;var KY=class{static{i(this,"DuplexStreamingCall")}constructor(e,r,n,s,o,a,c){this.method=e,this.requestHeaders=r,this.requests=n,this.headers=s,this.responses=o,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return Ebt(this,void 0,void 0,function*(){let[e,r,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:r,trailers:n}})}};oy.DuplexStreamingCall=KY});var hSe=S(cy=>{"use strict";var Cbt=cy&&cy.__awaiter||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())})};Object.defineProperty(cy,"__esModule",{value:!0});cy.TestTransport=void 0;var Ri=FY(),wv=_r(),mSe=HY(),Ibt=UY(),Sbt=VY(),wbt=YY(),xbt=jY(),bbt=XY(),ay=class t{static{i(this,"TestTransport")}constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof iy?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof iy?this.lastInput.completed:typeof this.lastInput=="object"}promiseHeaders(){var e;let r=(e=this.data.headers)!==null&&e!==void 0?e:t.defaultHeaders;return r instanceof Ri.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof Ri.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(wv.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),wv.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return Cbt(this,void 0,void 0,function*(){let s=[];if(this.data.response===void 0)s.push(e.O.create());else if(Array.isArray(this.data.response))for(let o of this.data.response)wv.assert(e.O.is(o)),s.push(o);else this.data.response instanceof Ri.RpcError||(wv.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield dn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof Ri.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield dn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof Ri.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof Ri.RpcError){r.notifyError(this.data.trailers);return}r.notifyComplete()})}promiseStatus(){var e;let r=(e=this.data.status)!==null&&e!==void 0?e:t.defaultStatus;return r instanceof Ri.RpcError?Promise.reject(r):Promise.resolve(r)}promiseTrailers(){var e;let r=(e=this.data.trailers)!==null&&e!==void 0?e:t.defaultTrailers;return r instanceof Ri.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return Ibt.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(dn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(dn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(dn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(dn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new Sbt.UnaryCall(e,o,r,a,c,l,u)}serverStreaming(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(dn(this.headerDelay,n.abort)),c=new mSe.RpcOutputStreamController,l=a.then(dn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(dn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new wbt.ServerStreamingCall(e,o,r,a,c,u,d)}clientStreaming(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(dn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(dn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(dn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(dn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new iy(this.data,r.abort),new xbt.ClientStreamingCall(e,s,this.lastInput,o,a,c,l)}duplex(e,r){var n;let s=(n=r.meta)!==null&&n!==void 0?n:{},o=this.promiseHeaders().then(dn(this.headerDelay,r.abort)),a=new mSe.RpcOutputStreamController,c=o.then(dn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(dn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new iy(this.data,r.abort),new bbt.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};cy.TestTransport=ay;ay.defaultHeaders={responseHeader:"test"};ay.defaultStatus={code:"OK",detail:"all good"};ay.defaultTrailers={responseTrailer:"test"};function dn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new Ri.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new Ri.RpcError("user cancel","CANCELLED"))})}})}i(dn,"delay");var iy=class{static{i(this,"TestInputStream")}constructor(e,r){this._completed=!1,this._sent=[],this.data=e,this.abort=r}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof Ri.RpcError)return Promise.reject(this.data.inputMessage);let r=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(dn(r,this.abort))}complete(){if(this.data.inputComplete instanceof Ri.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(dn(e,this.abort))}}});var ASe=S(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.stackDuplexStreamingInterceptors=Ni.stackClientStreamingInterceptors=Ni.stackServerStreamingInterceptors=Ni.stackUnaryInterceptors=Ni.stackIntercept=void 0;var Bbt=_r();function Kw(t,e,r,n,s){var o,a,c,l;if(t=="unary"){let u=i((d,p,f)=>e.unary(d,p,f),"tail");for(let d of((o=n.interceptors)!==null&&o!==void 0?o:[]).filter(p=>p.interceptUnary).reverse()){let p=u;u=i((f,m,h)=>d.interceptUnary(p,f,m,h),"tail")}return u(r,s,n)}if(t=="serverStreaming"){let u=i((d,p,f)=>e.serverStreaming(d,p,f),"tail");for(let d of((a=n.interceptors)!==null&&a!==void 0?a:[]).filter(p=>p.interceptServerStreaming).reverse()){let p=u;u=i((f,m,h)=>d.interceptServerStreaming(p,f,m,h),"tail")}return u(r,s,n)}if(t=="clientStreaming"){let u=i((d,p)=>e.clientStreaming(d,p),"tail");for(let d of((c=n.interceptors)!==null&&c!==void 0?c:[]).filter(p=>p.interceptClientStreaming).reverse()){let p=u;u=i((f,m)=>d.interceptClientStreaming(p,f,m),"tail")}return u(r,n)}if(t=="duplex"){let u=i((d,p)=>e.duplex(d,p),"tail");for(let d of((l=n.interceptors)!==null&&l!==void 0?l:[]).filter(p=>p.interceptDuplex).reverse()){let p=u;u=i((f,m)=>d.interceptDuplex(p,f,m),"tail")}return u(r,n)}Bbt.assertNever(t)}i(Kw,"stackIntercept");Ni.stackIntercept=Kw;function Rbt(t,e,r,n){return Kw("unary",t,e,n,r)}i(Rbt,"stackUnaryInterceptors");Ni.stackUnaryInterceptors=Rbt;function Nbt(t,e,r,n){return Kw("serverStreaming",t,e,n,r)}i(Nbt,"stackServerStreamingInterceptors");Ni.stackServerStreamingInterceptors=Nbt;function Tbt(t,e,r){return Kw("clientStreaming",t,e,r)}i(Tbt,"stackClientStreamingInterceptors");Ni.stackClientStreamingInterceptors=Tbt;function Pbt(t,e,r){return Kw("duplex",t,e,r)}i(Pbt,"stackDuplexStreamingInterceptors");Ni.stackDuplexStreamingInterceptors=Pbt});var gSe=S(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.ServerCallContextController=void 0;var ZY=class{static{i(this,"ServerCallContextController")}constructor(e,r,n,s,o={code:"OK",detail:""}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=r,this.deadline=n,this.trailers={},this._sendRH=s,this.status=o}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let r=this._listeners;return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}};xv.ServerCallContextController=ZY});var ESe=S(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});var _bt=dSe();Object.defineProperty(Ar,"ServiceType",{enumerable:!0,get:i(function(){return _bt.ServiceType},"get")});var eJ=OY();Object.defineProperty(Ar,"readMethodOptions",{enumerable:!0,get:i(function(){return eJ.readMethodOptions},"get")});Object.defineProperty(Ar,"readMethodOption",{enumerable:!0,get:i(function(){return eJ.readMethodOption},"get")});Object.defineProperty(Ar,"readServiceOption",{enumerable:!0,get:i(function(){return eJ.readServiceOption},"get")});var vbt=FY();Object.defineProperty(Ar,"RpcError",{enumerable:!0,get:i(function(){return vbt.RpcError},"get")});var Qbt=UY();Object.defineProperty(Ar,"mergeRpcOptions",{enumerable:!0,get:i(function(){return Qbt.mergeRpcOptions},"get")});var Dbt=HY();Object.defineProperty(Ar,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return Dbt.RpcOutputStreamController},"get")});var kbt=hSe();Object.defineProperty(Ar,"TestTransport",{enumerable:!0,get:i(function(){return kbt.TestTransport},"get")});var ySe=$Y();Object.defineProperty(Ar,"Deferred",{enumerable:!0,get:i(function(){return ySe.Deferred},"get")});Object.defineProperty(Ar,"DeferredState",{enumerable:!0,get:i(function(){return ySe.DeferredState},"get")});var Obt=XY();Object.defineProperty(Ar,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return Obt.DuplexStreamingCall},"get")});var Lbt=jY();Object.defineProperty(Ar,"ClientStreamingCall",{enumerable:!0,get:i(function(){return Lbt.ClientStreamingCall},"get")});var Mbt=YY();Object.defineProperty(Ar,"ServerStreamingCall",{enumerable:!0,get:i(function(){return Mbt.ServerStreamingCall},"get")});var Fbt=VY();Object.defineProperty(Ar,"UnaryCall",{enumerable:!0,get:i(function(){return Fbt.UnaryCall},"get")});var Xw=ASe();Object.defineProperty(Ar,"stackIntercept",{enumerable:!0,get:i(function(){return Xw.stackIntercept},"get")});Object.defineProperty(Ar,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return Xw.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return Xw.stackClientStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return Xw.stackServerStreamingInterceptors},"get")});Object.defineProperty(Ar,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return Xw.stackUnaryInterceptors},"get")});var Ubt=gSe();Object.defineProperty(Ar,"ServerCallContextController",{enumerable:!0,get:i(function(){return Ubt.ServerCallContextController},"get")})});var Gm=S((Jvr,Nwe)=>{"use strict";var mRt="2.0.0",hRt=Number.MAX_SAFE_INTEGER||9007199254740991,ARt=16,gRt=250,yRt=[" ",`
|
|
`,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],ERt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Nwe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:ARt,MAX_SAFE_BUILD_LENGTH:gRt,MAX_SAFE_INTEGER:hRt,WHITESPACE_CHARACTERS:yRt,RELEASE_TYPES:ERt,SEMVER_SPEC_VERSION:mRt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var nx=S((jvr,Twe)=>{"use strict";var CRt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Twe.exports=CRt});var Cy=S((Xc,Pwe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:JJ,MAX_SAFE_BUILD_LENGTH:IRt,MAX_LENGTH:SRt}=Gm(),wRt=nx();Xc=Pwe.exports={};var xRt=Xc.re=[],bRt=Xc.safeRe=[],W=Xc.src=[],BRt=Xc.safeSrc=[],Y=Xc.t={},RRt=0,jJ="[a-zA-Z0-9-]",NRt=[["\\s",1],["\\d",SRt],[jJ,IRt]],TRt=i(t=>{for(let[e,r]of NRt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Ue=i((t,e,r)=>{let n=TRt(e),s=RRt++;wRt(t,s,e),Y[t]=s,W[s]=e,BRt[s]=n,xRt[s]=new RegExp(e,r?"g":void 0),bRt[s]=new RegExp(n,r?"g":void 0)},"createToken");Ue("NUMERICIDENTIFIER","0|[1-9]\\d*");Ue("NUMERICIDENTIFIERLOOSE","\\d+");Ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${jJ}*`);Ue("MAINVERSION",`(${W[Y.NUMERICIDENTIFIER]})\\.(${W[Y.NUMERICIDENTIFIER]})\\.(${W[Y.NUMERICIDENTIFIER]})`);Ue("MAINVERSIONLOOSE",`(${W[Y.NUMERICIDENTIFIERLOOSE]})\\.(${W[Y.NUMERICIDENTIFIERLOOSE]})\\.(${W[Y.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASEIDENTIFIER",`(?:${W[Y.NONNUMERICIDENTIFIER]}|${W[Y.NUMERICIDENTIFIER]})`);Ue("PRERELEASEIDENTIFIERLOOSE",`(?:${W[Y.NONNUMERICIDENTIFIER]}|${W[Y.NUMERICIDENTIFIERLOOSE]})`);Ue("PRERELEASE",`(?:-(${W[Y.PRERELEASEIDENTIFIER]}(?:\\.${W[Y.PRERELEASEIDENTIFIER]})*))`);Ue("PRERELEASELOOSE",`(?:-?(${W[Y.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[Y.PRERELEASEIDENTIFIERLOOSE]})*))`);Ue("BUILDIDENTIFIER",`${jJ}+`);Ue("BUILD",`(?:\\+(${W[Y.BUILDIDENTIFIER]}(?:\\.${W[Y.BUILDIDENTIFIER]})*))`);Ue("FULLPLAIN",`v?${W[Y.MAINVERSION]}${W[Y.PRERELEASE]}?${W[Y.BUILD]}?`);Ue("FULL",`^${W[Y.FULLPLAIN]}$`);Ue("LOOSEPLAIN",`[v=\\s]*${W[Y.MAINVERSIONLOOSE]}${W[Y.PRERELEASELOOSE]}?${W[Y.BUILD]}?`);Ue("LOOSE",`^${W[Y.LOOSEPLAIN]}$`);Ue("GTLT","((?:<|>)?=?)");Ue("XRANGEIDENTIFIERLOOSE",`${W[Y.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ue("XRANGEIDENTIFIER",`${W[Y.NUMERICIDENTIFIER]}|x|X|\\*`);Ue("XRANGEPLAIN",`[v=\\s]*(${W[Y.XRANGEIDENTIFIER]})(?:\\.(${W[Y.XRANGEIDENTIFIER]})(?:\\.(${W[Y.XRANGEIDENTIFIER]})(?:${W[Y.PRERELEASE]})?${W[Y.BUILD]}?)?)?`);Ue("XRANGEPLAINLOOSE",`[v=\\s]*(${W[Y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[Y.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[Y.XRANGEIDENTIFIERLOOSE]})(?:${W[Y.PRERELEASELOOSE]})?${W[Y.BUILD]}?)?)?`);Ue("XRANGE",`^${W[Y.GTLT]}\\s*${W[Y.XRANGEPLAIN]}$`);Ue("XRANGELOOSE",`^${W[Y.GTLT]}\\s*${W[Y.XRANGEPLAINLOOSE]}$`);Ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${JJ}})(?:\\.(\\d{1,${JJ}}))?(?:\\.(\\d{1,${JJ}}))?`);Ue("COERCE",`${W[Y.COERCEPLAIN]}(?:$|[^\\d])`);Ue("COERCEFULL",W[Y.COERCEPLAIN]+`(?:${W[Y.PRERELEASE]})?(?:${W[Y.BUILD]})?(?:$|[^\\d])`);Ue("COERCERTL",W[Y.COERCE],!0);Ue("COERCERTLFULL",W[Y.COERCEFULL],!0);Ue("LONETILDE","(?:~>?)");Ue("TILDETRIM",`(\\s*)${W[Y.LONETILDE]}\\s+`,!0);Xc.tildeTrimReplace="$1~";Ue("TILDE",`^${W[Y.LONETILDE]}${W[Y.XRANGEPLAIN]}$`);Ue("TILDELOOSE",`^${W[Y.LONETILDE]}${W[Y.XRANGEPLAINLOOSE]}$`);Ue("LONECARET","(?:\\^)");Ue("CARETTRIM",`(\\s*)${W[Y.LONECARET]}\\s+`,!0);Xc.caretTrimReplace="$1^";Ue("CARET",`^${W[Y.LONECARET]}${W[Y.XRANGEPLAIN]}$`);Ue("CARETLOOSE",`^${W[Y.LONECARET]}${W[Y.XRANGEPLAINLOOSE]}$`);Ue("COMPARATORLOOSE",`^${W[Y.GTLT]}\\s*(${W[Y.LOOSEPLAIN]})$|^$`);Ue("COMPARATOR",`^${W[Y.GTLT]}\\s*(${W[Y.FULLPLAIN]})$|^$`);Ue("COMPARATORTRIM",`(\\s*)${W[Y.GTLT]}\\s*(${W[Y.LOOSEPLAIN]}|${W[Y.XRANGEPLAIN]})`,!0);Xc.comparatorTrimReplace="$1$2$3";Ue("HYPHENRANGE",`^\\s*(${W[Y.XRANGEPLAIN]})\\s+-\\s+(${W[Y.XRANGEPLAIN]})\\s*$`);Ue("HYPHENRANGELOOSE",`^\\s*(${W[Y.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[Y.XRANGEPLAINLOOSE]})\\s*$`);Ue("STAR","(<|>)?=?\\s*\\*");Ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Uv=S((Xvr,_we)=>{"use strict";var PRt=Object.freeze({loose:!0}),_Rt=Object.freeze({}),vRt=i(t=>t?typeof t!="object"?PRt:t:_Rt,"parseOptions");_we.exports=vRt});var KJ=S((eQr,Dwe)=>{"use strict";var vwe=/^[0-9]+$/,Qwe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=vwe.test(t),n=vwe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),QRt=i((t,e)=>Qwe(e,t),"rcompareIdentifiers");Dwe.exports={compareIdentifiers:Qwe,rcompareIdentifiers:QRt}});var _n=S((rQr,Owe)=>{"use strict";var qv=nx(),{MAX_LENGTH:kwe,MAX_SAFE_INTEGER:$v}=Gm(),{safeRe:Gv,t:Hv}=Cy(),DRt=Uv(),{compareIdentifiers:XJ}=KJ(),kRt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(XJ(t[n],r[n])!==0)return!1;return!0},"isPrereleaseIdentifier"),ZJ=class t{static{i(this,"SemVer")}constructor(e,r){if(r=DRt(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>kwe)throw new TypeError(`version is longer than ${kwe} characters`);qv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Gv[Hv.LOOSE]:Gv[Hv.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>$v||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$v||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$v||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<$v)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(qv("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],s=e.prerelease[r];if(qv("prerelease compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return XJ(n,s)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],s=e.build[r];if(qv("build compare",r,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return XJ(n,s)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let s=`-${r}`.match(this.options.loose?Gv[Hv.PRERELEASELOOSE]:Gv[Hv.PRERELEASE]);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let o=[r,s];if(n===!1&&(o=[r]),kRt(this.prerelease,r)){let a=this.prerelease[r.split(".").length];isNaN(a)&&(this.prerelease=o)}else this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Owe.exports=ZJ});var Jd=S((sQr,Mwe)=>{"use strict";var Lwe=_n(),ORt=i((t,e,r=!1)=>{if(t instanceof Lwe)return t;try{return new Lwe(t,e)}catch(n){if(!r)return null;throw n}},"parse");Mwe.exports=ORt});var Uwe=S((iQr,Fwe)=>{"use strict";var LRt=Jd(),MRt=i((t,e)=>{let r=LRt(t,e);return r?r.version:null},"valid");Fwe.exports=MRt});var $we=S((cQr,qwe)=>{"use strict";var FRt=Jd(),URt=i((t,e)=>{let r=FRt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");qwe.exports=URt});var zwe=S((uQr,Hwe)=>{"use strict";var Gwe=_n(),qRt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new Gwe(t instanceof Gwe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");Hwe.exports=qRt});var Ywe=S((pQr,Wwe)=>{"use strict";var Vwe=Jd(),$Rt=i((t,e)=>{let r=Vwe(t,null,!0),n=Vwe(e,null,!0),s=r.compare(n);if(s===0)return null;let o=s>0,a=o?r:n,c=o?n:r,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let d=l?"pre":"";return r.major!==n.major?d+"major":r.minor!==n.minor?d+"minor":r.patch!==n.patch?d+"patch":"prerelease"},"diff");Wwe.exports=$Rt});var jwe=S((mQr,Jwe)=>{"use strict";var GRt=_n(),HRt=i((t,e)=>new GRt(t,e).major,"major");Jwe.exports=HRt});var Xwe=S((AQr,Kwe)=>{"use strict";var zRt=_n(),VRt=i((t,e)=>new zRt(t,e).minor,"minor");Kwe.exports=VRt});var exe=S((yQr,Zwe)=>{"use strict";var WRt=_n(),YRt=i((t,e)=>new WRt(t,e).patch,"patch");Zwe.exports=YRt});var rxe=S((CQr,txe)=>{"use strict";var JRt=Jd(),jRt=i((t,e)=>{let r=JRt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");txe.exports=jRt});var Ti=S((SQr,sxe)=>{"use strict";var nxe=_n(),KRt=i((t,e,r)=>new nxe(t,r).compare(new nxe(e,r)),"compare");sxe.exports=KRt});var ixe=S((xQr,oxe)=>{"use strict";var XRt=Ti(),ZRt=i((t,e,r)=>XRt(e,t,r),"rcompare");oxe.exports=ZRt});var cxe=S((BQr,axe)=>{"use strict";var eNt=Ti(),tNt=i((t,e)=>eNt(t,e,!0),"compareLoose");axe.exports=tNt});var zv=S((NQr,uxe)=>{"use strict";var lxe=_n(),rNt=i((t,e,r)=>{let n=new lxe(t,r),s=new lxe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");uxe.exports=rNt});var pxe=S((PQr,dxe)=>{"use strict";var nNt=zv(),sNt=i((t,e)=>t.sort((r,n)=>nNt(r,n,e)),"sort");dxe.exports=sNt});var mxe=S((vQr,fxe)=>{"use strict";var oNt=zv(),iNt=i((t,e)=>t.sort((r,n)=>oNt(n,r,e)),"rsort");fxe.exports=iNt});var sx=S((DQr,hxe)=>{"use strict";var aNt=Ti(),cNt=i((t,e,r)=>aNt(t,e,r)>0,"gt");hxe.exports=cNt});var Vv=S((OQr,Axe)=>{"use strict";var lNt=Ti(),uNt=i((t,e,r)=>lNt(t,e,r)<0,"lt");Axe.exports=uNt});var ej=S((MQr,gxe)=>{"use strict";var dNt=Ti(),pNt=i((t,e,r)=>dNt(t,e,r)===0,"eq");gxe.exports=pNt});var tj=S((UQr,yxe)=>{"use strict";var fNt=Ti(),mNt=i((t,e,r)=>fNt(t,e,r)!==0,"neq");yxe.exports=mNt});var Wv=S(($Qr,Exe)=>{"use strict";var hNt=Ti(),ANt=i((t,e,r)=>hNt(t,e,r)>=0,"gte");Exe.exports=ANt});var Yv=S((HQr,Cxe)=>{"use strict";var gNt=Ti(),yNt=i((t,e,r)=>gNt(t,e,r)<=0,"lte");Cxe.exports=yNt});var rj=S((VQr,Ixe)=>{"use strict";var ENt=ej(),CNt=tj(),INt=sx(),SNt=Wv(),wNt=Vv(),xNt=Yv(),bNt=i((t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return ENt(t,r,n);case"!=":return CNt(t,r,n);case">":return INt(t,r,n);case">=":return SNt(t,r,n);case"<":return wNt(t,r,n);case"<=":return xNt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Ixe.exports=bNt});var wxe=S((YQr,Sxe)=>{"use strict";var BNt=_n(),RNt=Jd(),{safeRe:Jv,t:jv}=Cy(),NNt=i((t,e)=>{if(t instanceof BNt)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(e.includePrerelease?Jv[jv.COERCEFULL]:Jv[jv.COERCE]);else{let l=e.includePrerelease?Jv[jv.COERCERTLFULL]:Jv[jv.COERCERTL],u;for(;(u=l.exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(r===null)return null;let n=r[2],s=r[3]||"0",o=r[4]||"0",a=e.includePrerelease&&r[5]?`-${r[5]}`:"",c=e.includePrerelease&&r[6]?`+${r[6]}`:"";return RNt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Sxe.exports=NNt});var bxe=S((jQr,xxe)=>{"use strict";var TNt=Jd(),PNt=Gm(),_Nt=_n(),vNt=i((t,e,r)=>{if(!PNt.RELEASE_TYPES.includes(e))return null;let n=QNt(t,r);return n&&DNt(n,e)},"truncate"),QNt=i((t,e)=>{let r=t instanceof _Nt?t.version:t;return TNt(r,e)},"cloneInputVersion"),DNt=i((t,e)=>{if(kNt(e))return t.version;switch(t.prerelease=[],e){case"major":t.minor=0,t.patch=0;break;case"minor":t.patch=0;break}return t.format()},"doTruncation"),kNt=i(t=>t.startsWith("pre"),"isPrerelease");xxe.exports=vNt});var Rxe=S((XQr,Bxe)=>{"use strict";var nj=class{static{i(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.map.set(e,r),r}delete(e){return this.map.delete(e)}set(e,r){if(!this.delete(e)&&r!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,r)}return this}};Bxe.exports=nj});var Fxe=S((eDr,Mxe)=>{"use strict";var{MAX_LENGTH:oj,MAX_SAFE_BUILD_LENGTH:_xe,WHITESPACE_CHARACTERS:ONt}=Gm(),vxe=new Uint8Array(65536);for(let t of ONt)vxe[t.charCodeAt(0)]=1;var ij=i(t=>t!==void 0&&vxe[t.charCodeAt(0)]===1,"isWhitespace"),Nxe=i(t=>t==="v"||t==="="||ij(t),"isVersionPrefix"),ox=i(t=>t!==void 0&&t>="0"&&t<="9","isDigit"),Qxe=i(t=>t!==void 0&&(t>="a"&&t<="z"||t>="A"&&t<="Z"),"isLetter"),Dxe=i(t=>ox(t)||Qxe(t)||t==="-","isIdentifierCharacter"),aj=i(t=>ox(t)||t==="x"||t==="X"||t==="*","isVersionStart"),kxe=i((t,e,r,n)=>{if(!ox(t[e]))return e;if(e>=n.start&&e<n.end)return Math.min(e+r,n.end);if(e>=n.previousStart&&e<n.previousEnd)return Math.min(e+r,n.previousEnd);let s=e+1;for(;ox(t[s]);)s++;return n.previousStart=n.start,n.previousEnd=n.end,n.start=e,n.end=s,Math.min(e+r,s)},"findDigitsEndIndex"),cj=i((t,e,r,n)=>!r&&t[e]==="0"?e+1:kxe(t,e,r?oj:oj+1,n),"findVersionNumberEndIndex"),sj=i((t,e,r,n)=>{let s=kxe(t,e,oj,n);if(Qxe(t[s])||t[s]==="-"){let o=s+1,a=o+_xe;for(;o<a&&Dxe(t[o]);)o++;return o}return cj(t,e,r,n)},"findPrereleaseIdentifierEndIndex"),Oxe=i((t,e,r,n)=>{let s=t[e]==="-";if(!r&&!s)return e;let o=e+(s?1:0),a=sj(t,o,r,n);if(a===o){if(!r||!s)return e;a=sj(t,e,r,n)}for(;t[a]===".";){let c=sj(t,a+1,r,n);if(c===a+1)break;a=c}return a},"findPrereleaseEndIndex"),Txe=i((t,e)=>{let r=e;for(;r-e<_xe&&Dxe(t[r]);)r++;return r},"findBuildIdentifierEndIndex"),Lxe=i((t,e)=>{if(t[e]!=="+")return e;let r=Txe(t,e+1);if(r===e+1)return e;for(;t[r]===".";){let n=Txe(t,r+1);if(n===r+1)break;r=n}return r},"findBuildEndIndex"),LNt=i((t,e,r)=>{let n=e;for(let o=0;o<3;o++){let a=cj(t,n,!0,r);if(a===n)return e;if(n=a,o<2){if(t[n]!==".")return e;n++}}let s=Oxe(t,n,!0,r);return Lxe(t,s)},"findLooseFullVersionEndIndex"),Pxe=i((t,e,r)=>ox(t[e])?cj(t,e,!1,r):aj(t[e])?e+1:e,"findPartialVersionComponentEndIndex"),MNt=i((t,e,r)=>{let n=Pxe(t,e,r);for(let o=0;o<2;o++){if(t[n]!==".")return n;let a=Pxe(t,n+1,r);if(a===n+1)return n;n=a}let s=Oxe(t,n,!1,r);return Lxe(t,s)},"findPartialVersionEndIndex"),FNt=i((t,e,r)=>{let n=LNt(t,e,r);return n!==e?n:MNt(t,e,r)},"findVersionEndIndex"),UNt=i((t,e)=>{let r=e;return ij(t[r])&&r++,(t[r]==="<"||t[r]===">")&&r++,t[r]==="="&&r++,ij(t[r])?r:-1},"findRemovableWhitespaceIndex"),qNt=i(t=>{let e="",r=0,n=0,s={start:-1,end:-1,previousStart:-1,previousEnd:-1};for(;n<t.length;){let o=n;if(t[n]==="<"||t[n]===">")n++;else if(!Nxe(t[n])&&!aj(t[n])){n++;continue}for(;n<t.length&&Nxe(t[n]);)n++;if(!aj(t[n]))continue;let a=UNt(t,o);a!==-1&&(e+=t.slice(r,a),r=a+1),n=FNt(t,n,s)}return e+t.slice(r)},"trimComparatorWhitespace");Mxe.exports=qNt});var Pi=S((rDr,Gxe)=>{"use strict";var $Nt=/\s+/g,lj=class t{static{i(this,"Range")}constructor(e,r){if(r=HNt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof uj)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e.trim().replace($Nt," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!qxe(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&ZNt(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let r=this.set[e];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(XNt,"");let n=((this.options.includePrerelease&&jNt)|(this.options.loose&&KNt))+":"+e,s=Uxe.get(n);if(s)return s;let o=this.options.loose,a=o?Zs[Jn.HYPHENRANGELOOSE]:Zs[Jn.HYPHENRANGE];e=e.replace(a,uTt(this.options.includePrerelease)),Ft("hyphen replace",e),e=VNt(e),Ft("comparator trim",e),e=e.replace(Zs[Jn.TILDETRIM],YNt),Ft("tilde trim",e),e=e.replace(Zs[Jn.CARETTRIM],JNt),Ft("caret trim",e);let c=e.split(" ").map(p=>eTt(p,this.options)).join(" ").split(/\s+/).map(p=>lTt(p,this.options));o&&(c=c.filter(p=>(Ft("loose invalid filter",p,this.options),!!p.match(Zs[Jn.COMPARATORLOOSE])))),Ft("range list",c);let l=new Map,u=c.map(p=>new uj(p,this.options));for(let p of u){if(qxe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Uxe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>$xe(n,r)&&e.set.some(s=>$xe(s,r)&&n.every(o=>s.every(a=>o.intersects(a,r)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new zNt(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(dTt(this.set[r],e,this.options))return!0;return!1}};Gxe.exports=lj;var GNt=Rxe(),Uxe=new GNt,HNt=Uv(),uj=ix(),Ft=nx(),zNt=_n(),VNt=Fxe(),{safeRe:Zs,src:WNt,t:Jn,tildeTrimReplace:YNt,caretTrimReplace:JNt}=Cy(),{FLAG_INCLUDE_PRERELEASE:jNt,FLAG_LOOSE:KNt}=Gm(),XNt=new RegExp(WNt[Jn.BUILD],"g"),qxe=i(t=>t.value==="<0.0.0-0","isNullSet"),ZNt=i(t=>t.value==="","isAny"),$xe=i((t,e)=>{let r=!0,n=t.slice(),s=n.pop();for(;r&&n.length;)r=n.every(o=>s.intersects(o,e)),s=n.pop();return r},"isSatisfiable"),eTt=i((t,e)=>(t=t.replace(Zs[Jn.BUILD],""),Ft("comp",t,e),t=sTt(t,e),Ft("caret",t),t=rTt(t,e),Ft("tildes",t),t=iTt(t,e),Ft("xrange",t),t=cTt(t,e),Ft("stars",t),t),"parseComparator"),Kr=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),tTt=i((t,e,r)=>Kr(t)&&!Kr(e)||Kr(e)&&r&&!Kr(r),"invalidXRangeOrder"),rTt=i((t,e)=>t.trim().split(/\s+/).map(r=>nTt(r,e)).join(" "),"replaceTildes"),nTt=i((t,e)=>{let r=e.loose?Zs[Jn.TILDELOOSE]:Zs[Jn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Ft("tilde",t,s,o,a,c,l);let u;return Kr(o)?u="":Kr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Kr(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Ft("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Ft("tilde return",u),u})},"replaceTilde"),sTt=i((t,e)=>t.trim().split(/\s+/).map(r=>oTt(r,e)).join(" "),"replaceCarets"),oTt=i((t,e)=>{Ft("caret",t,e);let r=e.loose?Zs[Jn.CARETLOOSE]:Zs[Jn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Ft("caret",t,s,o,a,c,l);let u;return Kr(o)?u="":Kr(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Kr(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Ft("replaceCaret pr",l),o==="0"?a==="0"?u=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(Ft("no pr"),o==="0"?a==="0"?u=`>=${o}.${a}.${c} <${o}.${a}.${+c+1}-0`:u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),Ft("caret return",u),u})},"replaceCaret"),iTt=i((t,e)=>(Ft("replaceXRanges",t,e),t.split(/\s+/).map(r=>aTt(r,e)).join(" ")),"replaceXRanges"),aTt=i((t,e)=>{t=t.trim();let r=e.loose?Zs[Jn.XRANGELOOSE]:Zs[Jn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Ft("xRange",t,n,s,o,a,c,l),tTt(o,a,c))return t;let u=Kr(o),d=u||Kr(a),p=d||Kr(c),f=p;return s==="="&&f&&(s=""),l=e.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&f?(d&&(a=0),c=0,s===">"?(s=">=",d?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",d?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):d?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),Ft("xRange return",n),n})},"replaceXRange"),cTt=i((t,e)=>(Ft("replaceStars",t,e),t.trim().replace(Zs[Jn.STAR],"")),"replaceStars"),lTt=i((t,e)=>(Ft("replaceGTE0",t,e),t.trim().replace(Zs[e.includePrerelease?Jn.GTE0PRE:Jn.GTE0],"")),"replaceGTE0"),uTt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Kr(n)?r="":Kr(s)?r=`>=${n}.0.0${t?"-0":""}`:Kr(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Kr(u)?l="":Kr(d)?l=`<${+u+1}.0.0-0`:Kr(p)?l=`<${u}.${+d+1}.0-0`:f?l=`<=${u}.${d}.${p}-${f}`:t?l=`<${u}.${d}.${+p+1}-0`:l=`<=${l}`,`${r} ${l}`.trim()),"hyphenReplace"),dTt=i((t,e,r)=>{for(let n=0;n<t.length;n++)if(!t[n].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let n=0;n<t.length;n++)if(Ft(t[n].semver),t[n].semver!==uj.ANY&&t[n].semver.prerelease.length>0){let s=t[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0},"testSet")});var ix=S((sDr,Jxe)=>{"use strict";var ax=Symbol("SemVer ANY"),fj=class t{static{i(this,"Comparator")}static get ANY(){return ax}constructor(e,r){if(r=Hxe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),pj("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===ax?this.value="":this.value=this.operator+this.semver.version,pj("comp",this)}parse(e){let r=this.options.loose?zxe[Vxe.COMPARATORLOOSE]:zxe[Vxe.COMPARATOR],n=e.match(r);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Wxe(n[2],this.options.loose):this.semver=ax}toString(){return this.value}test(e){if(pj("Comparator.test",e,this.options.loose),this.semver===ax||e===ax)return!0;if(typeof e=="string")try{e=new Wxe(e,this.options)}catch{return!1}return dj(e,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Yxe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Yxe(this.value,r).test(e.semver):(r=Hxe(r),r.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||dj(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||dj(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Jxe.exports=fj;var Hxe=Uv(),{safeRe:zxe,t:Vxe}=Cy(),dj=rj(),pj=nx(),Wxe=_n(),Yxe=Pi()});var cx=S((iDr,jxe)=>{"use strict";var pTt=Pi(),fTt=i((t,e,r)=>{try{e=new pTt(e,r)}catch{return!1}return e.test(t)},"satisfies");jxe.exports=fTt});var Xxe=S((cDr,Kxe)=>{"use strict";var mTt=Pi(),hTt=i((t,e)=>new mTt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Kxe.exports=hTt});var ebe=S((uDr,Zxe)=>{"use strict";var ATt=_n(),gTt=Pi(),yTt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new gTt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new ATt(n,r))}),n},"maxSatisfying");Zxe.exports=yTt});var rbe=S((pDr,tbe)=>{"use strict";var ETt=_n(),CTt=Pi(),ITt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new CTt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new ETt(n,r))}),n},"minSatisfying");tbe.exports=ITt});var obe=S((mDr,sbe)=>{"use strict";var mj=_n(),STt=Pi(),nbe=sx(),wTt=i((t,e)=>{t=new STt(t,e);let r=new mj("0.0.0");if(t.test(r)||(r=new mj("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n<t.set.length;++n){let s=t.set[n],o=null;s.forEach(a=>{let c=new mj(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||nbe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||nbe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");sbe.exports=wTt});var abe=S((ADr,ibe)=>{"use strict";var xTt=Pi(),bTt=i((t,e)=>{try{return new xTt(t,e).range||"*"}catch{return null}},"validRange");ibe.exports=bTt});var Kv=S((yDr,dbe)=>{"use strict";var BTt=_n(),ube=ix(),{ANY:RTt}=ube,NTt=Pi(),TTt=cx(),cbe=sx(),lbe=Vv(),PTt=Yv(),_Tt=Wv(),vTt=i((t,e,r,n)=>{t=new BTt(t,n),e=new NTt(e,n);let s,o,a,c,l;switch(r){case">":s=cbe,o=PTt,a=lbe,c=">",l=">=";break;case"<":s=lbe,o=_Tt,a=cbe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(TTt(t,e,n))return!1;for(let u=0;u<e.set.length;++u){let d=e.set[u],p=null,f=null;if(d.forEach(m=>{m.semver===RTt&&(m=new ube(">=0.0.0")),p=p||m,f=f||m,s(m.semver,p.semver,n)?p=m:a(m.semver,f.semver,n)&&(f=m)}),p.operator===c||p.operator===l||(!f.operator||f.operator===c)&&o(t,f.semver))return!1;if(f.operator===l&&a(t,f.semver))return!1}return!0},"outside");dbe.exports=vTt});var fbe=S((CDr,pbe)=>{"use strict";var QTt=Kv(),DTt=i((t,e,r)=>QTt(t,e,">",r),"gtr");pbe.exports=DTt});var hbe=S((SDr,mbe)=>{"use strict";var kTt=Kv(),OTt=i((t,e,r)=>kTt(t,e,"<",r),"ltr");mbe.exports=OTt});var ybe=S((xDr,gbe)=>{"use strict";var Abe=Pi(),LTt=i((t,e,r)=>(t=new Abe(t,r),e=new Abe(e,r),t.intersects(e,r)),"intersects");gbe.exports=LTt});var Cbe=S((BDr,Ebe)=>{"use strict";var MTt=cx(),FTt=Ti();Ebe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>FTt(d,p,r));for(let d of a)MTt(d,e,r)?(o=d,s||(s=d)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[d,p]of n)d===p?c.push(d):!p&&d===a[0]?c.push("*"):p?d===a[0]?c.push(`<=${p}`):c.push(`${d} - ${p}`):c.push(`>=${d}`);let l=c.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var Bbe=S((RDr,bbe)=>{"use strict";var Ibe=Pi(),gj=ix(),{ANY:hj}=gj,Aj=cx(),yj=Ti(),UTt=i((t,e,r={})=>{if(t===e)return!0;t=new Ibe(t,r),e=new Ibe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=$Tt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),qTt=[new gj(">=0.0.0-0")],Sbe=[new gj(">=0.0.0")],$Tt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===hj){if(e.length===1&&e[0].semver===hj)return!0;r.includePrerelease?t=qTt:t=Sbe}if(e.length===1&&e[0].semver===hj){if(r.includePrerelease)return!0;e=Sbe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=wbe(s,m,r):m.operator==="<"||m.operator==="<="?o=xbe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=yj(s.semver,o.semver,r),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let m of n){if(s&&!Aj(m,String(s),r)||o&&!Aj(m,String(o),r))return null;for(let h of e)if(!Aj(m,String(h),r))return!1;return!0}let c,l,u,d,p=o&&!r.includePrerelease&&o.semver.prerelease.length?o.semver:!1,f=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let m of e){if(d=d||m.operator===">"||m.operator===">=",u=u||m.operator==="<"||m.operator==="<=",s){if(f&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===f.major&&m.semver.minor===f.minor&&m.semver.patch===f.patch&&(f=!1),m.operator===">"||m.operator===">="){if(c=wbe(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!m.test(s.semver))return!1}if(o){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator==="<"||m.operator==="<="){if(l=xbe(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!m.test(o.semver))return!1}if(!m.operator&&(o||s)&&a!==0)return!1}return!(s&&u&&!o&&a!==0||o&&d&&!s&&a!==0||f||p)},"simpleSubset"),wbe=i((t,e,r)=>{if(!t)return e;let n=yj(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),xbe=i((t,e,r)=>{if(!t)return e;let n=yj(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");bbe.exports=UTt});var Pbe=S((TDr,Tbe)=>{"use strict";var Ej=Cy(),Rbe=Gm(),GTt=_n(),Nbe=KJ(),HTt=Jd(),zTt=Uwe(),VTt=$we(),WTt=zwe(),YTt=Ywe(),JTt=jwe(),jTt=Xwe(),KTt=exe(),XTt=rxe(),ZTt=Ti(),ePt=ixe(),tPt=cxe(),rPt=zv(),nPt=pxe(),sPt=mxe(),oPt=sx(),iPt=Vv(),aPt=ej(),cPt=tj(),lPt=Wv(),uPt=Yv(),dPt=rj(),pPt=wxe(),fPt=bxe(),mPt=ix(),hPt=Pi(),APt=cx(),gPt=Xxe(),yPt=ebe(),EPt=rbe(),CPt=obe(),IPt=abe(),SPt=Kv(),wPt=fbe(),xPt=hbe(),bPt=ybe(),BPt=Cbe(),RPt=Bbe();Tbe.exports={parse:HTt,valid:zTt,clean:VTt,inc:WTt,diff:YTt,major:JTt,minor:jTt,patch:KTt,prerelease:XTt,compare:ZTt,rcompare:ePt,compareLoose:tPt,compareBuild:rPt,sort:nPt,rsort:sPt,gt:oPt,lt:iPt,eq:aPt,neq:cPt,gte:lPt,lte:uPt,cmp:dPt,coerce:pPt,truncate:fPt,Comparator:mPt,Range:hPt,satisfies:APt,toComparators:gPt,maxSatisfying:yPt,minSatisfying:EPt,minVersion:CPt,validRange:IPt,outside:SPt,gtr:wPt,ltr:xPt,intersects:bPt,simplifyRange:BPt,subset:RPt,SemVer:GTt,re:Ej.re,src:Ej.src,tokens:Ej.t,SEMVER_SPEC_VERSION:Rbe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Rbe.RELEASE_TYPES,compareIdentifiers:Nbe.compareIdentifiers,rcompareIdentifiers:Nbe.rcompareIdentifiers}});var vbe=S((vDr,_be)=>{function _i(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}i(_i,"RetryOperation");_be.exports=_i;_i.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};_i.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};_i.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};_i.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};_i.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};_i.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};_i.prototype.start=_i.prototype.try;_i.prototype.errors=function(){return this._errors};_i.prototype.attempts=function(){return this._attempts};_i.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var s=this._errors[n],o=s.message,a=(t[o]||0)+1;t[o]=a,a>=r&&(e=s,r=a)}return e}});var Qbe=S(Hm=>{var NPt=vbe();Hm.operation=function(t){var e=Hm.timeouts(t);return new NPt(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};Hm.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],s=0;s<e.retries;s++)n.push(this.createTimeout(s,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(s,e)),n.sort(function(o,a){return o-a}),n};Hm.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};Hm.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var s=0;s<r.length;s++){var o=r[s],a=t[o];t[o]=i(function(l){var u=Hm.operation(e),d=Array.prototype.slice.call(arguments,1),p=d.pop();d.push(function(f){u.retry(f)||(f&&(arguments[0]=u.mainError()),p.apply(this,arguments))}),u.attempt(function(){l.apply(t,d)})},"retryWrapper").bind(t,a),t[o].options=e}}});var kbe=S((ODr,Dbe)=>{Dbe.exports=Qbe()});var Lbe=S((LDr,Obe)=>{var TPt=kbe();function PPt(t,e){function r(n,s){var o=e||{},a;"randomize"in o||(o.randomize=!0),a=TPt.operation(o);function c(d){s(d||new Error("Aborted"))}i(c,"bail");function l(d,p){if(d.bail){c(d);return}a.retry(d)?o.onRetry&&o.onRetry(d,p):s(a.mainError())}i(l,"onError");function u(d){var p;try{p=t(c,d)}catch(f){l(f,d);return}Promise.resolve(p).then(n).catch(i(function(m){l(m,d)},"catchIt"))}i(u,"runAttempt"),a.attempt(u)}return i(r,"run"),new Promise(r)}i(PPt,"retry");Obe.exports=PPt});var t0e=S((FDr,Pu)=>{var wt=require("fs"),eQ=require("os"),Xr=require("path"),Mbe=require("crypto"),Zc={fs:wt.constants,os:eQ.constants},Fbe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Gbe=/XXXXXX/,_Pt=3,Hbe=(Zc.O_CREAT||Zc.fs.O_CREAT)|(Zc.O_EXCL||Zc.fs.O_EXCL)|(Zc.O_RDWR||Zc.fs.O_RDWR),vPt=eQ.platform()==="win32",QPt=Zc.EBADF||Zc.os.errno.EBADF,DPt=Zc.ENOENT||Zc.os.errno.ENOENT,zbe=448,Vbe=384,kPt="exit",Iy=[],Wbe=wt.rmdirSync.bind(wt),Ybe=!1;function OPt(t,e){return wt.rm(t,{recursive:!0},e)}i(OPt,"rimraf");function Jbe(t){return wt.rmSync(t,{recursive:!0})}i(Jbe,"FN_RIMRAF_SYNC");function wj(t,e){let r=Sy(t,e),n=r[0],s=r[1];VPt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=Kbe(a);wt.stat(u,function(d){if(!d)return c-- >0?l():s(new Error("Could not get a unique tmp filename, max tries reached "+u));s(null,u)})}catch(u){s(u)}}),"_getUniqueName")()})}i(wj,"tmpName");function xj(t){let e=Sy(t),r=e[0],n=WPt(r),s=n.tries;do{let o=Kbe(n);try{wt.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(xj,"tmpNameSync");function LPt(t,e){let r=Sy(t,e),n=r[0],s=r[1];wj(n,i(function(a,c){if(a)return s(a);wt.open(c,Hbe,n.mode||Vbe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return wt.close(d,i(function(f){return s(f,c,void 0,Ij(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,Ij(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(LPt,"file");function MPt(t){let e=Sy(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=xj(r),o=wt.openSync(s,Hbe,r.mode||Vbe);return r.discardDescriptor&&(wt.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:Ij(s,n?-1:o,r,!0)}}i(MPt,"fileSync");function FPt(t,e){let r=Sy(t,e),n=r[0],s=r[1];wj(n,i(function(a,c){if(a)return s(a);wt.mkdir(c,n.mode||zbe,i(function(u){if(u)return s(u);s(null,c,jbe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(FPt,"dir");function UPt(t){let e=Sy(t),r=e[0],n=xj(r);return wt.mkdirSync(n,r.mode||zbe),{name:n,removeCallback:jbe(n,r,!0)}}i(UPt,"dirSync");function qPt(t,e){let r=i(function(n){if(n&&!Sj(n))return e(n);e()},"_handler");0<=t[0]?wt.close(t[0],function(){wt.unlink(t[1],r)}):wt.unlink(t[1],r)}i(qPt,"_removeFileAsync");function $Pt(t){let e=null;try{0<=t[0]&&wt.closeSync(t[0])}catch(r){if(!YPt(r)&&!Sj(r))throw r}finally{try{wt.unlinkSync(t[1])}catch(r){Sj(r)||(e=r)}}if(e!==null)throw e}i($Pt,"_removeFileSync");function Ij(t,e,r,n){let s=Zv($Pt,[e,t],n),o=Zv(qPt,[e,t],n,s);return r.keep||Iy.unshift(s),n?s:o}i(Ij,"_prepareTmpFileRemoveCallback");function jbe(t,e,r){let n=e.unsafeCleanup?OPt:wt.rmdir.bind(wt),s=e.unsafeCleanup?Jbe:Wbe,o=Zv(s,t,r),a=Zv(n,t,r,o);return e.keep||Iy.unshift(o),r?o:a}i(jbe,"_prepareTmpDirRemoveCallback");function Zv(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=Iy.indexOf(c);return l>=0&&Iy.splice(l,1),s=!0,r||t===Wbe||t===Jbe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(Zv,"_prepareRemoveCallback");function GPt(){if(Ybe)for(;Iy.length;)try{Iy[0]()}catch{}}i(GPt,"_garbageCollector");function Ube(t){let e=[],r=null;try{r=Mbe.randomBytes(t)}catch{r=Mbe.pseudoRandomBytes(t)}for(let n=0;n<t;n++)e.push(Fbe[r[n]%Fbe.length]);return e.join("")}i(Ube,"_randomChars");function eo(t){return typeof t>"u"}i(eo,"_isUndefined");function Sy(t,e){if(typeof t=="function")return[{},t];if(eo(t))return[{},e];let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=t[n];return[r,e]}i(Sy,"_parseArguments");function HPt(t,e,r){let n=Xr.isAbsolute(t)?t:Xr.join(e,t);wt.stat(n,function(s){s?wt.realpath(Xr.dirname(n),function(o,a){if(o)return r(o);r(null,Xr.join(a,Xr.basename(n)))}):wt.realpath(n,r)})}i(HPt,"_resolvePath");function zPt(t,e){let r=Xr.isAbsolute(t)?t:Xr.join(e,t);try{return wt.statSync(r),wt.realpathSync(r)}catch{let s=wt.realpathSync(Xr.dirname(r));return Xr.join(s,Xr.basename(r))}}i(zPt,"_resolvePathSync");function Kbe(t){let e=t.tmpdir;if(!eo(t.name))return Xr.join(e,t.dir,t.name);if(!eo(t.template))return Xr.join(e,t.dir,t.template).replace(Gbe,Ube(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",Ube(12),t.postfix?"-"+t.postfix:""].join("");return Xr.join(e,t.dir,r)}i(Kbe,"_generateTmpName");function Cj(t,e){if(typeof e!="string")throw new Error(`${t} option must be a string, got "${typeof e}".`);if(e.includes(".."))throw new Error("Relative value not allowed");return e}i(Cj,"_assertPath");function Xbe(t){if(!eo(t.name)){let e=t.name;if(Xr.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=Xr.basename(e);if(r===".."||r==="."||r!==e)throw new Error(`name option must not contain a path, found "${e}".`)}if(!eo(t.template)){if(typeof t.template!="string")throw new Error(`template option must be a string, got "${typeof t.template}".`);if(!t.template.match(Gbe))throw new Error(`Invalid template, found "${t.template}".`)}if(!eo(t.tries)&&isNaN(t.tries)||t.tries<0)throw new Error(`Invalid tries, found "${t.tries}".`);t.tries=eo(t.name)?t.tries||_Pt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=eo(t.prefix)?"":Cj("prefix",t.prefix),t.postfix=eo(t.postfix)?"":Cj("postfix",t.postfix),t.template=eo(t.template)?void 0:Cj("template",t.template)}i(Xbe,"_assertOptionsBase");function qbe(t,e,r,n){if(eo(e))return n(null);HPt(e,r,function(s,o){if(s)return n(s);let a=Xr.relative(r,o);if(a.startsWith("..")||Xr.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(qbe,"_getRelativePath");function $be(t,e,r){if(eo(e))return;let n=zPt(e,r),s=Xr.relative(r,n);if(s.startsWith("..")||Xr.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i($be,"_getRelativePathSync");function VPt(t,e){jPt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{Xbe(t,n)}catch(s){return e(s)}qbe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=eo(o)?"":o,qbe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(VPt,"_assertAndSanitizeOptions");function WPt(t){let e=t.tmpdir=e0e(t);Xbe(t,e);let r=$be("dir",t.dir,e);return t.dir=eo(r)?"":r,t.template=$be("template",t.template,e),t}i(WPt,"_assertAndSanitizeOptionsSync");function YPt(t){return Zbe(t,-QPt,"EBADF")}i(YPt,"_isEBADF");function Sj(t){return Zbe(t,-DPt,"ENOENT")}i(Sj,"_isENOENT");function Zbe(t,e,r){return vPt?t.code===r:t.code===r&&t.errno===e}i(Zbe,"_isExpectedError");function JPt(){Ybe=!0}i(JPt,"setGracefulCleanup");function jPt(t,e){return wt.realpath(t&&t.tmpdir||eQ.tmpdir(),e)}i(jPt,"_getTmpDir");function e0e(t){return wt.realpathSync(t&&t.tmpdir||eQ.tmpdir())}i(e0e,"_getTmpDirSync");process.addListener(kPt,GPt);Object.defineProperty(Pu.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return e0e()},"get")});Pu.exports.dir=FPt;Pu.exports.dirSync=UPt;Pu.exports.file=LPt;Pu.exports.fileSync=MPt;Pu.exports.tmpName=wj;Pu.exports.tmpNameSync=xj;Pu.exports.setGracefulCleanup=JPt});var jn=S($o=>{"use strict";$o.__esModule=!0;$o.extend=o0e;$o.indexOf=t_t;$o.escapeExpression=r_t;$o.isEmpty=n_t;$o.createFrame=s_t;$o.blockParams=o_t;$o.appendContextPath=i_t;var KPt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},XPt=/[&<>"'`=]/g,ZPt=/[&<>"'`=]/;function e_t(t){return KPt[t]}i(e_t,"escapeChar");function o0e(t){for(var e=1;e<arguments.length;e++)for(var r in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],r)&&(t[r]=arguments[e][r]);return t}i(o0e,"extend");var Rj=Object.prototype.toString;$o.toString=Rj;var Bj=i(function(e){return typeof e=="function"},"isFunction");Bj(/x/)&&($o.isFunction=Bj=i(function(t){return typeof t=="function"&&Rj.call(t)==="[object Function]"},"isFunction"));$o.isFunction=Bj;var i0e=Array.isArray||function(t){return t&&typeof t=="object"?Rj.call(t)==="[object Array]":!1};$o.isArray=i0e;function t_t(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}i(t_t,"indexOf");function r_t(t){if(typeof t!="string"){if(t&&typeof t.toHTML=="function")return t.toHTML();if(t==null)return"";if(!t)return t+"";t=""+t}return ZPt.test(t)?t.replace(XPt,e_t):t}i(r_t,"escapeExpression");function n_t(t){return!t&&t!==0?!0:!!(i0e(t)&&t.length===0)}i(n_t,"isEmpty");function s_t(t){var e=o0e({},t);return e._parent=t,e}i(s_t,"createFrame");function o_t(t,e){return t.path=e,t}i(o_t,"blockParams");function i_t(t,e){return(t?t+".":"")+e}i(i_t,"appendContextPath")});var vi=S((rQ,a0e)=>{"use strict";rQ.__esModule=!0;var Nj=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Tj(t,e){var r=e&&e.loc,n=void 0,s=void 0,o=void 0,a=void 0;r&&r.start&&(n=r.start.line,o=r.start.column,r.end&&(s=r.end.line,a=r.end.column),t+=" - "+n+":"+o);for(var c=Error.prototype.constructor.call(this,t),l=0;l<Nj.length;l++)this[Nj[l]]=c[Nj[l]];Error.captureStackTrace&&Error.captureStackTrace(this,Tj);try{r&&(this.lineNumber=n,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=o,this.endColumn=a))}catch{}}i(Tj,"Exception");Tj.prototype=new Error;rQ.default=Tj;a0e.exports=rQ.default});var l0e=S((nQ,c0e)=>{"use strict";nQ.__esModule=!0;var Pj=jn();nQ.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,s=r.fn;if(e===!0)return s(this);if(e===!1||e==null)return n(this);if(Pj.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var o=Pj.createFrame(r.data);o.contextPath=Pj.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};c0e.exports=nQ.default});var d0e=S((sQ,u0e)=>{"use strict";sQ.__esModule=!0;function a_t(t){return t&&t.__esModule?t:{default:t}}i(a_t,"_interopRequireDefault");var wy=jn(),c_t=vi(),l_t=a_t(c_t);function u_t(t){try{var e=t.return;wy.isFunction(e)&&e.call(t)}catch{}}i(u_t,"closeIterator");sQ.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new l_t.default("Must pass iterator to #each");var n=r.fn,s=r.inverse,o=0,a="",c=void 0,l=void 0;r.data&&r.ids&&(l=wy.appendContextPath(r.data.contextPath,r.ids[0])+"."),wy.isFunction(e)&&(e=e.call(this)),r.data&&(c=wy.createFrame(r.data));function u(h,A,y,E){c&&(c.key=h,c.index=A,c.first=A===0,c.last=!!y,l&&(c.contextPath=l+h)),a=a+n(E,{data:c,blockParams:wy.blockParams([E,h],[l+h,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(wy.isArray(e))for(var d=e.length;o<d;o++)o in e&&u(o,o,o===e.length-1,e[o]);else if(typeof Symbol=="function"&&e[Symbol.iterator])for(var p=e[Symbol.iterator](),f=p.next();!f.done;){var m=p.next();try{u(o,o,m.done,f.value)}catch(h){throw m.done||u_t(p),h}f=m,o++}else(function(){var h=void 0;Object.keys(e).forEach(function(A){h!==void 0&&u(h,o-1,!1,e[h]),h=A,o++}),h!==void 0&&u(h,o-1,!0,e[h])})();return o===0&&(a=s(this)),a})};u0e.exports=sQ.default});var f0e=S((oQ,p0e)=>{"use strict";oQ.__esModule=!0;function d_t(t){return t&&t.__esModule?t:{default:t}}i(d_t,"_interopRequireDefault");var p_t=vi(),f_t=d_t(p_t);oQ.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new f_t.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};p0e.exports=oQ.default});var g0e=S((iQ,A0e)=>{"use strict";iQ.__esModule=!0;function m_t(t){return t&&t.__esModule?t:{default:t}}i(m_t,"_interopRequireDefault");var m0e=jn(),h_t=vi(),h0e=m_t(h_t);iQ.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new h0e.default("#if requires exactly one argument");return m0e.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||m0e.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new h0e.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};A0e.exports=iQ.default});var E0e=S((aQ,y0e)=>{"use strict";aQ.__esModule=!0;aQ.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)e.push(arguments[n]);var s=1;r.hash.level!=null?s=r.hash.level:r.data&&r.data.level!=null&&(s=r.data.level),e[0]=s,t.log.apply(t,e)})};y0e.exports=aQ.default});var I0e=S((cQ,C0e)=>{"use strict";cQ.__esModule=!0;cQ.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};C0e.exports=cQ.default});var w0e=S((lQ,S0e)=>{"use strict";lQ.__esModule=!0;function A_t(t){return t&&t.__esModule?t:{default:t}}i(A_t,"_interopRequireDefault");var lx=jn(),g_t=vi(),y_t=A_t(g_t);lQ.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new y_t.default("#with requires exactly one argument");lx.isFunction(e)&&(e=e.call(this));var n=r.fn;if(lx.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=lx.createFrame(r.data),s.contextPath=lx.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:lx.blockParams([e],[s&&s.contextPath])})})};S0e.exports=lQ.default});var _j=S(uQ=>{"use strict";uQ.__esModule=!0;uQ.registerDefaultHelpers=Q_t;uQ.moveHelperToHooks=D_t;function zm(t){return t&&t.__esModule?t:{default:t}}i(zm,"_interopRequireDefault");var E_t=l0e(),C_t=zm(E_t),I_t=d0e(),S_t=zm(I_t),w_t=f0e(),x_t=zm(w_t),b_t=g0e(),B_t=zm(b_t),R_t=E0e(),N_t=zm(R_t),T_t=I0e(),P_t=zm(T_t),__t=w0e(),v_t=zm(__t);function Q_t(t){C_t.default(t),S_t.default(t),x_t.default(t),B_t.default(t),N_t.default(t),P_t.default(t),v_t.default(t)}i(Q_t,"registerDefaultHelpers");function D_t(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(D_t,"moveHelperToHooks")});var b0e=S((dQ,x0e)=>{"use strict";dQ.__esModule=!0;var k_t=jn();dQ.default=function(t){t.registerDecorator("inline",function(e,r,n,s){var o=e;return r.partials||(r.partials={},o=i(function(a,c){var l=n.partials;n.partials=k_t.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};x0e.exports=dQ.default});var B0e=S(vj=>{"use strict";vj.__esModule=!0;vj.registerDefaultDecorators=F_t;function O_t(t){return t&&t.__esModule?t:{default:t}}i(O_t,"_interopRequireDefault");var L_t=b0e(),M_t=O_t(L_t);function F_t(t){M_t.default(t)}i(F_t,"registerDefaultDecorators")});var Qj=S((pQ,R0e)=>{"use strict";pQ.__esModule=!0;var U_t=jn(),xy={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=U_t.indexOf(xy.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=xy.lookupLevel(e),typeof console<"u"&&xy.lookupLevel(xy.level)<=e){var r=xy.methodMap[e];console[r]||(r="log");for(var n=arguments.length,s=Array(n>1?n-1:0),o=1;o<n;o++)s[o-1]=arguments[o];console[r].apply(console,s)}},"log")};pQ.default=xy;R0e.exports=pQ.default});var Dj=S(by=>{"use strict";by.__esModule=!0;by.createProtoAccessControl=H_t;by.resultIsAllowed=z_t;by.isPrototypeConstructor=V_t;by.resetLoggedProperties=Y_t;function q_t(t){return t&&t.__esModule?t:{default:t}}i(q_t,"_interopRequireDefault");var N0e=jn(),$_t=Qj(),G_t=q_t($_t),fQ=Object.create(null);function H_t(t){var e=Object.create(null);e.__proto__=!1,N0e.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,N0e.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(H_t,"createProtoAccessControl");function z_t(t,e,r){return T0e(typeof t=="function"?e.methods:e.properties,r)}i(z_t,"resultIsAllowed");function V_t(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}i(V_t,"isPrototypeConstructor");function T0e(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(W_t(e),!1)}i(T0e,"checkWhiteList");function W_t(t){fQ[t]!==!0&&(fQ[t]=!0,G_t.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
|
|
You can add a runtime option to disable the check or this warning:
|
|
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(W_t,"logUnexpecedPropertyAccessOnce");function Y_t(){Object.keys(fQ).forEach(function(t){delete fQ[t]})}i(Y_t,"resetLoggedProperties")});var hQ=S(el=>{"use strict";el.__esModule=!0;el.HandlebarsEnvironment=Lj;function P0e(t){return t&&t.__esModule?t:{default:t}}i(P0e,"_interopRequireDefault");var Vm=jn(),J_t=vi(),kj=P0e(J_t),j_t=_j(),K_t=B0e(),X_t=Qj(),mQ=P0e(X_t),Z_t=Dj(),evt="4.7.10";el.VERSION=evt;var tvt=8;el.COMPILER_REVISION=tvt;var rvt=7;el.LAST_COMPATIBLE_COMPILER_REVISION=rvt;var nvt={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"};el.REVISION_CHANGES=nvt;var Oj="[object Object]";function Lj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},j_t.registerDefaultHelpers(this),K_t.registerDefaultDecorators(this)}i(Lj,"HandlebarsEnvironment");Lj.prototype={constructor:Lj,logger:mQ.default,log:mQ.default.log,registerHelper:i(function(e,r){if(Vm.toString.call(e)===Oj){if(r)throw new kj.default("Arg not supported with multiple helpers");Vm.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(Vm.toString.call(e)===Oj)Vm.extend(this.partials,e);else{if(typeof r>"u")throw new kj.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(Vm.toString.call(e)===Oj){if(r)throw new kj.default("Arg not supported with multiple decorators");Vm.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){Z_t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var svt=mQ.default.log;el.log=svt;el.createFrame=Vm.createFrame;el.logger=mQ.default});var v0e=S((AQ,_0e)=>{"use strict";AQ.__esModule=!0;function Mj(t){this.string=t}i(Mj,"SafeString");Mj.prototype.toString=Mj.prototype.toHTML=function(){return""+this.string};AQ.default=Mj;_0e.exports=AQ.default});var Q0e=S(Fj=>{"use strict";Fj.__esModule=!0;Fj.wrapHelper=ovt;function ovt(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(ovt,"wrapHelper")});var M0e=S(jd=>{"use strict";jd.__esModule=!0;jd.checkRevision=dvt;jd.template=pvt;jd.wrapProgram=gQ;jd.resolvePartial=fvt;jd.invokePartial=mvt;jd.noop=O0e;function ivt(t){return t&&t.__esModule?t:{default:t}}i(ivt,"_interopRequireDefault");function avt(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(avt,"_interopRequireWildcard");var cvt=jn(),Wm=avt(cvt),lvt=vi(),wa=ivt(lvt),vu=hQ(),D0e=_j(),uvt=Q0e(),Uj=Dj();function dvt(t){var e=t&&t[0]||1,r=vu.COMPILER_REVISION;if(!(e>=vu.LAST_COMPATIBLE_COMPILER_REVISION&&e<=vu.COMPILER_REVISION))if(e<vu.LAST_COMPATIBLE_COMPILER_REVISION){var n=vu.REVISION_CHANGES[r],s=vu.REVISION_CHANGES[e];throw new wa.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 wa.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(dvt,"checkRevision");function pvt(t,e){if(!e)throw new wa.default("No environment passed to template");if(!t||!t.main)throw new wa.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=Wm.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&Wm.isFunction(a))throw new wa.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new wa.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var d=u.split(`
|
|
`),p=0,f=d.length;p<f&&!(!d[p]&&p+1===f);p++)d[p]=l.indent+d[p];u=d.join(`
|
|
`)}return u}else throw new wa.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var s={strict:i(function(c,l,u){if(!c||!(l in c))throw new wa.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:i(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)&&!Uj.isPrototypeConstructor(c,l,u)||Uj.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:i(function(c,l){for(var u=c.length,d=0;d<u;d++){var p=c[d]&&s.lookupProperty(c[d],l);if(p!=null)return p}},"lookup"),lambda:i(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Wm.escapeExpression,invokePartial:n,fn:i(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:i(function(c,l,u,d,p){var f=this.programs[c],m=this.fn(c);return l||p||d||u?f=gQ(this,c,m,l,u,d,p):f||(f=this.programs[c]=gQ(this,c,m)),f},"program"),data:i(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Wm.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;o._setup(c),!c.partial&&t.useData&&(l=hvt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function p(f){return""+t.main(s,f,s.helpers,s.partials,l,d,u)}return i(p,"main"),p=L0e(t.main,p,s,c.depths||[],l,d),p(a,c)}return i(o,"ret"),o.isTop=!0,o._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};k0e(c,e.helpers,s),k0e(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=Wm.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=Uj.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;D0e.moveHelperToHooks(s,"helperMissing",l),D0e.moveHelperToHooks(s,"blockHelperMissing",l)}},o._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new wa.default("must pass block params");if(t.useDepths&&!u)throw new wa.default("must pass parent depths");return gQ(s,a,t[a],c,0,l,u)},o}i(pvt,"template");function gQ(t,e,r,n,s,o,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,o&&[u.blockParams].concat(o),d)}return i(c,"prog"),c=L0e(r,c,t,a,n,o),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}i(gQ,"wrapProgram");function fvt(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=yQ(r.partials,t)):r.name==="@partial-block"?t=yQ(r.data,"partial-block"):t=yQ(r.partials,r.name),t}i(fvt,"resolvePartial");function mvt(t,e,r){var n=yQ(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==O0e&&(function(){r.data=vu.createFrame(r.data);var o=r.fn;s=r.data["partial-block"]=i(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=vu.createFrame(l.data),l.data["partial-block"]=n,o(c,l)},"partialBlockWrapper"),o.partials&&(r.partials=Wm.extend({},r.partials,o.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new wa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(mvt,"invokePartial");function O0e(){return""}i(O0e,"noop");function yQ(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(yQ,"lookupOwnProperty");function hvt(t,e){return(!e||!("root"in e))&&(e=e?vu.createFrame(e):{},e.root=t),e}i(hvt,"initData");function L0e(t,e,r,n,s,o){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,o,n),Wm.extend(e,a)}return e}i(L0e,"executeDecorators");function k0e(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=Avt(s,r)})}i(k0e,"addHelpers");function Avt(t,e){var r=e.lookupProperty;return uvt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(Avt,"passLookupPropertyOption")});var qj=S((EQ,F0e)=>{"use strict";EQ.__esModule=!0;EQ.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};F0e.exports=EQ.default});var H0e=S((CQ,G0e)=>{"use strict";CQ.__esModule=!0;function Gj(t){return t&&t.__esModule?t:{default:t}}i(Gj,"_interopRequireDefault");function Hj(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(Hj,"_interopRequireWildcard");var gvt=hQ(),U0e=Hj(gvt),yvt=v0e(),Evt=Gj(yvt),Cvt=vi(),Ivt=Gj(Cvt),Svt=jn(),$j=Hj(Svt),wvt=M0e(),q0e=Hj(wvt),xvt=qj(),bvt=Gj(xvt);function $0e(){var t=new U0e.HandlebarsEnvironment;return $j.extend(t,U0e),t.SafeString=Evt.default,t.Exception=Ivt.default,t.Utils=$j,t.escapeExpression=$j.escapeExpression,t.VM=q0e,t.template=function(e){return q0e.template(e,t)},t}i($0e,"create");var ux=$0e();ux.create=$0e;bvt.default(ux);ux.default=ux;CQ.default=ux;G0e.exports=CQ.default});var zj=S((IQ,V0e)=>{"use strict";IQ.__esModule=!0;var z0e={helpers:{helperExpression:i(function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},"helperExpression"),scopedId:i(function(e){return/^\.|this\b/.test(e.original)},"scopedId"),simpleId:i(function(e){return e.parts.length===1&&!z0e.helpers.scopedId(e)&&!e.depth},"simpleId")}};IQ.default=z0e;V0e.exports=IQ.default});var Y0e=S((SQ,W0e)=>{"use strict";SQ.__esModule=!0;var Bvt=(function(){var t={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:i(function(s,o,a,c,l,u,d){var p=u.length-1;switch(l){case 1:return u[p-1];case 2:this.$=c.prepareProgram(u[p]);break;case 3:this.$=u[p];break;case 4:this.$=u[p];break;case 5:this.$=u[p];break;case 6:this.$=u[p];break;case 7:this.$=u[p];break;case 8:this.$=u[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(u[p]),strip:c.stripFlags(u[p],u[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:u[p],value:u[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(u[p-2],u[p-1],u[p],this._$);break;case 12:this.$={path:u[p-3],params:u[p-2],hash:u[p-1]};break;case 13:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!1,this._$);break;case 14:this.$=c.prepareBlock(u[p-3],u[p-2],u[p-1],u[p],!0,this._$);break;case 15:this.$={open:u[p-5],path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 16:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 17:this.$={path:u[p-4],params:u[p-3],hash:u[p-2],blockParams:u[p-1],strip:c.stripFlags(u[p-5],u[p])};break;case 18:this.$={strip:c.stripFlags(u[p-1],u[p-1]),program:u[p]};break;case 19:var f=c.prepareBlock(u[p-2],u[p-1],u[p],u[p],!1,this._$),m=c.prepareProgram([f],u[p-1].loc);m.chained=!0,this.$={strip:u[p-2].strip,program:m,chain:!0};break;case 20:this.$=u[p];break;case 21:this.$={path:u[p-1],strip:c.stripFlags(u[p-2],u[p])};break;case 22:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 23:this.$=c.prepareMustache(u[p-3],u[p-2],u[p-1],u[p-4],c.stripFlags(u[p-4],u[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:u[p-3],params:u[p-2],hash:u[p-1],indent:"",strip:c.stripFlags(u[p-4],u[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(u[p-2],u[p-1],u[p],this._$);break;case 26:this.$={path:u[p-3],params:u[p-2],hash:u[p-1],strip:c.stripFlags(u[p-4],u[p])};break;case 27:this.$=u[p];break;case 28:this.$=u[p];break;case 29:this.$={type:"SubExpression",path:u[p-3],params:u[p-2],hash:u[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:u[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(u[p-2]),value:u[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(u[p-1]);break;case 33:this.$=u[p];break;case 34:this.$=u[p];break;case 35:this.$={type:"StringLiteral",value:u[p],original:u[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(u[p]),original:Number(u[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:u[p]==="true",original:u[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=u[p];break;case 41:this.$=u[p];break;case 42:this.$=c.preparePath(!0,u[p],this._$);break;case 43:this.$=c.preparePath(!1,u[p],this._$);break;case 44:u[p-2].push({part:c.id(u[p]),original:u[p],separator:u[p-1]}),this.$=u[p-2];break;case 45:this.$=[{part:c.id(u[p]),original:u[p]}];break;case 46:this.$=[];break;case 47:u[p-1].push(u[p]);break;case 48:this.$=[];break;case 49:u[p-1].push(u[p]);break;case 50:this.$=[];break;case 51:u[p-1].push(u[p]);break;case 58:this.$=[];break;case 59:u[p-1].push(u[p]);break;case 64:this.$=[];break;case 65:u[p-1].push(u[p]);break;case 70:this.$=[];break;case 71:u[p-1].push(u[p]);break;case 78:this.$=[];break;case 79:u[p-1].push(u[p]);break;case 82:this.$=[];break;case 83:u[p-1].push(u[p]);break;case 86:this.$=[];break;case 87:u[p-1].push(u[p]);break;case 90:this.$=[];break;case 91:u[p-1].push(u[p]);break;case 94:this.$=[];break;case 95:u[p-1].push(u[p]);break;case 98:this.$=[u[p]];break;case 99:u[p-1].push(u[p]);break;case 100:this.$=[u[p]];break;case 101:u[p-1].push(u[p]);break}},"anonymous"),table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:i(function(s,o){throw new Error(s)},"parseError"),parse:i(function(s){var o=this,a=[0],c=[null],l=[],u=this.table,d="",p=0,f=0,m=0,h=2,A=1;this.lexer.setInput(s),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var y=this.lexer.yylloc;l.push(y);var E=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function I(Q){a.length=a.length-2*Q,c.length=c.length-Q,l.length=l.length-Q}i(I,"popStack");function x(){var Q;return Q=o.lexer.lex()||1,typeof Q!="number"&&(Q=o.symbols_[Q]||Q),Q}i(x,"lex");for(var b,N,v,_,J,Be,ke={},De,ce,Tt,Re;;){if(v=a[a.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((b===null||typeof b>"u")&&(b=x()),_=u[v]&&u[v][b]),typeof _>"u"||!_.length||!_[0]){var oe="";if(!m){Re=[];for(De in u[v])this.terminals_[De]&&De>2&&Re.push("'"+this.terminals_[De]+"'");this.lexer.showPosition?oe="Parse error on line "+(p+1)+`:
|
|
`+this.lexer.showPosition()+`
|
|
Expecting `+Re.join(", ")+", got '"+(this.terminals_[b]||b)+"'":oe="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(oe,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:Re})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+b);switch(_[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(_[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(ce=this.productions_[_[1]][1],ke.$=c[c.length-ce],ke._$={first_line:l[l.length-(ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(ke._$.range=[l[l.length-(ce||1)].range[0],l[l.length-1].range[1]]),Be=this.performAction.call(ke,d,f,p,this.yy,_[1],c,l),typeof Be<"u")return Be;ce&&(a=a.slice(0,-1*ce*2),c=c.slice(0,-1*ce),l=l.slice(0,-1*ce)),a.push(this.productions_[_[1]][0]),c.push(ke.$),l.push(ke._$),Tt=u[a[a.length-2]][a[a.length-1]],a.push(Tt);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)+`. Unrecognized text.
|
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var o=this.next();return typeof o<"u"?o:this.lex()},"lex"),begin:i(function(o){this.conditionStack.push(o)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(o){this.begin(o)},"begin")};return n.options={},n.performAction=i(function(o,a,c,l){function u(p,f){return a.yytext=a.yytext.substring(p,a.yyleng-f+p)}i(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();SQ.default=Bvt;W0e.exports=SQ.default});var Wj=S(Vj=>{"use strict";Vj.__esModule=!0;var Rvt=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];Vj.NODE_TYPES=Rvt});var BQ=S((bQ,X0e)=>{"use strict";bQ.__esModule=!0;function Nvt(t){return t&&t.__esModule?t:{default:t}}i(Nvt,"_interopRequireDefault");var Tvt=vi(),Yj=Nvt(Tvt),Pvt=jn(),_vt=Wj();function xQ(){this.parents=[]}i(xQ,"Visitor");function J0e(t,e){return Pvt.indexOf(_vt.NODE_TYPES,e)!==-1||!(e in xQ.prototype)&&typeof t[e]=="function"}i(J0e,"isDispatchable");xQ.prototype={constructor:xQ,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!J0e(this,n.type))throw new Yj.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new Yj.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:i(function(e){if(e){if(!J0e(this,e.type)||!this[e.type])throw new Yj.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:i(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:wQ,Decorator:wQ,BlockStatement:j0e,DecoratorBlock:j0e,PartialStatement:K0e,PartialBlockStatement:i(function(e){K0e.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:i(function(){},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:wQ,PathExpression:i(function(){},"PathExpression"),StringLiteral:i(function(){},"StringLiteral"),NumberLiteral:i(function(){},"NumberLiteral"),BooleanLiteral:i(function(){},"BooleanLiteral"),UndefinedLiteral:i(function(){},"UndefinedLiteral"),NullLiteral:i(function(){},"NullLiteral"),Hash:i(function(e){this.acceptArray(e.pairs)},"Hash"),HashPair:i(function(e){this.acceptRequired(e,"value")},"HashPair")};function wQ(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}i(wQ,"visitSubExpression");function j0e(t){wQ.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}i(j0e,"visitBlock");function K0e(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}i(K0e,"visitPartial");bQ.default=xQ;X0e.exports=bQ.default});var eBe=S((RQ,Z0e)=>{"use strict";RQ.__esModule=!0;function vvt(t){return t&&t.__esModule?t:{default:t}}i(vvt,"_interopRequireDefault");var Qvt=BQ(),Dvt=vvt(Qvt);function tl(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(tl,"WhitespaceControl");tl.prototype=new Dvt.default;tl.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,o=n.length;s<o;s++){var a=n[s],c=this.accept(a);if(c){var l=Jj(n,s,r),u=jj(n,s,r),d=c.openStandalone&&l,p=c.closeStandalone&&u,f=c.inlineStandalone&&l&&u;c.close&&Ym(n,s,!0),c.open&&Kd(n,s,!0),e&&f&&(Ym(n,s),Kd(n,s)&&a.type==="PartialStatement"&&(a.indent=/(?:^|[^ \t])([ \t]+)$/.exec(n[s-1].original)[1])),e&&d&&(Ym((a.program||a.inverse).body),Kd(n,s)),e&&p&&(Ym(n,s),Kd((a.inverse||a.program).body))}}return t};tl.prototype.BlockStatement=tl.prototype.DecoratorBlock=tl.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,s=r;if(r&&r.chained)for(n=r.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var o={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:jj(e.body),closeStandalone:Jj((n||e).body)};if(t.openStrip.close&&Ym(e.body,null,!0),r){var a=t.inverseStrip;a.open&&Kd(e.body,null,!0),a.close&&Ym(n.body,null,!0),t.closeStrip.open&&Kd(s.body,null,!0),!this.options.ignoreStandalone&&Jj(e.body)&&jj(n.body)&&(Kd(e.body),Ym(n.body))}else t.closeStrip.open&&Kd(e.body,null,!0);return o};tl.prototype.Decorator=tl.prototype.MustacheStatement=function(t){return t.strip};tl.prototype.PartialStatement=tl.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function Jj(t,e,r){e===void 0&&(e=t.length);var n=t[e-1],s=t[e-2];if(!n)return r;if(n.type==="ContentStatement")return(s||!r?/(?:^|\S)[^\S\n]*\n\s*$/:/^\s*$|(?:^|\S)[^\S\n]*\n\s*$/).test(n.original)}i(Jj,"isPrevWhitespace");function jj(t,e,r){e===void 0&&(e=-1);var n=t[e+1],s=t[e+2];if(!n)return r;if(n.type==="ContentStatement")return(s||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}i(jj,"isNextWhitespace");function Ym(t,e,r){var n=t[e==null?0:e+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var s=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==s}}i(Ym,"omitRight");function Kd(t,e,r){var n=t[e==null?t.length-1:e-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var s=n.value;return n.value=n.value.replace(r?/(^|\S)\s+$/:/(^|[^ \t])[ \t]+$/,"$1"),n.leftStripped=n.value!==s,n.leftStripped}}i(Kd,"omitLeft");RQ.default=tl;Z0e.exports=RQ.default});var tBe=S(Qi=>{"use strict";Qi.__esModule=!0;Qi.SourceLocation=Lvt;Qi.id=Mvt;Qi.stripFlags=Fvt;Qi.stripComment=Uvt;Qi.preparePath=qvt;Qi.prepareMustache=$vt;Qi.prepareRawBlock=Gvt;Qi.prepareBlock=Hvt;Qi.prepareProgram=zvt;Qi.preparePartialBlock=Vvt;function kvt(t){return t&&t.__esModule?t:{default:t}}i(kvt,"_interopRequireDefault");var Ovt=vi(),Kj=kvt(Ovt);function Xj(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new Kj.default(t.path.original+" doesn't match "+e,r)}}i(Xj,"validateClose");function Lvt(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}i(Lvt,"SourceLocation");function Mvt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(Mvt,"id");function Fvt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(Fvt,"stripFlags");function Uvt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(Uvt,"stripComment");function qvt(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],o=0,a=0,c=e.length;a<c;a++){var l=e[a].part,u=e[a].original!==l;if(n+=(e[a].separator||"")+l,!u&&(l===".."||l==="."||l==="this")){if(s.length>0)throw new Kj.default("Invalid path: "+n,{loc:r});l===".."&&o++}else s.push(l)}return{type:"PathExpression",data:t,depth:o,parts:s,original:n,loc:r}}i(qvt,"preparePath");function $vt(t,e,r,n,s,o){var a=n.charAt(3)||n.charAt(2),c=a!=="{"&&a!=="&",l=/\*/.test(n);return{type:l?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:c,strip:s,loc:this.locInfo(o)}}i($vt,"prepareMustache");function Gvt(t,e,r,n){Xj(t,r),n=this.locInfo(n);var s={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}i(Gvt,"prepareRawBlock");function Hvt(t,e,r,n,s,o){n&&n.path&&Xj(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new Kj.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),l=r.strip,c=r.program}return s&&(s=c,c=e,e=s),{type:a?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:c,openStrip:t.strip,inverseStrip:l,closeStrip:n&&n.strip,loc:this.locInfo(o)}}i(Hvt,"prepareBlock");function zvt(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}i(zvt,"prepareProgram");function Vvt(t,e,r,n){return Xj(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}i(Vvt,"preparePartialBlock")});var sBe=S(dx=>{"use strict";dx.__esModule=!0;dx.parseWithoutProcessing=nBe;dx.parse=eQt;function Wvt(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(Wvt,"_interopRequireWildcard");function rBe(t){return t&&t.__esModule?t:{default:t}}i(rBe,"_interopRequireDefault");var Yvt=Y0e(),Zj=rBe(Yvt),Jvt=eBe(),jvt=rBe(Jvt),Kvt=tBe(),Xvt=Wvt(Kvt),Zvt=jn();dx.parser=Zj.default;var NQ={};Zvt.extend(NQ,Xvt);function nBe(t,e){if(t.type==="Program")return t;Zj.default.yy=NQ,NQ.locInfo=function(n){return new NQ.SourceLocation(e&&e.srcName,n)};var r=Zj.default.parse(t);return r}i(nBe,"parseWithoutProcessing");function eQt(t,e){var r=nBe(t,e),n=new jvt.default(e);return n.accept(r)}i(eQt,"parse")});var lBe=S(fx=>{"use strict";fx.__esModule=!0;fx.Compiler=r5;fx.precompile=oQt;fx.compile=iQt;function iBe(t){return t&&t.__esModule?t:{default:t}}i(iBe,"_interopRequireDefault");var tQt=vi(),By=iBe(tQt),Xd=jn(),rQt=zj(),px=iBe(rQt),nQt=Wj(),sQt=[].slice;function r5(){}i(r5,"Compiler");r5.prototype={compiler:r5,equals:i(function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var s=this.opcodes[n],o=e.opcodes[n];if(s.opcode!==o.opcode||!cBe(s.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},"equals"),guid:0,compile:i(function(e,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Xd.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(e)},"compile"),compileProgram:i(function(e){var r=new this.compiler,n=r.compile(e,this.options),s=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[s]=n,this.useDepths=this.useDepths||n.useDepths,s},"compileProgram"),accept:i(function(e){if(Xd.indexOf(nQt.NODE_TYPES,e.type)===-1||!this[e.type])throw new By.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var r=this[e.type](e);return this.sourceNode.shift(),r},"accept"),Program:i(function(e){aQt(e),this.options.blockParams.unshift(e.blockParams);for(var r=e.body,n=r.length,s=0;s<n;s++)this.accept(r[s]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=e.blockParams?e.blockParams.length:0,this},"Program"),BlockStatement:i(function(e){oBe(e);var r=e.program,n=e.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var s=this.classifySexpr(e);s==="helper"?this.helperSexpr(e,r,n):s==="simple"?(this.simpleSexpr(e),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},"BlockStatement"),DecoratorBlock:i(function(e){var r=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,r,void 0),s=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,s.original)},"DecoratorBlock"),PartialStatement:i(function(e){this.usePartial=!0;var r=e.program;r&&(r=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new By.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var s=e.name.original,o=e.name.type==="SubExpression";o&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,s,a),this.opcode("append")},"PartialStatement"),PartialBlockStatement:i(function(e){this.PartialStatement(e)},"PartialBlockStatement"),MustacheStatement:i(function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},"MustacheStatement"),Decorator:i(function(e){this.DecoratorBlock(e)},"Decorator"),ContentStatement:i(function(e){if(e.value!=null&&typeof e.value!="string")throw Qu(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){oBe(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},"SubExpression"),ambiguousSexpr:i(function(e,r,n){var s=e.path,o=s.parts[0],a=r!=null||n!=null;this.opcode("getContext",e5(s)),this.opcode("pushProgram",r),this.opcode("pushProgram",n),s.strict=!0,this.accept(s),this.opcode("invokeAmbiguous",o,a)},"ambiguousSexpr"),simpleSexpr:i(function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},"simpleSexpr"),helperSexpr:i(function(e,r,n){var s=this.setupFullMustacheParams(e,r,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",s.length,a);else{if(this.options.knownHelpersOnly)throw new By.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",s.length,o.original,px.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){var r=e5(e),n=t5(e);this.addDepth(r),this.opcode("getContext",r);var s=n[0],o=px.default.helpers.scopedId(e),a=!r&&!o&&this.blockParamIndex(s);a?this.opcode("lookupBlockParam",a,n):s?e.data?(this.options.data=!0,this.opcode("lookupData",r,n,e.strict)):this.opcode("lookupOnContext",n,e.falsy,e.strict,o):this.opcode("pushContext")},"PathExpression"),StringLiteral:i(function(e){TQ(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){TQ(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){TQ(e),this.opcode("pushLiteral",e.value)},"BooleanLiteral"),UndefinedLiteral:i(function(){this.opcode("pushLiteral","undefined")},"UndefinedLiteral"),NullLiteral:i(function(){this.opcode("pushLiteral","null")},"NullLiteral"),Hash:i(function(e){var r=e.pairs,n=0,s=void 0;if(!Xd.isArray(r))throw Qu(e,"pairs must be an array");s=r.length;for(var o=0;o<s;o++)if(!r[o]||typeof r[o].key!="string")throw Qu(e,"pair keys must be strings");for(this.opcode("pushHash");n<s;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},"Hash"),opcode:i(function(e){this.opcodes.push({opcode:e,args:sQt.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:i(function(e){e&&(this.useDepths=!0)},"addDepth"),classifySexpr:i(function(e){t5(e.path);var r=px.default.helpers.simpleId(e.path),n=r&&!!this.blockParamIndex(e.path.parts[0]),s=!n&&px.default.helpers.helperExpression(e),o=!n&&(s||r);if(o&&!s){var a=e.path.parts[0],c=this.options;c.knownHelpers[a]?s=!0:c.knownHelpersOnly&&(o=!1)}return s?"helper":o?"ambiguous":"simple"},"classifySexpr"),pushParams:i(function(e){for(var r=0,n=e.length;r<n;r++)this.pushParam(e[r])},"pushParams"),pushParam:i(function(e){TQ(e);var r=e.value!=null?e.value:e.original||"",n=e5(e);if(this.stringParams)typeof r!="number"&&typeof r!="boolean"&&(r=String(r)),r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),n&&this.addDepth(n),this.opcode("getContext",n),this.opcode("pushStringParam",r,e.type),e.type==="SubExpression"&&this.accept(e);else{if(this.trackIds){var s=void 0;if(e.parts&&!px.default.helpers.scopedId(e)&&!n&&(s=this.blockParamIndex(t5(e)[0])),s){var o=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",s,o)}else r=e.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,r)}this.accept(e)}},"pushParam"),setupFullMustacheParams:i(function(e,r,n,s){var o=e.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",s),o},"setupFullMustacheParams"),blockParamIndex:i(function(e){for(var r=0,n=this.options.blockParams.length;r<n;r++){var s=this.options.blockParams[r],o=s&&Xd.indexOf(s,e);if(s&&o>=0)return[r,o]}},"blockParamIndex")};function oQt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new By.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),s=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(s,e)}i(oQt,"precompile");function iQt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new By.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Xd.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function s(){var a=r.parse(t,e),c=new r.Compiler().compile(a,e),l=new r.JavaScriptCompiler().compile(c,e,void 0,!0);return r.template(l)}i(s,"compileInput");function o(a,c){return n||(n=s()),n.call(this,a,c)}return i(o,"ret"),o._setup=function(a){return n||(n=s()),n._setup(a)},o._child=function(a,c,l,u){return n||(n=s()),n._child(a,c,l,u)},o}i(iQt,"compile");function Qu(t,e){return new By.default("Invalid AST: "+t.type+" "+e,t)}i(Qu,"invalidAst");function e5(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw Qu(t,"depth must be a non-negative integer");return e}i(e5,"validateDepth");function TQ(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw Qu(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw Qu(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw Qu(t,"value must be a boolean")}i(TQ,"validateLiteral");function aBe(t,e,r){if(!Xd.isArray(e))throw Qu(t,r+" must be an array");for(var n=0;n<e.length;n++)if(typeof e[n]!="string")throw Qu(t,r+" must only contain strings");return e}i(aBe,"validateStringArray");function t5(t){return aBe(t,t.parts,"parts")}i(t5,"validateParts");function aQt(t){t.blockParams!=null&&aBe(t,t.blockParams,"blockParams")}i(aQt,"validateBlockParams");function cBe(t,e){if(t===e)return!0;if(Xd.isArray(t)&&Xd.isArray(e)&&t.length===e.length){for(var r=0;r<t.length;r++)if(!cBe(t[r],e[r]))return!1;return!0}}i(cBe,"argEquals");function oBe(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}i(oBe,"transformLiteralToPath")});var dBe=S(n5=>{var uBe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n5.encode=function(t){if(0<=t&&t<uBe.length)return uBe[t];throw new TypeError("Must be between 0 and 63: "+t)};n5.decode=function(t){var e=65,r=90,n=97,s=122,o=48,a=57,c=43,l=47,u=26,d=52;return e<=t&&t<=r?t-e:n<=t&&t<=s?t-n+u:o<=t&&t<=a?t-o+d:t==c?62:t==l?63:-1}});var i5=S(o5=>{var pBe=dBe(),s5=5,fBe=1<<s5,mBe=fBe-1,hBe=fBe;function cQt(t){return t<0?(-t<<1)+1:(t<<1)+0}i(cQt,"toVLQSigned");function lQt(t){var e=(t&1)===1,r=t>>1;return e?-r:r}i(lQt,"fromVLQSigned");o5.encode=i(function(e){var r="",n,s=cQt(e);do n=s&mBe,s>>>=s5,s>0&&(n|=hBe),r+=pBe.encode(n);while(s>0);return r},"base64VLQ_encode");o5.decode=i(function(e,r,n){var s=e.length,o=0,a=0,c,l;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=pBe.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&hBe),l&=mBe,o=o+(l<<a),a+=s5}while(c);n.value=lQt(o),n.rest=r},"base64VLQ_decode")});var Ty=S(Kn=>{function uQt(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}i(uQt,"getArg");Kn.getArg=uQt;var ABe=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,dQt=/^data:.+\,.+$/;function mx(t){var e=t.match(ABe);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(mx,"urlParse");Kn.urlParse=mx;function Ry(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}i(Ry,"urlGenerate");Kn.urlGenerate=Ry;function a5(t){var e=t,r=mx(t);if(r){if(!r.path)return t;e=r.path}for(var n=Kn.isAbsolute(e),s=e.split(/\/+/),o,a=0,c=s.length-1;c>=0;c--)o=s[c],o==="."?s.splice(c,1):o===".."?a++:a>0&&(o===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return e=s.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,Ry(r)):e}i(a5,"normalize");Kn.normalize=a5;function gBe(t,e){t===""&&(t="."),e===""&&(e=".");var r=mx(e),n=mx(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Ry(r);if(r||e.match(dQt))return e;if(n&&!n.host&&!n.path)return n.host=e,Ry(n);var s=e.charAt(0)==="/"?e:a5(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,Ry(n)):s}i(gBe,"join");Kn.join=gBe;Kn.isAbsolute=function(t){return t.charAt(0)==="/"||ABe.test(t)};function pQt(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}i(pQt,"relative");Kn.relative=pQt;var yBe=(function(){var t=Object.create(null);return!("__proto__"in t)})();function EBe(t){return t}i(EBe,"identity");function fQt(t){return CBe(t)?"$"+t:t}i(fQt,"toSetString");Kn.toSetString=yBe?EBe:fQt;function mQt(t){return CBe(t)?t.slice(1):t}i(mQt,"fromSetString");Kn.fromSetString=yBe?EBe:mQt;function CBe(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}i(CBe,"isProtoString");function hQt(t,e,r){var n=Ny(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:Ny(t.name,e.name)}i(hQt,"compareByOriginalPositions");Kn.compareByOriginalPositions=hQt;function AQt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=Ny(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:Ny(t.name,e.name)}i(AQt,"compareByGeneratedPositionsDeflated");Kn.compareByGeneratedPositionsDeflated=AQt;function Ny(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(Ny,"strcmp");function gQt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=Ny(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:Ny(t.name,e.name)}i(gQt,"compareByGeneratedPositionsInflated");Kn.compareByGeneratedPositionsInflated=gQt;function yQt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(yQt,"parseSourceMapInput");Kn.parseSourceMapInput=yQt;function EQt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=mx(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var s=n.path.lastIndexOf("/");s>=0&&(n.path=n.path.substring(0,s+1))}e=gBe(Ry(n),e)}return a5(e)}i(EQt,"computeSourceURL");Kn.computeSourceURL=EQt});var u5=S(IBe=>{var c5=Ty(),l5=Object.prototype.hasOwnProperty,Jm=typeof Map<"u";function Du(){this._array=[],this._set=Jm?new Map:Object.create(null)}i(Du,"ArraySet");Du.fromArray=i(function(e,r){for(var n=new Du,s=0,o=e.length;s<o;s++)n.add(e[s],r);return n},"ArraySet_fromArray");Du.prototype.size=i(function(){return Jm?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Du.prototype.add=i(function(e,r){var n=Jm?e:c5.toSetString(e),s=Jm?this.has(e):l5.call(this._set,n),o=this._array.length;(!s||r)&&this._array.push(e),s||(Jm?this._set.set(e,o):this._set[n]=o)},"ArraySet_add");Du.prototype.has=i(function(e){if(Jm)return this._set.has(e);var r=c5.toSetString(e);return l5.call(this._set,r)},"ArraySet_has");Du.prototype.indexOf=i(function(e){if(Jm){var r=this._set.get(e);if(r>=0)return r}else{var n=c5.toSetString(e);if(l5.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");Du.prototype.at=i(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},"ArraySet_at");Du.prototype.toArray=i(function(){return this._array.slice()},"ArraySet_toArray");IBe.ArraySet=Du});var xBe=S(wBe=>{var SBe=Ty();function CQt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||SBe.compareByGeneratedPositionsInflated(t,e)<=0}i(CQt,"generatedPositionAfter");function PQ(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(PQ,"MappingList");PQ.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");PQ.prototype.add=i(function(e){CQt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");PQ.prototype.toArray=i(function(){return this._sorted||(this._array.sort(SBe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");wBe.MappingList=PQ});var d5=S(bBe=>{var hx=i5(),Fr=Ty(),_Q=u5().ArraySet,IQt=xBe().MappingList;function Di(t){t||(t={}),this._file=Fr.getArg(t,"file",null),this._sourceRoot=Fr.getArg(t,"sourceRoot",null),this._skipValidation=Fr.getArg(t,"skipValidation",!1),this._sources=new _Q,this._names=new _Q,this._mappings=new IQt,this._sourcesContents=null}i(Di,"SourceMapGenerator");Di.prototype._version=3;Di.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new Di({file:e.file,sourceRoot:r});return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,r!=null&&(o.source=Fr.relative(r,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),n.addMapping(o)}),e.sources.forEach(function(s){var o=s;r!==null&&(o=Fr.relative(r,s)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(s);a!=null&&n.setSourceContent(s,a)}),n},"SourceMapGenerator_fromSourceMap");Di.prototype.addMapping=i(function(e){var r=Fr.getArg(e,"generated"),n=Fr.getArg(e,"original",null),s=Fr.getArg(e,"source",null),o=Fr.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,s,o),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:s,name:o})},"SourceMapGenerator_addMapping");Di.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Fr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Fr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Fr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");Di.prototype.applySourceMap=i(function(e,r,n){var s=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=e.file}var o=this._sourceRoot;o!=null&&(s=Fr.relative(o,s));var a=new _Q,c=new _Q;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var u=e.originalPositionFor({line:l.originalLine,column:l.originalColumn});u.source!=null&&(l.source=u.source,n!=null&&(l.source=Fr.join(n,l.source)),o!=null&&(l.source=Fr.relative(o,l.source)),l.originalLine=u.line,l.originalColumn=u.column,u.name!=null&&(l.name=u.name))}var d=l.source;d!=null&&!a.has(d)&&a.add(d);var p=l.name;p!=null&&!c.has(p)&&c.add(p)},this),this._sources=a,this._names=c,e.sources.forEach(function(l){var u=e.sourceContentFor(l);u!=null&&(n!=null&&(l=Fr.join(n,l)),o!=null&&(l=Fr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");Di.prototype._validateMapping=i(function(e,r,n,s){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!s)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:s}))}},"SourceMapGenerator_validateMapping");Di.prototype._serializeMappings=i(function(){for(var e=0,r=1,n=0,s=0,o=0,a=0,c="",l,u,d,p,f=this._mappings.toArray(),m=0,h=f.length;m<h;m++){if(u=f[m],l="",u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=";",r++;else if(m>0){if(!Fr.compareByGeneratedPositionsInflated(u,f[m-1]))continue;l+=","}l+=hx.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=hx.encode(p-a),a=p,l+=hx.encode(u.originalLine-1-s),s=u.originalLine-1,l+=hx.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=hx.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");Di.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Fr.relative(r,n));var s=Fr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");Di.prototype.toJSON=i(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},"SourceMapGenerator_toJSON");Di.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");bBe.SourceMapGenerator=Di});var BBe=S(jm=>{jm.GREATEST_LOWER_BOUND=1;jm.LEAST_UPPER_BOUND=2;function p5(t,e,r,n,s,o){var a=Math.floor((e-t)/2)+t,c=s(r,n[a],!0);return c===0?a:c>0?e-a>1?p5(a,e,r,n,s,o):o==jm.LEAST_UPPER_BOUND?e<n.length?e:-1:a:a-t>1?p5(t,a,r,n,s,o):o==jm.LEAST_UPPER_BOUND?a:t<0?-1:t}i(p5,"recursiveSearch");jm.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=p5(-1,r.length,e,r,n,s||jm.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o},"search")});var NBe=S(RBe=>{function f5(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(f5,"swap");function SQt(t,e){return Math.round(t+Math.random()*(e-t))}i(SQt,"randomIntInRange");function m5(t,e,r,n){if(r<n){var s=SQt(r,n),o=r-1;f5(t,s,n);for(var a=t[n],c=r;c<n;c++)e(t[c],a)<=0&&(o+=1,f5(t,o,c));f5(t,o+1,c);var l=o+1;m5(t,e,r,l-1),m5(t,e,l+1,n)}}i(m5,"doQuickSort");RBe.quickSort=function(t,e){m5(t,e,0,t.length-1)}});var PBe=S(vQ=>{var K=Ty(),h5=BBe(),Py=u5().ArraySet,wQt=i5(),Ax=NBe().quickSort;function Ut(t,e){var r=t;return typeof t=="string"&&(r=K.parseSourceMapInput(t)),r.sections!=null?new xa(r,e):new vn(r,e)}i(Ut,"SourceMapConsumer");Ut.fromSourceMap=function(t,e){return vn.fromSourceMap(t,e)};Ut.prototype._version=3;Ut.prototype.__generatedMappings=null;Object.defineProperty(Ut.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Ut.prototype.__originalMappings=null;Object.defineProperty(Ut.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Ut.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Ut.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Ut.GENERATED_ORDER=1;Ut.ORIGINAL_ORDER=2;Ut.GREATEST_LOWER_BOUND=1;Ut.LEAST_UPPER_BOUND=2;Ut.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Ut.GENERATED_ORDER,a;switch(o){case Ut.GENERATED_ORDER:a=this._generatedMappings;break;case Ut.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var u=l.source===null?null:this._sources.at(l.source);return u=K.computeSourceURL(c,u,this._sourceMapURL),{source:u,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(e,s)},"SourceMapConsumer_eachMapping");Ut.prototype.allGeneratedPositionsFor=i(function(e){var r=K.getArg(e,"line"),n={source:K.getArg(e,"source"),originalLine:r,originalColumn:K.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var s=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,h5.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o];else for(var l=a.originalColumn;a&&a.originalLine===r&&a.originalColumn==l;)s.push({line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++o]}return s},"SourceMapConsumer_allGeneratedPositionsFor");vQ.SourceMapConsumer=Ut;function vn(t,e){var r=t;typeof t=="string"&&(r=K.parseSourceMapInput(t));var n=K.getArg(r,"version"),s=K.getArg(r,"sources"),o=K.getArg(r,"names",[]),a=K.getArg(r,"sourceRoot",null),c=K.getArg(r,"sourcesContent",null),l=K.getArg(r,"mappings"),u=K.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);a&&(a=K.normalize(a)),s=s.map(String).map(K.normalize).map(function(d){return a&&K.isAbsolute(a)&&K.isAbsolute(d)?K.relative(a,d):d}),this._names=Py.fromArray(o.map(String),!0),this._sources=Py.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(d){return K.computeSourceURL(a,d,e)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=e,this.file=u}i(vn,"BasicSourceMapConsumer");vn.prototype=Object.create(Ut.prototype);vn.prototype.consumer=Ut;vn.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=K.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};vn.fromSourceMap=i(function(e,r){var n=Object.create(vn.prototype),s=n._names=Py.fromArray(e._names.toArray(),!0),o=n._sources=Py.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return K.computeSourceURL(n.sourceRoot,m,r)});for(var a=e._mappings.toArray().slice(),c=n.__generatedMappings=[],l=n.__originalMappings=[],u=0,d=a.length;u<d;u++){var p=a[u],f=new TBe;f.generatedLine=p.generatedLine,f.generatedColumn=p.generatedColumn,p.source&&(f.source=o.indexOf(p.source),f.originalLine=p.originalLine,f.originalColumn=p.originalColumn,p.name&&(f.name=s.indexOf(p.name)),l.push(f)),c.push(f)}return Ax(n.__originalMappings,K.compareByOriginalPositions),n},"SourceMapConsumer_fromSourceMap");vn.prototype._version=3;Object.defineProperty(vn.prototype,"sources",{get:i(function(){return this._absoluteSources.slice()},"get")});function TBe(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i(TBe,"Mapping");vn.prototype._parseMappings=i(function(e,r){for(var n=1,s=0,o=0,a=0,c=0,l=0,u=e.length,d=0,p={},f={},m=[],h=[],A,y,E,I,x;d<u;)if(e.charAt(d)===";")n++,d++,s=0;else if(e.charAt(d)===",")d++;else{for(A=new TBe,A.generatedLine=n,I=d;I<u&&!this._charIsMappingSeparator(e,I);I++);if(y=e.slice(d,I),E=p[y],E)d+=y.length;else{for(E=[];d<I;)wQt.decode(e,d,f),x=f.value,d=f.rest,E.push(x);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");p[y]=E}A.generatedColumn=s+E[0],s=A.generatedColumn,E.length>1&&(A.source=c+E[1],c+=E[1],A.originalLine=o+E[2],o=A.originalLine,A.originalLine+=1,A.originalColumn=a+E[3],a=A.originalColumn,E.length>4&&(A.name=l+E[4],l+=E[4])),h.push(A),typeof A.originalLine=="number"&&m.push(A)}Ax(h,K.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,Ax(m,K.compareByOriginalPositions),this.__originalMappings=m},"SourceMapConsumer_parseMappings");vn.prototype._findMapping=i(function(e,r,n,s,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[s]);return h5.search(e,r,o,a)},"SourceMapConsumer_findMapping");vn.prototype.computeColumnSpans=i(function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},"SourceMapConsumer_computeColumnSpans");vn.prototype.originalPositionFor=i(function(e){var r={generatedLine:K.getArg(e,"line"),generatedColumn:K.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",K.compareByGeneratedPositionsDeflated,K.getArg(e,"bias",Ut.GREATEST_LOWER_BOUND));if(n>=0){var s=this._generatedMappings[n];if(s.generatedLine===r.generatedLine){var o=K.getArg(s,"source",null);o!==null&&(o=this._sources.at(o),o=K.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=K.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:o,line:K.getArg(s,"originalLine",null),column:K.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},"SourceMapConsumer_originalPositionFor");vn.prototype.hasContentsOfAllSources=i(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},"BasicSourceMapConsumer_hasContentsOfAllSources");vn.prototype.sourceContentFor=i(function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var s=e;this.sourceRoot!=null&&(s=K.relative(this.sourceRoot,s));var o;if(this.sourceRoot!=null&&(o=K.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||o.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(r)return null;throw new Error('"'+s+'" is not in the SourceMap.')},"SourceMapConsumer_sourceContentFor");vn.prototype.generatedPositionFor=i(function(e){var r=K.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:K.getArg(e,"line"),originalColumn:K.getArg(e,"column")},s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,K.getArg(e,"bias",Ut.GREATEST_LOWER_BOUND));if(s>=0){var o=this._originalMappings[s];if(o.source===n.source)return{line:K.getArg(o,"generatedLine",null),column:K.getArg(o,"generatedColumn",null),lastColumn:K.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},"SourceMapConsumer_generatedPositionFor");vQ.BasicSourceMapConsumer=vn;function xa(t,e){var r=t;typeof t=="string"&&(r=K.parseSourceMapInput(t));var n=K.getArg(r,"version"),s=K.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Py,this._names=new Py;var o={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=K.getArg(a,"offset"),l=K.getArg(c,"line"),u=K.getArg(c,"column");if(l<o.line||l===o.line&&u<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=c,{generatedOffset:{generatedLine:l+1,generatedColumn:u+1},consumer:new Ut(K.getArg(a,"map"),e)}})}i(xa,"IndexedSourceMapConsumer");xa.prototype=Object.create(Ut.prototype);xa.prototype.constructor=Ut;xa.prototype._version=3;Object.defineProperty(xa.prototype,"sources",{get:i(function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t},"get")});xa.prototype.originalPositionFor=i(function(e){var r={generatedLine:K.getArg(e,"line"),generatedColumn:K.getArg(e,"column")},n=h5.search(r,this._sections,function(o,a){var c=o.generatedLine-a.generatedOffset.generatedLine;return c||o.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[n];return s?s.consumer.originalPositionFor({line:r.generatedLine-(s.generatedOffset.generatedLine-1),column:r.generatedColumn-(s.generatedOffset.generatedLine===r.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},"IndexedSourceMapConsumer_originalPositionFor");xa.prototype.hasContentsOfAllSources=i(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");xa.prototype.sourceContentFor=i(function(e,r){for(var n=0;n<this._sections.length;n++){var s=this._sections[n],o=s.consumer.sourceContentFor(e,!0);if(o)return o}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')},"IndexedSourceMapConsumer_sourceContentFor");xa.prototype.generatedPositionFor=i(function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(K.getArg(e,"source"))!==-1){var s=n.consumer.generatedPositionFor(e);if(s){var o={line:s.line+(n.generatedOffset.generatedLine-1),column:s.column+(n.generatedOffset.generatedLine===s.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}},"IndexedSourceMapConsumer_generatedPositionFor");xa.prototype._parseMappings=i(function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var s=this._sections[n],o=s.consumer._generatedMappings,a=0;a<o.length;a++){var c=o[a],l=s.consumer._sources.at(c.source);l=K.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=s.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(s.generatedOffset.generatedLine===c.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine=="number"&&this.__originalMappings.push(d)}Ax(this.__generatedMappings,K.compareByGeneratedPositionsDeflated),Ax(this.__originalMappings,K.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");vQ.IndexedSourceMapConsumer=xa});var vBe=S(_Be=>{var xQt=d5().SourceMapGenerator,QQ=Ty(),bQt=/(\r?\n)/,BQt=10,_y="$$$isSourceNode$$$";function Go(t,e,r,n,s){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=s??null,this[_y]=!0,n!=null&&this.add(n)}i(Go,"SourceNode");Go.fromStringWithSourceMap=i(function(e,r,n){var s=new Go,o=e.split(bQt),a=0,c=i(function(){var f=h(),m=h()||"";return f+m;function h(){return a<o.length?o[a++]:void 0}},"shiftNextLine"),l=1,u=0,d=null;return r.eachMapping(function(f){if(d!==null)if(l<f.generatedLine)p(d,c()),l++,u=0;else{var m=o[a]||"",h=m.substr(0,f.generatedColumn-u);o[a]=m.substr(f.generatedColumn-u),u=f.generatedColumn,p(d,h),d=f;return}for(;l<f.generatedLine;)s.add(c()),l++;if(u<f.generatedColumn){var m=o[a]||"";s.add(m.substr(0,f.generatedColumn)),o[a]=m.substr(f.generatedColumn),u=f.generatedColumn}d=f},this),a<o.length&&(d&&p(d,c()),s.add(o.splice(a).join(""))),r.sources.forEach(function(f){var m=r.sourceContentFor(f);m!=null&&(n!=null&&(f=QQ.join(n,f)),s.setSourceContent(f,m))}),s;function p(f,m){if(f===null||f.source===void 0)s.add(m);else{var h=n?QQ.join(n,f.source):f.source;s.add(new Go(f.originalLine,f.originalColumn,h,m,f.name))}}i(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");Go.prototype.add=i(function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[_y]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_add");Go.prototype.prepend=i(function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[_y]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},"SourceNode_prepend");Go.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n<s;n++)r=this.children[n],r[_y]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");Go.prototype.join=i(function(e){var r,n,s=this.children.length;if(s>0){for(r=[],n=0;n<s-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this},"SourceNode_join");Go.prototype.replaceRight=i(function(e,r){var n=this.children[this.children.length-1];return n[_y]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this},"SourceNode_replaceRight");Go.prototype.setSourceContent=i(function(e,r){this.sourceContents[QQ.toSetString(e)]=r},"SourceNode_setSourceContent");Go.prototype.walkSourceContents=i(function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][_y]&&this.children[r].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),r=0,n=s.length;r<n;r++)e(QQ.fromSetString(s[r]),this.sourceContents[s[r]])},"SourceNode_walkSourceContents");Go.prototype.toString=i(function(){var e="";return this.walk(function(r){e+=r}),e},"SourceNode_toString");Go.prototype.toStringWithSourceMap=i(function(e){var r={code:"",line:1,column:0},n=new xQt(e),s=!1,o=null,a=null,c=null,l=null;return this.walk(function(u,d){r.code+=u,d.source!==null&&d.line!==null&&d.column!==null?((o!==d.source||a!==d.line||c!==d.column||l!==d.name)&&n.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:r.line,column:r.column},name:d.name}),o=d.source,a=d.line,c=d.column,l=d.name,s=!0):s&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,s=!1);for(var p=0,f=u.length;p<f;p++)u.charCodeAt(p)===BQt?(r.line++,r.column=0,p+1===f?(o=null,s=!1):s&&n.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:r.line,column:r.column},name:d.name})):r.column++}),this.walkSourceContents(function(u,d){n.setSourceContent(u,d)}),{code:r.code,map:n}},"SourceNode_toStringWithSourceMap");_Be.SourceNode=Go});var QBe=S(DQ=>{DQ.SourceMapGenerator=d5().SourceMapGenerator;DQ.SourceMapConsumer=PBe().SourceMapConsumer;DQ.SourceNode=vBe().SourceNode});var LBe=S(kQ=>{"use strict";kQ.__esModule=!0;kQ.safeJsonLiteral=kBe;var g5=jn(),RQt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,NQt=/<(?=!--|\/?script)/gi;function TQt(t){return t.replace(NQt,"\\u003C")}i(TQt,"escapeScriptDelimiters");function PQt(t){return"\\u"+t.charCodeAt(0).toString(16)}i(PQt,"escapeSurrogate");function kBe(t){return TQt(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,PQt))}i(kBe,"safeJsonLiteral");var Km=void 0;try{(typeof define!="function"||!define.amd)&&(DBe=QBe(),Km=DBe.SourceNode)}catch{}var DBe;Km||(Km=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),Km.prototype={add:i(function(e){g5.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){g5.isArray(e)&&(e=e.join("")),this.src=e+this.src},"prepend"),toStringWithSourceMap:i(function(){return{code:this.toString()}},"toStringWithSourceMap"),toString:i(function(){return this.src},"toString")});function A5(t,e,r){if(g5.isArray(t)){for(var n=[],s=0,o=t.length;s<o;s++)n.push(e.wrap(t[s],r));return n}else if(typeof t=="boolean"||typeof t=="number")return t+"";return t}i(A5,"castChunk");function OBe(t){this.srcFile=t,this.source=[]}i(OBe,"CodeGen");OBe.prototype={isEmpty:i(function(){return!this.source.length},"isEmpty"),prepend:i(function(e,r){this.source.unshift(this.wrap(e,r))},"prepend"),push:i(function(e,r){this.source.push(this.wrap(e,r))},"push"),merge:i(function(){var e=this.empty();return this.each(function(r){e.add([" ",r,`
|
|
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Km(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Km?e:(e=A5(e,this,r),new Km(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return e=e+"",RQt.test(e)?kBe(e):'"'+e+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var a=A5(e[o],r);a!=="undefined"&&n.push([r.quotedString(o),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(A5(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};kQ.default=OBe});var HBe=S((OQ,GBe)=>{"use strict";OQ.__esModule=!0;function UBe(t){return t&&t.__esModule?t:{default:t}}i(UBe,"_interopRequireDefault");var MBe=hQ(),_Qt=vi(),y5=UBe(_Qt),vQt=jn(),qBe=LBe(),FBe=UBe(qBe);function vy(t){this.value=t}i(vy,"Literal");function Qy(){}i(Qy,"JavaScriptCompiler");Qy.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=MBe.COMPILER_REVISION,r=MBe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return vQt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",this.quotedString(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=o.length;l<u;l++)a=o[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new y5.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
`),this.decorators.push(`}
|
|
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var p={compiler:this.compilerInfo(),main:d};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var f=this.context,m=f.programs,h=f.decorators;for(l=0,u=m.length;l<u;l++)p[l]=m[l],h[l]&&(p[l+"_d"]=h[l],p.useDecorators=!0);return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),s?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),r.srcName?(p=p.toStringWithSourceMap({file:r.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},"compile"),preamble:i(function(){this.lastContext=0,this.source=new FBe.default(this.options.srcName),this.decorators=new FBe.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var o=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++o+"="+l,u.children[0]="alias"+o)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
|
|
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,o=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(o?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),o=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):o||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
|
|
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
|
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
return parent[propertyName];
|
|
}
|
|
return undefined
|
|
}
|
|
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,s){var o=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[o++])):this.pushContext(),this.resolvePath("context",e,o,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,s,o){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(QQt(this.options.strict&&o,this,r,n,e));return}for(var c=r.length,l=i(function(d){a.replaceStack(function(p){var f=a.nameLookup(p,r[d],e);return s?[" && ",f]:[" != null ? ",f," : ",p]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var s=this.popStack(),o=this.setupHelper(e,r),a=[];n&&a.push(o.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",o.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:i(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:i(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:i(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),o=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",o," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",s.callParams)," : helper))"])},"invokeAmbiguous"),invokePartial:i(function(e,r,n){var s=[],o=this.setupParams(r,1,s);e&&(r=this.popStack(),delete o.name),n&&(o.indent=this.quotedString(n)),o.helpers="helpers",o.partials="partials",o.decorators="container.decorators",e?s.unshift(r):s.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(o.depths="depths"),o=this.objectLiteral(o),s.push(o),this.push(this.source.functionCall("container.invokePartial","",s))},"invokePartial"),assignToHash:i(function(e){var r=this.popStack(),n=void 0,s=void 0,o=void 0;this.trackIds&&(o=this.popStack()),this.stringParams&&(s=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[e]=n),s&&(a.types[e]=s),o&&(a.ids[e]=o),a.values[e]=r},"assignToHash"),pushId:i(function(e,r,n){e==="BlockParam"?this.pushStackLiteral("blockParams["+r[0]+"].path["+r[1]+"]"+(n?" + "+this.quotedString("."+n):"")):e==="PathExpression"?this.pushString(r):e==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},"pushId"),compiler:Qy,compileChildren:i(function(e,r){for(var n=e.children,s=void 0,o=void 0,a=0,c=n.length;a<c;a++){s=n[a],o=new this.compiler;var l=this.matchExistingProgram(s);if(l==null){var u=this.context.programs.push("")-1;s.index=u,s.name="program"+u,this.context.programs[u]=o.compile(s,r,this.context,!this.precompile),this.context.decorators[u]=o.decorators,this.context.environments[u]=s,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams,s.useDepths=this.useDepths,s.useBlockParams=this.useBlockParams}else s.index=l.index,s.name="program"+l.index,this.useDepths=this.useDepths||l.useDepths,this.useBlockParams=this.useBlockParams||l.useBlockParams}},"compileChildren"),matchExistingProgram:i(function(e){for(var r=0,n=this.context.environments.length;r<n;r++){var s=this.context.environments[r];if(s&&s.equals(e))return s}},"matchExistingProgram"),programExpression:i(function(e){var r=this.environment.children[e],n=[r.index,"data",r.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},"programExpression"),useRegister:i(function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},"useRegister"),push:i(function(e){return e instanceof vy||(e=this.source.wrap(e)),this.inlineStack.push(e),e},"push"),pushStackLiteral:i(function(e){this.push(new vy(e))},"pushStackLiteral"),pushSource:i(function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},"pushSource"),replaceStack:i(function(e){var r=["("],n=void 0,s=void 0,o=void 0;if(!this.isInline())throw new y5.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof vy)n=[a.value],r=["(",n],o=!0;else{s=!0;var c=this.incrStack();r=["((",this.push(c)," = ",a,")"],n=this.topStack()}var l=e.call(this,n);o||this.popStack(),s&&this.stackSlot--,this.push(r.concat(l,")"))},"replaceStack"),incrStack:i(function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},"incrStack"),topStackName:i(function(){return"stack"+this.stackSlot},"topStackName"),flushInline:i(function(){var e=this.inlineStack;this.inlineStack=[];for(var r=0,n=e.length;r<n;r++){var s=e[r];if(s instanceof vy)this.compileStack.push(s);else{var o=this.incrStack();this.pushSource([o," = ",s,";"]),this.compileStack.push(o)}}},"flushInline"),isInline:i(function(){return this.inlineStack.length},"isInline"),popStack:i(function(e){var r=this.isInline(),n=(r?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof vy)return n.value;if(!r){if(!this.stackSlot)throw new y5.default("Invalid stack pop");this.stackSlot--}return n},"popStack"),topStack:i(function(){var e=this.isInline()?this.inlineStack:this.compileStack,r=e[e.length-1];return r instanceof vy?r.value:r},"topStack"),contextName:i(function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},"contextName"),quotedString:i(function(e){return this.source.quotedString(e)},"quotedString"),objectLiteral:i(function(e){return this.source.objectLiteral(e)},"objectLiteral"),aliasable:i(function(e){var r=this.aliases[e];return r?(r.referenceCount++,r):(r=this.aliases[e]=this.source.wrap(e),r.aliasable=!0,r.referenceCount=1,r)},"aliasable"),setupHelper:i(function(e,r,n){var s=[],o=this.setupHelperArgs(r,e,s,n),a=this.nameLookup("helpers",r,"helper"),c=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:s,paramsInit:o,name:a,callParams:[c].concat(s)}},"setupHelper"),setupParams:i(function(e,r,n){var s={},o=[],a=[],c=[],l=!n,u=void 0;l&&(n=[]),s.name=this.quotedString(e),s.hash=this.popStack(),this.trackIds&&(s.hashIds=this.popStack()),this.stringParams&&(s.hashTypes=this.popStack(),s.hashContexts=this.popStack());var d=this.popStack(),p=this.popStack();(p||d)&&(s.fn=p||"container.noop",s.inverse=d||"container.noop");for(var f=r;f--;)u=this.popStack(),n[f]=u,this.trackIds&&(c[f]=this.popStack()),this.stringParams&&(a[f]=this.popStack(),o[f]=this.popStack());return l&&(s.args=this.source.generateArray(n)),this.trackIds&&(s.ids=this.source.generateArray(c)),this.stringParams&&(s.types=this.source.generateArray(a),s.contexts=this.source.generateArray(o)),this.options.data&&(s.data="data"),this.useBlockParams&&(s.blockParams="blockParams"),s},"setupParams"),setupHelperArgs:i(function(e,r,n,s){var o=this.setupParams(e,r,n);return o.loc=$Be(this),o=this.objectLiteral(o),s?(this.useRegister("options"),n.push("options"),["options=",o]):n?(n.push(o),""):o},"setupHelperArgs")};(function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),e=Qy.RESERVED_WORDS={},r=0,n=t.length;r<n;r++)e[t[r]]=!0})();Qy.isValidJavaScriptVariableName=function(t){return!Qy.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)};function $Be(t){var e=t.source.currentLocation;return e?qBe.safeJsonLiteral(e):"undefined"}i($Be,"locationLiteral");function QQt(t,e,r,n,s){var o=e.popStack(),a=r.length;t&&a--;for(var c=n;c<a;c++)o=e.nameLookup(o,r[c],s);return t?[e.aliasable("container.strict"),"(",o,", ",e.quotedString(r[a]),", ",$Be(e)," )"]:o}i(QQt,"strictLookup");OQ.default=Qy;GBe.exports=OQ.default});var WBe=S((LQ,VBe)=>{"use strict";LQ.__esModule=!0;function gx(t){return t&&t.__esModule?t:{default:t}}i(gx,"_interopRequireDefault");var DQt=H0e(),kQt=gx(DQt),OQt=zj(),LQt=gx(OQt),E5=sBe(),C5=lBe(),MQt=HBe(),FQt=gx(MQt),UQt=BQ(),qQt=gx(UQt),$Qt=qj(),GQt=gx($Qt),HQt=kQt.default.create;function zBe(){var t=HQt();return t.compile=function(e,r){return C5.compile(e,r,t)},t.precompile=function(e,r){return C5.precompile(e,r,t)},t.AST=LQt.default,t.Compiler=C5.Compiler,t.JavaScriptCompiler=FQt.default,t.Parser=E5.parser,t.parse=E5.parse,t.parseWithoutProcessing=E5.parseWithoutProcessing,t}i(zBe,"create");var Dy=zBe();Dy.create=zBe;GQt.default(Dy);Dy.Visitor=qQt.default;Dy.default=Dy;LQ.default=Dy;VBe.exports=LQ.default});var YBe=S(MQ=>{"use strict";MQ.__esModule=!0;MQ.print=YQt;MQ.PrintVisitor=gr;function zQt(t){return t&&t.__esModule?t:{default:t}}i(zQt,"_interopRequireDefault");var VQt=BQ(),WQt=zQt(VQt);function YQt(t){return new gr().accept(t)}i(YQt,"print");function gr(){this.padding=0}i(gr,"PrintVisitor");gr.prototype=new WQt.default;gr.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r<n;r++)e+=" ";return e+=t+`
|
|
`,e};gr.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var o="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)o+=" "+t.blockParams[n];o+=" ]",e+=this.pad(o)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};gr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};gr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};gr.prototype.BlockStatement=gr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};gr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};gr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,o=e.length;s<o;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};gr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};gr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};gr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};gr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};gr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};gr.prototype.NullLiteral=function(){return"NULL"};gr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};gr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var XBe=S((Kkr,KBe)=>{var FQ=WBe().default,jBe=YBe();FQ.PrintVisitor=jBe.PrintVisitor;FQ.print=jBe.print;KBe.exports=FQ;function JBe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=FQ.compile(n)}i(JBe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=JBe,require.extensions[".hbs"]=JBe)});var pRe=S(HQ=>{"use strict";Object.defineProperty(HQ,"__esModule",{value:!0});HQ.getProxyUrl=XQt;HQ.checkBypass=dRe;function XQt(t){let e=t.protocol==="https:";if(dRe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new GQ(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new GQ(`http://${r}`)}else return}i(XQt,"getProxyUrl");function dRe(t){if(!t.hostname)return!1;let e=t.hostname;if(ZQt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(dRe,"checkBypass");function ZQt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(ZQt,"isLoopbackAddress");var GQ=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var mRe=S(jt=>{"use strict";var eDt=jt&&jt.__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]})),tDt=jt&&jt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YQ=jt&&jt.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&eDt(r,e,n[s]);return tDt(r,e),r}})(),Qr=jt&&jt.__awaiter||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())})};Object.defineProperty(jt,"__esModule",{value:!0});jt.HttpClient=jt.HttpClientResponse=jt.HttpClientError=jt.MediaTypes=jt.Headers=jt.HttpCodes=void 0;jt.getProxyUrl=nDt;jt.isHttps=lDt;var b5=YQ(require("http")),fRe=YQ(require("https")),B5=YQ(pRe()),zQ=YQ(oA()),rDt=Hf(),ki;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ki||(jt.HttpCodes=ki={}));var ws;(function(t){t.Accept="accept",t.ContentType="content-type"})(ws||(jt.Headers=ws={}));var ku;(function(t){t.ApplicationJson="application/json"})(ku||(jt.MediaTypes=ku={}));function nDt(t){let e=B5.getProxyUrl(new URL(t));return e?e.href:""}i(nDt,"getProxyUrl");var sDt=[ki.MovedPermanently,ki.ResourceMoved,ki.SeeOther,ki.TemporaryRedirect,ki.PermanentRedirect],oDt=[ki.BadGateway,ki.ServiceUnavailable,ki.GatewayTimeout],iDt=["OPTIONS","GET","DELETE","HEAD"],aDt=10,cDt=5,VQ=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}};jt.HttpClientError=VQ;var WQ=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Qr(this,void 0,void 0,function*(){return new Promise(e=>Qr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Qr(this,void 0,void 0,function*(){return new Promise(e=>Qr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};jt.HttpClientResponse=WQ;function lDt(t){return new URL(t).protocol==="https:"}i(lDt,"isHttps");var R5=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Qr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Qr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Qr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Qr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Qr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Qr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Qr(this,arguments,void 0,function*(r,n={}){n[ws.Accept]=this._getExistingOrDefaultHeader(n,ws.Accept,ku.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[ws.Accept]=this._getExistingOrDefaultHeader(o,ws.Accept,ku.ApplicationJson),o[ws.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ku.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[ws.Accept]=this._getExistingOrDefaultHeader(o,ws.Accept,ku.ApplicationJson),o[ws.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ku.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Qr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[ws.Accept]=this._getExistingOrDefaultHeader(o,ws.Accept,ku.ApplicationJson),o[ws.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ku.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Qr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&iDt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ki.Unauthorized){let p;for(let f of this.handlers)if(f.canHandleAuthentication(u)){p=f;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&sDt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),f.hostname!==o.hostname)for(let m in s)m.toLowerCase()==="authorization"&&delete s[m];a=this._prepareRequest(e,f,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!oDt.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return Qr(this,void 0,void 0,function*(){return new Promise((n,s)=>{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new WQ(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=B5.getProxyUrl(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?fRe:b5;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Ix(this.requestOptions.headers),Ix(e||{})):Ix(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=Ix(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=Ix(this.requestOptions.headers)[ws.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[ws.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=B5.getProxyUrl(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||b5.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?zQ.httpsOverHttps:zQ.httpsOverHttp:l=u?zQ.httpOverHttps:zQ.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new fRe.Agent(c):new b5.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new rDt.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Qr(this,void 0,void 0,function*(){e=Math.min(aDt,e);let r=cDt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Qr(this,void 0,void 0,function*(){return new Promise((n,s)=>Qr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===ki.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let f=new Date(p);if(!isNaN(f.valueOf()))return f}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new VQ(d,o);p.result=a.result,s(p)}else n(a)}))})}};jt.HttpClient=R5;var Ix=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var ORe=S((pLr,wx)=>{"use strict";var XQ=i(function(){},"NullObject");XQ.prototype=Object.create(null);var jQ=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,KQ=/\\([\v\u0020-\u00ff])/gu,QRe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Xm={type:"",parameters:new XQ};Object.freeze(Xm.parameters);Object.freeze(Xm);function DRe(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(QRe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new XQ};if(e===-1)return n;let s,o,a;for(jQ.lastIndex=e;o=jQ.exec(t);){if(o.index!==e)throw new TypeError("invalid parameter format");e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),KQ.test(a)&&(a=a.replace(KQ,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(DRe,"parse");function kRe(t){if(typeof t!="string")return Xm;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(QRe.test(r)===!1)return Xm;let n={type:r.toLowerCase(),parameters:new XQ};if(e===-1)return n;let s,o,a;for(jQ.lastIndex=e;o=jQ.exec(t);){if(o.index!==e)return Xm;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),KQ.test(a)&&(a=a.replace(KQ,"$1"))),n.parameters[s]=a}return e!==t.length?Xm:n}i(kRe,"safeParse");wx.exports.default={parse:DRe,safeParse:kRe};wx.exports.parse=DRe;wx.exports.safeParse=kRe;wx.exports.defaultContentType=Xm});var bx,rl,mNe=g(()=>{bx={warningEmitted:!1},rl=i(t=>{if(t&&!bx.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){bx.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e<r&&(bx.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
versions published after the first week of January 2027
|
|
will require node >=${r}. You are running node ${t}.
|
|
|
|
To continue receiving updates to AWS services, bug fixes,
|
|
and security updates please upgrade to node >=${r}.
|
|
|
|
More information can be found at: https://a.co/c895JFp`))}},"emitWarningIfUnsupportedVersion")});var fkt,mkt,hNe,ANe=g(()=>{fkt=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),mkt={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},hNe=i(t=>({applyToStack:i(e=>{e.add(fkt(),mkt)},"applyToStack")}),"getLongPollPlugin")});function rp(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var gNe=g(()=>{i(rp,"setCredentialFeature")});var yNe,H5,ENe=g(()=>{yNe=require("node:stream"),H5=i(t=>t?.body instanceof yNe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var nh,np,sp,CNe,INe,nD=g(()=>{nh=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),np=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),sp=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>CNe[m.step]-CNe[f.step]||INe[m.priority||"normal"]-INe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(h=>{let A=nh(h.name,h.aliases);if(A.includes(p)){f=!0;for(let y of A)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(h=>{if(h.middleware===p){f=!0;for(let A of nh(h.name,h.aliases))n.delete(A);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=[],h={};return t.forEach(y=>{let E={...y,before:[],after:[]};for(let I of nh(E.name,E.aliases))h[I]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let I of nh(E.name,E.aliases))h[I]=E;m.push(E)}),m.forEach(y=>{if(y.toMiddleware){let E=h[y.toMiddleware];if(E===void 0){if(p)return;throw new Error(`${y.toMiddleware} is not found when adding ${np(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:h,aliases:A}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=nh(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${np(m,A)}'`);for(let I of E){let x=t.findIndex(N=>N.name===I||N.aliases?.some(v=>v===I));if(x===-1)continue;let b=t[x];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${np(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${np(m,A)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(x,1)}}for(let I of E)n.add(I)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:h,aliases:A}=f,y={middleware:p,...f},E=nh(m,A);if(E.length>0){if(E.some(I=>n.has(I))){if(!h)throw new Error(`Duplicate middleware name '${np(m,A)}'`);for(let I of E){let x=e.findIndex(N=>N.name===I||N.aliases?.some(v=>v===I));if(x===-1)continue;let b=e[x];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${np(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${np(m,A)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(x,1)}}for(let I of E)n.add(I)}e.push(y)},"addRelativeTo"),clone:i(()=>c(sp()),"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(h=>{let{tags:A,name:y,aliases:E}=h;if(A&&A.includes(p)){let I=nh(y,E);for(let x of I)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(sp());return f.use(p),f.identifyOnResolve(r||f.identifyOnResolve()||(p.identifyOnResolve?.()??!1)),f},"concat"),applyToStack:c,identify:i(()=>u(!0).map(p=>{let f=p.step??p.relation+" "+p.toMiddleware;return np(p.name,p.aliases)+" - "+f}),"identify"),identifyOnResolve(p){return typeof p=="boolean"&&(r=p),r},resolve:i((p,f)=>{for(let m of u().map(h=>h.middleware).reverse())p=m(p,f);return r&&console.log(d.identify()),p},"resolve")};return d},"constructStack"),CNe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},INe={high:3,normal:2,low:1}});var Xn=S(ba=>{var z5;(function(t){t.HEADER="header",t.QUERY="query"})(z5||(z5={}));var V5;(function(t){t.HEADER="header",t.QUERY="query"})(V5||(V5={}));var W5;(function(t){t.HTTP="http",t.HTTPS="https"})(W5||(W5={}));var Bx;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Bx||(Bx={}));var hkt=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>Bx.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>Bx.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),Akt=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),gkt=i(t=>hkt(t),"getDefaultClientConfiguration"),ykt=i(t=>Akt(t),"resolveDefaultRuntimeConfig"),Y5;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(Y5||(Y5={}));var Ekt="__smithy_context",J5;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(J5||(J5={}));var j5;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(j5||(j5={}));ba.AlgorithmId=Bx;ba.EndpointURLScheme=W5;ba.FieldPosition=Y5;ba.HttpApiKeyAuthLocation=V5;ba.HttpAuthLocation=z5;ba.IniSectionType=J5;ba.RequestHandlerProtocol=j5;ba.SMITHY_CONTEXT_KEY=Ekt;ba.getDefaultClientConfiguration=gkt;ba.resolveDefaultRuntimeConfig=ykt});var K5,vt,SNe=g(()=>{K5=R(Xn()),vt=i(t=>t[K5.SMITHY_CONTEXT_KEY]||(t[K5.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function X(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var X5=g(()=>{i(X,"hasOwn")});function Ckt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Je,wNe=g(()=>{Je=class t{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=Ckt(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}};i(Ckt,"cloneQuery")});var fn,xNe=g(()=>{fn=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var Ikt,Ba,bNe=g(()=>{Ikt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ba=i((t,e=!1)=>{if(!e)return Ikt.test(t);let r=t.split(".");for(let n of r)if(!Ba(n))return!1;return!0},"isValidHostLabel")});function Rx(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var BNe=g(()=>{i(Rx,"isValidHostname")});var xt,RNe=g(()=>{xt=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Nx(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}var Z5=g(()=>{i(Nx,"parseQueryString")});var Qn,e6=g(()=>{Z5();Qn=i(t=>{if(typeof t=="string")return Qn(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=Nx(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var Ho,NNe=g(()=>{X5();e6();Ho=i(t=>{if(typeof t=="object"){if("url"in t){let e=Qn(t.url);if(t.headers){e.headers={};for(let r in t.headers)X(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return Qn(t)},"toEndpointV1")});var ve=g(()=>{SNe();X5();wNe();xNe();bNe();BNe();RNe();Z5();e6();NNe()});var TNe,PNe=g(()=>{TNe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var _Ne,vNe=g(()=>{_Ne=i(t=>()=>Promise.reject(t),"invalidProvider")});var $y,t6=g(()=>{$y=i(()=>{let t=new WeakSet;return(e,r)=>{if(typeof r=="object"&&r!==null){if(t.has(r))return"[Circular]";t.add(r)}return r}},"getCircularReplacer")});var QNe,DNe=g(()=>{QNe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var sD,zo,kNe,oD=g(()=>{t6();sD={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(zo||(zo={}));kNe=i(t=>{if(t.state===zo.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},$y())}`);throw e.name="AbortError",e}else if(t.state===zo.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},$y())}`);throw e.name="TimeoutError",e}else if(t.state!==zo.SUCCESS)throw new Error(`${JSON.stringify(t,$y())}`);return t},"checkExceptions")});var ONe,Skt,wkt,xkt,bkt,LNe=g(()=>{t6();DNe();oD();ONe=i(async({minDelay:t,maxDelay:e,maxWaitTime:r,abortController:n,client:s,abortSignal:o},a,c)=>{let l={},[u,d]=[t*1e3,e*1e3],p=0,f=Date.now()+r*1e3,m=Date.now()+6e4,h=!1;for(;;){if(p>0){let E=xkt(u,d,p,f);if(n?.signal?.aborted||o?.aborted){let I="AbortController signal aborted.";return l[I]|=0,l[I]+=1,{state:zo.ABORTED,observedResponses:l}}if(Date.now()+E>f)return{state:zo.TIMEOUT,observedResponses:l};await QNe(E/1e3)}let{state:A,reason:y}=await c(s,a);if(y){let E=wkt(y);l[E]|=0,l[E]+=1}if(A!==zo.RETRY)return{state:A,reason:y,final:y,observedResponses:l};p+=1,!h&&Date.now()>=m&&(Skt(l,s),h=!0)}},"runPolling"),Skt=i((t={},e)=>{let r=Object.keys(t),n=0,s=0;for(let c of r){let l=t[c]|0;n=Math.max(l,n),c.startsWith("403:")&&(s+=l)}let o=e?.config?.logger,a=typeof o?.warn=="function"&&!o.constructor?.name?.includes?.("NoOpLogger")?o:console;(s>=3||r[r.length-1]?.startsWith("403:"))&&a.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},"checkWarn403"),wkt=i(t=>{let e=t?.$response?.statusCode??t?.$metadata?.httpStatusCode;return t?.$responseBodyText?`${e?e+": ":""}Deserialization error for body: ${t.$responseBodyText}`:e?t?.$response||t?.message?`${e??"Unknown"}: ${t?.message}`:`${e}: OK`:String(t?.message??JSON.stringify(t,$y())??"Unknown")},"createMessageFromResponse"),xkt=i((t,e,r,n)=>{let s=Math.log(e/t)/Math.log(2)+1;if(r>s)return e;let o=t*2**(r-1),a=Math.min(o,e),c=bkt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),bkt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var MNe,FNe=g(()=>{MNe=i(t=>{if(t.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(t.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(t.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(t.maxWaitTime<=t.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${t.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`);if(t.maxDelay<t.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${t.maxDelay}] must be greater than WaiterConfiguration.minDelay [${t.minDelay}] for this waiter`)},"validateWaiterOptions")});var UNe,qNe,$Ne=g(()=>{LNe();FNe();oD();UNe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:zo.ABORTED}),"onAbort"),typeof t.addEventListener=="function"?t.addEventListener("abort",e):t.onabort=e});return{clearListener(){typeof t.removeEventListener=="function"&&t.removeEventListener("abort",e)},aborted:r}},"abortTimeout"),qNe=i(async(t,e,r)=>{let n={...sD,...t};MNe(n);let s=[ONe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=UNe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=UNe(t.abortController.signal);o.push(c),s.push(a)}return Promise.race(s).then(a=>{for(let c of o)c();return a})},"createWaiter")});var Zn,GNe=g(()=>{nD();Zn=class{static{i(this,"Client")}config;middlewareStack=sp();initConfig;handlers;constructor(e){this.config=e;let{protocol:r,protocolSettings:n}=e;n&&typeof r=="function"&&(e.protocol=new r(n))}send(e,r,n){let s=typeof r!="function"?r:void 0,o=typeof r=="function"?r:n,a=s===void 0&&this.config.cacheMiddleware===!0,c;if(a){this.handlers||(this.handlers=new WeakMap);let l=this.handlers;l.has(e.constructor)?c=l.get(e.constructor):(c=e.resolveMiddleware(this.middlewareStack,this.config,s),l.set(e.constructor,c))}else delete this.handlers,c=e.resolveMiddleware(this.middlewareStack,this.config,s);if(o)c(e).then(l=>o(null,l.output),l=>o(l)).catch(()=>{});else return c(e).then(l=>l.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var Li,r6=g(()=>{Li=i(t=>typeof t=="function"?t():t,"deref")});var Gy,iD=g(()=>{Gy=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var HNe,n6,zNe=g(()=>{ve();iD();HNe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=vt(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(Gy(a,c,l,u,d),{...t,...r},s);return{response:s,output:p}}catch(p){if(Object.defineProperty(p,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in p)){let f="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{p.message+=`
|
|
`+f}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(f):r.logger?.warn?.(f)}typeof p.$responseBodyText<"u"&&p.$response&&(p.$response.body=p.$responseBodyText);try{if(fn.isInstance(s)){let{headers:m={},statusCode:h}=s,A=Object.entries(m);p.$metadata={httpStatusCode:h,requestId:n6(/^x-[\w-]+-request-?id$/,A),extendedRequestId:n6(/^x-[\w-]+-id-2$/,A),cfId:n6(/^x-[\w-]+-cf-id$/,A)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),n6=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var VNe,WNe=g(()=>{ve();iD();VNe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=vt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>Ho(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(Gy(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function nl(t){return{applyToStack:i(e=>{e.add(VNe(t),o6),e.add(HNe(t),s6),t.protocol.setSerdeContext(t)},"applyToStack")}}var s6,o6,YNe=g(()=>{zNe();WNe();s6={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},o6={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(nl,"getSchemaSerdePlugin")});var yr,op=g(()=>{yr=class{static{i(this,"Schema")}name;namespace;traits;static assign(e,r){return Object.assign(e,r)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var Tx,JNe,jNe=g(()=>{op();Tx=class t extends yr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},JNe=i((t,e,r,n)=>yr.assign(new Tx,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var Px,KNe,XNe=g(()=>{op();Px=class t extends yr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},KNe=i((t,e,r,n,s)=>yr.assign(new Px,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var _x,ZNe,eTe=g(()=>{op();_x=class t extends yr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},ZNe=i((t,e,r,n,s)=>yr.assign(new _x,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var sh,tTe,i6=g(()=>{op();sh=class t extends yr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},tTe=i((t,e,r,n,s)=>yr.assign(new sh,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var vx,rTe,nTe=g(()=>{op();i6();vx=class t extends sh{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},rTe=i((t,e,r,n,s,o)=>yr.assign(new vx,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function Ra(t){if(typeof t=="object")return t;if(t=t|0,Qx[t])return Qx[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return Qx[t]=e}var Qx,a6=g(()=>{Qx=[];i(Ra,"translateTraits")});function kx(t,e){if(t instanceof O)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=O;return new r(t,e)}var Dx,Ox,Lx,O,c6,l6,sTe=g(()=>{r6();a6();Dx={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Ox=[],Lx={},O=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;c6(s);)n.push(s[1]),s=s[0],o=Li(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,Ra(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=Li(o),l6(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(Ox[e])return Ox[e]}else if(typeof e=="string"){if(Lx[e])return Lx[e]}else if(r&&e[Dx.ns])return e[Dx.ns];let n=Li(e);if(n instanceof t)return n;if(c6(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Ra(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[Dx.ns]=s:typeof n=="string"?Lx[n]=s:typeof n=="number"?Ox[n]=s:s}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ra(this.memberTraits)}getOwnTraits(){return Ra(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),s=e?15:n[4]??0;return kx([s,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(o!=null)return kx([o,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),s=r[5][n];return kx(c6(s)?s:[s,0],e)}if(this.isDocumentSchema())return kx([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[Dx.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;s<r;++s){let o=e[4][s],a=kx([e[5][s],0],o);yield n[s]=[o,a]}e[Dx.it]=n}};i(kx,"member");c6=i(t=>Array.isArray(t)&&t.length===2,"isMemberSchema"),l6=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Hy,oTe,iTe,aTe=g(()=>{op();Hy=class t extends yr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},oTe=i((t,e,r,n)=>yr.assign(new Hy,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),iTe=i((t,e,r,n)=>yr.assign(new Hy,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var cTe,lTe=g(()=>{cTe={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var yt,uTe=g(()=>{yt=class t{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[s,o]of e.schemas)r.has(s)||r.set(s,o);for(let[s,o]of e.exceptions)n.has(s)||n.set(s,o)}register(e,r){let n=this.normalizeShapeId(e);for(let s of[this,t.for(n.split("#")[0])])s.schemas.has(n)||s.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,s=[];for(let[o,a]of this.schemas.entries())o.endsWith(n)&&s.push(a);if(s.length===1)return s[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,s=n[1],o=s+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=o);for(let a of[this,t.for(s)])!a.schemas.has(o)&&!a.exceptions.has(n)&&(a.schemas.set(o,n),a.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var u6={};cr(u6,{ErrorSchema:()=>vx,ListSchema:()=>Tx,MapSchema:()=>Px,NormalizedSchema:()=>O,OperationSchema:()=>_x,SCHEMA:()=>cTe,Schema:()=>yr,SimpleSchema:()=>Hy,StructureSchema:()=>sh,TypeRegistry:()=>yt,deref:()=>Li,deserializerMiddlewareOption:()=>s6,error:()=>rTe,getSchemaSerdePlugin:()=>nl,isStaticSchema:()=>l6,list:()=>JNe,map:()=>KNe,op:()=>ZNe,operation:()=>Gy,serializerMiddlewareOption:()=>o6,sim:()=>oTe,simAdapter:()=>iTe,simpleSchemaCacheN:()=>Ox,simpleSchemaCacheS:()=>Lx,struct:()=>tTe,traitsCache:()=>Qx,translateTraits:()=>Ra});var He=g(()=>{r6();YNe();jNe();XNe();eTe();iD();nTe();sTe();op();aTe();i6();lTe();a6();uTe()});function ip(t,e){if(e==null)return e;let r=O.of(t);if(r.getMergedTraits().sensitive)return d6;if(r.isListSchema()){let n=r.getValueSchema();if(n.getMergedTraits().sensitive)return d6;if(Array.isArray(e))return e.map(s=>ip(n,s))}else if(r.isMapSchema()){let n=r.getValueSchema();if(r.getKeySchema().getMergedTraits().sensitive||n.getMergedTraits().sensitive)return d6;if(typeof e=="object")return Object.fromEntries(Object.entries(e).map(([s,o])=>[s,ip(n,o)]))}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=ip(a,n[o]));return s}return e}var d6,p6=g(()=>{He();d6="***SensitiveInformation***";i(ip,"schemaLogFilter")});var f6,dTe,xs,m6,h6=g(()=>{f6=R(Xn());nD();p6();He();dTe=Symbol.for("@smithy/op-event-stream"),xs=class{static{i(this,"Command")}middlewareStack=sp();schema;static classBuilder(){return new m6}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let N of s.bind(this)(p,e,r,n))this.middlewareStack.use(N);let f=e.concat(this.middlewareStack),{logger:m}=r,h=d[f6.SMITHY_CONTEXT_KEY],A={logger:m,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[f6.SMITHY_CONTEXT_KEY]:{...h,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:y}=r,E=n??{};E.metricsRecorder&&(E={...E},delete E.metricsRecorder);let I,x=this.schema,b=x?.[dTe];if(b!==void 0)I=b;else if(x&&Array.isArray(x)&&x[0]===9){let[,,,,N,v]=x;I=x[dTe]=!!(O.of(N).getEventStreamMember()||O.of(v).getEventStreamMember())}return I&&(E={isEventStream:I,...E}),f.resolve(N=>y.handle(N.request,E),A)}},m6=class{static{i(this,"ClassBuilder")}_init=i(()=>{},"_init");_ep={};_middlewareFn=i(()=>[],"_middlewareFn");_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){let e=this,r;return r=class extends xs{static{i(this,"CommandRef")}input;static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.input=n??{},e._init(this),this.schema=e._operationSchema}resolveMiddleware(n,s,o){let a=e._operationSchema,c=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,s,o,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?ip.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?ip.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var pTe,fTe=g(()=>{pTe="***SensitiveInformation***"});var sl,mTe=g(()=>{sl=i((t,e,r)=>{for(let[o,a]of Object.entries(t)){let c=i(async function(u,d,p){let f=new a(u);if(typeof d=="function")this.send(f,d);else if(typeof p=="function"){if(typeof d!="object")throw new Error(`Expected http options but got ${typeof d}`);this.send(f,d||{},p)}else return this.send(f,d)},"methodImpl"),l=(o[0].toLowerCase()+o.slice(1)).replace(/Command$/,"");e.prototype[l]=c}let{paginators:n={},waiters:s={}}=r??{};for(let[o,a]of Object.entries(n))e.prototype[o]===void 0&&(e.prototype[o]=function(c={},l,...u){return a({...l,client:this},c,...u)});for(let[o,a]of Object.entries(s))e.prototype[o]===void 0&&(e.prototype[o]=async function(c={},l,...u){let d=l;return typeof l=="number"&&(d={maxWaitTime:l}),a({...d,client:this},c,...u)})},"createAggregatedClient")});var Mi,oh,A6=g(()=>{Mi=class t extends Error{static{i(this,"ServiceException")}static shapeId="smithy.ts.sdk.synthetic.nonamespace.client#ServiceException";$fault;$response;$retryable;$metadata;constructor(e){super(e.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;let r=e;return t.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return!1;let r=e;if(this===t)return t.isInstance(e);if(t.isInstance(e)){if(this.prototype.isPrototypeOf(e))return!0;let n=Object.prototype.hasOwnProperty.call(this,"shapeId")?this.shapeId:void 0,s=!1;if(n){let a=Object.getPrototypeOf(r);for(;a&&a!==Object.prototype;){let c=a.constructor,l=c!==t&&Object.prototype.hasOwnProperty.call(c,"shapeId")?c?.shapeId:void 0;if(l&&(s=!0,l===n))return!0;a=Object.getPrototypeOf(a)}}if(n&&s)return!1;let o=this.name;if(o&&o.length>=6){if(r.name===o)return!0;let a=Object.getPrototypeOf(r);for(;a&&a!==Object.prototype;){let c=a.constructor?.name;if(c&&c!=="Error"&&c===o)return!0;a=Object.getPrototypeOf(a)}}}return!1}},oh=i((t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,s])=>{(t[n]==null||t[n]==="")&&(t[n]=s)});let r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},"decorateServiceException")});var g6,hTe,Bkt,ATe=g(()=>{A6();g6=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=Bkt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw oh(a,e)},"throwDefaultError"),hTe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{g6({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),Bkt=i(t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),"deserializeMetadata")});var ol,gTe=g(()=>{ol=i(t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode")});var yTe,il,ETe=g(()=>{yTe=!1,il=i(t=>{t&&!yTe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(yTe=!0)},"emitWarningIfUnsupportedVersion")});var ih,CTe,aD,cD,y6=g(()=>{ve();ih=R(Xn()),CTe=Object.values(ih.AlgorithmId),aD=i(t=>{let e=[];for(let r in ih.AlgorithmId){if(!X(ih.AlgorithmId,r))continue;let n=ih.AlgorithmId[r];t[n]!==void 0&&e.push({algorithmId:i(()=>n,"algorithmId"),checksumConstructor:i(()=>t[n],"checksumConstructor")})}for(let[r,n]of Object.entries(t.checksumAlgorithms??{}))e.push({algorithmId:i(()=>r,"algorithmId"),checksumConstructor:i(()=>n,"checksumConstructor")});return{addChecksumAlgorithm(r){t.checksumAlgorithms=t.checksumAlgorithms??{};let n=r.algorithmId(),s=r.checksumConstructor();CTe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),cD=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();CTe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var lD,uD,E6=g(()=>{lD=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),uD=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var Na,ITe,al,STe=g(()=>{y6();E6();Na=i(t=>Object.assign(aD(t),lD(t)),"getDefaultExtensionConfiguration"),ITe=Na,al=i(t=>Object.assign(cD(t),uD(t)),"resolveDefaultRuntimeConfig")});var wTe,xTe=g(()=>{wTe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var ah,bTe=g(()=>{ve();ah=i(t=>{let e="#text";for(let r in t)X(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=ah(t[r])));return t},"getValueFromTextNode")});var BTe,RTe=g(()=>{BTe=i(t=>t!=null,"isSerializableHeaderValue")});var ro,NTe=g(()=>{ro=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function C6(t,e,r){let n,s,o;if(typeof e>"u"&&typeof r>"u")n={},o=t;else{if(n=t,typeof e=="function")return s=e,o=r,Rkt(n,s,o);o=e}for(let a in o)if(X(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}_Te(n,null,o,a)}return n}var TTe,PTe,Rkt,_Te,Nkt,Tkt,vTe=g(()=>{ve();i(C6,"map");TTe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),PTe=i((t,e)=>{let r={};for(let n in e)X(e,n)&&_Te(r,t,e,n);return r},"take"),Rkt=i((t,e,r)=>C6(t,Object.entries(r).reduce((n,[s,o])=>(Array.isArray(o)?n[s]=o:typeof o=="function"?n[s]=[e,o()]:n[s]=[e,o],n),{})),"mapWithFilter"),_Te=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=Nkt,l=Tkt,u=n]=a;(typeof c=="function"&&c(e[u])||typeof c!="function"&&c)&&(t[n]=l(e[u]));return}let[s,o]=r[n];if(typeof o=="function"){let a,c=s===void 0&&(a=o())!=null,l=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;c?t[n]=a:l&&(t[n]=o())}else{let a=s===void 0&&o!=null,c=typeof s=="function"&&!!s(o)||typeof s!="function"&&!!s;(a||c)&&(t[n]=o)}},"applyInstruction"),Nkt=i(t=>t!=null,"nonNullish"),Tkt=i(t=>t,"pass")});var QTe,DTe,kTe=g(()=>{QTe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),DTe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var dD,OTe=g(()=>{ve();dD=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(dD);if(typeof t=="object"){let e={};for(let r in t)X(t,r)&&t[r]!=null&&(e[r]=dD(t[r]));return e}return t},"_json")});function cl(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return xs.classBuilder().ep(d).m(function(p,f,m,h){let A=a.call(this,p,f,m,h);return A.unshift(n(m,p.getEndpointParameterInstructions())),A}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var LTe=g(()=>{h6();i(cl,"makeBuilder")});var zy={};cr(zy,{AlgorithmId:()=>ih.AlgorithmId,Client:()=>Zn,Command:()=>xs,NoOpLogger:()=>ro,SENSITIVE_STRING:()=>pTe,ServiceException:()=>Mi,WaiterState:()=>zo,_json:()=>dD,checkExceptions:()=>kNe,constructStack:()=>sp,convertMap:()=>TTe,createAggregatedClient:()=>sl,createWaiter:()=>qNe,decorateServiceException:()=>oh,emitWarningIfUnsupportedVersion:()=>il,getArrayIfSingleItem:()=>wTe,getChecksumConfiguration:()=>aD,getDefaultClientConfiguration:()=>ITe,getDefaultExtensionConfiguration:()=>Na,getRetryConfiguration:()=>lD,getSmithyContext:()=>vt,getValueFromTextNode:()=>ah,invalidFunction:()=>TNe,invalidProvider:()=>_Ne,isSerializableHeaderValue:()=>BTe,loadConfigsForDefaultMode:()=>ol,makeBuilder:()=>cl,map:()=>C6,normalizeProvider:()=>xt,resolveChecksumRuntimeConfig:()=>cD,resolveDefaultRuntimeConfig:()=>al,resolveRetryRuntimeConfig:()=>uD,schemaLogFilter:()=>ip,serializeDateTime:()=>DTe,serializeFloat:()=>QTe,take:()=>PTe,throwDefaultError:()=>g6,waiterServiceDefaults:()=>sD,withBaseException:()=>hTe});var we=g(()=>{nD();ve();ve();PNe();vNe();$Ne();oD();GNe();h6();fTe();mTe();ATe();gTe();ETe();A6();STe();y6();E6();xTe();bTe();RTe();NTe();vTe();p6();kTe();OTe();LTe()});var pD,I6=g(()=>{pD=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var Ta,ap,cp=g(()=>{I6();Ta=i((t,e=0,r=t.byteLength-e)=>{if(!pD(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),ap=i((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)},"fromString")});var Pkt,Er,MTe=g(()=>{cp();Pkt=/^[A-Za-z0-9+/]*={0,2}$/,Er=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Pkt.exec(t))throw new TypeError("Invalid base64 string.");let e=ap(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Zr,fD=g(()=>{cp();Zr=i(t=>{let e=ap(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Qt,S6=g(()=>{cp();fD();Qt=i(t=>{let e;if(typeof t=="string"?e=Zr(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return Ta(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function FTe(t,e,r,n){return class mD extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?mD.mutate(n(o)):mD.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,mD.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var UTe=g(()=>{i(FTe,"bindUint8ArrayBlobAdapter")});var qt,qTe=g(()=>{cp();qt=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 Ta(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function $Te(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,es[e[0]]+es[e[1]]+es[e[2]]+es[e[3]]+"-"+es[e[4]]+es[e[5]]+"-"+es[e[6]]+es[e[7]]+"-"+es[e[8]]+es[e[9]]+"-"+es[e[10]]+es[e[11]]+es[e[12]]+es[e[13]]+es[e[14]]+es[e[15]]}}var es,GTe=g(()=>{es=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i($Te,"bindV4")});var HTe,zTe=g(()=>{HTe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var VTe,WTe,Vy,_kt,Mx,Wy,YTe,hD,AD,gD,w6,vkt,JTe,x6,jTe,ED,Fx,KTe,CD,Qkt,Jy,ID,XTe,ZTe,ePe,tPe,b6,rPe,nPe,lp,SD,yD,Yy,B6=g(()=>{ve();VTe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),WTe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&Yy.warn(yD(`Expected boolean, got ${typeof t}: ${t}`)),t===0)return!1;if(t===1)return!0}if(typeof t=="string"){let e=t.toLowerCase();if((e==="false"||e==="true")&&Yy.warn(yD(`Expected boolean, got ${typeof t}: ${t}`)),e==="false")return!1;if(e==="true")return!0}if(typeof t=="boolean")return t;throw new TypeError(`Expected boolean, got ${typeof t}: ${t}`)}},"expectBoolean"),Vy=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&Yy.warn(yD(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),_kt=Math.ceil(2**127*(2-2**-23)),Mx=i(t=>{let e=Vy(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>_kt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),Wy=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),YTe=Wy,hD=i(t=>w6(t,32),"expectInt32"),AD=i(t=>w6(t,16),"expectShort"),gD=i(t=>w6(t,8),"expectByte"),w6=i((t,e)=>{let r=Wy(t);if(r!==void 0&&vkt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),vkt=i((t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},"castInt"),JTe=i((t,e)=>{if(t==null)throw e?new TypeError(`Expected a non-null value for ${e}`):new TypeError("Expected a non-null value");return t},"expectNonNull"),x6=i(t=>{if(t==null)return;if(typeof t=="object"&&!Array.isArray(t))return t;let e=Array.isArray(t)?"array":typeof t;throw new TypeError(`Expected object, got ${e}: ${t}`)},"expectObject"),jTe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return Yy.warn(yD(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),ED=i(t=>{if(t==null)return;let e=x6(t),r=[];for(let n in e)X(e,n)&&e[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return e},"expectUnion"),Fx=i(t=>Vy(typeof t=="string"?Jy(t):t),"strictParseDouble"),KTe=Fx,CD=i(t=>Mx(typeof t=="string"?Jy(t):t),"strictParseFloat32"),Qkt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Jy=i(t=>{let e=t.match(Qkt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),ID=i(t=>typeof t=="string"?tPe(t):Vy(t),"limitedParseDouble"),XTe=ID,ZTe=ID,ePe=i(t=>typeof t=="string"?tPe(t):Mx(t),"limitedParseFloat32"),tPe=i(t=>{switch(t){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${t}`)}},"parseFloatString"),b6=i(t=>Wy(typeof t=="string"?Jy(t):t),"strictParseLong"),rPe=b6,nPe=i(t=>hD(typeof t=="string"?Jy(t):t),"strictParseInt32"),lp=i(t=>AD(typeof t=="string"?Jy(t):t),"strictParseShort"),SD=i(t=>gD(typeof t=="string"?Jy(t):t),"strictParseByte"),yD=i(t=>String(new TypeError(t).stack||t).split(`
|
|
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
|
|
`),"stackTraceWarning"),Yy={warn:console.warn}});function Vo(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`${Dkt[n]}, ${l} ${N6[r]} ${e} ${u}:${d}:${p} GMT`}var Dkt,N6,kkt,sPe,Okt,Ky,Lkt,Mkt,Fkt,up,Xy,Ux,Ukt,qkt,$kt,R6,Gkt,Hkt,zkt,ll,Vkt,Wkt,jy,oPe=g(()=>{B6();Dkt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],N6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Vo,"dateToUtcString");kkt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),sPe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=kkt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=lp(jy(n)),p=ll(s,"month",1,12),f=ll(o,"day",1,31);return Ux(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),Okt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),Ky=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=Okt.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=lp(jy(n)),f=ll(s,"month",1,12),m=ll(o,"day",1,31),h=Ux(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-Wkt(d)),h},"parseRfc3339DateTimeWithOffset"),Lkt=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$/),Mkt=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$/),Fkt=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})$/),up=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=Lkt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return Ux(lp(jy(o)),R6(s),ll(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=Mkt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return $kt(Ux(Ukt(o),R6(s),ll(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=Fkt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return Ux(lp(jy(u)),R6(n),ll(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Xy=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=Fx(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"),Ux=i((t,e,r,n)=>{let s=e-1;return Hkt(t,s,r),new Date(Date.UTC(t,s,r,ll(n.hours,"hour",0,23),ll(n.minutes,"minute",0,59),ll(n.seconds,"seconds",0,60),Vkt(n.fractionalMilliseconds)))},"buildDate"),Ukt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+lp(jy(t));return r<e?r+100:r},"parseTwoDigitYear"),qkt=50*365*24*60*60*1e3,$kt=i(t=>t.getTime()-new Date().getTime()>qkt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),R6=i(t=>{let e=N6.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),Gkt=[31,28,31,30,31,30,31,31,30,31,30,31],Hkt=i((t,e,r)=>{let n=Gkt[e];if(e===1&&zkt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${N6[e]} in ${t}: ${r}`)},"validateDayOfMonth"),zkt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),ll=i((t,e,r,n)=>{let s=SD(jy(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),Vkt=i(t=>t==null?0:CD("0."+t)*1e3,"parseMilliseconds"),Wkt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),jy=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var Ur,iPe=g(()=>{Ur=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Ur.from=t=>t&&typeof t=="object"&&(t instanceof Ur||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Ur(String(t)):Ur(JSON.stringify(t));Ur.fromObject=Ur.from});function wD(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var aPe=g(()=>{i(wD,"quoteHeader")});function Ou(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var T6,P6,_6,cPe,lPe,Ykt,Jkt,jkt,Kkt,Xkt,dp,xD,bD,uPe=g(()=>{T6="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",P6="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",_6="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",cPe="(\\d?\\d)",lPe="(\\d{4})",Ykt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Jkt=new RegExp(`^${T6}, ${cPe} ${P6} ${lPe} ${_6} GMT$`),jkt=new RegExp(`^${T6}, ${cPe}-${P6}-(\\d\\d) ${_6} GMT$`),Kkt=new RegExp(`^${T6} ${P6} ( [1-9]|\\d\\d) ${_6} ${lPe}$`),Xkt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dp=i(t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},"_parseEpochTimestamp"),xD=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=Ykt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;Ou(n,1,12),Ou(s,1,31),Ou(o,0,23),Ou(a,0,59),Ou(c,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(s),Number(o),Number(a),Number(c),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,p,f,m]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],h=p==="-"?1:-1;d.setTime(d.getTime()+h*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),bD=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,s,o,a,c,l;if((l=Jkt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=jkt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=Kkt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),Xkt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Ou(e,1,31),Ou(s,0,23),Ou(o,0,59),Ou(a,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)},"_parseRfc7231DateTime");i(Ou,"range")});function BD(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let s=[],o="";for(let a=0;a<n.length;a++)o===""?o=n[a]:o+=e+n[a],(a+1)%r===0&&(s.push(o),o="");return o!==""&&s.push(o),s}var dPe=g(()=>{i(BD,"splitEvery")});var Zy,pPe=g(()=>{Zy=i(t=>{let e=t.length,r=[],n=!1,s,o=0;for(let a=0;a<e;++a){let c=t[a];switch(c){case'"':s!=="\\"&&(n=!n);break;case",":n||(r.push(t.slice(o,a)),o=a+1);break;default:}s=c}return r.push(t.slice(o)),r.map(a=>{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function RD(t){return new je(String(t),"bigDecimal")}var fPe,je,mPe=g(()=>{fPe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,je=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!fPe.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&fPe.test(r.string)}};i(RD,"nv")});function ND(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in v6)e[r/2]=v6[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function Fi(t){let e="";for(let r=0;r<t.byteLength;r++)e+=hPe[t[r]];return e}var hPe,v6,Q6=g(()=>{hPe={},v6={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),hPe[t]=e,v6[e]=t}i(ND,"fromHex");i(Fi,"toHex")});var eE,ul,APe=g(()=>{eE=require("node:fs"),ul=i(t=>{if(!t)return 0;if(typeof t=="string")return Buffer.byteLength(t);if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size;if(typeof t.start=="number"&&typeof t.end=="number")return t.end+1-t.start;if(t instanceof eE.ReadStream){if(t.path!=null)return(0,eE.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,eE.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var bs,D6=g(()=>{fD();bs=i(t=>t instanceof Uint8Array?t:typeof t=="string"?Zr(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function dl(t,e){if(e===void 0){e=0;for(let s of t)e+=s.byteLength}let r=new Uint8Array(e),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}var qx=g(()=>{i(dl,"concatBytes")});var TD,k6,O6=g(()=>{ve();TD=i((t,e)=>(r,n)=>async s=>{let{response:o}=await r(s);try{let a=await e(o,t);return{response:o,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=`
|
|
`+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(fn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:k6(/^x-[\w-]+-request-?id$/,u),extendedRequestId:k6(/^x-[\w-]+-id-2$/,u),cfId:k6(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),k6=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Wo,$x=g(()=>{Wo=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 pp,PD=g(()=>{$x();pp=class t extends Wo{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var _D,gPe=g(()=>{$x();_D=class t extends Wo{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var vD,L6=g(()=>{$x();vD=i((...t)=>async()=>{if(t.length===0)throw new Wo("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 QD,M6=g(()=>{QD=i(t=>()=>Promise.resolve(t),"fromValue")});var tE,DD=g(()=>{tE=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 mn,kD=g(()=>{mn=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var yPe,EPe=g(()=>{yPe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var qr,OD=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(qr||(qr={}))});var CPe,IPe,F6,Zkt,pl,rE=g(()=>{CPe=require("node:os"),IPe=require("node:path"),F6={},Zkt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),pl=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${IPe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=Zkt();return F6[s]||(F6[s]=(0,CPe.homedir)()),F6[s]},"getHomeDir")});var U6,q6,LD,$6=g(()=>{U6="AWS_PROFILE",q6="default",LD=i(t=>t.profile||process.env[U6]||q6,"getProfileName")});var SPe,wPe,MD,G6=g(()=>{SPe=require("node:crypto"),wPe=require("node:path");rE();MD=i(t=>{let r=(0,SPe.createHash)("sha1").update(t).digest("hex");return(0,wPe.join)(pl(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var xPe,Gx,bPe,H6=g(()=>{xPe=require("node:fs/promises");G6();Gx={},bPe=i(async t=>{if(Gx[t])return Gx[t];let e=MD(t),r=await(0,xPe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var fl,BPe=g(()=>{fl="."});var z6,RPe,NPe=g(()=>{z6=R(Xn()),RPe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(z6.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===z6.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var TPe,eOt,FD,V6=g(()=>{TPe=require("node:path");rE();eOt="AWS_CONFIG_FILE",FD=i(()=>process.env[eOt]||(0,TPe.join)(pl(),".aws","config"),"getConfigFilepath")});var PPe,tOt,_Pe,vPe=g(()=>{PPe=require("node:path");rE();tOt="AWS_SHARED_CREDENTIALS_FILE",_Pe=i(()=>process.env[tOt]||(0,PPe.join)(pl(),".aws","credentials"),"getCredentialsFilepath")});var QPe,rOt,nOt,Hx,W6=g(()=>{QPe=R(Xn()),rOt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,nOt=["__proto__","profile __proto__"],Hx=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=rOt.exec(c);if(l){let[,u,,d]=l;Object.values(QPe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(nOt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var DPe,Y6,zx,ch,Vx=g(()=>{DPe=require("node:fs/promises"),Y6={},zx={},ch=i((t,e)=>zx[t]!==void 0?zx[t]:((!Y6[t]||e?.ignoreCache)&&(Y6[t]=(0,DPe.readFile)(t,"utf8")),Y6[t]),"readFile")});var J6,kPe,nE,UD=g(()=>{J6=require("node:path");NPe();V6();vPe();rE();W6();Vx();kPe=i(()=>({}),"swallowError"),nE=i(async(t={})=>{let{filepath:e=_Pe(),configFilepath:r=FD()}=t,n=pl(),s="~/",o=e;e.startsWith(s)&&(o=(0,J6.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,J6.join)(n,r.slice(2)));let c=await Promise.all([ch(a,{ignoreCache:t.ignoreCache}).then(Hx).then(RPe).catch(kPe),ch(o,{ignoreCache:t.ignoreCache}).then(Hx).catch(kPe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var OPe,LPe,MPe=g(()=>{OPe=R(Xn()),LPe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(OPe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var sOt,FPe,UPe=g(()=>{V6();MPe();W6();Vx();sOt=i(()=>({}),"swallowError"),FPe=i(async(t={})=>ch(t.configFilepath??FD()).then(Hx).then(LPe).catch(sOt),"loadSsoSessionData")});var qPe,$Pe=g(()=>{qPe=i((...t)=>{let e={};for(let r of t)for(let[n,s]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],s):e[n]=s;return e},"mergeConfigFiles")});var GPe,HPe=g(()=>{UD();$Pe();GPe=i(async t=>{let e=await nE(t);return qPe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var zPe,VPe=g(()=>{H6();Vx();zPe={getFileRecord(){return zx},interceptFile(t,e){zx[t]=Promise.resolve(e)},getTokenRecord(){return Gx},interceptToken(t,e){Gx[t]=e}}});function qD(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var j6=g(()=>{i(qD,"getSelectorName")});var WPe,YPe=g(()=>{PD();j6();WPe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new pp(r.message||`Not found in ENV: ${qD(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var JPe,jPe=g(()=>{PD();$6();UD();j6();JPe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=LD(r),{configFile:s,credentialsFile:o}=await nE(r),a=o[n]||{},c=s[n]||{},l=e==="config"?{...a,...c}:{...c,...a};try{let d=t(l,e==="config"?s:o);if(d===void 0)throw new Error;return d}catch(u){throw new pp(u.message||`Not found in config files w/ profile [${n}]: ${qD(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var oOt,$D,K6=g(()=>{M6();oOt=i(t=>typeof t=="function","isFunction"),$D=i(t=>oOt(t)?async()=>await t():QD(t),"fromStatic")});var Qe,X6=g(()=>{L6();DD();YPe();jPe();K6();Qe=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return tE(vD(WPe(t,{signingName:s,logger:o}),JPe(e,n),$D(r)))},"loadConfig")});var GD,HD,KPe,ml,XPe,ZPe=g(()=>{kD();OD();GD="AWS_USE_DUALSTACK_ENDPOINT",HD="use_dualstack_endpoint",KPe=!1,ml={environmentVariableSelector:i(t=>mn(t,GD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,HD,qr.CONFIG),"configFileSelector"),default:!1},XPe={environmentVariableSelector:i(t=>mn(t,GD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,HD,qr.CONFIG),"configFileSelector"),default:void 0}});var zD,VD,e_e,hl,t_e,r_e=g(()=>{kD();OD();zD="AWS_USE_FIPS_ENDPOINT",VD="use_fips_endpoint",e_e=!1,hl={environmentVariableSelector:i(t=>mn(t,zD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,VD,qr.CONFIG),"configFileSelector"),default:!1},t_e={environmentVariableSelector:i(t=>mn(t,zD,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,VD,qr.CONFIG),"configFileSelector"),default:void 0}});var n_e,s_e=g(()=>{we();n_e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:xt(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:xt(s??!1)})},"resolveCustomEndpointsConfig")});var o_e,i_e=g(()=>{o_e=i(async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await t.useDualstackEndpoint(),o=await t.useFipsEndpoint(),{hostname:a}=await t.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${a}`)},"getEndpointFromRegion")});var a_e,c_e=g(()=>{we();i_e();a_e=i(t=>{let e=xt(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?xt(typeof r=="string"?s(r):r):()=>o_e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var l_e,Z6,e9,u_e,d_e,p_e,f_e,m_e,h_e,t9=g(()=>{l_e="AWS_EXECUTION_ENV",Z6="AWS_REGION",e9="AWS_DEFAULT_REGION",u_e="AWS_EC2_METADATA_DISABLED",d_e=["in-region","cross-region","mobile","standard","legacy"],p_e="/latest/meta-data/placement/region",f_e="/latest/api/token",m_e="x-aws-ec2-metadata-token",h_e="x-aws-ec2-metadata-token-ttl-seconds"});var A_e,iOt,E_e,WD,g_e,aOt,y_e,r9=g(()=>{t9();A_e=1e3,iOt=6e4,E_e=0,WD=i(async()=>{if(!process.env[u_e]&&!(Date.now()<E_e))try{let t=aOt(),e=(await y_e({...t,path:f_e,method:"PUT",headers:{[h_e]:"21600"}})).toString();return(await y_e({...t,path:p_e,method:"GET",headers:{[m_e]:e}})).toString().trim()||g_e()}catch{return g_e()}},"getInstanceMetadataRegion"),g_e=i(()=>{E_e=Date.now()+iOt},"cacheNegativeAndReturnUndefined"),aOt=i(()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},"resolveImdsEndpoint"),y_e=i(async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let s=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:A_e,signal:AbortSignal.timeout(A_e)});s.on("error",o=>{n(o),s.destroy()}),s.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",o=>{let{statusCode:a=400}=o;if(a<200||a>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:a})),s.destroy();return}let c=[];o.on("data",l=>c.push(l)),o.on("end",()=>{r(Buffer.concat(c)),s.destroy()})}),s.end()})},"imdsRequest")});var sE,oE,Dn,Bs,n9=g(()=>{r9();sE="AWS_REGION",oE="region",Dn={environmentVariableSelector:i(t=>t[sE],"environmentVariableSelector"),configFileSelector:i(t=>t[oE],"configFileSelector"),default:i(async()=>{let t=await WD();if(t)return t;throw new Error("Region is missing")},"default")},Bs={preferredFile:"credentials"}});var C_e,I_e,S_e=g(()=>{ve();C_e=new Set,I_e=i((t,e=Ba)=>{if(!C_e.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else C_e.add(t)},"checkRegion")});var YD,s9=g(()=>{YD=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var w_e,x_e=g(()=>{s9();w_e=i(t=>YD(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var Yo,b_e=g(()=>{S_e();x_e();s9();Yo=i(t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:i(async()=>{let n=typeof e=="function"?await e():e,s=w_e(n);return I_e(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return YD(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var o9,B_e=g(()=>{o9=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var R_e,N_e=g(()=>{R_e=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var T_e,P_e=g(()=>{T_e=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var __e,v_e=g(()=>{__e=i((t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let s=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=t.match(s);if(o)return o[0].slice(1,-1)}},"getResolvedSigningRegion")});var Q_e,D_e=g(()=>{B_e();N_e();P_e();v_e();Q_e=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=T_e(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=o9(s[c]?.variants,l),d=o9(o[a]?.variants,l),p=R_e(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=__e(p,{signingRegion:s[c]?.signingRegion,regionRegex:o[a].regionRegex,useFipsEndpoint:e});return{partition:a,signingService:n,hostname:p,...f&&{signingRegion:f},...s[c]?.signingService&&{signingService:s[c].signingService}}},"getRegionInfo")});var cOt,lOt,k_e,O_e=g(()=>{cOt="AWS_DEFAULTS_MODE",lOt="defaults_mode",k_e={environmentVariableSelector:i(t=>t[cOt],"environmentVariableSelector"),configFileSelector:i(t=>t[lOt],"configFileSelector"),default:"legacy"}});var Al,uOt,dOt,L_e=g(()=>{n9();r9();X6();DD();t9();O_e();Al=i(({region:t=Qe(Dn),defaultsMode:e=Qe(k_e)}={})=>tE(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return uOt(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${d_e.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),uOt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await dOt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),dOt=i(async()=>process.env[l_e]&&(process.env[Z6]||process.env[e9])?process.env[Z6]??process.env[e9]:WD(),"inferPhysicalRegion")});var Ui={};cr(Ui,{CONFIG_PREFIX_SEPARATOR:()=>fl,CONFIG_USE_DUALSTACK_ENDPOINT:()=>HD,CONFIG_USE_FIPS_ENDPOINT:()=>VD,CredentialsProviderError:()=>pp,DEFAULT_PROFILE:()=>q6,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>KPe,DEFAULT_USE_FIPS_ENDPOINT:()=>e_e,ENV_PROFILE:()=>U6,ENV_USE_DUALSTACK_ENDPOINT:()=>GD,ENV_USE_FIPS_ENDPOINT:()=>zD,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Bs,NODE_REGION_CONFIG_OPTIONS:()=>Dn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ml,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>hl,ProviderError:()=>Wo,REGION_ENV_NAME:()=>sE,REGION_INI_NAME:()=>oE,SelectorType:()=>qr,TokenProviderError:()=>_D,booleanSelector:()=>mn,chain:()=>vD,externalDataInterceptor:()=>zPe,fromStatic:()=>$D,fromValue:()=>QD,getHomeDir:()=>pl,getProfileName:()=>LD,getRegionInfo:()=>Q_e,getSSOTokenFilepath:()=>MD,getSSOTokenFromFile:()=>bPe,loadConfig:()=>Qe,loadSharedConfigFiles:()=>nE,loadSsoSessionData:()=>FPe,memoize:()=>tE,nodeDualstackConfigSelectors:()=>XPe,nodeFipsConfigSelectors:()=>t_e,numberSelector:()=>yPe,parseKnownFiles:()=>GPe,readFile:()=>ch,resolveCustomEndpointsConfig:()=>n_e,resolveDefaultsModeConfig:()=>Al,resolveEndpointsConfig:()=>a_e,resolveRegionConfig:()=>Yo});var bt=g(()=>{$x();PD();gPe();L6();M6();DD();kD();EPe();OD();rE();$6();G6();H6();BPe();UD();UPe();HPe();VPe();Vx();X6();K6();ZPe();r_e();s_e();c_e();n9();b_e();D_e();L_e()});var M_e,F_e,U_e,q_e=g(()=>{M_e="AWS_ENDPOINT_URL",F_e="endpoint_url",U_e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[M_e,...r].join("_")];if(n)return n;let s=e[M_e];if(s)return s},"environmentVariableSelector"),configFileSelector:i((e,r)=>{if(e.services){let s=["services",e.services].join(".");if(!r||!r[s])throw new Error(`The services section "${e.services}" specified in the profile is not present in the shared configuration file.`);let o=r[s],a=t.split(" ").map(l=>l.toLowerCase()),c=o[[a.join("_"),F_e].join(".")];if(c)return c}let n=e[F_e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var pOt,fOt,$_e,G_e=g(()=>{bt();pOt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",fOt="ignore_configured_endpoint_urls",$_e={environmentVariableSelector:i(t=>mn(t,pOt,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,fOt,qr.CONFIG),"configFileSelector"),default:!1}});var Wx,H_e=g(()=>{bt();q_e();G_e();Wx=i(async t=>{if(!await Qe($_e)())return Qe(U_e(t??""))()},"getEndpointFromConfig")});var i9,mOt,hOt,AOt,z_e,V_e,W_e=g(()=>{i9=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),V_e(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!z_e(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},"resolveParamsForS3"),mOt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,hOt=/(\d+\.){3}\d+/,AOt=/\.\./,z_e=i(t=>mOt.test(t)&&!hOt.test(t)&&!AOt.test(t),"isDnsCompatibleBucketName"),V_e=i(t=>{let[e,r,n,,,s]=t.split(":"),o=e==="arn"&&t.split(":").length>=6,a=!!(o&&r&&n&&s);if(o&&!a)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return a},"isArnBucketName")});var Y_e=g(()=>{W_e()});var J_e,j_e=g(()=>{J_e=i((t,e,r,n=!1)=>{let s=i(async()=>{let o;return n?o=r.clientContextParams?.[t]??r[t]??r[e]:o=r[t]??r[e],typeof o=="function"?o():o},"configProvider");return t==="credentialScope"||e==="CredentialScope"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.credentialScope??o?.CredentialScope}:t==="accountId"||e==="AccountId"?async()=>{let o=typeof r.credentials=="function"?await r.credentials():r.credentials;return o?.accountId??o?.AccountId}:t==="endpoint"||e==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let o=await s();if(o&&typeof o=="object"){if("url"in o)return o.url.href;if("hostname"in o){let{protocol:a,hostname:c,port:l,path:u}=o;return`${a}//${c}${l?":"+l:""}${u}`}}return o}:s},"createConfigValueProvider")});var JD=g(()=>{ve()});function jD(t){return async(e,r,n,s)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let c;n.serviceConfiguredEndpoint?c=await n.serviceConfiguredEndpoint():c=await t(n.serviceId),c&&(n.endpoint=()=>Promise.resolve(Ho(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await Yx(e,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=n.endpointProvider(o,s);if(n.isCustomEndpoint&&n.endpoint){let c=await n.endpoint();if(c?.headers){a.headers??={};for(let[l,u]of Object.entries(c.headers))a.headers[l]=Array.isArray(u)?u:[u]}}return a}}var Yx,KD=g(()=>{Y_e();j_e();JD();i(jD,"bindGetEndpointFromInstructions");Yx=i(async(t,e,r)=>{let n={},s=e?.getEndpointParameterInstructions?.()||{};for(let[o,a]of Object.entries(s))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await J_e(a.name,o,r,a.type!=="builtInParams")();break;case"operationContextParams":n[o]=a.get(t);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await i9(n),n},"resolveParams")});function gOt(t,e,r){t.__smithy_context?t.__smithy_context.features||(t.__smithy_context.features={}):t.__smithy_context={features:{}},t.__smithy_context.features[e]=r}function XD(t){let e=jD(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&gOt(o,"ENDPOINT_OVERRIDE","N");let c=await e(a.input,{getEndpointParameterInstructions(){return n}},{...r},o);o.endpointV2=c,o.authSchemes=c.properties?.authSchemes;let l=o.authSchemes?.[0];if(l){o.signing_region=l.signingRegion,o.signing_service=l.signingName;let d=vt(o)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:l.signingRegion,signingRegion:l.signingRegion,signing_service:l.signingName,signingName:l.signingName,signingRegionSet:l.signingRegionSet},l.properties))}return s({...a})}}var a9=g(()=>{ve();KD();i(gOt,"setFeature");i(XD,"bindEndpointMiddleware")});function K_e(t){let e=XD(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),c9)},"applyToStack")})}var yOt,c9,l9=g(()=>{a9();yOt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},c9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:yOt.name};i(K_e,"bindGetEndpointPlugin")});function X_e(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>Ho(await xt(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:xt(s??!1),useFipsEndpoint:xt(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var Z_e=g(()=>{ve();JD();i(X_e,"bindResolveEndpointConfig")});var qi,eve=g(()=>{qi=class t{static{i(this,"BinaryDecisionDiagram")}nodes;root;conditions;results;constructor(e,r,n,s){this.nodes=e,this.root=r,this.conditions=n,this.results=s}static from(e,r,n,s){return new t(e,r,n,s)}}});var $i,tve=g(()=>{$i=class{static{i(this,"EndpointCache")}capacity;data=new Map;parameters=[];constructor({size:e,params:r}){this.capacity=e??50,r&&(this.parameters=r)}get(e,r){let n=this.hash(e);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let s=this.data.keys(),o=0;for(;;){let{value:a,done:c}=s.next();if(this.data.delete(a),c||++o>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(e){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let s of n){let o=e[s],a=o==null?"\0":String(o);if(a.includes("|;"))return!1;r+=a+"|;"}return r}}});var it,rve=g(()=>{it=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Jo=g(()=>{rve()});var gl,nve=g(()=>{gl="endpoints"});function jo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${jo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(jo).join(", ")})`:JSON.stringify(t,null,2)}var sve=g(()=>{i(jo,"toDebugString")});var Jx=g(()=>{nve();sve()});var no,u9=g(()=>{no={}});var d9,ove=g(()=>{d9=i((t,e)=>t===e,"booleanEquals")});function p9(...t){for(let e of t)if(e!=null)return e}var ive=g(()=>{i(p9,"coalesce")});var ave,cve=g(()=>{Jo();ave=i(t=>{let e=t.split("."),r=[];for(let n of e){let s=n.indexOf("[");if(s!==-1){if(n.indexOf("]")!==n.length-1)throw new it(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new it(`Invalid array index: '${o}' in path: '${t}'`);s!==0&&r.push(n.slice(0,s)),r.push(o)}else r.push(n)}return r},"getAttrPathList")});var jx,lve=g(()=>{Jo();cve();jx=i((t,e)=>ave(e).reduce((r,n)=>{if(typeof r!="object")throw new it(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);if(Array.isArray(r)){let s=parseInt(n);return r[s<0?r.length+s:s]}return r[n]},t),"getAttr")});var f9,uve=g(()=>{f9=i(t=>t!=null,"isSet")});function m9(t,e,r){return t?e:r}var dve=g(()=>{i(m9,"ite")});var h9,pve=g(()=>{h9=i(t=>!t,"not")});var EOt,Lu,A9=g(()=>{EOt=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Lu=i(t=>EOt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var ZD,g9,y9,fve=g(()=>{ZD=R(Xn());A9();g9={[ZD.EndpointURLScheme.HTTP]:80,[ZD.EndpointURLScheme.HTTPS]:443},y9=i(t=>{let e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){let{hostname:f,port:m,protocol:h="",path:A="",query:y={}}=t,E=new URL(`${h}//${f}${m?`:${m}`:""}${A}`);return E.search=Object.entries(y).map(([I,x])=>`${I}=${x}`).join("&"),E}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;let r=e.href,{host:n,hostname:s,pathname:o,protocol:a,search:c}=e;if(c)return null;let l=a.slice(0,-1);if(!Object.values(ZD.EndpointURLScheme).includes(l))return null;let u=Lu(s),d=r.includes(`${n}:${g9[l]}`)||typeof t=="string"&&t.includes(`${n}:${g9[l]}`),p=`${n}${d?`:${g9[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function E9(t,e,r){if(r===1)return[t];if(t==="")return[""];let n=t.split(e);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(e))}var mve=g(()=>{i(E9,"split")});var C9,hve=g(()=>{C9=i((t,e)=>t===e,"stringEquals")});var I9,Ave=g(()=>{I9=i((t,e,r,n)=>t==null||e>=r||t.length<r||/[^\u0000-\u007f]/.test(t)?null:n?t.substring(t.length-r,t.length-e):t.substring(e,r),"substring")});var S9,gve=g(()=>{S9=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var w9=g(()=>{ove();ive();lve();uve();ve();dve();pve();fve();mve();hve();Ave();gve()});var yve,Eve=g(()=>{w9();yve={booleanEquals:d9,coalesce:p9,getAttr:jx,isSet:f9,isValidHostLabel:Ba,ite:m9,not:h9,parseURL:y9,split:E9,stringEquals:C9,substring:I9,uriEncode:S9}});var ek,x9=g(()=>{w9();ek=i((t,e)=>{let r=[],{referenceRecord:n,endpointParams:s}=e,o=0;for(;o<t.length;){let a=t.indexOf("{",o);if(a===-1){r.push(t.slice(o));break}r.push(t.slice(o,a));let c=t.indexOf("}",a);if(c===-1){r.push(t.slice(a));break}t[a+1]==="{"&&t[c+1]==="}"&&(r.push(t.slice(a+1,c)),o=c+2);let l=t.substring(a+1,c);if(l.includes("#")){let[u,d]=l.split("#");r.push(jx(n[u]??s[u],d))}else r.push(n[l]??s[l]);o=c+1}return r.join("")},"evaluateTemplate")});var Cve,Ive=g(()=>{Cve=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var Mu,tk,Sve,iE=g(()=>{Jo();u9();Eve();x9();Ive();Mu=i((t,e,r)=>{if(typeof t=="string")return ek(t,r);if(t.fn)return Sve.callFunction(t,r);if(t.ref)return Cve(t,r);throw new it(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),tk=i(({fn:t,argv:e},r)=>{let n=Array(e.length);for(let a=0;a<n.length;++a){let c=e[a];typeof c=="boolean"||typeof c=="number"?n[a]=c:n[a]=Sve.evaluateExpression(c,"arg",r)}let s=t.indexOf(".");if(s!==-1){let c=no[t.slice(0,s)]?.[t.slice(s+1)];if(typeof c=="function")return c(...n)}let o=yve[t];if(typeof o=="function")return o(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},"callFunction"),Sve={evaluateExpression:Mu,callFunction:tk}});var wve=g(()=>{iE()});var rk,b9=g(()=>{Jx();Jo();wve();rk=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new it(`'${r}' is already defined in Reference Record.`);let n=tk(t,e);e.logger?.debug?.(`${gl} evaluateCondition: ${jo(t)} = ${jo(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var nk,B9=g(()=>{Jo();iE();nk=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=Mu(o,"Header value entry",e);if(typeof a!="string")throw new it(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var Kx,xve,bve,R9=g(()=>{Jo();x9();Kx=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=bve.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),xve=i((t,e)=>{if(Array.isArray(t))return t.map(r=>xve(r,e));switch(typeof t){case"string":return ek(t,e);case"object":if(t===null)throw new it(`Unexpected endpoint property: ${t}`);return bve.getEndpointProperties(t,e);case"boolean":return t;default:throw new it(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),bve={getEndpointProperty:xve,getEndpointProperties:Kx}});var sk,N9=g(()=>{Jo();iE();sk=i((t,e)=>{let r=Mu(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new it(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var T9,yl,Bve=g(()=>{Jo();b9();iE();B9();R9();N9();T9=1e8,yl=i((t,e)=>{let{nodes:r,root:n,results:s,conditions:o}=t,a=n,c={},l={referenceRecord:c,endpointParams:e.endpointParams,logger:e.logger};for(;a!==1&&a!==-1&&a<T9;){let u=3*(Math.abs(a)-1),[d,p,f]=[r[u],r[u+1],r[u+2]],[m,h,A]=o[d],y=rk({fn:m,assign:A,argv:h},l);if(y.toAssign){let{name:E,value:I}=y.toAssign;c[E]=I}a=a>=0===y.result?p:f}if(a>=T9){let u=s[a-T9];if(u[0]===-1){let[,m]=u;throw new it(Mu(m,"Error",l))}let[d,p,f]=u;return{url:sk(d,l),properties:Kx(p,l),headers:nk(f??{},l)}}throw new it("No matching endpoint.")},"decideEndpoint")});var aE,ok=g(()=>{Jx();b9();aE=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=rk(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${gl} assign: ${c.name} := ${jo(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var Rve,Nve=g(()=>{Jx();ok();B9();R9();N9();Rve=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=aE(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${gl} Resolving endpoint from template: ${jo(n)}`);let d={url:sk(c,a)};return u!=null&&(d.headers=nk(u,a)),l!=null&&(d.properties=Kx(l,a)),d},"evaluateEndpointRule")});var Tve,Pve=g(()=>{Jo();ok();iE();Tve=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=aE(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new it(Mu(n,"Error",a))},"evaluateErrorRule")});var ik,_ve,P9,vve=g(()=>{Jo();ok();Nve();Pve();ik=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=Rve(r,e);if(n)return n}else if(r.type==="error")Tve(r,e);else if(r.type==="tree"){let n=P9.evaluateTreeRule(r,e);if(n)return n}else throw new it(`Unknown endpoint rule: ${r}`);throw new it("Rules evaluation failed")},"evaluateRules"),_ve=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=aE(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return P9.evaluateRules(n,a)},"evaluateTreeRule"),P9={evaluateRules:ik,evaluateTreeRule:_ve}});var Qve=g(()=>{vve()});var Xx,Dve=g(()=>{ve();Jx();Jo();Qve();Xx=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${gl} Initial EndpointParams: ${jo(r)}`);for(let c in s){if(!X(s,c))continue;let l=s[c],u=r[c];if(u==null&&l.default!=null){r[c]=l.default;continue}if(l.required&&u==null)throw new it(`Missing required parameter: '${c}'`)}let a=ik(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${gl} Resolved endpoint: ${jo(a)}`),a},"resolveEndpoint")});var kve,Ove=g(()=>{kve=i(t=>{let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),t},"resolveEndpointRequiredConfig")});var _9={};cr(_9,{BinaryDecisionDiagram:()=>qi,EndpointCache:()=>$i,EndpointError:()=>it,customEndpointFunctions:()=>no,decideEndpoint:()=>yl,endpointMiddleware:()=>IOt,endpointMiddlewareOptions:()=>c9,getEndpointFromInstructions:()=>COt,getEndpointPlugin:()=>Uu,isIpAddress:()=>Lu,isValidHostLabel:()=>Ba,middlewareEndpointToEndpointV1:()=>Ho,resolveEndpoint:()=>Xx,resolveEndpointConfig:()=>Fu,resolveEndpointRequiredConfig:()=>kve,resolveParams:()=>Yx,toEndpointV1:()=>Ho});var COt,Fu,IOt,Uu,Dt=g(()=>{H_e();KD();a9();l9();Z_e();ve();eve();tve();Bve();A9();ve();u9();Dve();Jo();KD();JD();l9();Ove();COt=jD(Wx),Fu=X_e(Wx),IOt=XD(Wx),Uu=K_e(Wx)});var ak,v9=g(()=>{Dt();ak=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>Ho(n.endpointV2):o.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await e(s.input,{...t,endpoint:a});return r({...s,request:c})},"serializerMiddleware")});function Lve(t,e,r){return{applyToStack:i(n=>{n.add(TD(t,r),Q9),n.add(ak(t,e),D9)},"applyToStack")}}var Q9,D9,Mve=g(()=>{O6();v9();Q9={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},D9={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Lve,"getSerdePlugin")});function Fve(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?ap(t,e):ArrayBuffer.isView(t)?Ta(t.buffer,t.byteOffset,t.byteLength):Ta(t)}var lk,ck,Uve=g(()=>{lk=require("node:crypto");cp();D6();ck=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(e,r){this.algorithmIdentifier=e,this.secret=r,this.reset()}update(e,r){this.hash.update(bs(Fve(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,lk.createHmac)(this.algorithmIdentifier,Fve(this.secret)):(0,lk.createHash)(this.algorithmIdentifier)}};i(Fve,"castSourceData")});var qve,cE,k9=g(()=>{qve=require("node:stream");S6();cE=class extends qve.Readable{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:e,checksum:r,source:n,checksumSourceLocation:s,base64Encoder:o}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=o??Qt,this.expectedChecksum=e,this.checksum=r,this.checksumSourceLocation=s,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=i(e=>{if(!this.destroyed){try{this.checksum.update(e)}catch(r){this.destroy(r);return}this.push(e)||this.source.pause()}},"onSourceData");onSourceEnd=i(async()=>{if(!this.destroyed){try{let e=await this.checksum.digest(),r=this.base64Encoder(e);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(e){this.destroy(e);return}this.push(null)}},"onSourceEnd");onSourceError=i(e=>{this.destroy(e)},"onSourceError");onSourceClose=i(()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))},"onSourceClose");_read(e){this.source.resume()}_destroy(e,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(e)}}});var en,fp,Pa=g(()=>{en=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),fp=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var $ve,Gve=g(()=>{$ve=i(t=>new TextEncoder().encode(t),"fromUtf8")});var Hve,w4r,zve,uk,O9,Vve,Wve=g(()=>{Hve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w4r=Object.entries(Hve).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),zve=Hve.split(""),uk=6,O9=8,Vve=63});function dk(t){let e;typeof t=="string"?e=$ve(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o<e.length;o+=3){let a=0,c=0;for(let u=o,d=Math.min(o+3,e.length);u<d;u++)a|=e[u]<<(d-u-1)*O9,c+=O9;let l=Math.ceil(c/uk);a<<=l*uk-c;for(let u=1;u<=l;u++){let d=(l-u)*uk;s+=zve[(a&Vve<<d)>>d]}s+="==".slice(0,4-l)}return s}var L9=g(()=>{Gve();Wve();i(dk,"toBase64")});var SOt,pk,Yve=g(()=>{SOt=typeof ReadableStream=="function"?ReadableStream:function(){},pk=class extends SOt{static{i(this,"ChecksumStream")}}});var Jve,jve=g(()=>{L9();Pa();Yve();Jve=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!en(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??dk;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(l,u){e.update(l),u.enqueue(l)},async flush(l){let u=await e.digest(),d=o(u);if(t!==d){let p=new Error(`Checksum mismatch: expected "${t}" but received "${d}" in response header "${n}".`);l.error(p)}else l.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,pk.prototype),c},"createChecksumStream")});function Kve(t){return typeof ReadableStream=="function"&&en(t.source)?Jve(t):new cE(t)}var Xve=g(()=>{Pa();k9();jve();i(Kve,"createChecksumStream")});var lh,M9=g(()=>{lh=class{static{i(this,"ByteArrayCollector")}allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let e=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let s=this.byteArrays[n];e.set(s,r),r+=s.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}});function Zve(t,e,r){let n=t.getReader(),s=!1,o=0,a=["",new lh(u=>new Uint8Array(u))],c=-1,l=i(async u=>{let{value:d,done:p}=await n.read(),f=d;if(p){if(c!==-1){let m=uh(a,c);qu(m)>0&&u.enqueue(m)}u.close()}else{let m=U9(f,!1);if(c!==m&&(c>=0&&u.enqueue(uh(a,c)),c=m),c===-1){u.enqueue(f);return}let h=qu(f);o+=h;let A=qu(a[c]);if(h>=e&&A===0)u.enqueue(f);else{let y=F9(a,c,f);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${h} is below threshold of ${e}, automatically buffering.`)),y>=e?u.enqueue(uh(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function F9(t,e,r){switch(e){case 0:return t[0]+=r,qu(t[0]);case 1:case 2:return t[e].push(r),qu(t[e])}}function uh(t,e){switch(e){case 0:let r=t[0];return t[0]="",r;case 1:case 2:return t[e].flush()}throw new Error(`@smithy/util-stream - invalid index ${e} given to flush()`)}function qu(t){return t?.byteLength??t?.length??0}function U9(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var eQe=g(()=>{M9();i(Zve,"createBufferedReadableStream");i(F9,"merge");i(uh,"flush");i(qu,"sizeOf");i(U9,"modeOf")});function rQe(t,e,r){if(en(t))return Zve(t,e,r);let n=new tQe.Readable({read(){}}),s=!1,o=0,a=["",new lh(l=>new Uint8Array(l)),new lh(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=U9(l,!0);if(c!==u&&(c>=0&&n.push(uh(a,c)),c=u),c===-1){n.push(l);return}let d=qu(l);o+=d;let p=qu(a[c]);if(d>=e&&p===0)n.push(l);else{let f=F9(a,c,l);!s&&o>e*2&&(s=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${e}, automatically buffering.`)),f>=e&&n.push(uh(a,c))}}),t.on("end",()=>{if(c!==-1){let l=uh(a,c);qu(l)>0&&n.push(l)}n.push(null)}),n}var tQe,nQe=g(()=>{tQe=require("node:stream");M9();eQe();Pa();i(rQe,"createBufferedReadable")});var sQe,oQe=g(()=>{sQe=i((t,e)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:s,checksumLocationName:o,streamHasher:a}=e,c=r!==void 0&&n!==void 0&&s!==void 0&&o!==void 0&&a!==void 0,l=c?a(s,t):void 0;Promise.resolve(l).catch(()=>{});let u=t.getReader();return new ReadableStream({async pull(d){let{value:p,done:f}=await u.read();if(f){if(d.enqueue(`0\r
|
|
`),c){let m=r(await l);d.enqueue(`${o}:${m}\r
|
|
`),d.enqueue(`\r
|
|
`)}d.close()}else d.enqueue(`${(n(p)||0).toString(16)}\r
|
|
${p}\r
|
|
`)}})},"getAwsChunkedEncodingStream")});function aQe(t,e){let r=t,n=t;if(en(n))return sQe(n,e);let{base64Encoder:s,bodyLengthChecker:o,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:l}=e,u=s!==void 0&&a!==void 0&&c!==void 0&&l!==void 0,d=u?l(a,r):void 0;Promise.resolve(d).catch(()=>{});let p=new iQe.Readable({read(){r.resume()}});return r.on("data",f=>{let m=o(f)||0;m!==0&&(p.push(`${m.toString(16)}\r
|
|
`),p.push(f),p.push(`\r
|
|
`)||r.pause())}),r.on("error",f=>{p.destroy(f)}),r.pause(),r.on("end",async()=>{try{if(p.push(`0\r
|
|
`),u){let f=s(await d);p.push(`${c}:${f}\r
|
|
`),p.push(`\r
|
|
`)}p.push(null)}catch(f){p.destroy(f)}}),p}var iQe,cQe=g(()=>{iQe=require("node:stream");oQe();Pa();i(aQe,"getAwsChunkedEncodingStream")});async function lQe(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 uQe=g(()=>{i(lQe,"headStream")});var dQe,pQe,q9,fQe=g(()=>{dQe=require("node:stream");qx();uQe();Pa();pQe=i((t,e)=>en(t)?lQe(t,e):new Promise((r,n)=>{let s=new q9;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=dl(this.buffers);r(o)})}),"headStream"),q9=class extends dQe.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 mQe,hQe=g(()=>{mQe=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 $9(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function G9(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 dl(e,n)}var AQe,H9=g(()=>{qx();Pa();AQe=i(async t=>fp(t)?$9(t):G9(t),"streamCollector");i($9,"collectBlob");i(G9,"collectReadableStream")});var gQe,EQe,yQe,CQe=g(()=>{L9();Q6();hQe();H9();Pa();gQe="The stream has already been transformed.",EQe=i(t=>{if(!yQe(t)&&!en(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(gQe);return e=!0,await AQe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return dk(o);if(s==="hex")return Fi(o);if(s===void 0||s==="utf8"||s==="utf-8")return mQe(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(gQe);if(e=!0,yQe(t))return n(t);if(en(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),yQe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var IQe,fk,z9,V9=g(()=>{IQe=require("node:stream");qx();H9();Pa();fk=i(t=>fp(t)?$9(t):en(t)?G9(t):new Promise((e,r)=>{let n=new z9,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=dl(this.bufferedBytes);e(o)})}),"streamCollector"),z9=class extends IQe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var mk,SQe,hk,wQe=g(()=>{mk=require("node:stream");cp();CQe();V9();SQe="The stream has already been transformed.",hk=i(t=>{if(!(t instanceof mk.Readable))try{return EQe(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(SQe);return e=!0,await fk(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?Ta(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(SQe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof mk.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,mk.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function xQe(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var bQe=g(()=>{i(xQe,"splitStream")});async function BQe(t){if(en(t)||fp(t))return xQe(t);let e=new W9.PassThrough,r=new W9.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var W9,RQe=g(()=>{W9=require("node:stream");bQe();Pa();i(BQe,"splitStream")});function Gi(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var NQe=g(()=>{i(Gi,"writeKey")});var ph={};cr(ph,{ChecksumStream:()=>cE,Hash:()=>ck,LazyJsonString:()=>Ur,NumericValue:()=>je,Uint8ArrayBlobAdapter:()=>dh,_parseEpochTimestamp:()=>dp,_parseRfc3339DateTimeWithOffset:()=>xD,_parseRfc7231DateTime:()=>bD,calculateBodyLength:()=>ul,concatBytes:()=>dl,copyDocumentWithTransform:()=>HTe,createBufferedReadable:()=>rQe,createChecksumStream:()=>Kve,dateToUtcString:()=>Vo,deserializerMiddleware:()=>TD,deserializerMiddlewareOption:()=>Q9,expectBoolean:()=>WTe,expectByte:()=>gD,expectFloat32:()=>Mx,expectInt:()=>YTe,expectInt32:()=>hD,expectLong:()=>Wy,expectNonNull:()=>JTe,expectNumber:()=>Vy,expectObject:()=>x6,expectShort:()=>AD,expectString:()=>jTe,expectUnion:()=>ED,fromArrayBuffer:()=>Ta,fromBase64:()=>Er,fromHex:()=>ND,fromString:()=>ap,fromUtf8:()=>Zr,generateIdempotencyToken:()=>Ko,getAwsChunkedEncodingStream:()=>aQe,getSerdePlugin:()=>Lve,handleFloat:()=>XTe,hasOwn:()=>X,headStream:()=>pQe,isArrayBuffer:()=>pD,isBlob:()=>fp,isReadableStream:()=>en,limitedParseDouble:()=>ID,limitedParseFloat:()=>ZTe,limitedParseFloat32:()=>ePe,logger:()=>Yy,nv:()=>RD,parseBoolean:()=>VTe,parseEpochTimestamp:()=>Xy,parseRfc3339DateTime:()=>sPe,parseRfc3339DateTimeWithOffset:()=>Ky,parseRfc7231DateTime:()=>up,quoteHeader:()=>wD,sdkStreamMixin:()=>hk,serializerMiddleware:()=>ak,serializerMiddlewareOption:()=>D9,splitEvery:()=>BD,splitHeader:()=>Zy,splitStream:()=>BQe,streamCollector:()=>fk,strictParseByte:()=>SD,strictParseDouble:()=>Fx,strictParseFloat:()=>KTe,strictParseFloat32:()=>CD,strictParseInt:()=>rPe,strictParseInt32:()=>nPe,strictParseLong:()=>b6,strictParseShort:()=>lp,toBase64:()=>Qt,toHex:()=>Fi,toUint8Array:()=>bs,toUtf8:()=>qt,v4:()=>lE,writeKey:()=>Gi});var TQe,dh,wOt,lE,Ko,xe=g(()=>{TQe=require("node:crypto");MTe();S6();UTe();fD();qTe();GTe();zTe();oPe();iPe();B6();aPe();uPe();dPe();pPe();mPe();Q6();APe();D6();qx();cp();I6();O6();Mve();v9();Uve();k9();Xve();nQe();cQe();fQe();wQe();RQe();Pa();V9();ve();NQe();dh=class extends FTe(qt,Zr,Qt,Er){static{i(this,"Uint8ArrayBlobAdapter")}},wOt=TQe.getRandomValues,lE=$Te(wOt),Ko=lE});var tn,uE=g(()=>{xe();tn=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return dh.mutate(t);if(!t)return dh.mutate(new Uint8Array);let r=e.streamCollector(t);return dh.mutate(await r)},"collectBody")});function _a(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var Ak=g(()=>{i(_a,"extendedEncodeURIComponent")});var hn,dE=g(()=>{hn=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function gk(t,e,r=1024*1024){let n=t.size,s=0;for(;s<n;){let o=t.slice(s,Math.min(n,s+r));e(new Uint8Array(await o.arrayBuffer())),s+=o.size}}var Y9=g(()=>{i(gk,"blobReader")});var PQe,_Qe=g(()=>{Y9();PQe=i(async function(e,r){let n=new e;return await gk(r,s=>{n.update(s)}),n.digest()},"blobHasher")});var vQe,pE,J9=g(()=>{vQe=require("node:stream");xe();pE=class extends vQe.Writable{static{i(this,"HashCalculator")}hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(bs(e))}catch(s){return n(s)}n()}}});var QQe,DQe,xOt,kQe=g(()=>{QQe=require("node:fs");J9();DQe=i((t,e)=>new Promise((r,n)=>{if(!xOt(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,QQe.createReadStream)(e.path,{start:e.start,end:e.end}),o=new t,a=new pE(o);s.pipe(a),s.on("error",c=>{a.end(),n(c)}),a.on("error",n),a.on("finish",function(){o.digest().then(r).catch(n)})}),"fileStreamHasher"),xOt=i(t=>typeof t.path=="string","isReadStream")});var OQe,LQe=g(()=>{J9();OQe=i((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new pE(r);return e.pipe(n),new Promise((s,o)=>{e.on("error",a=>{n.end(),o(a)}),n.on("error",o),n.on("finish",()=>{r.digest().then(s).catch(o)})})},"readableStreamHasher")});function j9(t,e){let r=t[0],n=t[1],s=t[2],o=t[3];for(let a=0;a<64;++a){let c,l;a<16?(c=n&s|~n&o,l=a):a<32?(c=o&n|s&~o,l=(5*a+1)%16):a<48?(c=n^s^o,l=(3*a+5)%16):(c=s^(n|~o),l=7*a%16);let u=e.getUint32(l*4,!0),d=o;o=s,s=n;let p=bOt[(a>>4)*4+(a&3)],f=(r+c&mp)+(u+BOt[a]&mp)∓n=n+((f<<p|f>>>32-p)>>>0)&mp,r=d}t[0]=t[0]+r&mp,t[1]=t[1]+n&mp,t[2]=t[2]+s&mp,t[3]=t[3]+o&mp}var fE,MQe,mp,bOt,BOt,K9=g(()=>{xe();fE=class{static{i(this,"Md5Js")}digestLength=16;state=Uint32Array.from(MQe);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=bs(e),n=0,s=r.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--s,this.bufferLength===64&&(j9(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let e=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,s=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let c=n;c<64;++c)r.setUint8(c,0);j9(e,r),n=0}for(let c=n;c<56;++c)r.setUint8(c,0);r.setUint32(56,s>>>0,!0),r.setUint32(60,Math.floor(s/2**32),!0),j9(e,r);let o=new Uint8Array(16),a=new DataView(o.buffer);for(let c=0;c<4;++c)a.setUint32(c*4,e[c],!0);return o}reset(){this.state.set(MQe),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},MQe=[1732584193,4023233417,2562383102,271733878],mp=4294967295,bOt=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),BOt=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);i(j9,"compress")});function NOt(){return class{static{i(this,"Md5Node")}digestLength=16;hash=(0,yk.createHash)("md5");update(e){this.hash.update(bs(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,yk.createHash)("md5")}}}var yk,ROt,X9,FQe=g(()=>{yk=require("node:crypto");xe();K9();ROt=(()=>{try{return(0,yk.createHash)("md5"),!0}catch{return!1}})(),X9=ROt?NOt():fE;i(NOt,"buildNativeClass")});var UQe,Z9,mE,eK=g(()=>{UQe=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;UQe[t]=e>>>0}Z9=4294967295,mE=class{static{i(this,"Crc32Js")}digestLength=4;checksum=Z9;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^UQe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Z9)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Z9}}});function TOt(t){return class{static{i(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var tK,qQe,fh,$Qe=g(()=>{tK=R(require("node:zlib"));eK();qQe=typeof tK.crc32=="function"?tK.crc32:void 0,fh=qQe?TOt(qQe):mE;i(TOt,"buildNativeClass")});var kn,GQe,POt,$u,HQe,_Ot,Ek=g(()=>{xe();kn=64,GQe=32,POt=2**53-1,$u=class t{static{i(this,"Sha256Js")}digestLength=GQe;state=Int32Array.from(HQe);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(e){if(e){let r=t.normalizeKey(e);this.inner=new t,this.outer=new t;let{inner:n,outer:s}=this,o=new Uint8Array(kn*2);for(let a=0;a<kn;++a)o[a]=54^r[a],o[a+kn]=92^r[a];n.update(o.subarray(0,kn)),s.update(o.subarray(kn))}}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(e);return}let r=bs(e),n=0,{byteLength:s}=r;if(this.bytesHashed+=s,this.bytesHashed*8>POt)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=r[n++],s--,this.bufferLength===kn&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:e,outer:r}=this;if(e&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=e.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(HQe),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let e=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,s=this.bytesHashed*8,o=new DataView(r.buffer,r.byteOffset,r.byteLength);if(o.setUint8(n++,128),(n-1)%kn>=kn-8){for(let c=n;c<kn;++c)o.setUint8(c,0);this.hashBufferWith(e,r),n=0}for(let c=n;c<kn-8;++c)o.setUint8(c,0);o.setUint32(kn-8,Math.floor(s/4294967296),!1),o.setUint32(kn-4,s,!1),this.hashBufferWith(e,r);let a=new Uint8Array(GQe);for(let c=0;c<8;++c)a[c*4]=e[c]>>>24&255,a[c*4+1]=e[c]>>>16&255,a[c*4+2]=e[c]>>>8&255,a[c*4+3]=e[c]>>>0&255;return a}static normalizeKey(e){let r=bs(e);if(r.byteLength>kn){let n=new t;n.update(r);let s=n.digestSync(),o=new Uint8Array(kn);return o.set(s),o}if(r.byteLength<kn){let n=new Uint8Array(kn);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(e,r){let n=this.w??=new Int32Array(64),s=e[0],o=e[1],a=e[2],c=e[3],l=e[4],u=e[5],d=e[6],p=e[7];for(let f=0;f<kn;++f){if(f<16)n[f]=(r[f*4]&255)<<24|(r[f*4+1]&255)<<16|(r[f*4+2]&255)<<8|r[f*4+3]&255;else{let A=n[f-2],y=(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10;A=n[f-15];let E=(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3;n[f]=(y+n[f-7]|0)+(E+n[f-16]|0)}let m=(((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&u^~l&d)|0)+(p+(_Ot[f]+n[f]|0)|0)|0,h=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&o^s&a^o&a)|0;p=d,d=u,u=l,l=c+m|0,c=a,a=o,o=s,s=m+h|0}e[0]+=s,e[1]+=o,e[2]+=a,e[3]+=c,e[4]+=l,e[5]+=u,e[6]+=d,e[7]+=p}},HQe=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_Ot=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});function QOt(){return class{static{i(this,"Sha256Node")}digestLength=32;secret;hash;isHmac;finished=!1;constructor(e){this.secret=e,this.isHmac=!!e,this.hash=this.createHash()}update(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(e)}async digest(){let e;return this.isHmac?(this.finished=!0,e=this.hash.digest()):e=this.hash.copy().digest(),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?(0,Zx.createHmac)("sha256",DOt(this.secret)):(0,Zx.createHash)("sha256")}}}function DOt(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var Zx,vOt,va,zQe=g(()=>{Zx=require("node:crypto");Ek();vOt=(()=>{try{return(0,Zx.createHash)("sha256"),!0}catch{return!1}})(),va=vOt?QOt():$u;i(QOt,"buildNativeClass");i(DOt,"toBuffer")});var kOt,OOt,LOt,Ck,MOt,Ik,VQe=g(()=>{xe();Ek();({digest:kOt,sign:OOt,importKey:LOt}=globalThis?.crypto?.subtle??{}),Ck=typeof kOt=="function"&&typeof OOt=="function"&&typeof LOt=="function"?globalThis.crypto.subtle:void 0,MOt=8*1024*1024,Ik=class{static{i(this,"Sha256WebCrypto")}digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=bs(e))}update(e){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(e);return}this.pending.push(e.slice()),this.pendingBytes+=e.byteLength,this.pendingBytes>=MOt&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let e=dl(this.pending);if(Ck){if(this.secret){this.finished=!0;let s=await Ck.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=await Ck.sign("HMAC",s,e);return new Uint8Array(o)}let n=await Ck.digest("SHA-256",e);return new Uint8Array(n)}let r=new $u(this.secret);return r.update(e),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let e=new $u(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var rK={};cr(rK,{Crc32:()=>fh,Crc32Js:()=>mE,Crc32Node:()=>fh,Md5:()=>X9,Md5Js:()=>fE,Md5Node:()=>X9,Sha256:()=>va,Sha256Js:()=>$u,Sha256Node:()=>va,Sha256WebCrypto:()=>Ik,blobHasher:()=>PQe,blobReader:()=>gk,fileStreamHasher:()=>DQe,readableStreamHasher:()=>OQe});var Gu=g(()=>{_Qe();kQe();LQe();K9();FQe();eK();$Qe();Ek();zQe();VQe();Y9()});function WQe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var hp,nK=g(()=>{xe();hp=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&WQe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&WQe(e),parseInt(Fi(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(WQe,"negate")});var hE,YQe,JQe,FOt,UOt,qOt,$Ot,GOt,HOt,zOt,VOt,WOt,Sk,sK=g(()=>{ve();xe();nK();hE=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o in e){if(!X(e,o))continue;let a=this.fromUtf8(o);if(a.byteLength>255)throw new Error(`@smithy/core/event-streams - header name exceeds 255 bytes: ${a.byteLength}`);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":if(e.value.byteLength>Sk)throw new Error(`@smithy/core/event-streams - header value (binary) exceeds ${Sk} bytes: ${e.value.byteLength}`);let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=this.fromUtf8(e.value);if(c.byteLength>Sk)throw new Error(`@smithy/core/event-streams - header value (string) exceeds ${Sk} bytes: ${c.byteLength}`);let l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(hp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!WOt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(ND(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n<e.byteLength;){let s=e.getUint8(n++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,s));switch(n+=s,e.getUint8(n++)){case 0:r[o]={type:JQe,value:!0};break;case 1:r[o]={type:JQe,value:!1};break;case 2:r[o]={type:FOt,value:e.getInt8(n++)};break;case 3:r[o]={type:UOt,value:e.getInt16(n,!1)},n+=2;break;case 4:r[o]={type:qOt,value:e.getInt32(n,!1)},n+=4;break;case 5:r[o]={type:$Ot,value:new hp(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let a=e.getUint16(n,!1);n+=2,r[o]={type:GOt,value:new Uint8Array(e.buffer,e.byteOffset+n,a)},n+=a;break;case 7:let c=e.getUint16(n,!1);n+=2,r[o]={type:HOt,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,c))},n+=c;break;case 8:r[o]={type:zOt,value:new Date(new hp(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let l=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[o]={type:VOt,value:`${Fi(l.subarray(0,4))}-${Fi(l.subarray(4,6))}-${Fi(l.subarray(6,8))}-${Fi(l.subarray(8,10))}-${Fi(l.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(YQe||(YQe={}));JQe="boolean",FOt="byte",UOt="short",qOt="integer",$Ot="long",GOt="binary",HOt="string",zOt="timestamp",VOt="uuid",WOt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Sk=32767});function KQe({byteLength:t,byteOffset:e,buffer:r}){if(t<YOt)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),s=n.getUint32(0,!1);if(t!==s)throw new Error("Reported message length does not match received message length");let o=n.getUint32(jQe,!1),a=n.getUint32(Ap,!1),c=n.getUint32(t-mh,!1),l=new fh;if(l.update(new Uint8Array(r,e,Ap)),a!==l.digestSync())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${l.digestSync()})`);if(l.update(new Uint8Array(r,e+Ap,t-(Ap+mh))),c!==l.digestSync())throw new Error(`The message checksum (${l.digestSync()}) did not match the expected value of ${c}`);return{headers:new DataView(r,e+Ap+mh,o),body:new Uint8Array(r,e+Ap+mh+o,s-o-(Ap+mh+mh))}}var jQe,Ap,mh,YOt,XQe=g(()=>{Gu();jQe=4,Ap=jQe*2,mh=4,YOt=Ap+mh*2;i(KQe,"splitMessage")});var AE,oK=g(()=>{Gu();sK();XQe();AE=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new hE(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),s=n.byteLength+r.byteLength+16,o=new Uint8Array(s),a=new DataView(o.buffer,o.byteOffset,o.byteLength),c=new fh;return a.setUint32(0,s,!1),a.setUint32(4,n.byteLength,!1),c.update(o.subarray(0,8)),a.setUint32(8,c.digestSync(),!1),o.set(n,12),o.set(r,n.byteLength+12),c.update(o.subarray(8,s-4)),a.setUint32(s-4,c.digestSync(),!1),o}decode(e){let{headers:r,body:n}=KQe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var gE,iK=g(()=>{gE=class{static{i(this,"MessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var yE,aK=g(()=>{yE=class{static{i(this,"MessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var EE,cK=g(()=>{EE=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var CE,lK=g(()=>{CE=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function wk(t){let e=0,r=0,n=null,s=null,o=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,n=new Uint8Array(c),new DataView(n.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await c.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=l.length,p=0;for(;p<d;){if(!n){let m=d-p;s||(s=new Uint8Array(4));let h=Math.min(4-r,m);if(s.set(l.slice(p,p+h),r),r+=h,p+=h,r<4)break;o(new DataView(s.buffer).getUint32(0,!1)),s=null}let f=Math.min(e-r,d-p);n.set(l.slice(p,p+f),r),r+=f,p+=f,e&&e===r&&(yield n,n=null,e=0,r=0)}}},"iterator");return{[Symbol.asyncIterator]:a}}var uK=g(()=>{i(wk,"getChunkedStream")});function ZQe(t,e){let r=eb(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let s=e.eventStreamCodec.decode(n),o=await r(s);o!==void 0&&(yield o)}}}}function eb(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=new Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,o={[s]:r},a=await t(o);if(a.$unknown){let c=new Error(e(r.body));throw c.name=s,c}throw a[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},o=await t(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var dK=g(()=>{i(ZQe,"getUnmarshalledStream");i(eb,"getMessageUnmarshaller")});var hh,eDe,pK=g(()=>{oK();iK();aK();cK();lK();uK();dK();hh=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new AE(e,r),this.utfEncoder=e}deserialize(e,r){let n=wk(e);return new EE({messageStream:new gE({inputStream:n,decoder:this.eventStreamCodec}),deserializer:eb(r,this.utfEncoder)})}serialize(e,r){return new yE({messageStream:new CE({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},eDe=i(t=>new hh(t),"eventStreamSerdeProvider")});async function*JOt(t){let e=!1,r=!1,n=new Array;for(t.on("error",s=>{if(e||(e=!0),s)throw s}),t.on("data",s=>{n.push(s)}),t.on("end",()=>{e=!0});!r;){let s=await new Promise(o=>setTimeout(()=>o(n.shift()),0));s&&(yield s),r=e&&n.length===0}}var tDe,tb,rDe,nDe=g(()=>{tDe=require("node:stream");pK();tb=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new hh({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:JOt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return tDe.Readable.from(this.universalMarshaller.serialize(e,r))}},rDe=i(t=>new tb(t),"eventStreamSerdeProvider");i(JOt,"readableToIterable")});var sDe,oDe,iDe=g(()=>{sDe=i(t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),"readableStreamToIterable"),oDe=i(t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await e.next();if(n)return r.close();r.enqueue(s)}})},"iterableToReadableStream")});var aDe,cDe=g(()=>{aDe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var xk,lDe=g(()=>{ve();He();xe();xk=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:s,defaultContentType:o,compositeErrorRegistry:a}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=s,this.defaultContentType=o,this.compositeErrorRegistry=a}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),c=r.getMemberSchema(a),l=this.serializer,u=this.defaultContentType,d=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(n){let f={":event-type":{type:"string",value:s??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};l.write(r,n);let m=l.flush();yield{[d]:!0,headers:f,body:m}}for await(let f of e)yield f}};return o.serialize(p,f=>{if(f[d])return{headers:f.headers,body:f.body};let m="";for(let x in f)if(X(f,x)&&x!=="__type"){m=x;break}let{additionalHeaders:h,body:A,eventType:y,explicitPayloadContentType:E}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:E??u},...h},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),l=r.getMemberSchema(a).getMemberSchemas(),u=Symbol("initialResponseMarker"),d=o.deserialize(e.body,async m=>{let h="";for(let y in m)if(X(m,y)&&y!=="__type"){h=y;break}let A=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,A);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},I=!1;for(let[x,b]of y.structIterator()){let{eventHeader:N,eventPayload:v}=b.getMergedTraits();if(I=I||!!(N||v),v)b.isBlobSchema()?E[x]=A:b.isStringSchema()?E[x]=(this.serdeContext?.utf8Encoder??qt)(A):b.isStructSchema()&&(E[x]=await this.deserializer.read(b,A));else if(N){let _=m[h].headers[x]?.value;_!=null&&(b.isNumericSchema()?_&&typeof _=="object"&&"bytes"in _?E[x]=BigInt(_.toString()):E[x]=Number(_):E[x]=_)}}return{[h]:await this.readEventMember(y,A,I,E)}}return{[h]:await this.deserializer.read(y,A)}}else return{$unknown:m}}),p=d[Symbol.asyncIterator](),f=await p.next();if(f.done)return d;if(f.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in f.value)X(f.value,m)&&(n[m]=f.value[m])}return{async*[Symbol.asyncIterator](){for(f?.value?.[u]||(yield f.value);;){let{done:m,value:h}=await p.next();if(m)break;yield h}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=yt.for(l);this.compositeErrorRegistry?.copyFrom(u),o=(this.compositeErrorRegistry??u)?.getErrorCtor(a)}let c=n?s:r.byteLength===0?{}:await this.deserializer.read(e,r);if(o){let l=c.message??c.Message??"Unknown",u={},d=e.getMergedTraits().error;return d&&(u.$fault=d),Object.assign(new o({}),u,{message:l},c)}return c}writeEventBody(e,r,n){let s=this.serializer,o=e,a=null,c,l=r.getSchema()[4].includes(e),u={};if(l){let f=r.getMemberSchema(e);if(f.isStructSchema()){for(let[m,h]of f.structIterator()){let{eventHeader:A,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(A){let E=n[e][m],I="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?I="integer":I="long":h.isTimestampSchema()?I="timestamp":h.isStringSchema()?I="string":h.isBooleanSchema()&&(I="boolean"),E!=null&&(u[m]={type:I,value:E},delete n[e][m])}}if(a!==null){let m=f.getMemberSchema(a);m.isBlobSchema()?c="application/octet-stream":m.isStringSchema()&&(c="text/plain"),s.write(m,n[e][a])}else s.write(f,n[e])}else if(f.isUnitSchema())s.write(f,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[f,m]=n[e];o=f,s.write(15,m)}let d=s.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??Zr)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var uDe={};cr(uDe,{EventStreamCodec:()=>AE,EventStreamMarshaller:()=>tb,EventStreamSerde:()=>xk,HeaderMarshaller:()=>hE,Int64:()=>hp,MessageDecoderStream:()=>gE,MessageEncoderStream:()=>yE,SmithyMessageDecoderStream:()=>EE,SmithyMessageEncoderStream:()=>CE,UniversalEventStreamMarshaller:()=>hh,eventStreamSerdeProvider:()=>rDe,getChunkedStream:()=>wk,getMessageUnmarshaller:()=>eb,getUnmarshalledStream:()=>ZQe,iterableToReadableStream:()=>oDe,readableStreamToIterable:()=>sDe,resolveEventStreamSerdeConfig:()=>aDe,universalEventStreamSerdeProvider:()=>eDe});var dDe=g(()=>{oK();sK();nK();iK();aK();cK();lK();nDe();iDe();pK();uK();dK();cDe();lDe()});var gp,bk=g(()=>{ve();He();ve();dE();gp=class extends hn{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new yt(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Je}getResponseType(){return fn}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,s]of r.url.searchParams.entries())e.query[n]=s;if(r.headers)for(let n in r.headers)X(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)X(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=O.of(r.input),o=Ra(r.traits??{});if(o.endpoint){let a=o.endpoint?.[0];if(typeof a=="string"){for(let[c,l]of s.structIterator()){if(!l.getMergedTraits().hostLabel)continue;let u=n[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}if(e.hostname=a+e.hostname,!Rx(e.hostname))throw new Error(`[${e.hostname}] is not a valid hostname.`)}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}resolveError(e,r,n){let s=[-3,"","Error",0,[],[],0],o;for(let a of n)for(let c of r)try{c==="*"?o=a.getSchema(e):o=a.getSchema(c+"#"+e);let l=a.getErrorCtor(o);if(l)return[o,l,"modeled"];{let u=a.getBaseException();if(u){let d=a.getErrorCtor(u);if(d)return[o,d,"synthetic"]}}}catch{}for(let a of n){let c=a.getBaseException();if(c){let l=a.getErrorCtor(c);if(l)return[c,l,"synthetic"]}}return[s,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(dDe(),uDe)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,o){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var yp,pDe=g(()=>{ve();He();xe();ve();bk();uE();Ak();yp=class extends gp{static{i(this,"HttpBindingProtocol")}async serializeRequest(e,r,n){let s=r&&typeof r=="object"?r:{},o=this.serializer,a={},c={},l=await n.endpoint(),u=O.of(e?.input),d=[],p=[],f=!1,m,h=new Je({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,s);let A=Ra(e.traits);if(A.http){h.method=A.http[0];let[y,E]=A.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let I=new URLSearchParams(E??"");for(let[x,b]of I)a[x]=b}}for(let[A,y]of u.structIterator()){let E=y.getMergedTraits()??{},I=s[A];if(I==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${A}+}`)||h.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[A]&&(m=await this.serializeEventStream({eventStream:s[A],requestSchema:u})):m=I:(o.write(y,I),m=o.flush());else if(E.httpLabel){o.write(y,I);let x=o.flush();h.path.includes(`{${A}+}`)?h.path=h.path.replace(`{${A}+}`,x.split("/").map(_a).join("/")):h.path.includes(`{${A}}`)&&(h.path=h.path.replace(`{${A}}`,_a(x)))}else if(E.httpHeader)o.write(y,I),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let x in I){if(!X(I,x))continue;let b=I[x],N=E.httpPrefixHeaders+x;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,I,a):(f=!0,d.push(A),p.push(y))}if(f&&s){let[A,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],I=[3,A,y,u.getMergedTraits(),d,p,void 0];E?I[6]=E:I.pop(),o.write(I,s),m=o.flush()}return h.headers=c,h.query=a,h.body=m,h}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(X(r,a)&&!(a in n)){let c=r[a],l=e.getValueSchema();Object.assign(l.getMergedTraits(),{...o,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(l,c,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,c=[];for(let l of r){s.write([e.getValueSchema(),o],l);let u=s.flush();(a||u!==void 0)&&c.push(u)}n[o.httpQuery]=c}else s.write([e,o],r),n[o.httpQuery]=s.flush()}async deserializeResponse(e,r,n){let s=this.deserializer,o=O.of(e.output),a={};if(n.statusCode>=300){let l=await tn(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in n.headers){if(!X(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=await this.deserializeHttpMessage(o,r,n,a);if(c.length){let l=await tn(n.body,r);if(l.byteLength>0){let u=await s.read(o,l);for(let d of c)u[d]!=null&&(a[d]=u[d])}}else c.discardResponseBody&&await tn(n.body,r);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,r,n,s,o){let a;s instanceof Set?a=o:a=s;let c=!0,l=this.deserializer,u=O.of(e),d=[];for(let[p,f]of u.structIterator()){let m=f.getMemberTraits();if(m.httpPayload){if(c=!1,f.isStreaming())f.isStructSchema()?a[p]=await this.deserializeEventStream({response:n,responseSchema:u}):a[p]=hk(n.body);else if(n.body){let A=await tn(n.body,r);A.byteLength>0&&(a[p]=await l.read(f,A))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),A=n.headers[h];if(A!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=BD(A,",",2):E=Zy(A);let I=[];for(let x of E)I.push(await l.read(y,x.trim()));a[p]=I}else a[p]=await l.read(f,A)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(X(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let A=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,A)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var El,fK=g(()=>{ve();He();ve();bk();uE();El=class extends gp{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=O.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Je({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(f,c),this.setHostPrefix(f,e,p)),p){let m=l.getEventStreamMember();if(m){if(p[m]){let h={};for(let[A]of l.structIterator())A!==m&&p[A]!=null&&(h[A]=p[A]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:h})}}else s.write(u,p),d=s.flush()}return f.headers=Object.assign(f.headers,a),f.query=o,f.body=d,f.method="POST",f}async deserializeResponse(e,r,n){let s=this.deserializer,o=O.of(e.output),a={};if(this.isErrorResponse(n.statusCode)){let l=await tn(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let l in n.headers){if(!X(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{let l=await tn(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}isErrorResponse(e){return e>=300}}});var Ep,mK=g(()=>{He();ve();fK();Ep=class extends El{static{i(this,"AbstractRpcV2Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":this.getSmithyProtocolHeaderValue(),accept:this.getDefaultContentType()}),Li(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):this.applyEmptyBody(s);let{service:o,operation:a}=vt(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}isErrorResponse(e){return e!==200}}});var Bk,hK=g(()=>{Ak();Bk=i((t,e,r,n,s,o)=>{if(e!=null&&e[r]!==void 0){let a=n();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(s,o?a.split("/").map(c=>_a(c)).join("/"):_a(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function Rk(t,e){return new rb(t,e)}var rb,fDe=g(()=>{ve();hK();i(Rk,"requestBuilder");rb=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:s}=await this.context.endpoint();this.path=s;for(let o of this.resolvePathStack)o(this.path);return new Je({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,s){return this.resolvePathStack.push(o=>{this.path=Bk(o,this.input,e,r,n,s)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function An(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:o}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:o||r?5:void 0:void 0)??e.timestampFormat.default}var Cp=g(()=>{i(An,"determineTimestampFormat")});var Ip,AK=g(()=>{He();xe();dE();Cp();Ip=class extends hn{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=O.of(e);if(n.isListSchema())return Zy(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Er)(r);if(n.isTimestampSchema())switch(An(n,this.settings)){case 5:return xD(r);case 6:return bD(r);case 7:return dp(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let s=n.getMergedTraits().mediaType,o=r;if(s)return n.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(s==="application/json"||s.endsWith("+json"))&&(o=Ur.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new je(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??qt)((this.serdeContext?.base64Decoder??Er)(e))}}});var Sp,mDe=g(()=>{He();xe();dE();AK();Sp=class extends hn{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new Ip(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=O.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??qt;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Zr;return typeof r=="string"?a(r):r}else if(n.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(n,r)}}});var IE,gK=g(()=>{He();xe();dE();Cp();IE=class extends hn{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=O.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(An(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Vo(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??Qt)(r);return}if(n.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([n.getValueSchema(),n.getMergedTraits()],c);let l=this.flush(),u=n.getValueSchema().isTimestampSchema()?l:wD(l);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let s=n.getMergedTraits().mediaType,o=r;if(s&&((s==="application/json"||s.endsWith("+json"))&&(o=Ur.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Qt)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=Ko():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var wp,hDe=g(()=>{He();gK();wp=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new IE(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=O.of(e),s=n.getMergedTraits();if(s.httpHeader||s.httpLabel||s.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var ADe,Nk,gDe=g(()=>{ADe=R(Xn()),Nk=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=ADe.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var Tk,yDe=g(()=>{Tk=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var Cl,Il,EDe=g(()=>{Cl=i(t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),t.defaultSocketTimeout&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("@smithy/defaultSocketTimeout"),t.defaultSocketTimeout),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),Il=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function yK(t){return e=>async r=>{let n=r.request;if(Je.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(CDe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[CDe]:String(a)})}catch{}}return e({...r,request:n})}}var CDe,EK,Sl,IDe=g(()=>{ve();CDe="content-length";i(yK,"contentLengthMiddleware");EK={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Sl=i(t=>({applyToStack:i(e=>{e.add(yK(t.bodyLengthChecker),EK)},"applyToStack")}),"getContentLengthPlugin")});var xp,jOt,Pk=g(()=>{xp=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,jOt),"escapeUri"),jOt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var SDe,wDe=g(()=>{Pk();SDe=i(t=>t.split("/").map(xp).join("/"),"escapeUriPath")});function xDe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=xp(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${xp(n[s])}`);else{let s=r;(n||typeof n=="string")&&(s+=`=${xp(n)}`),e.push(s)}}return e.join("&")}var bDe=g(()=>{Pk();i(xDe,"buildQueryString")});var so,Ah=g(()=>{so=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var SE,CK=g(()=>{SE=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function _k(){if(nb===void 0)try{if(typeof Buffer!="function")nb=!1;else{let t=JSON.parse(Buffer.from([123,125]));nb=t!==null&&typeof t=="object"}}catch{nb=!1}return nb}var nb,IK=g(()=>{i(_k,"detectBufferParsing")});function wE(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?XOt(n,e)?e:new je(n,"bigDecimal"):KOt(n)?new je(n,"bigDecimal"):/[eE]/.test(n)?ZOt(n):BigInt(n)}return e}function KOt(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function XOt(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return SK(t)===SK(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===SK(n):!1}function SK(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),s;if(n===-1)s=r;else{let o=parseInt(r.slice(n+1),10),a=r.slice(0,n),c=a.indexOf("."),l,u;c===-1?(l=a,u=a.length):(l=a.slice(0,c)+a.slice(c+1),u=c),l=l.replace(/0+$/,"")||"0";let d=u+o;l==="0"?s="0":d<=0?s="0."+"0".repeat(-d)+l:d>=l.length?s=l+"0".repeat(d-l.length):s=l.slice(0,d)+"."+l.slice(d)}return s.includes(".")&&(s=s.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+s}function ZOt(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),s=t.slice(n?1:0,e),o=s.indexOf("."),a,c;if(o===-1)a=s,c=r;else{a=s.slice(0,o)+s.slice(o+1);let u=s.length-o-1;c=r-u}a=a.replace(/0+$/,"")||"0";let l=BigInt(a)*10n**BigInt(c+(s.replace(".","").length-a.length));return n?-l:l}var vk=g(()=>{xe();i(wE,"jsonReviver");i(KOt,"isFractionalBigNumeric");i(XOt,"isRepresentable");i(SK,"expandToDecimal");i(ZOt,"expandExponentToBigInt")});function xE(t){let e=O.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(wK in r)return r[wK];let n=Qk(e,new Set);return r[wK]=n,n}return Qk(e,new Set)}function Qk(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(Qk(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(Qk(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var wK,Dk=g(()=>{He();wK=Symbol.for("@aws-sdk/reviver");i(xE,"needsReviver");i(Qk,"_check")});var BDe,RDe=g(()=>{uE();xe();BDe=i((t,e)=>tn(t,e).then(r=>(e?.utf8Encoder??qt)(r)),"collectBodyString")});async function Hu(t,e,r){let n;if(_k()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await tn(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await BDe(t,e)),n.length===0)return{};let s=r&&xE(r)?wE:void 0;try{return JSON.parse(n,s)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),o}}var kk,NDe,xK,bE,BE,RE,TDe,sb=g(()=>{uE();RDe();IK();vk();Dk();i(Hu,"parseJsonBody");kk=i(async(t,e)=>{let r=await Hu(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),NDe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),xK=i(t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),bE=i((t,e)=>TDe(t,e,["header","code","type"]),"loadRestJsonErrorCode"),BE=i((t,e,r=!1)=>TDe(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),RE=i((t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},"loadSmithyRpcV2JsonErrorCode"),TDe=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=NDe(t??{},"x-amzn-errortype");if(s!==void 0)return xK(t[s]);break;case"code":let o=NDe(e??{},"code");if(o&&e[o]!==void 0)return xK(e[o]);break;case"type":if(e?.__type!==void 0)return xK(e.__type);break}},"loadErrorCode")});var bp,bK=g(()=>{Cp();He();xe();Ah();CK();IK();vk();Dk();sb();ve();bp=class extends so{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=xE(e)?wE:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&_k()){if(r.byteLength===0)return{};let o=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);s=JSON.parse(o,n)}else s=await Hu(r,this.serdeContext,e);return this._read(e,s)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=O.of(e);if(n){if(s.isStructSchema())return this._readStruct(s,r);if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema();if(this.needsTransform(a))for(let c=0;c<r.length;++c)r[c]=this._read(a,r[c]);return r}if(s.isMapSchema()){let a=s.getValueSchema(),c=r;if(this.needsTransform(a))for(let l in c)X(c,l)&&(l==="__proto__"&&Gi(c),c[l]=this._read(a,c[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Er(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Ur.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(An(s,this.settings)){case 5:return Ky(r);case 6:return up(r);case 7:return Xy(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof je)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new je(a.string,a.type):new je(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema()&&n)if(Array.isArray(r))for(let a=0;a<r.length;++a){let c=r[a];c instanceof je||(r[a]=this._read(s,c))}else{let a=r;for(let c in a){if(!X(a,c))continue;c==="__proto__"&&Gi(a);let l=a[c];l instanceof je||(a[c]=this._read(s,l))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),s={},o,a=typeof r.__type=="string",{jsonName:c}=this.settings;c&&a&&(o={});let l;n&&(l=new SE(r,s));for(let[u,d]of e.structIterator()){let p=u;c&&(p=d.getMergedTraits().jsonName??p,a&&(o[p]=u)),n&&l.mark(p),r[p]!=null&&(s[u]=this._read(d,r[p]))}if(n)l.writeUnknown();else if(a)for(let u in r){if(!X(r,u))continue;let d=r[u],p=c?o[u]??u:u;p in s||(s[p]=d)}return s}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var Ok,PDe,_De=g(()=>{xe();Ok=class t extends Uint8Array{static{i(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>PDe+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),PDe=e),this.string=qt(this)}return this.string}},PDe=0});function BK(t){return Ok.allocUnsafe(t)}var Lk,vDe,QDe,eLt,tLt,NE,Mk,Fk,DDe,rLt,nLt,sLt,wl,kDe,Bp,RK=g(()=>{Cp();He();xe();Ah();ve();_De();Lk=new TextEncoder,vDe=123,QDe=125,eLt=91,tLt=93,NE=34,Mk=58,Fk=44,DDe=92,rLt=new Uint8Array([116,114,117,101]),nLt=new Uint8Array([102,97,108,115,101]),sLt=new Uint8Array([110,117,108,108]),wl=new Array(128).fill(null);wl[8]="b";wl[9]="t";wl[10]="n";wl[12]="f";wl[13]="r";wl[34]='"';wl[92]="\\";for(let t=0;t<32;t++)wl[t]===null&&(wl[t]="u00"+t.toString(16).padStart(2,"0"));kDe=2048;i(BK,"alloc");Bp=class t extends so{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=BK(kDe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=O.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=O.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let s=`"__type":"${n.getName(!0)??"Unknown"}",`,o=s.length;this.ensure(o),this.json.copyWithin(1+o,1,this.i),Lk.encodeInto(s,this.json.subarray(1)),this.i+=o}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=BK(kDe),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let s=n.length*2;for(;s<r+e;)s*=2;let o=BK(s);o.set(this.json),this.json=o}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:s}=this;for(let o=0;o<r;++o)s[n]=e.charCodeAt(o),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:s}=this;n[s++]=NE;for(let o=0;o<r;++o)n[s++]=e.charCodeAt(o);n[s++]=NE,this.i=s}writeJsonString(e){let r=e.length;this.ensure(r*3+2),this.json[this.i++]=NE;for(let n=0;n<r;++n){let s=e.charCodeAt(n);if(s>34&&s<92)this.json[this.i++]=s;else if(s<128){let o=wl[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=DDe;for(let a=0;a<o.length;a++)this.json[this.i++]=o.charCodeAt(a)}else this.json[this.i++]=s}else if(s>=55296&&s<=56319){let o=n+1<r?e.charCodeAt(n+1):0;if(o>=56320&&o<=57343){this.ensure(4);let{written:a}=Lk.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=a,++n}else this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s)}else if(s>=56320&&s<=57343)this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s);else{let{i:o,json:a}=this;s<2048?(a[o++]=192|s>>6,a[o++]=128|s&63):(a[o++]=224|s>>12,a[o++]=128|s>>6&63,a[o++]=128|s&63),this.i=o}}this.json[this.i++]=NE}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=DDe,r[n++]=117;let s=e.toString(16).padStart(4,"0");for(let o=0;o<4;++o)r[n++]=s.charCodeAt(o);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,s=t.B64,o=this.i;n[o++]=NE;let a=e.length,c=a%3,l=a-c;for(let u=0;u<l;u+=3){let d=e[u],p=e[u+1],f=e[u+2];n[o++]=s[d>>2],n[o++]=s[(d&3)<<4|p>>4],n[o++]=s[(p&15)<<2|f>>6],n[o++]=s[f&63]}if(c===2){let u=e[l],d=e[l+1];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4|d>>4],n[o++]=s[(d&15)<<2],n[o++]=61}else if(c===1){let u=e[l];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4],n[o++]=61,n[o++]=61}n[o++]=NE,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&O.of(e).isIdempotencyToken()){this.writeAsciiQuoted(Ko());return}return}this.ensure(4),this.json.set(sLt,this.i),this.i+=4;return}let s=O.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Ur.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof je?r.string:String(r);this.writeAsciiQuoted(a);return}if(o){if(s.isStructSchema()){this.writeStruct(s,r);return}if(Array.isArray(r)&&(s.isListSchema()||s.isDocumentSchema())){this.writeList(s,r,s.isDocumentSchema());return}if(s.isMapSchema()){this.writeMap(s,r,!1);return}if(r instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema())){this.writeTimestamp(s,r);return}if(r instanceof je){this.writeAscii(r.string);return}if(s.isDocumentSchema()){Array.isArray(r)?this.writeList(s,r,!0):this.writeMap(s,r,!0);return}let a=JSON.stringify(r);this.writeAscii(a);return}if(typeof r=="string"){if(s.isBlobSchema()){let a=(this.serdeContext?.base64Encoder??Qt)(r);this.writeAsciiQuoted(a);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let a=String(r);this.writeAscii(a);return}if(typeof r=="boolean"){this.ensure(5);let{i:a,json:c}=this;r?(c.set(rLt,a),a+=4):(c.set(nLt,a),a+=5),this.i=a;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=vDe;let n=!1,s=typeof r.__type=="string",o;s&&(o=new Set);for(let[a,c]of e.structIterator()){let l=r[a];if(l==null&&!c.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=Fk),n=!0;let u=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;o&&(o.add(a),o.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=Mk,this.writeValue(c,l,e)}if(!n&&e.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a;this.writeAsciiQuoted(c),this.ensure(1),this.json[this.i++]=Mk,this.writeValue(15,l,e)}}else if(s)for(let a in r){if(o.has(a))continue;o.add(a);let c=r[a];n&&(this.ensure(1),this.json[this.i++]=Fk),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=Mk,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=QDe}writeList(e,r,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n&&(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema())){let c=!1;for(let u=0;u<r.length;++u){let d=r[u];if(Number.isNaN(d)||d===1/0||d===-1/0||d==null&&!s){c=!0;break}}let l;if(!c)l=JSON.stringify(r);else{let u=[];for(let d=0;d<r.length;++d){let p=r[d];p==null&&!s||(Number.isNaN(p)||p===1/0||p===-1/0?u.push(String(p)):u.push(p))}l=JSON.stringify(u)}this.ensure(l.length*3),this.i+=Lk.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=eLt;let a=!1;for(let c=0;c<r.length;++c){let l=r[c];(n?l===void 0:l==null&&!s)||(a&&(this.ensure(1),this.json[this.i++]=Fk),this.writeValue(o,l,void 0),a=!0)}this.ensure(1),this.json[this.i++]=tLt}writeMap(e,r,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n&&(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema())){let c;for(let u in r){if(!X(r,u))continue;let d=r[u];Number.isNaN(d)||d===1/0||d===-1/0?((c??={})[u]=d,r[u]=String(d)):d===null&&!s&&((c??={})[u]=null,r[u]=void 0)}let l=JSON.stringify(r);c&&Object.assign(r,c),this.ensure(l.length*3),this.i+=Lk.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=vDe;let a=!0;for(let c in r){if(!X(r,c))continue;let l=r[c];(n?l===void 0:l==null&&!s)||(a||(this.ensure(1),this.json[this.i++]=Fk),a=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=Mk,this.writeValue(o,l,void 0))}this.ensure(1),this.json[this.i++]=QDe}writeTimestamp(e,r){switch(An(e,this.settings)){case 5:{let s=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(Vo(r));return}case 7:{let s=String(r.getTime()/1e3);this.writeAscii(s);return}default:{let s=String(r.getTime()/1e3);this.writeAscii(s);return}}}}});var Hi,NK=g(()=>{Ah();bK();RK();Hi=class extends so{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Bp(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new bp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var TE,ODe=g(()=>{mK();He();NK();sb();TE=class extends Ep{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new Hi({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-json"}applyEmptyBody(e){e.body||(e.body="{}")}async handleError(e,r,n,s,o){let a=RE(n,s)??"Unknown",c={$metadata:o,$fault:n.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;a.includes("#")&&([l]=a.split("#"));let u=this.compositeErrorRegistry,d=yt.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=yt.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(x);let b=u.getBaseException();if(b){let N=u.getErrorCtor(b);throw Object.assign(new N({name:a}),c,s)}throw Object.assign(new Error(a),c,s)}let f=O.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",A=new m({}),y={},E=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(y[I]=E.readObject(x,s[I]));throw Object.assign(A,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var Rp,TK=g(()=>{Cp();He();xe();xe();ve();Ah();CK();vk();Dk();sb();Rp=class extends so{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=xE(e)?wE:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Hu(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=O.of(e);if(n){if(s.isStructSchema()){let a=r,c=s.isUnionSchema(),l={},u,{jsonName:d}=this.settings;d&&(u={});let p;c&&(p=new SE(a,l));for(let[f,m]of s.structIterator()){let h=f;d&&(h=m.getMergedTraits().jsonName??h,u[h]=f),c&&p.mark(h),a[h]!=null&&(l[f]=this._read(m,a[h]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!X(a,f))continue;let m=a[f],h=d?u[f]??f:f;h in l||(l[h]=m)}return l}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[];for(let l of r)c.push(this._read(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={};for(let l in r)X(r,l)&&(l==="__proto__"&&Gi(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Er(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Ur.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(An(s,this.settings)){case 5:return Ky(r);case 6:return up(r);case 7:return Xy(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof je)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new je(a.string,a.type):new je(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;c==="__proto__"&&Gi(a);let l=r[c];l instanceof je?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var LDe,Uk,MDe=g(()=>{xe();LDe="\u039D",Uk=class{static{i(this,"JsonReplacer")}values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof je){let n=`${LDe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${LDe+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var Np,PK=g(()=>{Cp();He();xe();Ah();MDe();ve();Np=class extends so{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=O.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new Uk;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=O.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=O.of(e);if(s){if(o.isStructSchema()){let a=r,c={},{jsonName:l}=this.settings,u;l&&(u={});let d=0;for(let[p,f]of o.structIterator()){let m=this._write(f,a[p],o);if(m!==void 0){let h=p;l&&(h=f.getMergedTraits().jsonName??p,u[p]=h),c[h]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&Gi(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!X(a,p))continue;let f=a[p],m=l?u[p]??p:p;m in c||(c[m]=this._write(15,f))}return c}if(Array.isArray(r)&&o.isListSchema()){let a=o.getValueSchema(),c=[],l=!!o.getMergedTraits().sparse;for(let u of r)(l||u!=null)&&c.push(this._write(a,u));return c}if(o.isMapSchema()){let a=o.getValueSchema(),c={},l=!!o.getMergedTraits().sparse;for(let u in r){if(!X(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Gi(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Qt)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(An(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Vo(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof je&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return Ko();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Ur.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Qt)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Qt)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;let l=r[c];c==="__proto__"&&Gi(a),l instanceof je?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var PE,FDe=g(()=>{Ah();TK();PK();PE=class extends so{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Np(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Rp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var gh={};cr(gh,{AbstractRpcV2Protocol:()=>Ep,Field:()=>Nk,Fields:()=>Tk,FromStringShapeDeserializer:()=>Ip,HttpBindingProtocol:()=>yp,HttpInterceptingShapeDeserializer:()=>Sp,HttpInterceptingShapeSerializer:()=>wp,HttpProtocol:()=>gp,HttpRequest:()=>Je,HttpResponse:()=>fn,JsonCodec:()=>PE,JsonCodec2:()=>Hi,JsonShapeDeserializer:()=>Rp,JsonShapeDeserializer2:()=>bp,JsonShapeSerializer:()=>Np,JsonShapeSerializer2:()=>Bp,RequestBuilder:()=>rb,RpcProtocol:()=>El,SerdeContext:()=>hn,SmithyRpcV2JsonProtocol:()=>TE,ToStringShapeSerializer:()=>IE,buildQueryString:()=>xDe,collectBody:()=>tn,contentLengthMiddleware:()=>yK,contentLengthMiddlewareOptions:()=>EK,determineTimestampFormat:()=>An,escapeUri:()=>xp,escapeUriPath:()=>SDe,extendedEncodeURIComponent:()=>_a,getContentLengthPlugin:()=>Sl,getHttpHandlerExtensionConfiguration:()=>Cl,isValidHostname:()=>Rx,loadJsonRpcErrorCode:()=>BE,loadRestJsonErrorCode:()=>bE,loadSmithyRpcV2JsonErrorCode:()=>RE,parseJsonBody:()=>Hu,parseJsonErrorBody:()=>kk,parseQueryString:()=>Nx,parseUrl:()=>Qn,requestBuilder:()=>Rk,resolveHttpHandlerRuntimeConfig:()=>Il,resolvedPath:()=>Bk});var Ne=g(()=>{uE();Ak();pDe();bk();fK();mK();fDe();hK();AK();mDe();hDe();gK();Cp();dE();gDe();yDe();ve();ve();ve();EDe();IDe();Pk();wDe();bDe();ve();ve();ODe();sb();FDe();PK();TK();NK();RK();bK()});var UDe,qDe,$De,GDe,HDe,zDe,VDe=g(()=>{UDe=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],qDe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],$De=["TimeoutError","RequestTimeout","RequestTimeoutException"],GDe=[500,502,503,504],HDe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],zDe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function QK(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var ob,qk,_K,vK,xl,Tp,$k,_E=g(()=>{VDe();ob=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),qk=i(t=>UDe.includes(t.name),"isClockSkewError"),_K=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),vK=i(t=>{let e=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return t&&t instanceof TypeError?e.has(t.message):!1},"isBrowserNetworkError"),xl=i(t=>t.$metadata?.httpStatusCode===429||qDe.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),Tp=i((t,e=0)=>t?.name!=="AbortError"&&(ob(t)||_K(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||$De.includes(t.name)||HDe.includes(t?.code||"")||zDe.includes(t?.code||"")||GDe.includes(t.$metadata?.httpStatusCode||0)||vK(t)||QK(t)||t.cause!==void 0&&e<=10&&Tp(t.cause,e+1)),"isTransientError"),$k=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Tp(t)}return!1},"isServerError");i(QK,"isNodeJsHttp2TransientError")});var Gk,ib,Hk,vE,DK,kK,zk,Pp,_p,ab=g(()=>{Gk=100,ib=2e4,Hk=500,vE=500,DK=5,kK=10,zk=1,Pp="amz-sdk-invocation-id",_p="amz-sdk-request"});function OK(t,e){if(fn.isInstance(t))for(let r in t.headers){if(!X(t.headers,r))continue;let n=r.toLowerCase();if(n==="retry-after"){let s=t.headers[r],o=NaN;if(s.endsWith("GMT"))try{o=(up(s).getTime()-Date.now())/1e3}catch(a){e?.trace?.("Failed to parse retry-after header"),e?.trace?.(a)}else s.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?o=Number(s.match(/ GMT, ([\d.]+)$/)?.[1]):s.match(/^((\d+)|(\d+\.\d+))$/)?o=Number(s):Date.parse(s)>=Date.now()&&(o=(Date.parse(s)-Date.now())/1e3);return isNaN(o)?void 0:new Date(Date.now()+o*1e3)}else if(n==="x-amz-retry-after"){let s=t.headers[r],o=Number(s);if(isNaN(o)){e?.trace?.(`Failed to parse x-amz-retry-after=${s}`);return}return new Date(Date.now()+o)}}}function WDe(t,e){return OK(t,e)}var LK=g(()=>{ve();Ne();xe();i(OK,"parseRetryAfterHeader");i(WDe,"getRetryAfterHint")});var Vk,MK=g(()=>{Vk=i(t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),"asSdkError")});function FK(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(iLt(o)){o=o;let c=await o.acquireInitialRetryToken((n.partition_id??"")+(n.__retryLongPoll?":longpoll":"")),l=new Error,u=0,d=0,{request:p}=s,f=Je.isInstance(p);for(f&&(p.headers[Pp]=lE());;)try{f&&(p.headers[_p]=`attempt=${u+1}; max=${a}`);let{response:m,output:h}=await r(s);return o.recordSuccess(c),h.$metadata.attempts=u+1,h.$metadata.totalRetryDelay=d,{response:m,output:h}}catch(m){let h=aLt(m,e.logger);if(l=Vk(m),f&&t(p))throw(n.logger instanceof ro?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),l;try{c=await o.refreshRetryTokenForRetry(c,h)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=u+1,l.$metadata.totalRetryDelay=d,l}u=c.getRetryCount();let A=c.getRetryDelay();d+=(c?.$retryLog?.acquisitionDelay??0)+A,A>0&&await oLt(A)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function YDe(t){let e=FK(t);return r=>({applyToStack:i(n=>{n.add(e(r),UK)},"applyToStack")})}var oLt,iLt,aLt,cLt,UK,qK=g(()=>{we();Ne();xe();_E();ab();LK();MK();i(FK,"bindRetryMiddleware");oLt=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),iLt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),aLt=i((t,e)=>{let r={error:t,errorType:cLt(t)},n=OK(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),cLt=i(t=>xl(t)?"THROTTLING":Tp(t)?"TRANSIENT":$k(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),UK={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i(YDe,"bindGetRetryPlugin")});var vp,Wk=g(()=>{_E();vp=class t{static{i(this,"DefaultRateLimiter")}static setTimeoutFn=i((e,r)=>setTimeout(e,r),"setTimeoutFn");beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7,this.minCapacity=e?.minCapacity??1,this.minFillRate=e?.minFillRate??.5,this.scaleConstant=e?.scaleConstant??.4,this.smooth=e?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(e){let r;this.updateMeasuredRate();let n=e;if(n?.errorType==="THROTTLING"||xl(n?.error??e)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let o=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(o)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(e){if(this.enabled){for(this.refillTokenBucket();e>this.availableTokens;){let r=(e-this.availableTokens)/this.fillRate*1e3;await new Promise(n=>t.setTimeoutFn(n,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-e}}refillTokenBucket(){let e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}let r=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=e}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}});var Dr,QE=g(()=>{Dr=class t{static{i(this,"Retry")}static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return t.v2026?50:100}static throttlingDelay(){return t.v2026?1e3:500}static cost(){return t.v2026?14:5}static throttlingCost(){return t.v2026?5:10}static modifiedCostType(){return t.v2026?"THROTTLING":"TRANSIENT"}}});var Yk,JDe=g(()=>{QE();Yk=class{static{i(this,"DefaultRetryBackoffStrategy")}x=Dr.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var cb,jDe=g(()=>{cb=class{static{i(this,"DefaultRetryToken")}delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,r,n,s){this.delay=e,this.count=r,this.cost=n,this.longPoll=s}getRetryCount(){return this.count}getRetryDelay(){return Math.min(2e4,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}});var gn,Qa,zi,yh=g(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(gn||(gn={}));Qa=3,zi=gn.STANDARD});var Jk,Da,lb=g(()=>{JDe();jDe();yh();QE();Jk={incompatible:1,attempts:2,capacity:3},Da=class{static{i(this,"StandardRetryStrategy")}mode=gn.STANDARD;retryBackoffStrategy;capacity=500;maxAttemptsProvider;baseDelay;constructor(e){typeof e=="number"?this.maxAttemptsProvider=async()=>e:typeof e=="function"?this.maxAttemptsProvider=e:e&&typeof e=="object"&&(this.maxAttemptsProvider=async()=>e.maxAttempts,this.baseDelay=e.baseDelay,this.retryBackoffStrategy=e.backoff),this.maxAttemptsProvider??=async()=>Qa,this.baseDelay??=Dr.delay(),this.retryBackoffStrategy??=new Yk}async acquireInitialRetryToken(e){return new cb(Dr.delay(),0,void 0,Dr.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,r){let n=await this.getMaxAttempts(),s=this.retryCode(e,r,n),o=s===0,a=e.isLongPoll?.();if(o||a){let c=r.errorType;this.retryBackoffStrategy.setDelayBase(c==="THROTTLING"?Dr.throttlingDelay():this.baseDelay);let l=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),u=l;if(r.retryAfterHint instanceof Date&&(u=Math.max(l,Math.min(r.retryAfterHint.getTime()-Date.now(),l+5e3))),o){let d=this.getCapacityCost(c);this.capacity-=d;let p=new cb(0,e.getRetryCount()+1,d,e.isLongPoll?.()??!1);return await new Promise(f=>setTimeout(f,u)),p.$retryLog.acquisitionDelay=u,p}else{let d=Dr.v2026&&s===Jk.capacity&&a?u:0;d>0&&await new Promise(p=>setTimeout(p,d))}}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.min(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Qa}`),Qa}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:Jk.incompatible,a=s<n?0:Jk.attempts,c=this.capacity>=this.getCapacityCost(r.errorType)?0:Jk.capacity;return o||a||c}getCapacityCost(e){return e===Dr.modifiedCostType()?Dr.throttlingCost():Dr.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var DE,$K=g(()=>{Wk();lb();yh();DE=class{static{i(this,"AdaptiveRetryStrategy")}mode=gn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new vp,this.standardRetryStrategy=r?new Da({maxAttempts:typeof e=="number"?e:3,...r}):new Da(e)}async acquireInitialRetryToken(e){let r=await this.standardRetryStrategy.acquireInitialRetryToken(e);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(e,r){this.rateLimiter.updateClientSendingRate(r);let n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,r);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}});var jk,KDe=g(()=>{lb();QE();jk=class extends Da{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=Dr.delay()){super(typeof e=="function"?e:async()=>e),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r,this.retryBackoffStrategy.computeNextBackoffDelay=n=>{let s=n+1;return this.computeNextBackoffDelay(s)}}}});var XDe,ZDe=g(()=>{XDe=i((t,e)=>{let r=t,n=e?.noRetryIncrement??1,s=e?.retryCost??5,o=e?.timeoutRetryCost??10,a=t,c=i(p=>p.name==="TimeoutError"?o:s,"getCapacityAmount"),l=i(p=>c(p)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:l,retrieveRetryTokens:i(p=>{if(!l(p))throw new Error("No retry token available");let f=c(p);return a-=f,f},"retrieveRetryTokens"),releaseRetryTokens:i(p=>{a+=p??n,a=Math.min(a,r)},"releaseRetryTokens")})},"getDefaultRetryQuota")});var Kk,GK=g(()=>{Kk=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var Xk,HK=g(()=>{_E();Xk=i(t=>t?ob(t)||qk(t)||xl(t)||Tp(t):!1,"defaultRetryDecider")});var kE,lLt,zK=g(()=>{Ne();xe();_E();yh();ab();MK();ZDe();GK();HK();kE=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=gn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??Xk,this.delayDecider=r?.delayDecider??Kk,this.retryQuota=r?.retryQuota??XDe(500)}shouldRetry(e,r,n){return r<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch{e=Qa}return e}async retry(e,r,n){let s,o=0,a=0,c=await this.getMaxAttempts(),{request:l}=r;for(Je.isInstance(l)&&(l.headers[Pp]=lE());;)try{Je.isInstance(l)&&(l.headers[_p]=`attempt=${o+1}; max=${c}`),n?.beforeRequest&&await n.beforeRequest();let{response:u,output:d}=await e(r);return n?.afterRequest&&n.afterRequest(u),this.retryQuota.releaseRetryTokens(s),d.$metadata.attempts=o+1,d.$metadata.totalRetryDelay=a,{response:u,output:d}}catch(u){let d=Vk(u);if(o++,this.shouldRetry(d,o,c)){s=this.retryQuota.retrieveRetryTokens(d);let p=this.delayDecider(xl(d)?500:100,o),f=lLt(d.$response),m=Math.max(f||0,p);a+=m,await new Promise(h=>setTimeout(h,m));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=o,d.$metadata.totalRetryDelay=a,d}}},lLt=i(t=>{if(!fn.isInstance(t))return;let e=Object.keys(t.headers).find(o=>o.toLowerCase()==="retry-after");if(!e)return;let r=t.headers[e],n=Number(r);if(!Number.isNaN(n))return Math.min(n*1e3,2e4);let s=new Date(r);return Math.min(s.getTime()-Date.now(),2e4)},"getDelayFromRetryAfterHeader")});var Zk,eke=g(()=>{Wk();yh();zK();Zk=class extends kE{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new vp,this.mode=gn.ADAPTIVE}async retry(e,r){return super.retry(e,r,{beforeRequest:i(async()=>this.rateLimiter.getSendToken(),"beforeRequest"),afterRequest:i(n=>{this.rateLimiter.updateClientSendingRate(n)},"afterRequest")})}}});var eO,tO,bl,Bl,VK,WK,Rl,tke=g(()=>{we();$K();lb();yh();QE();eO="AWS_MAX_ATTEMPTS",tO="max_attempts",bl={environmentVariableSelector:i(t=>{let e=t[eO];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${eO} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[tO];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${tO} mast be a number, got "${e}"`);return r},"configFileSelector"),default:Qa},Bl=i((t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:s=Qa,defaultBaseDelay:o=Dr.delay()}=e??{},a=xt(t.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=i(async()=>{let u=await a();return await xt(n)()===gn.ADAPTIVE?new DE(a,{maxAttempts:u,baseDelay:o}):new Da({maxAttempts:u,baseDelay:o})},"getDefault");return Object.assign(t,{maxAttempts:a,retryStrategy:i(()=>c??=l(),"retryStrategy")})},"resolveRetryConfig"),VK="AWS_RETRY_MODE",WK="retry_mode",Rl={environmentVariableSelector:i(t=>t[VK],"environmentVariableSelector"),configFileSelector:i(t=>t[WK],"configFileSelector"),default:zi}});var YK,JK,rke,nke=g(()=>{Ne();ab();YK=i(()=>t=>async e=>{let{request:r}=e;return Je.isInstance(r)&&(delete r.headers[Pp],delete r.headers[_p]),t(e)},"omitRetryHeadersMiddleware"),JK={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},rke=i(t=>({applyToStack:i(e=>{e.addRelativeTo(YK(),JK)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var jK={};cr(jK,{AdaptiveRetryStrategy:()=>DE,CONFIG_MAX_ATTEMPTS:()=>tO,CONFIG_RETRY_MODE:()=>WK,ConfiguredRetryStrategy:()=>jk,DEFAULT_MAX_ATTEMPTS:()=>Qa,DEFAULT_RETRY_DELAY_BASE:()=>Gk,DEFAULT_RETRY_MODE:()=>zi,DefaultRateLimiter:()=>vp,DeprecatedAdaptiveRetryStrategy:()=>Zk,DeprecatedStandardRetryStrategy:()=>kE,ENV_MAX_ATTEMPTS:()=>eO,ENV_RETRY_MODE:()=>VK,INITIAL_RETRY_TOKENS:()=>vE,INVOCATION_ID_HEADER:()=>Pp,MAXIMUM_RETRY_DELAY:()=>ib,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>bl,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>Rl,NO_RETRY_INCREMENT:()=>zk,REQUEST_HEADER:()=>_p,RETRY_COST:()=>DK,RETRY_MODES:()=>gn,Retry:()=>Dr,StandardRetryStrategy:()=>Da,THROTTLING_RETRY_DELAY_BASE:()=>Hk,TIMEOUT_RETRY_COST:()=>kK,defaultDelayDecider:()=>Kk,defaultRetryDecider:()=>Xk,getOmitRetryHeadersPlugin:()=>rke,getRetryAfterHint:()=>WDe,getRetryPlugin:()=>zu,isBrowserNetworkError:()=>vK,isClockSkewCorrectedError:()=>_K,isClockSkewError:()=>qk,isNodeJsHttp2TransientError:()=>QK,isRetryableByTrait:()=>ob,isServerError:()=>$k,isThrottlingError:()=>xl,isTransientError:()=>Tp,omitRetryHeadersMiddleware:()=>YK,omitRetryHeadersMiddlewareOptions:()=>JK,resolveRetryConfig:()=>Bl,retryMiddleware:()=>uLt,retryMiddlewareOptions:()=>UK});var uLt,zu,Xo=g(()=>{ENe();qK();_E();$K();KDe();Wk();lb();yh();ab();QE();eke();zK();GK();HK();tke();nke();qK();LK();uLt=FK(H5),zu=YDe(H5)});function Vi(t,e,r){t.__aws_sdk_context?t.__aws_sdk_context.features||(t.__aws_sdk_context.features={}):t.__aws_sdk_context={features:{}},t.__aws_sdk_context.features[e]=r}var KK=g(()=>{Xo();Dr.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(Vi,"setFeature")});function ske(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var oke=g(()=>{i(ske,"setTokenFeature")});function OE(t){return t}var XK,ZK,Nl,ike=g(()=>{Ne();i(OE,"resolveHostHeaderConfig");XK=i(t=>e=>async r=>{if(!Je.isInstance(r.request))return e(r);let{request:n}=r,{handlerProtocol:s=""}=t.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let o=n.hostname;n.port!=null&&(o+=`:${n.port}`),n.headers.host=o}return e(r)},"hostHeaderMiddleware"),ZK={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Nl=i(t=>({applyToStack:i(e=>{e.add(XK(t),ZK)},"applyToStack")}),"getHostHeaderPlugin")});var eX,tX,Tl,ake=g(()=>{eX=i(()=>(t,e)=>async r=>{try{let n=await t(r),{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:u}=c,d=l??e.inputFilterSensitiveLog,p=u??e.outputFilterSensitiveLog,{$metadata:f,...m}=n.output;return a?.info?.({clientName:s,commandName:o,input:d(r.input),output:p(m),metadata:f}),n}catch(n){let{clientName:s,commandName:o,logger:a,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:l}=c,u=l??e.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:o,input:u(r.input),error:n,metadata:n.$metadata}),n}},"loggerMiddleware"),tX={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Tl=i(t=>({applyToStack:i(e=>{e.add(eX(),tX)},"applyToStack")}),"getLoggerPlugin")});var rO,rX=g(()=>{rO={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var Qp,nX,nO,sX,oX,ub,cke=g(()=>{Qp={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID"),TRACEPARENT:Symbol.for("_AWS_LAMBDA_TRACEPARENT"),TRACESTATE:Symbol.for("_AWS_LAMBDA_TRACESTATE"),BAGGAGE:Symbol.for("_AWS_LAMBDA_BAGGAGE")},nX=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");nX||(globalThis.awslambda=globalThis.awslambda||{});nO=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=Qp;isProtectedKey(e){return Object.values(Qp).includes(e)}getRequestId(){return this.get(Qp.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(Qp.X_RAY_TRACE_ID)}getTenantId(){return this.get(Qp.TENANT_ID)}getTraceparent(){return this.get(Qp.TRACEPARENT)}getTracestate(){return this.get(Qp.TRACESTATE)}getBaggage(){return this.get(Qp.BAGGAGE)}},sX=class extends nO{static{i(this,"InvokeStoreSingle")}currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(e){return this.currentContext?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);this.currentContext=this.currentContext||{},this.currentContext[e]=r}run(e,r){return this.currentContext=e,r()}},oX=class t extends nO{static{i(this,"InvokeStoreMulti")}als;static async create(){let e=new t,r=await import("node:async_hooks");return e.als=new r.AsyncLocalStorage,e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(e){return this.als.getStore()?.[e]}set(e,r){if(this.isProtectedKey(e))throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`);let n=this.als.getStore();if(!n)throw new Error("No context available");n[e]=r}run(e,r){return this.als.run(e,r)}};(function(t){let e=null;async function r(n){return e||(e=(async()=>{let o=n===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await oX.create():new sX;return!nX&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!nX&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=o),o)})()),e}i(r,"getInstanceAsync"),t.getInstanceAsync=r,t._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:i(()=>{e=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}},"reset")}:void 0})(ub||(ub={}))});function fLt(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===aX||r===lke||r===uke)&&(t[r]=t[e],delete t[e])}}var dLt,pLt,iX,aX,lke,uke,sO,cX=g(()=>{cke();Ne();dLt="AWS_LAMBDA_FUNCTION_NAME",pLt="_X_AMZN_TRACE_ID",iX="X-Amzn-Trace-Id",aX="traceparent",lke="tracestate",uke="baggage",sO=i(()=>t=>async e=>{let{request:r}=e;if(!Je.isInstance(r))return t(e);let n;{let s=Object.keys(r.headers??{}).find(o=>o.toLowerCase()===iX.toLowerCase())??iX;if(!r.headers.hasOwnProperty(s)){let o=process.env[dLt],a=process.env[pLt];n??=await ub.getInstanceAsync();let l=n?.getXRayTraceId()??a,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");u(o)&&u(l)&&(r.headers[iX]=l)}}if(fLt(r.headers),!r.headers[aX]){let o=(n??=await ub.getInstanceAsync())?.getTraceparent?.();if(o){r.headers[aX]=o;let a=n?.getTracestate?.();a&&(r.headers[lke]=a);let c=n?.getBaggage?.();c&&(r.headers[uke]=c)}}return t(e)},"recursionDetectionMiddleware");i(fLt,"sanitizeTraceHeaders")});var Pl,dke=g(()=>{rX();cX();Pl=i(t=>({applyToStack:i(e=>{e.add(sO(),rO)},"applyToStack")}),"getRecursionDetectionPlugin")});var pke,fke=g(()=>{pke=i((t,e)=>{if(!e||e.length===0)return t;let r=[];for(let n of e)for(let s of t)s.schemeId.split("#")[1]===n&&r.push(s);for(let n of t)r.find(({schemeId:s})=>s===n.schemeId)||r.push(n);return r},"resolveAuthOptions")});function mLt(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var Eh,oO=g(()=>{ve();fke();i(mLt,"convertHttpAuthSchemesToMap");Eh=i((t,e)=>(r,n)=>async s=>{let o=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,s.input)),a=t.authSchemePreference?await t.authSchemePreference():[],c=pke(o,a),l=mLt(t.httpAuthSchemes),u=vt(n),d=[];for(let p of c){let f=l.get(p.schemeId);if(!f){d.push(`HttpAuthScheme \`${p.schemeId}\` was not enabled for this service.`);continue}let m=f.identityProvider(await e.identityProviderConfigProvider(t));if(!m){d.push(`HttpAuthScheme \`${p.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:h={},signingProperties:A={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},h),p.signingProperties=Object.assign(p.signingProperties||{},A),u.selectedHttpAuthScheme={httpAuthOption:p,identity:await m(p.identityProperties),signer:f.signer};break}if(!u.selectedHttpAuthScheme)throw new Error(d.join(`
|
|
`));return r(s)},"httpAuthSchemeMiddleware")});var iO,ka,mke=g(()=>{oO();iO={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},ka=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Eh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),iO)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var aO,lX,hke=g(()=>{oO();aO={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},lX=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(Eh(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),aO)},"applyToStack")}),"getHttpAuthSchemePlugin")});var Ake=g(()=>{oO();mke();hke()});var hLt,ALt,db,uX=g(()=>{Ne();ve();hLt=i(t=>e=>{throw e},"defaultErrorHandler"),ALt=i((t,e)=>{},"defaultSuccessHandler"),db=i(t=>(e,r)=>async n=>{if(!Je.isInstance(n.request))return e(n);let o=vt(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||hLt)(a));return(l.successHandler||ALt)(u.response,a),u},"httpSigningMiddleware")});var cO,Oa,gke=g(()=>{uX();cO={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Oa=i(t=>({applyToStack:i(e=>{e.addRelativeTo(db(t),cO)},"applyToStack")}),"getHttpSigningPlugin")});var yke=g(()=>{uX();gke()});var Wi,Eke=g(()=>{Wi=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Cke(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 gLt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield f;let m=d;d=yLt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var gLt,yLt,Ike=g(()=>{gLt=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(Cke,"createPaginator");yLt=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 Ske(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 wke=g(()=>{i(Ske,"setFeature")});var Zo,xke=g(()=>{ve();Zo=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(e){for(let r in e){if(!X(e,r))continue;let n=e[r];n!==void 0&&this.authSchemes.set(r,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}});var dX,LE,bke=g(()=>{Ne();dX=R(Xn()),LE=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=Je.clone(e);if(n.in===dX.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===dX.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 ME,Bke=g(()=>{Ne();ME=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Je.clone(e);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return s.headers.Authorization=`Bearer ${r.token}`,s}}});var ts,Rke=g(()=>{ts=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var Nke=g(()=>{bke();Bke();Rke()});var lO,uO,pb,FE,fb,Tke=g(()=>{lO=i(t=>i(function(r){return FE(r)&&r.expiration.getTime()-Date.now()<t},"isIdentityExpired"),"createIsIdentityExpiredFunction"),uO=3e5,pb=lO(uO),FE=i(t=>t.expiration!==void 0,"doesIdentityRequireRefresh"),fb=i((t,e,r)=>{if(t===void 0)return;let n=typeof t!="function"?async()=>Promise.resolve(t):t,s,o,a,c=!1,l=i(async u=>{o||(o=n(u));try{s=await o,a=!0,c=!1}finally{o=void 0}return s},"coalesceProvider");return e===void 0?async u=>((!a||u?.forceRefresh)&&(s=await l(u)),s):async u=>((!a||u?.forceRefresh)&&(s=await l(u)),c?s:r(s)?(e(s)&&await l(u),s):(c=!0,s))},"memoizeIdentityProvider")});var Pke=g(()=>{xke();Nke();Tke()});var pX={};cr(pX,{DefaultIdentityProviderConfig:()=>Zo,EXPIRATION_MS:()=>uO,HttpApiKeyAuthSigner:()=>LE,HttpBearerAuthSigner:()=>ME,NoAuthSigner:()=>ts,createIsIdentityExpiredFunction:()=>lO,createPaginator:()=>Cke,doesIdentityRequireRefresh:()=>FE,getHttpAuthSchemeEndpointRuleSetPlugin:()=>ka,getHttpAuthSchemePlugin:()=>lX,getHttpSigningPlugin:()=>Oa,getSmithyContext:()=>vt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>iO,httpAuthSchemeMiddleware:()=>Eh,httpAuthSchemeMiddlewareOptions:()=>aO,httpSigningMiddleware:()=>db,httpSigningMiddlewareOptions:()=>cO,isIdentityExpired:()=>pb,memoizeIdentityProvider:()=>fb,normalizeProvider:()=>Wi,requestBuilder:()=>Rk,setFeature:()=>Ske});var Rs=g(()=>{ve();Ake();yke();Eke();Ike();Ne();wke();Pke()});function ELt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function _l(t){let e=Wi(t.userAgentAppId??mb),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!ELt(n)){let s=t.logger?.constructor?.name==="NoOpLogger"||!t.logger?console:t.logger;typeof n!="string"?s?.warn("userAgentAppId must be a string or undefined."):n.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n},"userAgentAppId")})}var mb,fX=g(()=>{Rs();mb=void 0;i(ELt,"isValidUserAgentAppId");i(_l,"resolveUserAgentConfig")});var mX,_ke=g(()=>{mX={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],version:"1.1"}});var vke,Qke,dO,hX,Dke,pO,fO=g(()=>{_ke();vke=mX,Qke="",dO=i(t=>{let{partitions:e}=vke;for(let n of e){let{regions:s,outputs:o}=n;for(let[a,c]of Object.entries(s))if(a===t)return{...o,...c}}for(let n of e){let{regionRegex:s,outputs:o}=n;if(new RegExp(s).test(t))return{...o}}let r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),hX=i((t,e="")=>{vke=t,Qke=e},"setPartitionInfo"),Dke=i(()=>{hX(mX,"")},"useDefaultPartitionInfo"),pO=i(()=>Qke,"getUserAgentPrefix")});async function kke(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Vi(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case gn.ADAPTIVE:Vi(t,"RETRY_MODE_ADAPTIVE","F");break;case gn.STANDARD:Vi(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(CLt)&&Vi(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":Vi(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Vi(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Vi(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&Vi(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))Vi(t,a,c)}}var CLt,Oke=g(()=>{Xo();KK();CLt=/\d{12}\.ddb/;i(kke,"checkFeatures")});var AX,mO,Lke,Mke,Fke=g(()=>{AX="user-agent",mO="x-amz-user-agent",Lke=/[^!$%&'*+\-.^_`|~\w]/g,Mke=/[^!$%&'*+\-.^_`|~\w#]/g});function Uke(t){let e="";for(let r in t){let n=t[r];if(e.length+n.length+1<=1024){e.length?e+=","+n:e+=n;continue}break}return e}var qke=g(()=>{i(Uke,"encodeFeatures")});var yX,hO,EX,vl,Hke=g(()=>{Ne();fO();Oke();Fke();qke();yX=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!Je.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(hO)||[],c=(await t.defaultUserAgentProvider()).map(hO);await kke(r,t,n);let l=r;c.push(`m/${Uke(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(hO)||[],d=await t.userAgentAppId();d&&c.push(hO(["app",`${d}`]));let p=pO(),f=(p?[p]:[]).concat([...c,...a,...u]).join(" "),m=[...c.filter(h=>h.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(m&&(o[mO]=o[mO]?`${o[AX]} ${m}`:m),o[AX]=f):o[mO]=f,e({...n,request:s})},"userAgentMiddleware"),hO=i(t=>{let e=t[0].split("/").map(a=>a.replace(Lke,"-")).join("/"),r=t[1]?.replace(Mke,"-"),n=e.indexOf("/"),s=e.substring(0,n),o=e.substring(n+1);return s==="api"&&(o=o.toLowerCase()),[s,o,r].filter(a=>a&&a.length>0).reduce((a,c,l)=>{switch(l){case 0:return c;case 1:return`${a}/${c}`;default:return`${a}#${c}`}},"")},"escapeUserAgent"),EX={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},vl=i(t=>({applyToStack:i(e=>{e.add(yX(t),EX)},"applyToStack")}),"getUserAgentPlugin")});var AO,zke,Vke=g(()=>{AO=require("node:process"),zke=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(AO.versions[e])return[`md/${e}`,AO.versions[e]];return["md/nodejs",AO.versions.node]},"getRuntimeUserAgentPair")});var hb,CX=g(()=>{hb={isCrtAvailable:!1}});var Wke,Yke=g(()=>{CX();Wke=i(()=>hb.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var gO,IX,La,Jke,jke=g(()=>{gO=require("node:os"),IX=require("node:process");Vke();Yke();CX();La=i(({serviceId:t,clientVersion:e})=>{let r=zke();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,gO.platform)()}`,(0,gO.release)()],["lang/js"],r],o=Wke();o&&s.push(o),t&&s.push([`api/${t}`,e]),IX.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${IX.env.AWS_EXECUTION_ENV}`]);let a=await n?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}},"createDefaultUserAgentProvider"),Jke=La});var SX,wX,ILt,Ql,Kke=g(()=>{fX();SX="AWS_SDK_UA_APP_ID",wX="sdk_ua_app_id",ILt="sdk-ua-app-id",Ql={environmentVariableSelector:i(t=>t[SX],"environmentVariableSelector"),configFileSelector:i(t=>t[wX]??t[ILt],"configFileSelector"),default:mb}});var Xke=S((Ab,xX)=>{(function(t,e){typeof Ab=="object"&&typeof xX=="object"?xX.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Ab=="object"?Ab.bowser=e():t.bowser=e()})(Ab,(function(){return(function(t){var e={};function r(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return i(r,"r"),r.m=t,r.c=e,r.d=function(n,s,o){r.o(n,s)||Object.defineProperty(n,s,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,s){if(1&s&&(n=r(n)),8&s||4&s&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&s&&typeof n!="string")for(var a in n)r.d(o,a,function(c){return n[c]}.bind(null,a));return o},r.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(s,"a",s),s},r.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},r.p="",r(r.s=90)})({17:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=r(18),s=(function(){function o(){}return i(o,"e"),o.getFirstMatch=function(a,c){var l=c.match(a);return l&&l.length>0&&l[1]||""},o.getSecondMatch=function(a,c){var l=c.match(a);return l&&l.length>1&&l[2]||""},o.matchAndReturnConst=function(a,c,l){if(a.test(c))return l},o.getWindowsVersionName=function(a){switch(a){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},o.getMacOSVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),c[0]===10)switch(c[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},o.getAndroidVersionName=function(a){var c=a.split(".").splice(0,2).map((function(l){return parseInt(l,10)||0}));if(c.push(0),!(c[0]===1&&c[1]<5))return c[0]===1&&c[1]<6?"Cupcake":c[0]===1&&c[1]>=6?"Donut":c[0]===2&&c[1]<2?"Eclair":c[0]===2&&c[1]===2?"Froyo":c[0]===2&&c[1]>2?"Gingerbread":c[0]===3?"Honeycomb":c[0]===4&&c[1]<1?"Ice Cream Sandwich":c[0]===4&&c[1]<4?"Jelly Bean":c[0]===4&&c[1]>=4?"KitKat":c[0]===5?"Lollipop":c[0]===6?"Marshmallow":c[0]===7?"Nougat":c[0]===8?"Oreo":c[0]===9?"Pie":void 0},o.getVersionPrecision=function(a){return a.split(".").length},o.compareVersions=function(a,c,l){l===void 0&&(l=!1);var u=o.getVersionPrecision(a),d=o.getVersionPrecision(c),p=Math.max(u,d),f=0,m=o.map([a,c],(function(h){var A=p-o.getVersionPrecision(h),y=h+new Array(A+1).join(".0");return o.map(y.split("."),(function(E){return new Array(20-E.length).join("0")+E})).reverse()}));for(l&&(f=p-Math.min(u,d)),p-=1;p>=f;){if(m[0][p]>m[1][p])return 1;if(m[0][p]===m[1][p]){if(p===f)return 0;p-=1}else if(m[0][p]<m[1][p])return-1}},o.map=function(a,c){var l,u=[];if(Array.prototype.map)return Array.prototype.map.call(a,c);for(l=0;l<a.length;l+=1)u.push(c(a[l]));return u},o.find=function(a,c){var l,u;if(Array.prototype.find)return Array.prototype.find.call(a,c);for(l=0,u=a.length;l<u;l+=1){var d=a[l];if(c(d,l))return d}},o.assign=function(a){for(var c,l,u=a,d=arguments.length,p=new Array(d>1?d-1:0),f=1;f<d;f++)p[f-1]=arguments[f];if(Object.assign)return Object.assign.apply(Object,[a].concat(p));var m=i(function(){var h=p[c];typeof h=="object"&&h!==null&&Object.keys(h).forEach((function(A){u[A]=h[A]}))},"o");for(c=0,l=p.length;c<l;c+=1)m();return a},o.getBrowserAlias=function(a){return n.BROWSER_ALIASES_MAP[a]},o.getBrowserTypeByAlias=function(a){return n.BROWSER_MAP[a]||""},o})();e.default=s,t.exports=e.default},18:function(t,e,r){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(91))&&n.__esModule?n:{default:n},o=r(18);function a(l,u){for(var d=0;d<u.length;d++){var p=u[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,p.key,p)}}i(a,"a");var c=(function(){function l(){}i(l,"e");var u,d,p;return l.getParser=function(f,m){if(m===void 0&&(m=!1),typeof f!="string")throw new Error("UserAgent should be a string");return new s.default(f,m)},l.parse=function(f){return new s.default(f).getResult()},u=l,p=[{key:"BROWSER_MAP",get:i(function(){return o.BROWSER_MAP},"get")},{key:"ENGINE_MAP",get:i(function(){return o.ENGINE_MAP},"get")},{key:"OS_MAP",get:i(function(){return o.OS_MAP},"get")},{key:"PLATFORMS_MAP",get:i(function(){return o.PLATFORMS_MAP},"get")}],(d=null)&&a(u.prototype,d),p&&a(u,p),l})();e.default=c,t.exports=e.default},91:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n=l(r(92)),s=l(r(93)),o=l(r(94)),a=l(r(95)),c=l(r(17));function l(d){return d&&d.__esModule?d:{default:d}}i(l,"u");var u=(function(){function d(f,m){if(m===void 0&&(m=!1),f==null||f==="")throw new Error("UserAgent parameter can't be empty");this._ua=f,this.parsedResult={},m!==!0&&this.parse()}i(d,"e");var p=d.prototype;return p.getUA=function(){return this._ua},p.test=function(f){return f.test(this._ua)},p.parseBrowser=function(){var f=this;this.parsedResult.browser={};var m=c.default.find(n.default,(function(h){if(typeof h.test=="function")return h.test(f);if(h.test instanceof Array)return h.test.some((function(A){return f.test(A)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.browser=m.describe(this.getUA())),this.parsedResult.browser},p.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},p.getBrowserName=function(f){return f?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},p.getBrowserVersion=function(){return this.getBrowser().version},p.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},p.parseOS=function(){var f=this;this.parsedResult.os={};var m=c.default.find(s.default,(function(h){if(typeof h.test=="function")return h.test(f);if(h.test instanceof Array)return h.test.some((function(A){return f.test(A)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.os=m.describe(this.getUA())),this.parsedResult.os},p.getOSName=function(f){var m=this.getOS().name;return f?String(m).toLowerCase()||"":m||""},p.getOSVersion=function(){return this.getOS().version},p.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},p.getPlatformType=function(f){f===void 0&&(f=!1);var m=this.getPlatform().type;return f?String(m).toLowerCase()||"":m||""},p.parsePlatform=function(){var f=this;this.parsedResult.platform={};var m=c.default.find(o.default,(function(h){if(typeof h.test=="function")return h.test(f);if(h.test instanceof Array)return h.test.some((function(A){return f.test(A)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.platform=m.describe(this.getUA())),this.parsedResult.platform},p.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},p.getEngineName=function(f){return f?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},p.parseEngine=function(){var f=this;this.parsedResult.engine={};var m=c.default.find(a.default,(function(h){if(typeof h.test=="function")return h.test(f);if(h.test instanceof Array)return h.test.some((function(A){return f.test(A)}));throw new Error("Browser's test function is not valid")}));return m&&(this.parsedResult.engine=m.describe(this.getUA())),this.parsedResult.engine},p.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},p.getResult=function(){return c.default.assign({},this.parsedResult)},p.satisfies=function(f){var m=this,h={},A=0,y={},E=0;if(Object.keys(f).forEach((function(Be){var ke=f[Be];typeof ke=="string"?(y[Be]=ke,E+=1):typeof ke=="object"&&(h[Be]=ke,A+=1)})),A>0){var I=Object.keys(h),x=c.default.find(I,(function(Be){return m.isOS(Be)}));if(x){var b=this.satisfies(h[x]);if(b!==void 0)return b}var N=c.default.find(I,(function(Be){return m.isPlatform(Be)}));if(N){var v=this.satisfies(h[N]);if(v!==void 0)return v}}if(E>0){var _=Object.keys(y),J=c.default.find(_,(function(Be){return m.isBrowser(Be,!0)}));if(J!==void 0)return this.compareVersion(y[J])}},p.isBrowser=function(f,m){m===void 0&&(m=!1);var h=this.getBrowserName().toLowerCase(),A=f.toLowerCase(),y=c.default.getBrowserTypeByAlias(A);return m&&y&&(A=y.toLowerCase()),A===h},p.compareVersion=function(f){var m=[0],h=f,A=!1,y=this.getBrowserVersion();if(typeof y=="string")return f[0]===">"||f[0]==="<"?(h=f.substr(1),f[1]==="="?(A=!0,h=f.substr(2)):m=[],f[0]===">"?m.push(1):m.push(-1)):f[0]==="="?h=f.substr(1):f[0]==="~"&&(A=!0,h=f.substr(1)),m.indexOf(c.default.compareVersions(y,h,A))>-1},p.isOS=function(f){return this.getOSName(!0)===String(f).toLowerCase()},p.isPlatform=function(f){return this.getPlatformType(!0)===String(f).toLowerCase()},p.isEngine=function(f){return this.getEngineName(!0)===String(f).toLowerCase()},p.is=function(f,m){return m===void 0&&(m=!1),this.isBrowser(f,m)||this.isOS(f)||this.isPlatform(f)},p.some=function(f){var m=this;return f===void 0&&(f=[]),f.some((function(h){return m.is(h)}))},d})();e.default=u,t.exports=e.default},92:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:i(function(c){var l={name:"Googlebot"},u=s.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/opera/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opr\/|opios/i],describe:i(function(c){var l={name:"Opera"},u=s.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/SamsungBrowser/i],describe:i(function(c){var l={name:"Samsung Internet for Android"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Whale/i],describe:i(function(c){var l={name:"NAVER Whale Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MZBrowser/i],describe:i(function(c){var l={name:"MZ Browser"},u=s.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/focus/i],describe:i(function(c){var l={name:"Focus"},u=s.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/swing/i],describe:i(function(c){var l={name:"Swing"},u=s.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/coast/i],describe:i(function(c){var l={name:"Opera Coast"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:i(function(c){var l={name:"Opera Touch"},u=s.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/yabrowser/i],describe:i(function(c){var l={name:"Yandex Browser"},u=s.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/ucbrowser/i],describe:i(function(c){var l={name:"UC Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/Maxthon|mxios/i],describe:i(function(c){var l={name:"Maxthon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/epiphany/i],describe:i(function(c){var l={name:"Epiphany"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/puffin/i],describe:i(function(c){var l={name:"Puffin"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sleipnir/i],describe:i(function(c){var l={name:"Sleipnir"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/k-meleon/i],describe:i(function(c){var l={name:"K-Meleon"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/micromessenger/i],describe:i(function(c){var l={name:"WeChat"},u=s.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qqbrowser/i],describe:i(function(c){var l={name:/qqbrowserlite/i.test(c)?"QQ Browser Lite":"QQ Browser"},u=s.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/msie|trident/i],describe:i(function(c){var l={name:"Internet Explorer"},u=s.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/\sedg\//i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/edg([ea]|ios)/i],describe:i(function(c){var l={name:"Microsoft Edge"},u=s.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/vivaldi/i],describe:i(function(c){var l={name:"Vivaldi"},u=s.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/seamonkey/i],describe:i(function(c){var l={name:"SeaMonkey"},u=s.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/sailfish/i],describe:i(function(c){var l={name:"Sailfish"},u=s.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,c);return u&&(l.version=u),l},"describe")},{test:[/silk/i],describe:i(function(c){var l={name:"Amazon Silk"},u=s.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/phantom/i],describe:i(function(c){var l={name:"PhantomJS"},u=s.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/slimerjs/i],describe:i(function(c){var l={name:"SlimerJS"},u=s.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l={name:"BlackBerry"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l={name:"WebOS Browser"},u=s.default.getFirstMatch(o,c)||s.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/bada/i],describe:i(function(c){var l={name:"Bada"},u=s.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/tizen/i],describe:i(function(c){var l={name:"Tizen"},u=s.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/qupzilla/i],describe:i(function(c){var l={name:"QupZilla"},u=s.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/firefox|iceweasel|fxios/i],describe:i(function(c){var l={name:"Firefox"},u=s.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/electron/i],describe:i(function(c){var l={name:"Electron"},u=s.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/MiuiBrowser/i],describe:i(function(c){var l={name:"Miui"},u=s.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/chromium/i],describe:i(function(c){var l={name:"Chromium"},u=s.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,c)||s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/chrome|crios|crmo/i],describe:i(function(c){var l={name:"Chrome"},u=s.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/GSA/i],describe:i(function(c){var l={name:"Google Search"},u=s.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l={name:"Android Browser"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/playstation 4/i],describe:i(function(c){var l={name:"PlayStation 4"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/safari|applewebkit/i],describe:i(function(c){var l={name:"Safari"},u=s.default.getFirstMatch(o,c);return u&&(l.version=u),l},"describe")},{test:[/.*/i],describe:i(function(c){var l=c.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:s.default.getFirstMatch(l,c),version:s.default.getSecondMatch(l,c)}},"describe")}];e.default=a,t.exports=e.default},93:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:i(function(c){var l=s.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,c);return{name:o.OS_MAP.Roku,version:l}},"describe")},{test:[/windows phone/i],describe:i(function(c){var l=s.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.WindowsPhone,version:l}},"describe")},{test:[/windows /i],describe:i(function(c){var l=s.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,c),u=s.default.getWindowsVersionName(l);return{name:o.OS_MAP.Windows,version:l,versionName:u}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(c){var l={name:o.OS_MAP.iOS},u=s.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,c);return u&&(l.version=u),l},"describe")},{test:[/macintosh/i],describe:i(function(c){var l=s.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,c).replace(/[_\s]/g,"."),u=s.default.getMacOSVersionName(l),d={name:o.OS_MAP.MacOS,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(ipod|iphone|ipad)/i],describe:i(function(c){var l=s.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,c).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:l}},"describe")},{test:i(function(c){var l=!c.test(/like android/i),u=c.test(/android/i);return l&&u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,c),u=s.default.getAndroidVersionName(l),d={name:o.OS_MAP.Android,version:l};return u&&(d.versionName=u),d},"describe")},{test:[/(web|hpw)[o0]s/i],describe:i(function(c){var l=s.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,c),u={name:o.OS_MAP.WebOS};return l&&l.length&&(u.version=l),u},"describe")},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:i(function(c){var l=s.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,c)||s.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,c)||s.default.getFirstMatch(/\bbb(\d+)/i,c);return{name:o.OS_MAP.BlackBerry,version:l}},"describe")},{test:[/bada/i],describe:i(function(c){var l=s.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Bada,version:l}},"describe")},{test:[/tizen/i],describe:i(function(c){var l=s.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.Tizen,version:l}},"describe")},{test:[/linux/i],describe:i(function(){return{name:o.OS_MAP.Linux}},"describe")},{test:[/CrOS/],describe:i(function(){return{name:o.OS_MAP.ChromeOS}},"describe")},{test:[/PlayStation 4/],describe:i(function(c){var l=s.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,c);return{name:o.OS_MAP.PlayStation4,version:l}},"describe")}];e.default=a,t.exports=e.default},94:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:i(function(){return{type:"bot",vendor:"Google"}},"describe")},{test:[/huawei/i],describe:i(function(c){var l=s.default.getFirstMatch(/(can-l01)/i,c)&&"Nova",u={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return l&&(u.model=l),u},"describe")},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}},"describe")},{test:[/ipad/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}},"describe")},{test:[/kftt build/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}},"describe")},{test:[/silk/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}},"describe")},{test:[/tablet(?! pc)/i],describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){var l=c.test(/ipod|iphone/i),u=c.test(/like (ipod|iphone)/i);return l&&!u},"test"),describe:i(function(c){var l=s.default.getFirstMatch(/(ipod|iphone)/i,c);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:l}},"describe")},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}},"describe")},{test:[/[^-]mobi/i],describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="blackberry"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}},"describe")},{test:i(function(c){return c.getBrowserName(!0)==="bada"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getBrowserName()==="windows phone"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}},"describe")},{test:i(function(c){var l=Number(String(c.getOSVersion()).split(".")[0]);return c.getOSName(!0)==="android"&&l>=3},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tablet}},"describe")},{test:i(function(c){return c.getOSName(!0)==="android"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.mobile}},"describe")},{test:i(function(c){return c.getOSName(!0)==="macos"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}},"describe")},{test:i(function(c){return c.getOSName(!0)==="windows"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="linux"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.desktop}},"describe")},{test:i(function(c){return c.getOSName(!0)==="playstation 4"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")},{test:i(function(c){return c.getOSName(!0)==="roku"},"test"),describe:i(function(){return{type:o.PLATFORMS_MAP.tv}},"describe")}];e.default=a,t.exports=e.default},95:function(t,e,r){"use strict";e.__esModule=!0,e.default=void 0;var n,s=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:i(function(c){return c.getBrowserName(!0)==="microsoft edge"},"test"),describe:i(function(c){if(/\sedg\//i.test(c))return{name:o.ENGINE_MAP.Blink};var l=s.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,c);return{name:o.ENGINE_MAP.EdgeHTML,version:l}},"describe")},{test:[/trident/i],describe:i(function(c){var l={name:o.ENGINE_MAP.Trident},u=s.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){return c.test(/presto/i)},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Presto},u=s.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:i(function(c){var l=c.test(/gecko/i),u=c.test(/like gecko/i);return l&&!u},"test"),describe:i(function(c){var l={name:o.ENGINE_MAP.Gecko},u=s.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")},{test:[/(apple)?webkit\/537\.36/i],describe:i(function(){return{name:o.ENGINE_MAP.Blink}},"describe")},{test:[/(apple)?webkit/i],describe:i(function(c){var l={name:o.ENGINE_MAP.WebKit},u=s.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,c);return u&&(l.version=u),l},"describe")}];e.default=a,t.exports=e.default}})}))});var Zke,eOe=g(()=>{Zke=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>R(Xke())),s=n.parse??n.default.parse??(()=>""),o=typeof window<"u"&&window?.navigator?.userAgent?s(window.navigator.userAgent):void 0,a=[["aws-sdk-js",e],["ua","2.1"],[`os/${o?.os?.name||"other"}`,o?.os?.version],["lang/js"],["md/browser",`${o?.browser?.name??"unknown"}_${o?.browser?.version??"unknown"}`]];t&&a.push([`api/${t}`,e]);let c=await r?.userAgentAppId?.();return c&&a.push([`app/${c}`]),a},"createUserAgentStringParsingProvider")});var tOe,rOe=g(()=>{tOe={os(t){if(/iPhone|iPad|iPod/.test(t))return"iOS";if(/Macintosh|Mac OS X/.test(t))return"macOS";if(/Windows NT/.test(t))return"Windows";if(/Android/.test(t))return"Android";if(/Linux/.test(t))return"Linux"},browser(t){if(/EdgiOS|EdgA|Edg\//.test(t))return"Microsoft Edge";if(/Firefox\//.test(t))return"Firefox";if(/Chrome\//.test(t))return"Chrome";if(/Safari\//.test(t))return"Safari"}}});var bX=g(()=>{Dt()});var gb,BX=g(()=>{Dt();bX();gb=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!gb(r))return!1;return!0}return!(!Ba(t)||t.length<3||t.length>63||t!==t.toLowerCase()||Lu(t))},"isVirtualHostableS3Bucket")});var yO,RX=g(()=>{yO=i(t=>{let e=t.split(":");if(e.length<6)return null;let[r,n,s,o,a,...c]=e;if(r!=="arn"||n===""||s===""||c.join(":")==="")return null;let l=c.map(u=>u.split("/")).flat();return{partition:n,service:s,region:o,accountId:a,resourceId:l}},"parseArn")});var Ma,nOe=g(()=>{Dt();BX();RX();fO();Ma={isVirtualHostableS3Bucket:gb,parseArn:yO,partition:dO};no.aws=Ma});var sOe=g(()=>{Dt()});var oOe,NX,iOe=g(()=>{Ne();oOe=i(t=>{if(typeof t.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:e}=t;return e===void 0&&(t.endpoint=async()=>NX(t.endpointProvider({Region:typeof t.region=="function"?await t.region():t.region,UseDualStack:typeof t.useDualstackEndpoint=="function"?await t.useDualstackEndpoint():t.useDualstackEndpoint,UseFIPS:typeof t.useFipsEndpoint=="function"?await t.useFipsEndpoint():t.useFipsEndpoint,Endpoint:void 0},{logger:t.logger}))),t},"resolveDefaultAwsRegionalEndpointsConfig"),NX=i(t=>Qn(t.url),"toEndpointV1")});var aOe=g(()=>{Dt()});var cOe=g(()=>{bt();bt()});function EO(t={}){return Qe({...Dn,async default(){return TX.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...Bs,...t})}var TX,lOe=g(()=>{bt();i(EO,"stsRegionDefaultResolver");TX={silence:!1}});var Dl,kl,uOe=g(()=>{Dl=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),kl=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var Fa={};cr(Fa,{DEFAULT_UA_APP_ID:()=>mb,EndpointError:()=>it,NODE_APP_ID_CONFIG_OPTIONS:()=>Ql,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Bs,NODE_REGION_CONFIG_OPTIONS:()=>Dn,REGION_ENV_NAME:()=>sE,REGION_INI_NAME:()=>oE,UA_APP_ID_ENV_NAME:()=>SX,UA_APP_ID_INI_NAME:()=>wX,awsEndpointFunctions:()=>Ma,createDefaultUserAgentProvider:()=>La,createUserAgentStringParsingProvider:()=>Zke,crtAvailability:()=>hb,defaultUserAgent:()=>Jke,emitWarningIfUnsupportedVersion:()=>rl,fallback:()=>tOe,getAwsRegionExtensionConfiguration:()=>Dl,getHostHeaderPlugin:()=>Nl,getLoggerPlugin:()=>Tl,getLongPollPlugin:()=>hNe,getRecursionDetectionPlugin:()=>Pl,getUserAgentMiddlewareOptions:()=>EX,getUserAgentPlugin:()=>vl,getUserAgentPrefix:()=>pO,hostHeaderMiddleware:()=>XK,hostHeaderMiddlewareOptions:()=>ZK,isIpAddress:()=>Lu,isVirtualHostableS3Bucket:()=>gb,loggerMiddleware:()=>eX,loggerMiddlewareOptions:()=>tX,parseArn:()=>yO,partition:()=>dO,recursionDetectionMiddleware:()=>sO,recursionDetectionMiddlewareOptions:()=>rO,resolveAwsRegionExtensionConfiguration:()=>kl,resolveDefaultAwsRegionalEndpointsConfig:()=>oOe,resolveEndpoint:()=>Xx,resolveHostHeaderConfig:()=>OE,resolveRegionConfig:()=>Yo,resolveUserAgentConfig:()=>_l,setCredentialFeature:()=>rp,setFeature:()=>Vi,setPartitionInfo:()=>hX,setTokenFeature:()=>ske,state:()=>bx,stsRegionDefaultResolver:()=>EO,stsRegionWarning:()=>TX,toEndpointV1:()=>NX,useDefaultPartitionInfo:()=>Dke,userAgentMiddleware:()=>yX});var Et=g(()=>{mNe();ANe();gNe();KK();oke();ike();ake();rX();dke();cX();fX();Hke();jke();Kke();rOe();eOe();nOe();sOe();iOe();bX();BX();RX();fO();aOe();cOe();lOe();uOe()});var CO,IO,dOe=g(()=>{Ne();CO=i(t=>fn.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader"),IO=i(t=>fn.isInstance(t)?t.headers?.age??t.headers?.Age:void 0,"getAgeHeader")});var yb,pOe=g(()=>{yb=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var SO,fOe=g(()=>{SO=i((t,e,r,n)=>{if(n!==void 0)return e;let s=Date.parse(t),o=Date.now();return r!==void 0&&o-r>9e5?e:s-o},"getUpdatedSystemClockOffset")});var PX=g(()=>{dOe();pOe();fOe()});var mOe,Eb,SLt,UE,yn,_X,vX=g(()=>{Ne();mOe=R(Xn());PX();Eb=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),SLt=i(t=>t.context?.[mOe.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,"hasEventStreamOutput"),UE=i(async t=>{let e=Eb("context",t.context),r=Eb("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await Eb("signer",r.signer)(n),a=t?.signingRegion,c=t?.signingRegionSet,l=t?.signingName;return{config:r,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}},"validateSigningProperties"),yn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!Je.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await UE(n),{config:o,signer:a}=s,{signingRegion:c,signingName:l}=s,u=n.context;if(u?.authSchemes?.length??!1){let[m,h]=u.authSchemes;m?.name==="sigv4a"&&h?.name==="sigv4"&&(c=h?.signingRegion??c,l=h?.signingName??l)}let d=await o.disableClockSkewCorrection?.()===!0;n._disableClockSkewCorrection=d;let p=d||SLt(n);return n._skipClockSkewSampling=p,p||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await a.sign(e,{signingDate:d?new Date:yb(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??CO(n.$response);if(s){let o=Eb("config",e.config),a=e._preRequestSystemClockOffset,c=e._requestSentAt,l=IO(n.$response),u=SO(s,o.systemClockOffset,c,l);o.systemClockOffset=u,Math.abs(u)>=24e4&&(u!==a||a!==void 0&&a!==u)&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}}throw r}}successHandler(e,r){if(r._skipClockSkewSampling||r._disableClockSkewCorrection)return;let n=CO(e);if(n){let s=Eb("config",r.config),o=r._requestSentAt,a=IO(e);s.systemClockOffset=SO(n,s.systemClockOffset,o,a)}}},_X=yn});var Vu,hOe=g(()=>{Ne();PX();vX();Vu=class extends yn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!Je.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:s,signer:o,signingRegion:a,signingRegionSet:c,signingName:l}=await UE(n),d=(await s.sigv4aSigningRegionSet?.()??c??[a]).join(","),p=await s.disableClockSkewCorrection?.()===!0;return n._disableClockSkewCorrection=p,p||(n._preRequestSystemClockOffset=s.systemClockOffset,n._requestSentAt=Date.now()),await o.sign(e,{signingDate:p?new Date:yb(s.systemClockOffset),signingRegion:d,signingService:l})}}});var QX,AOe=g(()=>{QX=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var wO,DX=g(()=>{wO=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var gOe,yOe,Ua,EOe=g(()=>{AOe();DX();gOe="AWS_AUTH_SCHEME_PREFERENCE",yOe="auth_scheme_preference",Ua={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&wO(e.signingName)in t)return["httpBearerAuth"];if(gOe in t)return QX(t[gOe])},"environmentVariableSelector"),configFileSelector:i(t=>{if(yOe in t)return QX(t[yOe])},"configFileSelector"),default:[]}});var Cb,Ib,COe=g(()=>{Rs();bt();Cb=i(t=>(t.sigv4aSigningRegionSet=Wi(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),Ib={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Wo("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(t){if(t.sigv4a_signing_region_set)return(t.sigv4a_signing_region_set??"").split(",").map(e=>e.trim());throw new Wo("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var VX=S(ze=>{var{hasOwn:Ih,fromUtf8:IOe,fromHex:wLt,toHex:Ch,toUint8Array:Sb,writeKey:xLt,isArrayBuffer:bLt}=(xe(),Z(ph)),{normalizeProvider:SOe}=(we(),Z(zy)),{escapeUri:xO,HttpRequest:BOe}=(Ne(),Z(gh)),kX=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o in e){if(!Ih(e,o))continue;let a=IOe(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=IOe(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(OX.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!BLt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(wLt(e.value.replace(/-/g,"")),1),p}}},wOe;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(wOe||(wOe={}));var BLt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,OX=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&xOe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&xOe(e),parseInt(Ch(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function xOe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(xOe,"negate");var ROe="X-Amz-Algorithm",NOe="X-Amz-Credential",UX="X-Amz-Date",TOe="X-Amz-SignedHeaders",POe="X-Amz-Expires",qX="X-Amz-Signature",$X="X-Amz-Security-Token",RLt="X-Amz-Region-Set",GX="authorization",HX=UX.toLowerCase(),_Oe="date",vOe=[GX,HX,_Oe],QOe=qX.toLowerCase(),TO="x-amz-content-sha256",DOe=$X.toLowerCase(),NLt="host",kOe={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},OOe=/^proxy-/,LOe=/^sec-/,TLt=[/^proxy-/i,/^sec-/i],bO="AWS4-HMAC-SHA256",PLt="AWS4-ECDSA-P256-SHA256",MOe="AWS4-HMAC-SHA256-PAYLOAD",FOe="UNSIGNED-PAYLOAD",UOe=50,zX="aws4_request",qOe=3600*24*7,$Oe=i(({query:t={}})=>{let e=[],r={};for(let n in t){if(!Ih(t,n)||n.toLowerCase()===QOe)continue;let s=xO(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${xO(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${xO(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),_Lt=i(t=>vLt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),vLt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),PO=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:r,region:n,service:s,sha256:o,uriEscapePath:a=!0}){this.service=s,this.sha256=o,this.uriEscapePath=a,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=SOe(n),this.credentialProvider=SOe(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method}
|
|
${this.getCanonicalPath(e)}
|
|
${$Oe(e)}
|
|
${s.map(o=>`${o}:${r[o]}`).join(`
|
|
`)}
|
|
|
|
${s.join(";")}
|
|
${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update(Sb(n));let a=await o.digest();return`${s}
|
|
${e}
|
|
${r}
|
|
${Ch(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 xO(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=_Lt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},qE={},BO=[],RO=i((t,e,r)=>`${t}/${e}/${r}/${zX}`,"createScope"),GOe=i(async(t,e,r,n,s)=>{let o=await bOe(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${Ch(o)}:${e.sessionToken}`;if(a in qE)return qE[a];for(BO.push(a);BO.length>UOe;)delete qE[BO.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,zX])c=await bOe(t,c,l);return qE[a]=c},"getSigningKey"),QLt=i(()=>{BO.length=0,Object.keys(qE).forEach(t=>{delete qE[t]})},"clearCredentialCache"),bOe=i((t,e,r)=>{let n=new t(e);return n.update(Sb(r)),n.digest()},"hmac"),LX=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(Ih(kOe,o)||e?.has(o)||OOe.test(o)||LOe.test(o))&&(!r||r&&!r.has(o))||(o==="__proto__"&&xLt(n),n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),NO=i(async({headers:t,body:e},r)=>{for(let n in t)if(Ih(t,n)&&n.toLowerCase()===TO)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||bLt(e)){let n=new r;return n.update(Sb(e)),Ch(await n.digest())}return FOe},"getPayloadHash"),HOe=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(Ih(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),zOe=i((t,e={})=>{let{headers:r,query:n={}}=BOe.clone(t);for(let s in r){if(!Ih(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"),MX=i(t=>{t=BOe.clone(t);for(let e in t.headers)Ih(t.headers,e)&&vOe.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),FX=class extends PO{static{i(this,"SignatureV4")}headerFormatter=new kX;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:h}=this.formatDate(n);if(s>qOe)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let A=RO(h,f,d??this.service),y=zOe(MX(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[$X]=p.sessionToken),y.query[ROe]=bO,y.query[NOe]=`${p.accessKeyId}/${A}`,y.query[UX]=m,y.query[POe]=s.toString(10);let E=LX(y,o,c);return y.query[TOe]=this.getCanonicalHeaderList(E),y.query[qX]=await this.getSignature(m,A,this.getSigningKey(p,f,h,d),this.createCanonicalRequest(y,E,await NO(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=RO(u,l,a??this.service),f=await NO({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let h=Ch(await m.digest()),A=[MOe,d,p,s,h,f].join(`
|
|
`);return this.signString(A,{signingDate:n,signingRegion:l,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:s,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(c=>({message:e.message,signature:c}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:s,eventStreamCredentials:o}={}){let a=o??await this.credentialProvider();this.validateResolvedCredentials(a);let c=n??await this.regionProvider(),{shortDate:l}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(a,c,l,s));return u.update(Sb(e)),Ch(await u.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:s,signingRegion:o,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let l=o??await this.regionProvider(),u=MX(e),{longDate:d,shortDate:p}=this.formatDate(r),f=RO(p,l,a??this.service);u.headers[HX]=d,c.sessionToken&&(u.headers[DOe]=c.sessionToken);let m=await NO(u,this.sha256);!HOe(TO,u.headers)&&this.applyChecksum&&(u.headers[TO]=m);let h=LX(u,s,n),A=await this.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,h,m));return u.headers[GX]=`${bO} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${A}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,bO),a=new this.sha256(await n);return a.update(Sb(o)),Ch(await a.digest())}getSigningKey(e,r,n,s){return GOe(this.sha256,e,n,r,s||this.service)}},DLt={SignatureV4a:null};ze.ALGORITHM_IDENTIFIER=bO;ze.ALGORITHM_IDENTIFIER_V4A=PLt;ze.ALGORITHM_QUERY_PARAM=ROe;ze.ALWAYS_UNSIGNABLE_HEADERS=kOe;ze.AMZ_DATE_HEADER=HX;ze.AMZ_DATE_QUERY_PARAM=UX;ze.AUTH_HEADER=GX;ze.CREDENTIAL_QUERY_PARAM=NOe;ze.DATE_HEADER=_Oe;ze.EVENT_ALGORITHM_IDENTIFIER=MOe;ze.EXPIRES_QUERY_PARAM=POe;ze.GENERATED_HEADERS=vOe;ze.HOST_HEADER=NLt;ze.KEY_TYPE_IDENTIFIER=zX;ze.MAX_CACHE_SIZE=UOe;ze.MAX_PRESIGNED_TTL=qOe;ze.PROXY_HEADER_PATTERN=OOe;ze.REGION_SET_PARAM=RLt;ze.SEC_HEADER_PATTERN=LOe;ze.SHA256_HEADER=TO;ze.SIGNATURE_HEADER=QOe;ze.SIGNATURE_QUERY_PARAM=qX;ze.SIGNED_HEADERS_QUERY_PARAM=TOe;ze.SignatureV4=FX;ze.SignatureV4Base=PO;ze.TOKEN_HEADER=DOe;ze.TOKEN_QUERY_PARAM=$X;ze.UNSIGNABLE_PATTERNS=TLt;ze.UNSIGNED_PAYLOAD=FOe;ze.clearCredentialCache=QLt;ze.createScope=RO;ze.getCanonicalHeaders=LX;ze.getCanonicalQuery=$Oe;ze.getPayloadHash=NO;ze.getSigningKey=GOe;ze.hasHeader=HOe;ze.moveHeadersToQuery=zOe;ze.prepareRequest=MX;ze.signatureV4aContainer=DLt});function kLt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=fb(e,pb,FE):r?n=Wi(r(Object.assign({},t,{parentClientConfig:t}))):n=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),n.memoized=!0,n}function OLt(t,e){if(e.configBound)return e;let r=i(async n=>e({...n,callerClientConfig:t}),"fn");return r.memoized=e.memoized,r.configBound=!0,r}var WX,YX,VOe=g(()=>{Et();Rs();WX=R(VX()),YX=i(t=>e=>{let r=e.credentials,n=!!e.credentials,s;Object.defineProperty(e,"credentials",{set(d){d&&d!==r&&d!==s&&(n=!0),r=d;let p=kLt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=OLt(e,p);if(n&&!f.attributed){let m=typeof r=="object"&&r!==null;s=i(async h=>{let y=await f(h);return m&&(!y.$source||Object.keys(y.$source).length===0)?rp(y,"CREDENTIALS_CODE","e"):y},"resolvedCredentials"),s.memoized=f.memoized,s.configBound=f.configBound,s.attributed=!0}else s=f},get(){return s},enumerable:!0,configurable:!0}),e.credentials=r;let{signingEscapePath:o=!0,systemClockOffset:a=e.systemClockOffset||0,sha256:c}=e,l;return e.signer?l=Wi(e.signer):e.regionInfoProvider?l=i(()=>Wi(e.region)().then(async d=>[await e.regionInfoProvider(d,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},d]).then(([d,p])=>{let{signingRegion:f,signingService:m}=d;e.signingRegion=e.signingRegion||f||p,e.signingName=e.signingName||m||e.serviceId;let h={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},A=e.signerConstructor||WX.SignatureV4;return new A(h)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Wi(e.region)(),properties:{}},d);let p=d.signingRegion,f=d.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||f||e.serviceId;let m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:o},h=e.signerConstructor||WX.SignatureV4;return new h(m)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:Wi(e.disableClockSkewCorrection??t)})},"bindResolveAwsSdkSigV4Config");i(kLt,"normalizeCredentialProvider");i(OLt,"bindCallerConfig")});var JX=g(()=>{vX();hOe();EOe();COe();VOe()});var LLt,MLt,WOe,YOe=g(()=>{bt();LLt="AWS_DISABLE_CLOCK_SKEW_CORRECTION",MLt="disable_clock_skew_correction",WOe={environmentVariableSelector:i(t=>mn(t,LLt,qr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>mn(t,MLt,qr.CONFIG),"configFileSelector"),default:!1}});var JOe,jOe=g(()=>{bt();YOe();JOe=Qe(WOe)});var _O={};cr(_O,{AWSSDKSigV4Signer:()=>_X,AwsSdkSigV4ASigner:()=>Vu,AwsSdkSigV4Signer:()=>yn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>Ua,NODE_SIGV4A_CONFIG_OPTIONS:()=>Ib,getBearerTokenEnvKey:()=>wO,resolveAWSSDKSigV4Config:()=>FLt,resolveAwsSdkSigV4AConfig:()=>Cb,resolveAwsSdkSigV4Config:()=>Ol,validateSigningProperties:()=>UE});var Ol,FLt,rs=g(()=>{JX();DX();JX();jOe();Ol=YX(JOe),FLt=Ol});var jX=S(Dp=>{var{setCredentialFeature:ULt}=(Et(),Z(Fa)),{CredentialsProviderError:qLt}=(bt(),Z(Ui)),KOe="AWS_ACCESS_KEY_ID",XOe="AWS_SECRET_ACCESS_KEY",ZOe="AWS_SESSION_TOKEN",eLe="AWS_CREDENTIAL_EXPIRATION",tLe="AWS_CREDENTIAL_SCOPE",rLe="AWS_ACCOUNT_ID",$Lt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[KOe],r=process.env[XOe],n=process.env[ZOe],s=process.env[eLe],o=process.env[tLe],a=process.env[rLe];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return ULt(c,"CREDENTIALS_ENV_VARS","g"),c}throw new qLt("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");Dp.ENV_ACCOUNT_ID=rLe;Dp.ENV_CREDENTIAL_SCOPE=tLe;Dp.ENV_EXPIRATION=eLe;Dp.ENV_KEY=KOe;Dp.ENV_SECRET=XOe;Dp.ENV_SESSION=ZOe;Dp.fromEnv=$Lt});var Ll,wb=g(()=>{Ll=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 kp,vO=g(()=>{wb();kp=class t extends Ll{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var QO,nLe=g(()=>{wb();QO=class t extends Ll{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var DO,KX=g(()=>{wb();DO=i((...t)=>async()=>{if(t.length===0)throw new Ll("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 kO,XX=g(()=>{kO=i(t=>()=>Promise.resolve(t),"fromValue")});var $E,OO=g(()=>{$E=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 Yi,LO=g(()=>{Yi=i((t,e,r)=>{if(e in t){if(t[e]==="true")return!0;if(t[e]==="false")return!1;throw new Error(`Cannot load ${r} "${e}". Expected "true" or "false", got ${t[e]}.`)}},"booleanSelector")});var sLe,oLe=g(()=>{sLe=i((t,e,r)=>{if(!(e in t))return;let n=parseInt(t[e],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${e}'. Expected number, got '${t[e]}'.`);return n},"numberSelector")});var oo,MO=g(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(oo||(oo={}))});var iLe,aLe,ZX,GLt,Ml,GE=g(()=>{iLe=require("node:os"),aLe=require("node:path"),ZX={},GLt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Ml=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${aLe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=GLt();return ZX[s]||(ZX[s]=(0,iLe.homedir)()),ZX[s]},"getHomeDir")});var e7,t7,FO,r7=g(()=>{e7="AWS_PROFILE",t7="default",FO=i(t=>t.profile||process.env[e7]||t7,"getProfileName")});var cLe,lLe,UO,n7=g(()=>{cLe=require("node:crypto"),lLe=require("node:path");GE();UO=i(t=>{let r=(0,cLe.createHash)("sha1").update(t).digest("hex");return(0,lLe.join)(Ml(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var uLe,xb,dLe,s7=g(()=>{uLe=require("node:fs/promises");n7();xb={},dLe=i(async t=>{if(xb[t])return xb[t];let e=UO(t),r=await(0,uLe.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Op,pLe=g(()=>{Op="."});var o7,fLe,mLe=g(()=>{o7=R(Xn()),fLe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(o7.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===o7.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var hLe,HLt,qO,i7=g(()=>{hLe=require("node:path");GE();HLt="AWS_CONFIG_FILE",qO=i(()=>process.env[HLt]||(0,hLe.join)(Ml(),".aws","config"),"getConfigFilepath")});var ALe,zLt,gLe,yLe=g(()=>{ALe=require("node:path");GE();zLt="AWS_SHARED_CREDENTIALS_FILE",gLe=i(()=>process.env[zLt]||(0,ALe.join)(Ml(),".aws","credentials"),"getCredentialsFilepath")});var ELe,VLt,WLt,bb,a7=g(()=>{ELe=R(Xn()),VLt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,WLt=["__proto__","profile __proto__"],bb=i(t=>{let e={},r,n;for(let s of t.split(/\r?\n/)){let o=s.split(/(^|\s)[;#]/)[0].trim();if(o[0]==="["&&o[o.length-1]==="]"){r=void 0,n=void 0;let c=o.substring(1,o.length-1),l=VLt.exec(c);if(l){let[,u,,d]=l;Object.values(ELe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(WLt.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=o.indexOf("=");if(![0,-1].includes(c)){let[l,u]=[o.substring(0,c).trim(),o.substring(c+1).trim()];if(u==="")n=l;else{n&&s.trimStart()===s&&(n=void 0),e[r]=e[r]||{};let d=n?[n,l].join("."):l;e[r][d]=u}}}}return e},"parseIni")});var CLe,c7,Bb,Sh,Rb=g(()=>{CLe=require("node:fs/promises"),c7={},Bb={},Sh=i((t,e)=>Bb[t]!==void 0?Bb[t]:((!c7[t]||e?.ignoreCache)&&(c7[t]=(0,CLe.readFile)(t,"utf8")),c7[t]),"readFile")});var l7,ILe,HE,$O=g(()=>{l7=require("node:path");mLe();i7();yLe();GE();a7();Rb();ILe=i(()=>({}),"swallowError"),HE=i(async(t={})=>{let{filepath:e=gLe(),configFilepath:r=qO()}=t,n=Ml(),s="~/",o=e;e.startsWith(s)&&(o=(0,l7.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,l7.join)(n,r.slice(2)));let c=await Promise.all([Sh(a,{ignoreCache:t.ignoreCache}).then(bb).then(fLe).catch(ILe),Sh(o,{ignoreCache:t.ignoreCache}).then(bb).catch(ILe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var SLe,wLe,xLe=g(()=>{SLe=R(Xn()),wLe=i(t=>Object.entries(t).filter(([e])=>e.startsWith(SLe.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var YLt,bLe,BLe=g(()=>{i7();xLe();a7();Rb();YLt=i(()=>({}),"swallowError"),bLe=i(async(t={})=>Sh(t.configFilepath??qO()).then(bb).then(wLe).catch(YLt),"loadSsoSessionData")});var RLe,NLe=g(()=>{RLe=i((...t)=>{let e={};for(let r of t)for(let[n,s]of Object.entries(r))e[n]!==void 0?Object.assign(e[n],s):e[n]=s;return e},"mergeConfigFiles")});var TLe,PLe=g(()=>{$O();NLe();TLe=i(async t=>{let e=await HE(t);return RLe(e.configFile,e.credentialsFile)},"parseKnownFiles")});var _Le,vLe=g(()=>{s7();Rb();_Le={getFileRecord(){return Bb},interceptFile(t,e){Bb[t]=Promise.resolve(e)},getTokenRecord(){return xb},interceptToken(t,e){xb[t]=e}}});function GO(t){try{let e=new Set(Array.from(t.match(/([A-Z_]){3,}/g)??[]));return e.delete("CONFIG"),e.delete("CONFIG_PREFIX_SEPARATOR"),e.delete("ENV"),[...e].join(", ")}catch{return t}}var u7=g(()=>{i(GO,"getSelectorName")});var QLe,DLe=g(()=>{vO();u7();QLe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new kp(r.message||`Not found in ENV: ${GO(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var kLe,OLe=g(()=>{vO();r7();$O();u7();kLe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=FO(r),{configFile:s,credentialsFile:o}=await HE(r),a=o[n]||{},c=s[n]||{},l=e==="config"?{...a,...c}:{...c,...a};try{let d=t(l,e==="config"?s:o);if(d===void 0)throw new Error;return d}catch(u){throw new kp(u.message||`Not found in config files w/ profile [${n}]: ${GO(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var JLt,HO,d7=g(()=>{XX();JLt=i(t=>typeof t=="function","isFunction"),HO=i(t=>JLt(t)?async()=>await t():kO(t),"fromStatic")});var Nb,p7=g(()=>{KX();OO();DLe();OLe();d7();Nb=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return $E(DO(QLe(t,{signingName:s,logger:o}),kLe(e,n),HO(r)))},"loadConfig")});var zO,VO,LLe,MLe,FLe,ULe=g(()=>{LO();MO();zO="AWS_USE_DUALSTACK_ENDPOINT",VO="use_dualstack_endpoint",LLe=!1,MLe={environmentVariableSelector:i(t=>Yi(t,zO,oo.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Yi(t,VO,oo.CONFIG),"configFileSelector"),default:!1},FLe={environmentVariableSelector:i(t=>Yi(t,zO,oo.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Yi(t,VO,oo.CONFIG),"configFileSelector"),default:void 0}});var WO,YO,qLe,$Le,GLe,HLe=g(()=>{LO();MO();WO="AWS_USE_FIPS_ENDPOINT",YO="use_fips_endpoint",qLe=!1,$Le={environmentVariableSelector:i(t=>Yi(t,WO,oo.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Yi(t,YO,oo.CONFIG),"configFileSelector"),default:!1},GLe={environmentVariableSelector:i(t=>Yi(t,WO,oo.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Yi(t,YO,oo.CONFIG),"configFileSelector"),default:void 0}});var f7,m7,zLe=g(()=>{f7=R(Xn()),m7=i(t=>t[f7.SMITHY_CONTEXT_KEY]||(t[f7.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function ut(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var VLe=g(()=>{i(ut,"hasOwn")});function jLt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Ns,WLe=g(()=>{Ns=class t{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){let r=new t({...e,headers:{...e.headers}});return r.query&&(r.query=jLt(r.query)),r}static isInstance(e){if(!e)return!1;let r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return t.clone(this)}};i(jLt,"cloneQuery")});var wh,YLe=g(()=>{wh=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;let r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var KLt,JO,JLe=g(()=>{KLt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),JO=i((t,e=!1)=>{if(!e)return KLt.test(t);let r=t.split(".");for(let n of r)if(!JO(n))return!1;return!0},"isValidHostLabel")});function Tb(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var jLe=g(()=>{i(Tb,"isValidHostname")});var Lp,KLe=g(()=>{Lp=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function Pb(t){let e={};if(t=t.replace(/^\?/,""),t)for(let r of t.split("&")){let[n,s=null]=r.split("=");n=decodeURIComponent(n),s&&(s=decodeURIComponent(s)),n in e?Array.isArray(e[n])?e[n].push(s):e[n]=[e[n],s]:e[n]=s}return e}var h7=g(()=>{i(Pb,"parseQueryString")});var jO,XLe=g(()=>{h7();jO=i(t=>{if(typeof t=="string")return jO(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=Pb(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var nr=g(()=>{zLe();VLe();WLe();YLe();JLe();jLe();KLe();h7();XLe()});var xh,A7=g(()=>{xh=i(t=>typeof t=="function"?t():t,"deref")});function Fl(t){if(typeof t=="object")return t;if(t=t|0,KO[t])return KO[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return KO[t]=e}var KO,g7=g(()=>{KO=[];i(Fl,"translateTraits")});function vb(t,e){if(t instanceof We)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=We;return new r(t,e)}var _b,XO,ZO,We,y7,ZLe,eMe=g(()=>{A7();g7();_b={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},XO=[],ZO={},We=class t{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=t.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,r){this.ref=e,this.memberName=r;let n=[],s=e,o=e;for(this._isMemberSchema=!1;y7(s);)n.push(s[1]),s=s[0],o=xh(s),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let a=n.length-1;a>=0;--a){let c=n[a];Object.assign(this.memberTraits,Fl(c))}}else this.memberTraits=0;if(o instanceof t){let a=this.memberTraits;Object.assign(this,o),this.memberTraits=Object.assign({},a,o.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??o.memberName;return}if(this.schema=xh(o),ZLe(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(o),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){let r=this.prototype.isPrototypeOf(e);return!r&&typeof e=="object"&&e!==null?e.symbol===this.symbol:r}static of(e){let r=typeof e=="function"||typeof e=="object"&&e!==null;if(typeof e=="number"){if(XO[e])return XO[e]}else if(typeof e=="string"){if(ZO[e])return ZO[e]}else if(r&&e[_b.ns])return e[_b.ns];let n=xh(e);if(n instanceof t)return n;if(y7(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Fl(a)),o;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}let s=new t(n);return r?e[_b.ns]=s:typeof n=="string"?ZO[n]=s:typeof n=="number"?XO[n]=s:s}getSchema(){let e=this.schema;return Array.isArray(e)&&e[0]===0?e[4]:e}getName(e=!1){let{name:r}=this;return!e&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let e=this.getSchema();return typeof e=="number"?e>=64&&e<128:e[0]===1}isMapSchema(){let e=this.getSchema();return typeof e=="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){let e=this.getSchema();if(typeof e!="object")return!1;let r=e[0];return r===3||r===-3||r===4}isUnionSchema(){let e=this.getSchema();return typeof e!="object"?!1:e[0]===4}isBlobSchema(){let e=this.getSchema();return e===21||e===42}isTimestampSchema(){let e=this.getSchema();return typeof e=="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Fl(this.memberTraits)}getOwnTraits(){return Fl(this.traits)}getKeySchema(){let[e,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),s=e?15:n[4]??0;return vb([s,0],"key")}getValueSchema(){let e=this.getSchema(),[r,n,s]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o=typeof e=="number"?63&e:e&&typeof e=="object"&&(n||s)?e[3+e[0]]:r?15:void 0;if(o!=null)return vb([o,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(e)){let n=r[4].indexOf(e),s=r[5][n];return vb(y7(s)?s:[s,0],e)}if(this.isDocumentSchema())return vb([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){let e={};try{for(let[r,n]of this.structIterator())e[r]=n}catch{}return e}getEventStreamMember(){if(this.isStructSchema()){for(let[e,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return e}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let e=this.getSchema(),r=e[4].length,n=e[_b.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let s=0;s<r;++s){let o=e[4][s],a=vb([e[5][s],0],o);yield n[s]=[o,a]}e[_b.it]=n}};i(vb,"member");y7=i(t=>Array.isArray(t)&&t.length===2,"isMemberSchema"),ZLe=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Ul,tMe=g(()=>{Ul=class t{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(e,r=new Map,n=new Map){this.namespace=e,this.schemas=r,this.exceptions=n,t.registries.has(e)||t.registries.set(e,this)}static for(e){return t.registries.get(e)??new t(e)}copyFrom(e){let{schemas:r,exceptions:n}=this;for(let[s,o]of e.schemas)r.has(s)||r.set(s,o);for(let[s,o]of e.exceptions)n.has(s)||n.set(s,o)}register(e,r){let n=this.normalizeShapeId(e);for(let s of[this,t.for(n.split("#")[0])])s.schemas.has(n)||s.schemas.set(n,r)}getSchema(e){let r=this.normalizeShapeId(e);if(!this.schemas.has(r)){if(!e.includes("#")){let n="#"+e,s=[];for(let[o,a]of this.schemas.entries())o.endsWith(n)&&s.push(a);if(s.length===1)return s[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(e,r){let n=e,s=n[1],o=s+"#"+n[2];r.hasOwnProperty?.("shapeId")||(r.shapeId=o);for(let a of[this,t.for(s)])!a.schemas.has(o)&&!a.exceptions.has(n)&&(a.schemas.set(o,n),a.exceptions.set(n,r))}getErrorCtor(e){let r=e;return this.exceptions.has(r)?this.exceptions.get(r):t.for(r[1]).exceptions.get(r)}getBaseException(){for(let e of this.exceptions.keys())if(Array.isArray(e)){let[,r,n]=e,s=r+"#"+n;if(s.startsWith("smithy.ts.sdk.synthetic.")&&s.endsWith("ServiceException"))return e}}find(e){for(let r of this.schemas.values())if(e(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}}});var Ts=g(()=>{A7();eMe();g7();tMe()});var E7=g(()=>{nr()});var rMe,nMe=g(()=>{E7();rMe=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:Lp(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:Lp(s??!1)})},"resolveCustomEndpointsConfig")});var sMe,oMe=g(()=>{sMe=i(async t=>{let{tls:e=!0}=t,r=await t.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let s=await t.useDualstackEndpoint(),o=await t.useFipsEndpoint(),{hostname:a}=await t.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return t.urlParser(`${e?"https:":"http:"}//${a}`)},"getEndpointFromRegion")});var iMe,aMe=g(()=>{E7();oMe();iMe=i(t=>{let e=Lp(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?Lp(typeof r=="string"?s(r):r):()=>sMe({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var cMe,C7,I7,lMe,uMe,dMe,pMe,fMe,mMe,S7=g(()=>{cMe="AWS_EXECUTION_ENV",C7="AWS_REGION",I7="AWS_DEFAULT_REGION",lMe="AWS_EC2_METADATA_DISABLED",uMe=["in-region","cross-region","mobile","standard","legacy"],dMe="/latest/meta-data/placement/region",pMe="/latest/api/token",fMe="x-aws-ec2-metadata-token",mMe="x-aws-ec2-metadata-token-ttl-seconds"});var hMe,XLt,yMe,eL,AMe,ZLt,gMe,w7=g(()=>{S7();hMe=1e3,XLt=6e4,yMe=0,eL=i(async()=>{if(!process.env[lMe]&&!(Date.now()<yMe))try{let t=ZLt(),e=(await gMe({...t,path:pMe,method:"PUT",headers:{[mMe]:"21600"}})).toString();return(await gMe({...t,path:dMe,method:"GET",headers:{[fMe]:e}})).toString().trim()||AMe()}catch{return AMe()}},"getInstanceMetadataRegion"),AMe=i(()=>{yMe=Date.now()+XLt},"cacheNegativeAndReturnUndefined"),ZLt=i(()=>{let t=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(t){let e=new URL(t);return{hostname:e.hostname.replace(/^\[(.+)]$/,"$1"),port:e.port?Number(e.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},"resolveImdsEndpoint"),gMe=i(async t=>{let{request:e}=await import("node:http");return new Promise((r,n)=>{let s=e({hostname:t.hostname,port:t.port,path:t.path,method:t.method,headers:t.headers,timeout:hMe,signal:AbortSignal.timeout(hMe)});s.on("error",o=>{n(o),s.destroy()}),s.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),s.destroy()}),s.on("response",o=>{let{statusCode:a=400}=o;if(a<200||a>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:a})),s.destroy();return}let c=[];o.on("data",l=>c.push(l)),o.on("end",()=>{r(Buffer.concat(c)),s.destroy()})}),s.end()})},"imdsRequest")});var x7,b7,tL,EMe,B7=g(()=>{w7();x7="AWS_REGION",b7="region",tL={environmentVariableSelector:i(t=>t[x7],"environmentVariableSelector"),configFileSelector:i(t=>t[b7],"configFileSelector"),default:i(async()=>{let t=await eL();if(t)return t;throw new Error("Region is missing")},"default")},EMe={preferredFile:"credentials"}});var CMe,IMe,SMe=g(()=>{nr();CMe=new Set,IMe=i((t,e=JO)=>{if(!CMe.has(t)&&!e(t))if(t==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${t}" is not a valid hostname component.`);else CMe.add(t)},"checkRegion")});var rL,R7=g(()=>{rL=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var wMe,xMe=g(()=>{R7();wMe=i(t=>rL(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var bMe,BMe=g(()=>{SMe();xMe();R7();bMe=i(t=>{let{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return Object.assign(t,{region:i(async()=>{let n=typeof e=="function"?await e():e,s=wMe(n);return IMe(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return rL(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var N7,RMe=g(()=>{N7=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var NMe,TMe=g(()=>{NMe=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var PMe,_Me=g(()=>{PMe=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var vMe,QMe=g(()=>{vMe=i((t,{signingRegion:e,regionRegex:r,useFipsEndpoint:n})=>{if(e)return e;if(n){let s=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),o=t.match(s);if(o)return o[0].slice(1,-1)}},"getResolvedSigningRegion")});var DMe,kMe=g(()=>{RMe();TMe();_Me();QMe();DMe=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=PMe(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=N7(s[c]?.variants,l),d=N7(o[a]?.variants,l),p=NMe(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=vMe(p,{signingRegion:s[c]?.signingRegion,regionRegex:o[a].regionRegex,useFipsEndpoint:e});return{partition:a,signingService:n,hostname:p,...f&&{signingRegion:f},...s[c]?.signingService&&{signingService:s[c].signingService}}},"getRegionInfo")});var eMt,tMt,OMe,LMe=g(()=>{eMt="AWS_DEFAULTS_MODE",tMt="defaults_mode",OMe={environmentVariableSelector:i(t=>t[eMt],"environmentVariableSelector"),configFileSelector:i(t=>t[tMt],"configFileSelector"),default:"legacy"}});var MMe,rMt,nMt,FMe=g(()=>{B7();w7();p7();OO();S7();LMe();MMe=i(({region:t=Nb(tL),defaultsMode:e=Nb(OMe)}={})=>$E(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return rMt(t);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${uMe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),rMt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await nMt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),nMt=i(async()=>process.env[cMe]&&(process.env[C7]||process.env[I7])?process.env[C7]??process.env[I7]:eL(),"inferPhysicalRegion")});var UMe={};cr(UMe,{CONFIG_PREFIX_SEPARATOR:()=>Op,CONFIG_USE_DUALSTACK_ENDPOINT:()=>VO,CONFIG_USE_FIPS_ENDPOINT:()=>YO,CredentialsProviderError:()=>kp,DEFAULT_PROFILE:()=>t7,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>LLe,DEFAULT_USE_FIPS_ENDPOINT:()=>qLe,ENV_PROFILE:()=>e7,ENV_USE_DUALSTACK_ENDPOINT:()=>zO,ENV_USE_FIPS_ENDPOINT:()=>WO,NODE_REGION_CONFIG_FILE_OPTIONS:()=>EMe,NODE_REGION_CONFIG_OPTIONS:()=>tL,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>MLe,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>$Le,ProviderError:()=>Ll,REGION_ENV_NAME:()=>x7,REGION_INI_NAME:()=>b7,SelectorType:()=>oo,TokenProviderError:()=>QO,booleanSelector:()=>Yi,chain:()=>DO,externalDataInterceptor:()=>_Le,fromStatic:()=>HO,fromValue:()=>kO,getHomeDir:()=>Ml,getProfileName:()=>FO,getRegionInfo:()=>DMe,getSSOTokenFilepath:()=>UO,getSSOTokenFromFile:()=>dLe,loadConfig:()=>Nb,loadSharedConfigFiles:()=>HE,loadSsoSessionData:()=>bLe,memoize:()=>$E,nodeDualstackConfigSelectors:()=>FLe,nodeFipsConfigSelectors:()=>GLe,numberSelector:()=>sLe,parseKnownFiles:()=>TLe,readFile:()=>Sh,resolveCustomEndpointsConfig:()=>rMe,resolveDefaultsModeConfig:()=>MMe,resolveEndpointsConfig:()=>iMe,resolveRegionConfig:()=>bMe});var qMe=g(()=>{wb();vO();nLe();KX();XX();OO();LO();oLe();MO();GE();r7();n7();s7();pLe();$O();BLe();PLe();vLe();Rb();p7();d7();ULe();HLe();nMe();aMe();B7();BMe();kMe();FMe()});var $Me,GMe=g(()=>{$Me=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var zE,nL,VE=g(()=>{GMe();zE=i((t,e=0,r=t.byteLength-e)=>{if(!$Me(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),nL=i((t,e)=>{if(typeof t!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof t} (${t})`);return e?Buffer.from(t,e):Buffer.from(t)},"fromString")});var sMt,Wu,HMe=g(()=>{VE();sMt=/^[A-Za-z0-9+/]*={0,2}$/,Wu=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!sMt.exec(t))throw new TypeError("Invalid base64 string.");let e=nL(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Mp,T7=g(()=>{VE();Mp=i(t=>{let e=nL(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var qa,zMe=g(()=>{VE();T7();qa=i(t=>{let e;if(typeof t=="string"?e=Mp(t):e=t,typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return zE(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function VMe(t,e,r,n){return class sL extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?sL.mutate(n(o)):sL.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,sL.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var WMe=g(()=>{i(VMe,"bindUint8ArrayBlobAdapter")});var Ji,YMe=g(()=>{VE();Ji=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 zE(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function JMe(t){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let e=new Uint8Array(16);return t(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,ns[e[0]]+ns[e[1]]+ns[e[2]]+ns[e[3]]+"-"+ns[e[4]]+ns[e[5]]+"-"+ns[e[6]]+ns[e[7]]+"-"+ns[e[8]]+ns[e[9]]+"-"+ns[e[10]]+ns[e[11]]+ns[e[12]]+ns[e[13]]+ns[e[14]]+ns[e[15]]}}var ns,jMe=g(()=>{ns=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(JMe,"bindV4")});var P7,oMt,KMe,iMt,XMe,ZMe,eFe,aMt,tFe,rFe,cMt,oL,Qb,nFe,lMt,uMt,sFe=g(()=>{P7=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&uMt.warn(lMt(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),oMt=Math.ceil(2**127*(2-2**-23)),KMe=i(t=>{let e=P7(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>oMt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),iMt=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),XMe=i(t=>eFe(t,16),"expectShort"),ZMe=i(t=>eFe(t,8),"expectByte"),eFe=i((t,e)=>{let r=iMt(t);if(r!==void 0&&aMt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),aMt=i((t,e)=>{switch(e){case 32:return Int32Array.of(t)[0];case 16:return Int16Array.of(t)[0];case 8:return Int8Array.of(t)[0]}},"castInt"),tFe=i(t=>P7(typeof t=="string"?oL(t):t),"strictParseDouble"),rFe=i(t=>KMe(typeof t=="string"?oL(t):t),"strictParseFloat32"),cMt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,oL=i(t=>{let e=t.match(cMt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),Qb=i(t=>XMe(typeof t=="string"?oL(t):t),"strictParseShort"),nFe=i(t=>ZMe(typeof t=="string"?oL(t):t),"strictParseByte"),lMt=i(t=>String(new TypeError(t).stack||t).split(`
|
|
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
|
|
`),"stackTraceWarning"),uMt={warn:console.warn}});function bh(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`${dMt[n]}, ${l} ${v7[r]} ${e} ${u}:${d}:${p} GMT`}var dMt,v7,nin,pMt,kb,fMt,mMt,hMt,Ob,Lb,iL,AMt,gMt,yMt,_7,EMt,CMt,IMt,Fp,SMt,wMt,Db,oFe=g(()=>{sFe();dMt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],v7=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(bh,"dateToUtcString");nin=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),pMt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),kb=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=pMt.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=Qb(Db(n)),f=Fp(s,"month",1,12),m=Fp(o,"day",1,31),h=iL(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-wMt(d)),h},"parseRfc3339DateTimeWithOffset"),fMt=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$/),mMt=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$/),hMt=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})$/),Ob=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=fMt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return iL(Qb(Db(o)),_7(s),Fp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=mMt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return yMt(iL(AMt(o),_7(s),Fp(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=hMt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return iL(Qb(Db(u)),_7(n),Fp(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),Lb=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=tFe(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"),iL=i((t,e,r,n)=>{let s=e-1;return CMt(t,s,r),new Date(Date.UTC(t,s,r,Fp(n.hours,"hour",0,23),Fp(n.minutes,"minute",0,59),Fp(n.seconds,"seconds",0,60),SMt(n.fractionalMilliseconds)))},"buildDate"),AMt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Qb(Db(t));return r<e?r+100:r},"parseTwoDigitYear"),gMt=50*365*24*60*60*1e3,yMt=i(t=>t.getTime()-new Date().getTime()>gMt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),_7=i(t=>{let e=v7.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),EMt=[31,28,31,30,31,30,31,31,30,31,30,31],CMt=i((t,e,r)=>{let n=EMt[e];if(e===1&&IMt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${v7[e]} in ${t}: ${r}`)},"validateDayOfMonth"),IMt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Fp=i((t,e,r,n)=>{let s=nFe(Db(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),SMt=i(t=>t==null?0:rFe("0."+t)*1e3,"parseMilliseconds"),wMt=i(t=>{let e=t[0],r=1;if(e=="+")r=1;else if(e=="-")r=-1;else throw new TypeError(`Offset direction, ${e}, must be "+" or "-"`);let n=Number(t.substring(1,3)),s=Number(t.substring(4,6));return r*(n*60+s)*60*1e3},"parseOffsetToMilliseconds"),Db=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var rn,iFe=g(()=>{rn=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");rn.from=t=>t&&typeof t=="object"&&(t instanceof rn||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?rn(String(t)):rn(JSON.stringify(t));rn.fromObject=rn.from});function Q7(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var aFe=g(()=>{i(Q7,"quoteHeader")});function Yu(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var D7,k7,O7,cFe,lFe,xMt,bMt,BMt,RMt,NMt,L7,M7,F7,uFe=g(()=>{D7="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k7="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",O7="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",cFe="(\\d?\\d)",lFe="(\\d{4})",xMt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),bMt=new RegExp(`^${D7}, ${cFe} ${k7} ${lFe} ${O7} GMT$`),BMt=new RegExp(`^${D7}, ${cFe}-${k7}-(\\d\\d) ${O7} GMT$`),RMt=new RegExp(`^${D7} ${k7} ( [1-9]|\\d\\d) ${O7} ${lFe}$`),NMt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],L7=i(t=>{if(t==null)return;let e=NaN;if(typeof t=="number")e=t;else if(typeof t=="string"){if(!/^-?\d*\.?\d+$/.test(t))throw new TypeError("parseEpochTimestamp - numeric string invalid.");e=Number.parseFloat(t)}else typeof t=="object"&&t.tag===1&&(e=t.value);if(isNaN(e)||Math.abs(e)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(e*1e3))},"_parseEpochTimestamp"),M7=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=xMt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;Yu(n,1,12),Yu(s,1,31),Yu(o,0,23),Yu(a,0,59),Yu(c,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(s),Number(o),Number(a),Number(c),Number(l)?Math.round(parseFloat(`0.${l}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,p,f,m]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],h=p==="-"?1:-1;d.setTime(d.getTime()+h*(Number(f)*60*60*1e3+Number(m)*60*1e3))}return d},"_parseRfc3339DateTimeWithOffset"),F7=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC7231 timestamps must be strings.");let e,r,n,s,o,a,c,l;if((l=bMt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=BMt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=RMt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),NMt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Yu(e,1,31),Yu(s,0,23),Yu(o,0,59),Yu(a,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${t}.`)},"_parseRfc7231DateTime");i(Yu,"range")});function U7(t,e,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=t.split(e);if(r===1)return n;let s=[],o="";for(let a=0;a<n.length;a++)o===""?o=n[a]:o+=e+n[a],(a+1)%r===0&&(s.push(o),o="");return o!==""&&s.push(o),s}var dFe=g(()=>{i(U7,"splitEvery")});var Mb,pFe=g(()=>{Mb=i(t=>{let e=t.length,r=[],n=!1,s,o=0;for(let a=0;a<e;++a){let c=t[a];switch(c){case'"':s!=="\\"&&(n=!n);break;case",":n||(r.push(t.slice(o,a)),o=a+1);break;default:}s=c}return r.push(t.slice(o)),r.map(a=>{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});var fFe,Nt,mFe=g(()=>{fFe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Nt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!fFe.test(e))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${e}"`)}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!="object")return!1;let r=e;return t.prototype.isPrototypeOf(e)||r.type==="bigDecimal"&&fFe.test(r.string)}}});function $7(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2){let n=t.slice(r,r+2).toLowerCase();if(n in q7)e[r/2]=q7[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function $a(t){let e="";for(let r=0;r<t.byteLength;r++)e+=hFe[t[r]];return e}var hFe,q7,G7=g(()=>{hFe={},q7={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),hFe[t]=e,q7[e]=t}i($7,"fromHex");i($a,"toHex")});function aL(t,e){if(e===void 0){e=0;for(let s of t)e+=s.byteLength}let r=new Uint8Array(e),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}var H7=g(()=>{i(aL,"concatBytes")});var Fb,cL,lL=g(()=>{Fb=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),cL=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var AFe,gFe=g(()=>{AFe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var yFe,Bin,EFe,uL,z7,CFe,IFe=g(()=>{yFe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bin=Object.entries(yFe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),EFe=yFe.split(""),uL=6,z7=8,CFe=63});function SFe(t){let e;typeof t=="string"?e=AFe(t):e=t;let r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let o=0;o<e.length;o+=3){let a=0,c=0;for(let u=o,d=Math.min(o+3,e.length);u<d;u++)a|=e[u]<<(d-u-1)*z7,c+=z7;let l=Math.ceil(c/uL);a<<=l*uL-c;for(let u=1;u<=l;u++){let d=(l-u)*uL;s+=EFe[(a&CFe<<d)>>d]}s+="==".slice(0,4-l)}return s}var wFe=g(()=>{gFe();IFe();i(SFe,"toBase64")});var xFe,bFe=g(()=>{xFe=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 V7(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function W7(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 aL(e,n)}var BFe,Y7=g(()=>{H7();lL();BFe=i(async t=>cL(t)?V7(t):W7(t),"streamCollector");i(V7,"collectBlob");i(W7,"collectReadableStream")});var RFe,TFe,NFe,PFe=g(()=>{wFe();G7();bFe();Y7();lL();RFe="The stream has already been transformed.",TFe=i(t=>{if(!NFe(t)&&!Fb(t)){let s=t?.__proto__?.constructor?.name||t;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let e=!1,r=i(async()=>{if(e)throw new Error(RFe);return e=!0,await BFe(t)},"transformToByteArray"),n=i(s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()},"blobToWebStream");return Object.assign(t,{transformToByteArray:r,transformToString:i(async s=>{let o=await r();if(s==="base64")return SFe(o);if(s==="hex")return $a(o);if(s===void 0||s==="utf8"||s==="utf-8")return xFe(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(RFe);if(e=!0,NFe(t))return n(t);if(Fb(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),NFe=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var _Fe,vFe,J7,QFe=g(()=>{_Fe=require("node:stream");H7();Y7();lL();vFe=i(t=>cL(t)?V7(t):Fb(t)?W7(t):new Promise((e,r)=>{let n=new J7,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=aL(this.bufferedBytes);e(o)})}),"streamCollector"),J7=class extends _Fe.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var dL,DFe,j7,kFe=g(()=>{dL=require("node:stream");VE();PFe();QFe();DFe="The stream has already been transformed.",j7=i(t=>{if(!(t instanceof dL.Readable))try{return TFe(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(DFe);return e=!0,await vFe(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?zE(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(DFe);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof dL.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,dL.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});var OFe,WE,TMt,PMt,YE,En=g(()=>{OFe=require("node:crypto");HMe();zMe();WMe();T7();YMe();jMe();oFe();iFe();aFe();uFe();dFe();pFe();mFe();G7();kFe();WE=class extends VMe(Ji,Mp,qa,Wu){static{i(this,"Uint8ArrayBlobAdapter")}},TMt=OFe.getRandomValues,PMt=JMe(TMt),YE=PMt});var io,JE=g(()=>{En();io=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return WE.mutate(t);if(!t)return WE.mutate(new Uint8Array);let r=e.streamCollector(t);return WE.mutate(await r)},"collectBody")});function Up(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var pL=g(()=>{i(Up,"extendedEncodeURIComponent")});var ji,jE=g(()=>{ji=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var LFe,K7,fL,MFe=g(()=>{LFe=new Uint32Array(256);for(let t=0;t<256;++t){let e=t;for(let r=0;r<8;++r)e=e&1?3988292384^e>>>1:e>>>1;LFe[t]=e>>>0}K7=4294967295,fL=class{static{i(this,"Crc32Js")}digestLength=4;checksum=K7;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^LFe[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^K7)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=K7}}});function _Mt(t){return class{static{i(this,"Crc32Node")}digestLength=4;value=0;update(r){this.value=t(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var X7,FFe,KE,UFe=g(()=>{X7=R(require("node:zlib"));MFe();FFe=typeof X7.crc32=="function"?X7.crc32:void 0,KE=FFe?_Mt(FFe):fL;i(_Mt,"buildNativeClass")});var Z7=g(()=>{UFe()});function qFe(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var qp,eZ=g(()=>{En();qp=class t{static{i(this,"Int64")}bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,s=Math.abs(Math.round(e));n>-1&&s>0;n--,s/=256)r[n]=s;return e<0&&qFe(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&qFe(e),parseInt($a(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(qFe,"negate")});var XE,$Fe,GFe,vMt,QMt,DMt,kMt,OMt,LMt,MMt,FMt,UMt,tZ=g(()=>{nr();En();eZ();XE=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(e,r){this.toUtf8=e,this.fromUtf8=r}format(e){let r=[];for(let o in e){if(!ut(e,o))continue;let a=this.fromUtf8(o);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(e[o]))}let n=new Uint8Array(r.reduce((o,a)=>o+a.byteLength,0)),s=0;for(let o of r)n.set(o,s),s+=o.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":let s=new Uint8Array(9);return s[0]=5,s.set(e.value.bytes,1),s;case"binary":let o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);let a=new Uint8Array(o.buffer);return a.set(e.value,3),a;case"string":let c=this.fromUtf8(e.value),l=new DataView(new ArrayBuffer(3+c.byteLength));l.setUint8(0,7),l.setUint16(1,c.byteLength,!1);let u=new Uint8Array(l.buffer);return u.set(c,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(qp.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!UMt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set($7(e.value.replace(/-/g,"")),1),p}}parse(e){let r={},n=0;for(;n<e.byteLength;){let s=e.getUint8(n++),o=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,s));switch(n+=s,e.getUint8(n++)){case 0:r[o]={type:GFe,value:!0};break;case 1:r[o]={type:GFe,value:!1};break;case 2:r[o]={type:vMt,value:e.getInt8(n++)};break;case 3:r[o]={type:QMt,value:e.getInt16(n,!1)},n+=2;break;case 4:r[o]={type:DMt,value:e.getInt32(n,!1)},n+=4;break;case 5:r[o]={type:kMt,value:new qp(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let a=e.getUint16(n,!1);n+=2,r[o]={type:OMt,value:new Uint8Array(e.buffer,e.byteOffset+n,a)},n+=a;break;case 7:let c=e.getUint16(n,!1);n+=2,r[o]={type:LMt,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,c))},n+=c;break;case 8:r[o]={type:MMt,value:new Date(new qp(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let l=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,r[o]={type:FMt,value:`${$a(l.subarray(0,4))}-${$a(l.subarray(4,6))}-${$a(l.subarray(6,8))}-${$a(l.subarray(8,10))}-${$a(l.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})($Fe||($Fe={}));GFe="boolean",vMt="byte",QMt="short",DMt="integer",kMt="long",OMt="binary",LMt="string",MMt="timestamp",FMt="uuid",UMt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function zFe({byteLength:t,byteOffset:e,buffer:r}){if(t<qMt)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,e,t),s=n.getUint32(0,!1);if(t!==s)throw new Error("Reported message length does not match received message length");let o=n.getUint32(HFe,!1),a=n.getUint32($p,!1),c=n.getUint32(t-Bh,!1),l=new KE;if(l.update(new Uint8Array(r,e,$p)),a!==l.digestSync())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${l.digestSync()})`);if(l.update(new Uint8Array(r,e+$p,t-($p+Bh))),c!==l.digestSync())throw new Error(`The message checksum (${l.digestSync()}) did not match the expected value of ${c}`);return{headers:new DataView(r,e+$p+Bh,o),body:new Uint8Array(r,e+$p+Bh+o,s-o-($p+Bh+Bh))}}var HFe,$p,Bh,qMt,VFe=g(()=>{Z7();HFe=4,$p=HFe*2,Bh=4,qMt=$p+Bh*2;i(zFe,"splitMessage")});var ZE,rZ=g(()=>{Z7();tZ();VFe();ZE=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new XE(e,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){let e=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return e},isEndOfStream(){return r}}}getAvailableMessages(){let e=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return e},isEndOfStream(){return r}}}encode({headers:e,body:r}){let n=this.headerMarshaller.format(e),s=n.byteLength+r.byteLength+16,o=new Uint8Array(s),a=new DataView(o.buffer,o.byteOffset,o.byteLength),c=new KE;return a.setUint32(0,s,!1),a.setUint32(4,n.byteLength,!1),c.update(o.subarray(0,8)),a.setUint32(8,c.digestSync(),!1),o.set(n,12),o.set(r,n.byteLength+12),c.update(o.subarray(8,s-4)),a.setUint32(s-4,c.digestSync(),!1),o}decode(e){let{headers:r,body:n}=zFe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var eC,nZ=g(()=>{eC=class{static{i(this,"MessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.decoder.decode(e)}}});var tC,sZ=g(()=>{tC=class{static{i(this,"MessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream)yield this.options.encoder.encode(e);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var rC,oZ=g(()=>{rC=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.messageStream){let r=await this.options.deserializer(e);r!==void 0&&(yield r)}}}});var nC,iZ=g(()=>{nC=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(e){this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let e of this.options.inputStream)yield this.options.serializer(e)}}});function mL(t){let e=0,r=0,n=null,s=null,o=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);e=c,r=4,n=new Uint8Array(c),new DataView(n.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=t[Symbol.asyncIterator]();for(;;){let{value:l,done:u}=await c.next();if(u){if(e)if(e===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=l.length,p=0;for(;p<d;){if(!n){let m=d-p;s||(s=new Uint8Array(4));let h=Math.min(4-r,m);if(s.set(l.slice(p,p+h),r),r+=h,p+=h,r<4)break;o(new DataView(s.buffer).getUint32(0,!1)),s=null}let f=Math.min(e-r,d-p);n.set(l.slice(p,p+f),r),r+=f,p+=f,e&&e===r&&(yield n,n=null,e=0,r=0)}}},"iterator");return{[Symbol.asyncIterator]:a}}var aZ=g(()=>{i(mL,"getChunkedStream")});function WFe(t,e){let r=Ub(e.deserializer,e.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of t){let s=e.eventStreamCodec.decode(n),o=await r(s);o!==void 0&&(yield o)}}}}function Ub(t,e){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let s=new Error(r.headers[":error-message"].value||"UnknownError");throw s.name=r.headers[":error-code"].value,s}else if(n==="exception"){let s=r.headers[":exception-type"].value,o={[s]:r},a=await t(o);if(a.$unknown){let c=new Error(e(r.body));throw c.name=s,c}throw a[s]}else if(n==="event"){let s={[r.headers[":event-type"].value]:r},o=await t(s);return o.$unknown?void 0:o}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var cZ=g(()=>{i(WFe,"getUnmarshalledStream");i(Ub,"getMessageUnmarshaller")});var Rh,YFe,lZ=g(()=>{rZ();nZ();sZ();oZ();iZ();aZ();cZ();Rh=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new ZE(e,r),this.utfEncoder=e}deserialize(e,r){let n=mL(e);return new rC({messageStream:new eC({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Ub(r,this.utfEncoder)})}serialize(e,r){return new tC({messageStream:new nC({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},YFe=i(t=>new Rh(t),"eventStreamSerdeProvider")});async function*$Mt(t){let e=!1,r=!1,n=new Array;for(t.on("error",s=>{if(e||(e=!0),s)throw s}),t.on("data",s=>{n.push(s)}),t.on("end",()=>{e=!0});!r;){let s=await new Promise(o=>setTimeout(()=>o(n.shift()),0));s&&(yield s),r=e&&n.length===0}}var JFe,qb,jFe,KFe=g(()=>{JFe=require("node:stream");lZ();qb=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Rh({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:$Mt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return JFe.Readable.from(this.universalMarshaller.serialize(e,r))}},jFe=i(t=>new qb(t),"eventStreamSerdeProvider");i($Mt,"readableToIterable")});var XFe,ZFe,e1e=g(()=>{XFe=i(t=>({[Symbol.asyncIterator]:async function*(){let e=t.getReader();try{for(;;){let{done:r,value:n}=await e.read();if(r)return;yield n}}finally{e.releaseLock()}}}),"readableStreamToIterable"),ZFe=i(t=>{let e=t[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:s}=await e.next();if(n)return r.close();r.enqueue(s)}})},"iterableToReadableStream")});var t1e,r1e=g(()=>{t1e=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var hL,n1e=g(()=>{nr();Ts();En();hL=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:e,serializer:r,deserializer:n,serdeContext:s,defaultContentType:o,compositeErrorRegistry:a}){this.marshaller=e,this.serializer=r,this.deserializer=n,this.serdeContext=s,this.defaultContentType=o,this.compositeErrorRegistry=a}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),c=r.getMemberSchema(a),l=this.serializer,u=this.defaultContentType,d=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(n){let f={":event-type":{type:"string",value:s??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};l.write(r,n);let m=l.flush();yield{[d]:!0,headers:f,body:m}}for await(let f of e)yield f}};return o.serialize(p,f=>{if(f[d])return{headers:f.headers,body:f.body};let m="";for(let x in f)if(ut(f,x)&&x!=="__type"){m=x;break}let{additionalHeaders:h,body:A,eventType:y,explicitPayloadContentType:E}=this.writeEventBody(m,c,f);return{headers:{":event-type":{type:"string",value:y},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:E??u},...h},body:A}})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n,initialMessageType:s}){let o=this.marshaller,a=r.getEventStreamMember(),l=r.getMemberSchema(a).getMemberSchemas(),u=Symbol("initialResponseMarker"),d=o.deserialize(e.body,async m=>{let h="";for(let y in m)if(ut(m,y)&&y!=="__type"){h=y;break}let A=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,A);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},I=!1;for(let[x,b]of y.structIterator()){let{eventHeader:N,eventPayload:v}=b.getMergedTraits();if(I=I||!!(N||v),v)b.isBlobSchema()?E[x]=A:b.isStringSchema()?E[x]=(this.serdeContext?.utf8Encoder??Ji)(A):b.isStructSchema()&&(E[x]=await this.deserializer.read(b,A));else if(N){let _=m[h].headers[x]?.value;_!=null&&(b.isNumericSchema()?_&&typeof _=="object"&&"bytes"in _?E[x]=BigInt(_.toString()):E[x]=Number(_):E[x]=_)}}return{[h]:await this.readEventMember(y,A,I,E)}}return{[h]:await this.deserializer.read(y,A)}}else return{$unknown:m}}),p=d[Symbol.asyncIterator](),f=await p.next();if(f.done)return d;if(f.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let m in f.value)ut(f.value,m)&&(n[m]=f.value[m])}return{async*[Symbol.asyncIterator](){for(f?.value?.[u]||(yield f.value);;){let{done:m,value:h}=await p.next();if(m)break;yield h}}}}async readEventMember(e,r,n,s){let o,a=e.getSchema();if(Array.isArray(a)&&a[0]===-3){let l=a[1],u=Ul.for(l);this.compositeErrorRegistry?.copyFrom(u),o=(this.compositeErrorRegistry??u)?.getErrorCtor(a)}let c=n?s:r.byteLength===0?{}:await this.deserializer.read(e,r);if(o){let l=c.message??c.Message??"Unknown",u={},d=e.getMergedTraits().error;return d&&(u.$fault=d),Object.assign(new o({}),u,{message:l},c)}return c}writeEventBody(e,r,n){let s=this.serializer,o=e,a=null,c,l=r.getSchema()[4].includes(e),u={};if(l){let f=r.getMemberSchema(e);if(f.isStructSchema()){for(let[m,h]of f.structIterator()){let{eventHeader:A,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(A){let E=n[e][m],I="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?I="integer":I="long":h.isTimestampSchema()?I="timestamp":h.isStringSchema()?I="string":h.isBooleanSchema()&&(I="boolean"),E!=null&&(u[m]={type:I,value:E},delete n[e][m])}}if(a!==null){let m=f.getMemberSchema(a);m.isBlobSchema()?c="application/octet-stream":m.isStringSchema()&&(c="text/plain"),s.write(m,n[e][a])}else s.write(f,n[e])}else if(f.isUnitSchema())s.write(f,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[f,m]=n[e];o=f,s.write(15,m)}let d=s.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??Mp)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var s1e={};cr(s1e,{EventStreamCodec:()=>ZE,EventStreamMarshaller:()=>qb,EventStreamSerde:()=>hL,HeaderMarshaller:()=>XE,Int64:()=>qp,MessageDecoderStream:()=>eC,MessageEncoderStream:()=>tC,SmithyMessageDecoderStream:()=>rC,SmithyMessageEncoderStream:()=>nC,UniversalEventStreamMarshaller:()=>Rh,eventStreamSerdeProvider:()=>jFe,getChunkedStream:()=>mL,getMessageUnmarshaller:()=>Ub,getUnmarshalledStream:()=>WFe,iterableToReadableStream:()=>ZFe,readableStreamToIterable:()=>XFe,resolveEventStreamSerdeConfig:()=>t1e,universalEventStreamSerdeProvider:()=>YFe});var o1e=g(()=>{rZ();tZ();eZ();nZ();sZ();oZ();iZ();KFe();e1e();lZ();aZ();cZ();r1e();n1e()});var Gp,AL=g(()=>{nr();Ts();nr();jE();Gp=class extends ji{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Ul(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Ns}getResponseType(){return wh}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,r){if("url"in r){e.protocol=r.url.protocol,e.hostname=r.url.hostname,e.port=r.url.port?Number(r.url.port):void 0,e.path=r.url.pathname,e.fragment=r.url.hash||void 0,e.username=r.url.username||void 0,e.password=r.url.password||void 0,e.query||(e.query={});for(let[n,s]of r.url.searchParams.entries())e.query[n]=s;if(r.headers)for(let n in r.headers)ut(r.headers,n)&&(e.headers[n]=r.headers[n].join(", "));return e}else{if(e.protocol=r.protocol,e.hostname=r.hostname,e.port=r.port?Number(r.port):void 0,e.path=r.path,e.query={...r.query},r.headers)for(let n in r.headers)ut(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=We.of(r.input),o=Fl(r.traits??{});if(o.endpoint){let a=o.endpoint?.[0];if(typeof a=="string"){for(let[c,l]of s.structIterator()){if(!l.getMergedTraits().hostLabel)continue;let u=n[c];if(typeof u!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,u)}if(e.hostname=a+e.hostname,!Tb(e.hostname))throw new Error(`[${e.hostname}] is not a valid hostname.`)}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}resolveError(e,r,n){let s=[-3,"","Error",0,[],[],0],o;for(let a of n)for(let c of r)try{c==="*"?o=a.getSchema(e):o=a.getSchema(c+"#"+e);let l=a.getErrorCtor(o);if(l)return[o,l,"modeled"];{let u=a.getBaseException();if(u){let d=a.getErrorCtor(u);if(d)return[o,d,"synthetic"]}}}catch{}for(let a of n){let c=a.getBaseException();if(c){let l=a.getErrorCtor(c);if(l)return[c,l,"synthetic"]}}return[s,Error,"native"]}async serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:r,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:r,initialResponseContainer:n})}async loadEventStreamCapability(){let{EventStreamSerde:e,eventStreamSerdeProvider:r}=await Promise.resolve().then(()=>(o1e(),s1e)),n=this.resolveEventStreamMarshaller(r);return new e({marshaller:n,serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType(),compositeErrorRegistry:this.compositeErrorRegistry})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,r,n,s,o){return[]}getEventStreamMarshaller(){let e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}resolveEventStreamMarshaller(e){let r=this.serdeContext;return r.eventStreamMarshaller?r.eventStreamMarshaller:e(this.serdeContext)}}});var gL,i1e=g(()=>{nr();Ts();En();nr();AL();JE();pL();gL=class extends Gp{static{i(this,"HttpBindingProtocol")}async serializeRequest(e,r,n){let s=r&&typeof r=="object"?r:{},o=this.serializer,a={},c={},l=await n.endpoint(),u=We.of(e?.input),d=[],p=[],f=!1,m,h=new Ns({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(l){this.updateServiceEndpoint(h,l),this.setHostPrefix(h,e,s);let A=Fl(e.traits);if(A.http){h.method=A.http[0];let[y,E]=A.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let I=new URLSearchParams(E??"");for(let[x,b]of I)a[x]=b}}for(let[A,y]of u.structIterator()){let E=y.getMergedTraits()??{},I=s[A];if(I==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${A}+}`)||h.path.includes(`{${A}}`)))throw new Error(`No value provided for input HTTP label: ${A}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[A]&&(m=await this.serializeEventStream({eventStream:s[A],requestSchema:u})):m=I:(o.write(y,I),m=o.flush());else if(E.httpLabel){o.write(y,I);let x=o.flush();h.path.includes(`{${A}+}`)?h.path=h.path.replace(`{${A}+}`,x.split("/").map(Up).join("/")):h.path.includes(`{${A}}`)&&(h.path=h.path.replace(`{${A}}`,Up(x)))}else if(E.httpHeader)o.write(y,I),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let x in I){if(!ut(I,x))continue;let b=I[x],N=E.httpPrefixHeaders+x;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,I,a):(f=!0,d.push(A),p.push(y))}if(f&&s){let[A,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],I=[3,A,y,u.getMergedTraits(),d,p,void 0];E?I[6]=E:I.pop(),o.write(I,s),m=o.flush()}return h.headers=c,h.query=a,h.body=m,h}serializeQuery(e,r,n){let s=this.serializer,o=e.getMergedTraits();if(o.httpQueryParams){for(let a in r)if(ut(r,a)&&!(a in n)){let c=r[a],l=e.getValueSchema();Object.assign(l.getMergedTraits(),{...o,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(l,c,n)}return}if(e.isListSchema()){let a=!!e.getMergedTraits().sparse,c=[];for(let l of r){s.write([e.getValueSchema(),o],l);let u=s.flush();(a||u!==void 0)&&c.push(u)}n[o.httpQuery]=c}else s.write([e,o],r),n[o.httpQuery]=s.flush()}async deserializeResponse(e,r,n){let s=this.deserializer,o=We.of(e.output),a={};if(n.statusCode>=300){let l=await io(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let l in n.headers){if(!ut(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=await this.deserializeHttpMessage(o,r,n,a);if(c.length){let l=await io(n.body,r);if(l.byteLength>0){let u=await s.read(o,l);for(let d of c)u[d]!=null&&(a[d]=u[d])}}else c.discardResponseBody&&await io(n.body,r);return a.$metadata=this.deserializeMetadata(n),a}async deserializeHttpMessage(e,r,n,s,o){let a;s instanceof Set?a=o:a=s;let c=!0,l=this.deserializer,u=We.of(e),d=[];for(let[p,f]of u.structIterator()){let m=f.getMemberTraits();if(m.httpPayload){if(c=!1,f.isStreaming())f.isStructSchema()?a[p]=await this.deserializeEventStream({response:n,responseSchema:u}):a[p]=j7(n.body);else if(n.body){let A=await io(n.body,r);A.byteLength>0&&(a[p]=await l.read(f,A))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),A=n.headers[h];if(A!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=U7(A,",",2):E=Mb(A);let I=[];for(let x of E)I.push(await l.read(y,x.trim()));a[p]=I}else a[p]=await l.read(f,A)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(ut(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let A=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,A)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var sC,uZ=g(()=>{nr();Ts();nr();AL();JE();sC=class extends Gp{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=We.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Ns({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:o,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(f,c),this.setHostPrefix(f,e,p)),p){let m=l.getEventStreamMember();if(m){if(p[m]){let h={};for(let[A]of l.structIterator())A!==m&&p[A]!=null&&(h[A]=p[A]);d=await this.serializeEventStream({eventStream:p[m],requestSchema:l,initialRequest:h})}}else s.write(u,p),d=s.flush()}return f.headers=Object.assign(f.headers,a),f.query=o,f.body=d,f.method="POST",f}async deserializeResponse(e,r,n){let s=this.deserializer,o=We.of(e.output),a={};if(n.statusCode>=300){let l=await io(n.body,r);throw l.byteLength>0&&Object.assign(a,await s.read(15,l)),await this.handleError(e,r,n,a,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let l in n.headers){if(!ut(n.headers,l))continue;let u=n.headers[l];delete n.headers[l],n.headers[l.toLowerCase()]=u}let c=o.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:n,responseSchema:o,initialResponseContainer:a});else{let l=await io(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var yL,dZ=g(()=>{pL();yL=i((t,e,r,n,s,o)=>{if(e!=null&&e[r]!==void 0){let a=n();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");t=t.replace(s,o?a.split("/").map(c=>Up(c)).join("/"):Up(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function a1e(t,e){return new $b(t,e)}var $b,c1e=g(()=>{nr();dZ();i(a1e,"requestBuilder");$b=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,r){this.input=e,this.context=r}async build(){let{hostname:e,protocol:r="https",port:n,path:s}=await this.context.endpoint();this.path=s;for(let o of this.resolvePathStack)o(this.path);return new Ns({protocol:r,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){return this.hostname=e,this}bp(e){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+e}),this}p(e,r,n,s){return this.resolvePathStack.push(o=>{this.path=yL(o,this.input,e,r,n,s)}),this}h(e){return this.headers=e,this}q(e){return this.query=e,this}b(e){return this.body=e,this}m(e){return this.method=e,this}}});function ao(t,e){if(e.timestampFormat.useTrait&&t.isTimestampSchema()&&(t.getSchema()===5||t.getSchema()===6||t.getSchema()===7))return t.getSchema();let{httpLabel:r,httpPrefixHeaders:n,httpHeader:s,httpQuery:o}=t.getMergedTraits();return(e.httpBindings?typeof n=="string"||s?6:o||r?5:void 0:void 0)??e.timestampFormat.default}var Hp=g(()=>{i(ao,"determineTimestampFormat")});var oC,pZ=g(()=>{Ts();En();jE();Hp();oC=class extends ji{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=We.of(e);if(n.isListSchema())return Mb(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Wu)(r);if(n.isTimestampSchema())switch(ao(n,this.settings)){case 5:return M7(r);case 6:return F7(r);case 7:return L7(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isStringSchema()){let s=n.getMergedTraits().mediaType,o=r;if(s)return n.getMergedTraits().httpHeader&&(o=this.base64ToUtf8(o)),(s==="application/json"||s.endsWith("+json"))&&(o=rn.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Nt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Ji)((this.serdeContext?.base64Decoder??Wu)(e))}}});var EL,l1e=g(()=>{Ts();En();jE();pZ();EL=class extends ji{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new oC(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=We.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Ji;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Mp;return typeof r=="string"?a(r):r}else if(n.isStringSchema())return"byteLength"in r?o(r):r}return this.codecDeserializer.read(n,r)}}});var iC,fZ=g(()=>{Ts();En();jE();Hp();iC=class extends ji{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=We.of(e);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${n.getName(!0)}`);switch(ao(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=bh(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??qa)(r);return}if(n.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([n.getValueSchema(),n.getMergedTraits()],c);let l=this.flush(),u=n.getValueSchema().isTimestampSchema()?l:Q7(l);a!==""&&(a+=", "),a+=u}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let s=n.getMergedTraits().mediaType,o=r;if(s&&((s==="application/json"||s.endsWith("+json"))&&(o=rn.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??qa)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=YE():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var CL,u1e=g(()=>{Ts();fZ();CL=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new iC(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=We.of(e),s=n.getMergedTraits();if(s.httpHeader||s.httpLabel||s.httpQuery){this.stringSerializer.write(n,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,r)}flush(){if(this.buffer!==void 0){let e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}});var d1e,IL,p1e=g(()=>{d1e=R(Xn()),IL=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=d1e.FieldPosition.HEADER,values:n=[]}){this.name=e,this.kind=r,this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter(r=>r!==e)}toString(){return this.values.map(e=>e.includes(",")||e.includes(" ")?`"${e}"`:e).join(", ")}get(){return this.values}}});var SL,f1e=g(()=>{SL=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:e=[],encoding:r="utf-8"}){e.forEach(this.setField.bind(this)),this.encoding=r}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter(r=>r.kind===e)}}});var m1e,h1e,A1e=g(()=>{m1e=i(t=>(t.logger&&t.logger.constructor?.name!=="NoOpLogger"&&t.requestHandler?.updateHttpClientConfig?.(Symbol.for("logger"),t.logger),{setHttpHandler(e){t.requestHandler=e},httpHandler(){return t.requestHandler},updateHttpClientConfig(e,r){t.requestHandler?.updateHttpClientConfig(e,r)},httpHandlerConfigs(){return t.requestHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),h1e=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function mZ(t){return e=>async r=>{let n=r.request;if(Ns.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(g1e)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[g1e]:String(a)})}catch{}}return e({...r,request:n})}}var g1e,hZ,y1e,E1e=g(()=>{nr();g1e="content-length";i(mZ,"contentLengthMiddleware");hZ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},y1e=i(t=>({applyToStack:i(e=>{e.add(mZ(t.bodyLengthChecker),hZ)},"applyToStack")}),"getContentLengthPlugin")});var zp,GMt,wL=g(()=>{zp=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,GMt),"escapeUri"),GMt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var C1e,I1e=g(()=>{wL();C1e=i(t=>t.split("/").map(zp).join("/"),"escapeUriPath")});function S1e(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=zp(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${zp(n[s])}`);else{let s=r;(n||typeof n=="string")&&(s+=`=${zp(n)}`),e.push(s)}}return e.join("&")}var w1e=g(()=>{wL();i(S1e,"buildQueryString")});var co,Nh=g(()=>{co=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var aC,AZ=g(()=>{aC=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function xL(){if(Gb===void 0)try{if(typeof Buffer!="function")Gb=!1;else{let t=JSON.parse(Buffer.from([123,125]));Gb=t!==null&&typeof t=="object"}}catch{Gb=!1}return Gb}var Gb,gZ=g(()=>{i(xL,"detectBufferParsing")});function cC(t,e,r){if(r?.source){let n=r.source;if(typeof e=="number")return e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER?zMt(n,e)?e:new Nt(n,"bigDecimal"):HMt(n)?new Nt(n,"bigDecimal"):/[eE]/.test(n)?VMt(n):BigInt(n)}return e}function HMt(t){let e=t.indexOf(".");if(e===-1)return!1;let r=t.search(/[eE]/);if(r===-1)return!0;let n=r-e-1;return parseInt(t.slice(r+1),10)<n}function zMt(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return yZ(t)===yZ(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===yZ(n):!1}function yZ(t){let e=t.startsWith("-"),r=e?t.slice(1):t,n=r.search(/[eE]/),s;if(n===-1)s=r;else{let o=parseInt(r.slice(n+1),10),a=r.slice(0,n),c=a.indexOf("."),l,u;c===-1?(l=a,u=a.length):(l=a.slice(0,c)+a.slice(c+1),u=c),l=l.replace(/0+$/,"")||"0";let d=u+o;l==="0"?s="0":d<=0?s="0."+"0".repeat(-d)+l:d>=l.length?s=l+"0".repeat(d-l.length):s=l.slice(0,d)+"."+l.slice(d)}return s.includes(".")&&(s=s.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,"")),(e?"-":"")+s}function VMt(t){let e=t.search(/[eE]/),r=parseInt(t.slice(e+1),10),n=t.startsWith("-"),s=t.slice(n?1:0,e),o=s.indexOf("."),a,c;if(o===-1)a=s,c=r;else{a=s.slice(0,o)+s.slice(o+1);let u=s.length-o-1;c=r-u}a=a.replace(/0+$/,"")||"0";let l=BigInt(a)*10n**BigInt(c+(s.replace(".","").length-a.length));return n?-l:l}var bL=g(()=>{En();i(cC,"jsonReviver");i(HMt,"isFractionalBigNumeric");i(zMt,"isRepresentable");i(yZ,"expandToDecimal");i(VMt,"expandExponentToBigInt")});function lC(t){let e=We.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(EZ in r)return r[EZ];let n=BL(e,new Set);return r[EZ]=n,n}return BL(e,new Set)}function BL(t,e){let r=t.getSchema();if(e.has(r))return!1;if(e.add(r),t.isBigIntegerSchema()||t.isBigDecimalSchema())return!0;if(t.isStructSchema()){for(let[,n]of t.structIterator())if(BL(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(BL(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var EZ,RL=g(()=>{Ts();EZ=Symbol.for("@aws-sdk/reviver");i(lC,"needsReviver");i(BL,"_check")});var x1e,b1e=g(()=>{JE();En();x1e=i((t,e)=>io(t,e).then(r=>(e?.utf8Encoder??Ji)(r)),"collectBodyString")});async function Th(t,e,r){let n;if(xL()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await io(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await x1e(t,e)),n.length===0)return{};let s=r&&lC(r)?cC:void 0;try{return JSON.parse(n,s)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:typeof n=="string"?n:n.toString("utf8")}),o}}var R1e,B1e,CZ,N1e,T1e,NL,P1e,Hb=g(()=>{JE();b1e();gZ();bL();RL();i(Th,"parseJsonBody");R1e=i(async(t,e)=>{let r=await Th(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),B1e=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),CZ=i(t=>{let e=t;return typeof e=="number"&&(e=e.toString()),e.indexOf(",")>=0&&(e=e.split(",")[0]),e.indexOf(":")>=0&&(e=e.split(":")[0]),e.indexOf("#")>=0&&(e=e.split("#")[1]),e},"sanitizeErrorCode"),N1e=i((t,e)=>P1e(t,e,["header","code","type"]),"loadRestJsonErrorCode"),T1e=i((t,e,r=!1)=>P1e(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),NL=i((t,e)=>{if(e?.__type!==void 0){let r=e.__type;return typeof r=="number"&&(r=r.toString()),r.indexOf(",")>=0&&(r=r.split(",")[0]),r.indexOf(":")>=0&&(r=r.split(":")[0]),r}},"loadSmithyRpcV2JsonErrorCode"),P1e=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=B1e(t??{},"x-amzn-errortype");if(s!==void 0)return CZ(t[s]);break;case"code":let o=B1e(e??{},"code");if(o&&e[o]!==void 0)return CZ(e[o]);break;case"type":if(e?.__type!==void 0)return CZ(e.__type);break}},"loadErrorCode")});function ql(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var TL=g(()=>{i(ql,"writeKey")});var uC,IZ=g(()=>{Hp();Ts();En();Nh();AZ();gZ();bL();RL();Hb();TL();nr();uC=class extends co{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=lC(e)?cC:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&xL()){if(r.byteLength===0)return{};let o=Buffer.isBuffer(r)?r:Buffer.from(r.buffer,r.byteOffset,r.byteLength);s=JSON.parse(o,n)}else s=await Th(r,this.serdeContext,e);return this._read(e,s)}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=We.of(e);if(n){if(s.isStructSchema())return this._readStruct(s,r);if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema();if(this.needsTransform(a))for(let c=0;c<r.length;++c)r[c]=this._read(a,r[c]);return r}if(s.isMapSchema()){let a=s.getValueSchema(),c=r;if(this.needsTransform(a))for(let l in c)ut(c,l)&&(l==="__proto__"&&ql(c),c[l]=this._read(a,c[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Wu(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?rn.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(ao(s,this.settings)){case 5:return kb(r);case 6:return Ob(r);case 7:return Lb(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof Nt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Nt(a.string,a.type):new Nt(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema()&&n)if(Array.isArray(r))for(let a=0;a<r.length;++a){let c=r[a];c instanceof Nt||(r[a]=this._read(s,c))}else{let a=r;for(let c in a){if(!ut(a,c))continue;c==="__proto__"&&ql(a);let l=a[c];l instanceof Nt||(a[c]=this._read(s,l))}}return r}_readStruct(e,r){let n=e.isUnionSchema(),s={},o,a=typeof r.__type=="string",{jsonName:c}=this.settings;c&&a&&(o={});let l;n&&(l=new aC(r,s));for(let[u,d]of e.structIterator()){let p=u;c&&(p=d.getMergedTraits().jsonName??p,a&&(o[p]=u)),n&&l.mark(p),r[p]!=null&&(s[u]=this._read(d,r[p]))}if(n)l.writeUnknown();else if(a)for(let u in r){if(!ut(r,u))continue;let d=r[u],p=c?o[u]??u:u;p in s||(s[p]=d)}return s}needsTransform(e){return!!(e.isBlobSchema()||e.isTimestampSchema()||e.isBigIntegerSchema()||e.isBigDecimalSchema()||e.isNumericSchema()||e.isDocumentSchema()||e.isStructSchema()||e.isListSchema()||e.isMapSchema()||e.isStringSchema()&&e.getMergedTraits().mediaType)}}});var PL,_1e,v1e=g(()=>{En();PL=class t extends Uint8Array{static{i(this,"JsonBytesStringAdapter")}string=null;static allocUnsafe(e){if(typeof Buffer=="function"){let r=Buffer.allocUnsafe(e);return new t(r.buffer,r.byteOffset,r.byteLength)}return new t(e)}toString(){return this.s()}valueOf(){return this.s()}includes(e,r){return typeof e=="string"?this.s().includes(e,r):Uint8Array.prototype.includes.call(this,e,r)}indexOf(e,r){return typeof e=="string"?this.s().indexOf(e,r):Uint8Array.prototype.indexOf.call(this,e,r)}lastIndexOf(e,r){if(typeof e=="string")return this.s().lastIndexOf(e,r);let n=Uint8Array.prototype.lastIndexOf;return r!==void 0?n.call(this,e,r):n.call(this,e)}startsWith(e,r){return this.s().startsWith(e,r)}endsWith(e,r){return this.s().endsWith(e,r)}match(e){return this.s().match(e)}replace(e,r){return this.s().replace(e,r)}search(e){return this.s().search(e)}split(e,r){return this.s().split(e,r)}substring(e,r){return this.s().substring(e,r)}trim(){return this.s().trim()}trimStart(){return this.s().trimStart()}trimEnd(){return this.s().trimEnd()}charAt(e){return this.s().charAt(e)}charCodeAt(e){return this.s().charCodeAt(e)}padStart(e,r){return this.s().padStart(e,r)}padEnd(e,r){return this.s().padEnd(e,r)}repeat(e){return this.s().repeat(e)}toUpperCase(){return this.s().toUpperCase()}toLowerCase(){return this.s().toLowerCase()}s(){if(this.string==null){let e=Date.now();e>_1e+6e4&&(console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. It has been automatically converted to string. In a future version this will throw an error."),_1e=e),this.string=Ji(this)}return this.string}},_1e=0});function SZ(t){return PL.allocUnsafe(t)}var _L,Q1e,D1e,WMt,YMt,dC,vL,QL,k1e,JMt,jMt,KMt,$l,O1e,pC,wZ=g(()=>{Hp();Ts();En();Nh();nr();v1e();_L=new TextEncoder,Q1e=123,D1e=125,WMt=91,YMt=93,dC=34,vL=58,QL=44,k1e=92,JMt=new Uint8Array([116,114,117,101]),jMt=new Uint8Array([102,97,108,115,101]),KMt=new Uint8Array([110,117,108,108]),$l=new Array(128).fill(null);$l[8]="b";$l[9]="t";$l[10]="n";$l[12]="f";$l[13]="r";$l[34]='"';$l[92]="\\";for(let t=0;t<32;t++)$l[t]===null&&($l[t]="u00"+t.toString(16).padStart(2,"0"));O1e=2048;i(SZ,"alloc");pC=class t extends co{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=SZ(O1e)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=We.of(e),this.passthrough=this.rootSchema.isBlobSchema()||this.rootSchema.isStringSchema(),this.passthrough||this.writeValue(this.rootSchema,r,void 0)}writeDiscriminatedDocument(e,r){this.i=0,this.rootSchema=We.of(e);let n=this.rootSchema;if(n.isStructSchema()&&r!=null&&typeof r=="object"){this.writeValue(n,r,void 0);let s=`"__type":"${n.getName(!0)??"Unknown"}",`,o=s.length;this.ensure(o),this.json.copyWithin(1+o,1,this.i),_L.encodeInto(s,this.json.subarray(1)),this.i+=o}else this.writeValue(n,r,void 0)}flush(){this.rootSchema=void 0;let e=this.i;this.i=0;let r=this.rawValue;if(this.rawValue=void 0,e===0)return r;let n=this.json.subarray(0,e);return this.json=SZ(O1e),n}ensure(e){let{i:r,json:n}=this;if(r+e>n.length){let s=n.length*2;for(;s<r+e;)s*=2;let o=SZ(s);o.set(this.json),this.json=o}}writeAscii(e){let r=e.length;this.ensure(r);let{i:n,json:s}=this;for(let o=0;o<r;++o)s[n]=e.charCodeAt(o),n+=1;this.i=n}writeAsciiQuoted(e){let r=e.length;this.ensure(r+4);let{json:n,i:s}=this;n[s++]=dC;for(let o=0;o<r;++o)n[s++]=e.charCodeAt(o);n[s++]=dC,this.i=s}writeJsonString(e){let r=e.length;this.ensure(r*3+2),this.json[this.i++]=dC;for(let n=0;n<r;++n){let s=e.charCodeAt(n);if(s>34&&s<92)this.json[this.i++]=s;else if(s<128){let o=$l[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=k1e;for(let a=0;a<o.length;a++)this.json[this.i++]=o.charCodeAt(a)}else this.json[this.i++]=s}else if(s>=55296&&s<=56319){let o=n+1<r?e.charCodeAt(n+1):0;if(o>=56320&&o<=57343){this.ensure(4);let{written:a}=_L.encodeInto(e.substring(n,n+2),this.json.subarray(this.i));this.i+=a,++n}else this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s)}else if(s>=56320&&s<=57343)this.ensure(6+(r-n-1)*3+1),this.writeUnicodeEscape(s);else{let{i:o,json:a}=this;s<2048?(a[o++]=192|s>>6,a[o++]=128|s&63):(a[o++]=224|s>>12,a[o++]=128|s>>6&63,a[o++]=128|s&63),this.i=o}}this.json[this.i++]=dC}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=k1e,r[n++]=117;let s=e.toString(16).padStart(4,"0");for(let o=0;o<4;++o)r[n++]=s.charCodeAt(o);this.i=n}static B64=(()=>{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64);for(let n=0;n<64;++n)r[n]=e.charCodeAt(n);return r})();writeBase64(e){let r=Math.ceil(e.length/3)*4;this.ensure(r+2);let n=this.json,s=t.B64,o=this.i;n[o++]=dC;let a=e.length,c=a%3,l=a-c;for(let u=0;u<l;u+=3){let d=e[u],p=e[u+1],f=e[u+2];n[o++]=s[d>>2],n[o++]=s[(d&3)<<4|p>>4],n[o++]=s[(p&15)<<2|f>>6],n[o++]=s[f&63]}if(c===2){let u=e[l],d=e[l+1];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4|d>>4],n[o++]=s[(d&15)<<2],n[o++]=61}else if(c===1){let u=e[l];n[o++]=s[u>>2],n[o++]=s[(u&3)<<4],n[o++]=61,n[o++]=61}n[o++]=dC,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&We.of(e).isIdempotencyToken()){this.writeAsciiQuoted(YE());return}return}this.ensure(4),this.json.set(KMt,this.i),this.i+=4;return}let s=We.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(rn.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Nt?r.string:String(r);this.writeAsciiQuoted(a);return}if(o){if(s.isStructSchema()){this.writeStruct(s,r);return}if(Array.isArray(r)&&(s.isListSchema()||s.isDocumentSchema())){this.writeList(s,r,s.isDocumentSchema());return}if(s.isMapSchema()){this.writeMap(s,r,!1);return}if(r instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema())){this.writeBase64(r);return}if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema())){this.writeTimestamp(s,r);return}if(r instanceof Nt){this.writeAscii(r.string);return}if(s.isDocumentSchema()){Array.isArray(r)?this.writeList(s,r,!0):this.writeMap(s,r,!0);return}let a=JSON.stringify(r);this.writeAscii(a);return}if(typeof r=="string"){if(s.isBlobSchema()){let a=(this.serdeContext?.base64Encoder??qa)(r);this.writeAsciiQuoted(a);return}this.writeJsonString(r);return}if(typeof r=="number"){if(Math.abs(r)===1/0||Number.isNaN(r)){this.writeAsciiQuoted(String(r));return}let a=String(r);this.writeAscii(a);return}if(typeof r=="boolean"){this.ensure(5);let{i:a,json:c}=this;r?(c.set(JMt,a),a+=4):(c.set(jMt,a),a+=5),this.i=a;return}if(typeof r=="bigint"){this.writeAscii(r.toString());return}this.writeAscii(String(r))}writeStruct(e,r){this.ensure(2),this.json[this.i++]=Q1e;let n=!1,s=typeof r.__type=="string",o;s&&(o=new Set);for(let[a,c]of e.structIterator()){let l=r[a];if(l==null&&!c.isIdempotencyToken())continue;n&&(this.ensure(1),this.json[this.i++]=QL),n=!0;let u=this.settings.jsonName?c.getMergedTraits().jsonName??a:a;o&&(o.add(a),o.add(u)),this.writeAsciiQuoted(u),this.json[this.i++]=vL,this.writeValue(c,l,e)}if(!n&&e.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a;this.writeAsciiQuoted(c),this.ensure(1),this.json[this.i++]=vL,this.writeValue(15,l,e)}}else if(s)for(let a in r){if(o.has(a))continue;o.add(a);let c=r[a];n&&(this.ensure(1),this.json[this.i++]=QL),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=vL,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=D1e}writeList(e,r,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n&&(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema())){let c=!1;for(let u=0;u<r.length;++u){let d=r[u];if(Number.isNaN(d)||d===1/0||d===-1/0||d==null&&!s){c=!0;break}}let l;if(!c)l=JSON.stringify(r);else{let u=[];for(let d=0;d<r.length;++d){let p=r[d];p==null&&!s||(Number.isNaN(p)||p===1/0||p===-1/0?u.push(String(p)):u.push(p))}l=JSON.stringify(u)}this.ensure(l.length*3),this.i+=_L.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=WMt;let a=!1;for(let c=0;c<r.length;++c){let l=r[c];(n?l===void 0:l==null&&!s)||(a&&(this.ensure(1),this.json[this.i++]=QL),this.writeValue(o,l,void 0),a=!0)}this.ensure(1),this.json[this.i++]=YMt}writeMap(e,r,n){let s=!!e.getMergedTraits().sparse,o=e.getValueSchema();if(!n&&(o.isStringSchema()||o.isNumericSchema()||o.isBooleanSchema())){let c;for(let u in r){if(!ut(r,u))continue;let d=r[u];Number.isNaN(d)||d===1/0||d===-1/0?((c??={})[u]=d,r[u]=String(d)):d===null&&!s&&((c??={})[u]=null,r[u]=void 0)}let l=JSON.stringify(r);c&&Object.assign(r,c),this.ensure(l.length*3),this.i+=_L.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Q1e;let a=!0;for(let c in r){if(!ut(r,c))continue;let l=r[c];(n?l===void 0:l==null&&!s)||(a||(this.ensure(1),this.json[this.i++]=QL),a=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=vL,this.writeValue(o,l,void 0))}this.ensure(1),this.json[this.i++]=D1e}writeTimestamp(e,r){switch(ao(e,this.settings)){case 5:{let s=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(bh(r));return}case 7:{let s=String(r.getTime()/1e3);this.writeAscii(s);return}default:{let s=String(r.getTime()/1e3);this.writeAscii(s);return}}}}});var fC,xZ=g(()=>{Nh();IZ();wZ();fC=class extends co{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new pC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new uC(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var DL,L1e=g(()=>{uZ();Ts();nr();xZ();Hb();DL=class extends sC{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new fC({timestampFormat:{useTrait:!1,default:7},jsonName:!1,bigNumberAsString:!0});serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Json"}getPayloadCodec(){return this.codec}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);Object.assign(s.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-json",accept:this.getDefaultContentType()}),xh(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=m7(n),c=`/service/${o}/operation/${a}`;return s.path.endsWith("/")?s.path+=c.slice(1):s.path+=c,s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=NL(n,s)??"Unknown",c={$metadata:o,$fault:n.statusCode<=500?"client":"server"},l=this.options.defaultNamespace;a.includes("#")&&([l]=a.split("#"));let u=this.compositeErrorRegistry,d=Ul.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let x=Ul.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(x);let b=u.getBaseException();if(b){let N=u.getErrorCtor(b);throw Object.assign(new N({name:a}),c,s)}throw Object.assign(new Error(a),c,s)}let f=We.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",A=new m({}),y={},E=this.codec.createDeserializer();for(let[I,x]of f.structIterator())s[I]!=null&&(y[I]=E.readObject(x,s[I]));throw Object.assign(A,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var mC,bZ=g(()=>{Hp();Ts();En();En();nr();Nh();AZ();bL();RL();Hb();TL();mC=class extends co{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=lC(e)?cC:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Th(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=We.of(e);if(n){if(s.isStructSchema()){let a=r,c=s.isUnionSchema(),l={},u,{jsonName:d}=this.settings;d&&(u={});let p;c&&(p=new aC(a,l));for(let[f,m]of s.structIterator()){let h=f;d&&(h=m.getMergedTraits().jsonName??h,u[h]=f),c&&p.mark(h),a[h]!=null&&(l[f]=this._read(m,a[h]))}if(c)p.writeUnknown();else if(typeof a.__type=="string")for(let f in a){if(!ut(a,f))continue;let m=a[f],h=d?u[f]??f:f;h in l||(l[h]=m)}return l}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[];for(let l of r)c.push(this._read(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={};for(let l in r)ut(r,l)&&(l==="__proto__"&&ql(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Wu(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?rn.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(ao(s,this.settings)){case 5:return kb(r);case 6:return Ob(r);case 7:return Lb(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(s.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(s.isBigDecimalSchema()&&r!=null){if(r instanceof Nt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Nt(a.string,a.type):new Nt(String(r),"bigDecimal")}if(s.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){if(!ut(r,c))continue;c==="__proto__"&&ql(a);let l=r[c];l instanceof Nt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var M1e,kL,F1e=g(()=>{En();M1e="\u039D",kL=class{static{i(this,"JsonReplacer")}values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,r)=>{if(r instanceof Nt){let n=`${M1e+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${M1e+"b"+this.counter++}_`+n;return this.values.set(`"${s}"`,n),s}return r}}replaceInJson(e){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return e;for(let[r,n]of this.values)e=e.replace(r,n);return e}}});var hC,BZ=g(()=>{Hp();Ts();En();Nh();F1e();TL();nr();hC=class extends co{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=We.of(e),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:e,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let n=new kL;return n.replaceInJson(JSON.stringify(this.buffer,n.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,r){this.write(e,r),typeof this.buffer=="object"&&(this.buffer.__type=We.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=We.of(e);if(s){if(o.isStructSchema()){let a=r,c={},{jsonName:l}=this.settings,u;l&&(u={});let d=0;for(let[p,f]of o.structIterator()){let m=this._write(f,a[p],o);if(m!==void 0){let h=p;l&&(h=f.getMergedTraits().jsonName??p,u[p]=h),c[h]=m,d++}}if(o.isUnionSchema()&&d===0){let{$unknown:p}=a;if(Array.isArray(p)){let[f,m]=p;f==="__proto__"&&ql(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!ut(a,p))continue;let f=a[p],m=l?u[p]??p:p;m in c||(c[m]=this._write(15,f))}return c}if(Array.isArray(r)&&o.isListSchema()){let a=o.getValueSchema(),c=[],l=!!o.getMergedTraits().sparse;for(let u of r)(l||u!=null)&&c.push(this._write(a,u));return c}if(o.isMapSchema()){let a=o.getValueSchema(),c={},l=!!o.getMergedTraits().sparse;for(let u in r){if(!ut(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&ql(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??qa)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(ao(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return bh(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Nt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return YE();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?rn.from(r):r}if(typeof r=="number")return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??qa)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??qa)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!ut(r,c))continue;let l=r[c];c==="__proto__"&&ql(a),l instanceof Nt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var OL,U1e=g(()=>{Nh();bZ();BZ();OL=class extends co{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new hC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new mC(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var q1e={};cr(q1e,{Field:()=>IL,Fields:()=>SL,FromStringShapeDeserializer:()=>oC,HttpBindingProtocol:()=>gL,HttpInterceptingShapeDeserializer:()=>EL,HttpInterceptingShapeSerializer:()=>CL,HttpProtocol:()=>Gp,HttpRequest:()=>Ns,HttpResponse:()=>wh,JsonCodec:()=>OL,JsonCodec2:()=>fC,JsonShapeDeserializer:()=>mC,JsonShapeDeserializer2:()=>uC,JsonShapeSerializer:()=>hC,JsonShapeSerializer2:()=>pC,RequestBuilder:()=>$b,RpcProtocol:()=>sC,SerdeContext:()=>ji,SmithyRpcV2JsonProtocol:()=>DL,ToStringShapeSerializer:()=>iC,buildQueryString:()=>S1e,collectBody:()=>io,contentLengthMiddleware:()=>mZ,contentLengthMiddlewareOptions:()=>hZ,determineTimestampFormat:()=>ao,escapeUri:()=>zp,escapeUriPath:()=>C1e,extendedEncodeURIComponent:()=>Up,getContentLengthPlugin:()=>y1e,getHttpHandlerExtensionConfiguration:()=>m1e,isValidHostname:()=>Tb,loadJsonRpcErrorCode:()=>T1e,loadRestJsonErrorCode:()=>N1e,loadSmithyRpcV2JsonErrorCode:()=>NL,parseJsonBody:()=>Th,parseJsonErrorBody:()=>R1e,parseQueryString:()=>Pb,parseUrl:()=>jO,requestBuilder:()=>a1e,resolveHttpHandlerRuntimeConfig:()=>h1e,resolvedPath:()=>yL});var $1e=g(()=>{JE();pL();i1e();AL();uZ();c1e();dZ();pZ();l1e();u1e();fZ();Hp();jE();p1e();f1e();nr();nr();nr();A1e();E1e();wL();I1e();w1e();nr();nr();L1e();Hb();U1e();BZ();bZ();xZ();wZ();IZ()});var ML=S(Ki=>{var{ProviderError:RZ,CredentialsProviderError:Vp,loadConfig:vZ}=(qMe(),Z(UMe)),XMt=require("node:http"),{parseUrl:ZMt}=($1e(),Z(q1e)),V1e=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),W1e=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),Y1e=1e3,J1e=0,QZ=i(({maxRetries:t=J1e,timeout:e=Y1e})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function Wb(t){return new Promise((e,r)=>{let n=XMt.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new RZ("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new RZ("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new RZ("Error response received from instance metadata service"),{statusCode:o})),n.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{e(Buffer.concat(a)),n.destroy()})}),n.end()})}i(Wb,"httpRequest");var TZ=i((t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},"retry"),zb="AWS_CONTAINER_CREDENTIALS_FULL_URI",LL="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",PZ="AWS_CONTAINER_AUTHORIZATION_TOKEN",eFt=i((t={})=>{let{timeout:e,maxRetries:r}=QZ(t);return()=>TZ(async()=>{let n=await oFt({logger:t.logger}),s=JSON.parse(await tFt(e,n));if(!V1e(s))throw new Vp("Invalid response received from instance metadata service.",{logger:t.logger});return W1e(s)},r)},"fromContainerMetadata"),tFt=i(async(t,e)=>(process.env[PZ]&&(e.headers={...e.headers,Authorization:process.env[PZ]}),(await Wb({...e,timeout:t})).toString()),"requestFromEcsImds"),rFt="169.254.170.2",nFt=new Set(["localhost","127.0.0.1"]),sFt=new Set(["http:","https:"]),oFt=i(async({logger:t})=>{if(process.env[LL])return{hostname:rFt,path:process.env[LL]};if(process.env[zb]){let e;try{e=new URL(process.env[zb])}catch{throw new Vp(`${process.env[zb]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!nFt.has(e.hostname))throw new Vp(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!sFt.has(e.protocol))throw new Vp(`${e.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:t});return{protocol:e.protocol,hostname:e.hostname,path:e.pathname+e.search,port:e.port?parseInt(e.port,10):void 0}}throw new Vp(`The container metadata credential provider cannot be used unless the ${LL} or ${zb} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),_Z=class t extends Vp{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},Vb;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(Vb||(Vb={}));var iFt="AWS_EC2_METADATA_SERVICE_ENDPOINT",aFt="ec2_metadata_service_endpoint",cFt={environmentVariableSelector:i(t=>t[iFt],"environmentVariableSelector"),configFileSelector:i(t=>t[aFt],"configFileSelector"),default:void 0},AC;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(AC||(AC={}));var lFt="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",uFt="ec2_metadata_service_endpoint_mode",dFt={environmentVariableSelector:i(t=>t[lFt],"environmentVariableSelector"),configFileSelector:i(t=>t[uFt],"configFileSelector"),default:AC.IPv4},j1e=i(async()=>ZMt(await pFt()||await fFt()),"getInstanceMetadataEndpoint"),pFt=i(async()=>vZ(cFt)(),"getFromEndpointConfig"),fFt=i(async()=>{let t=await vZ(dFt)();switch(t){case AC.IPv4:return Vb.IPv4;case AC.IPv6:return Vb.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(AC)}`)}},"getFromEndpointModeConfig"),mFt=300,hFt=300,AFt="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",G1e=i((t,e)=>{let r=mFt+Math.floor(Math.random()*hFt),n=new Date(Date.now()+r*1e3);e.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(n)}.
|
|
For more information, please visit: `+AFt);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),gFt=i((t,e={})=>{let r=e?.logger||console,n;return async()=>{let s;try{s=await t(),s.expiration&&s.expiration.getTime()<Date.now()&&(s=G1e(s,r))}catch(o){if(n)r.warn("Credential renew failed: ",o),s=G1e(n,r);else throw o}return n=s,s}},"staticStabilityProvider"),K1e="/latest/meta-data/iam/security-credentials/",yFt="/latest/api/token",NZ="AWS_EC2_METADATA_V1_DISABLED",H1e="ec2_metadata_v1_disabled",z1e="x-aws-ec2-metadata-token",EFt=i((t={})=>gFt(CFt(t),{logger:t.logger}),"fromInstanceMetadata"),CFt=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=QZ(t),a=i(async(c,l)=>{if(e||l.headers?.[z1e]==null){let p=!1,f=!1,m=await vZ({environmentVariableSelector:i(h=>{let A=h[NZ];if(f=!!A&&A!=="false",A===void 0)throw new Vp(`${NZ} not set in env, checking config file next.`,{logger:t.logger});return f},"environmentVariableSelector"),configFileSelector:i(h=>{let A=h[H1e];return p=!!A&&A!=="false",p},"configFileSelector"),default:!1},{profile:n})();if(t.ec2MetadataV1Disabled||m){let h=[];throw t.ec2MetadataV1Disabled&&h.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),p&&h.push(`config file profile (${H1e})`),f&&h.push(`process environment variable (${NZ})`),new _Z(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${h.join(", ")}].`)}}let d=(await TZ(async()=>{let p;try{p=await SFt(l)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)).trim();return TZ(async()=>{let p;try{p=await wFt(d,l,t)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)},"getCredentials");return async()=>{let c=await j1e();if(e)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(o,{...c,timeout:s});{let l;try{l=(await IFt({...c,timeout:s})).toString()}catch(u){if(u?.statusCode===400)throw Object.assign(u,{message:"EC2 Metadata token request returned error"});return(u.message==="TimeoutError"||[403,404,405].includes(u.statusCode))&&(e=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(o,{...c,timeout:s})}return a(o,{...c,headers:{[z1e]:l},timeout:s})}}},"getInstanceMetadataProvider"),IFt=i(async t=>Wb({...t,path:yFt,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),SFt=i(async t=>(await Wb({...t,path:K1e})).toString(),"getProfile"),wFt=i(async(t,e,r)=>{let n=JSON.parse((await Wb({...e,path:K1e+t})).toString());if(!V1e(n))throw new Vp("Invalid response received from instance metadata service.",{logger:r.logger});return W1e(n)},"getCredentialsFromProfile");Ki.DEFAULT_MAX_RETRIES=J1e;Ki.DEFAULT_TIMEOUT=Y1e;Ki.ENV_CMDS_AUTH_TOKEN=PZ;Ki.ENV_CMDS_FULL_URI=zb;Ki.ENV_CMDS_RELATIVE_URI=LL;Ki.Endpoint=Vb;Ki.fromContainerMetadata=eFt;Ki.fromInstanceMetadata=EFt;Ki.getInstanceMetadataEndpoint=j1e;Ki.httpRequest=Wb;Ki.providerConfigFromInit=QZ});var Ju=S(jb=>{var{hasOwn:sUe}=(xe(),Z(ph)),{streamCollector:xFt}=(xe(),Z(ph));jb.streamCollector=xFt;var{buildQueryString:oUe,HttpResponse:iUe}=(Ne(),Z(gh)),FL=require("node:https"),{Readable:bFt}=require("node:stream"),DZ=require("node:http2");function qL(t){let e=t&&typeof t=="object"&&"reason"in t?t.reason:void 0;if(e){if(e instanceof Error){let s=new Error("Request aborted");return s.name="AbortError",s.cause=e,s}let n=new Error(String(e));return n.name="AbortError",n}let r=new Error("Request aborted");return r.name="AbortError",r}i(qL,"buildAbortError");var BFt=["ECONNRESET","EPIPE","ETIMEDOUT"],aUe=i(t=>{let e={};for(let r in t){if(!sUe(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Cn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},X1e=1e3,RFt=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Cn.setTimeout(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-s),a=i(c=>{c?.connecting?c.on("connect",()=>{Cn.clearTimeout(o)}):Cn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Cn.setTimeout(n.bind(null,X1e),X1e)},"setConnectionTimeout"),NFt=i((t,e,r=0,n,s)=>r?Cn.setTimeout(()=>{let o=`@smithy/node-http-handler - [${n?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(n){let a=Object.assign(new Error(o),{name:"TimeoutError",code:"ETIMEDOUT"});t.destroy(a),e(a)}else o+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(o)},r):-1,"setRequestTimeout"),TFt=3e3,PFt=i((t,{keepAlive:e,keepAliveMsecs:r},n=TFt)=>{if(e!==!0)return-1;let s=i(()=>{t.socket?t.socket.setKeepAlive(e,r||0):t.on("socket",o=>{o.setKeepAlive(e,r||0)})},"registerListener");return n===0?(s(),0):Cn.setTimeout(s,n)},"setSocketKeepAlive"),Yb=i(t=>{let e=t?.defaultSocketTimeout;return typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0},"resolveDefaultSocketTimeout"),Z1e=3e3,eUe=i((t,e,r=0,n=!1)=>{let s;n&&t.once("response",c=>s=c);let o=i(c=>{let l=r-c,u=i(()=>{let d=Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (${n?"service default socket timeout":"configured by client requestHandler"}).`),{name:"TimeoutError"});n&&s?.destroy(d),t.destroy(),e(d)},"onTimeout");t.socket?(t.socket.setTimeout(l,u),t.on("close",()=>t.socket?.removeListener("timeout",u))):t.setTimeout(l,u)},"registerTimeout");if(0<r&&r<6e3)return o(0),0;let a=Cn.setTimeout(o.bind(null,r===0?0:Z1e),Z1e);return n?(t.once("close",()=>Cn.clearTimeout(a)),0):a},"setSocketTimeout"),tUe=6e3;async function cUe(t,e,r=tUe,n=!1){let s=e.headers,o=s?s.Expect||s.expect:void 0,a=-1,c=!0;!n&&o==="100-continue"&&(c=await Promise.race([new Promise(l=>{a=Number(Cn.setTimeout(()=>l(!0),Math.max(tUe,r)))}),new Promise(l=>{t.on("continue",()=>{Cn.clearTimeout(a),l(!0)}),t.on("response",()=>{Cn.clearTimeout(a),l(!1)}),t.on("error",()=>{Cn.clearTimeout(a),l(!1)})})])),c&&_Ft(t,e.body)}i(cUe,"writeRequestBody");function _Ft(t,e){if(e instanceof bFt){e.pipe(t);return}if(e){let r=Buffer.isBuffer(e);if(r||typeof e=="string"){r&&e.byteLength===0?t.end():t.end(e);return}let s=e;if(typeof s=="object"&&s.buffer&&typeof s.byteOffset=="number"&&typeof s.byteLength=="number"){t.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}t.end(Buffer.from(e));return}t.end()}i(_Ft,"writeBody");var vFt=0,UL,rUe,kZ=class t{static{i(this,"NodeHttpHandler")}config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){return typeof e?.handle=="function"?e:new t(e)}static checkSocketUsage(e,r,n=console){let{sockets:s,requests:o,maxSockets:a}=e;if(typeof a!="number"||a===1/0||Date.now()-15e3<r)return r;if(s&&o)for(let l in s){if(!sUe(s,l))continue;let u=s[l]?.length??0,d=o[l]?.length??0;if(u>=a&&d>=2*a)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${u} and ${d} additional requests are enqueued.
|
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(this.resolveDefaultConfig(s))}).catch(n):r(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:r,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);let s=this.config,o=s.logger,a=e.protocol==="https:";return!a&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((c,l)=>{let u,d=-1,p=-1,f=-1,m=-1,h=-1,A=i(()=>{Cn.clearTimeout(d),Cn.clearTimeout(p),Cn.clearTimeout(f),Cn.clearTimeout(m),Cn.clearTimeout(h)},"clearTimeouts"),y=i(async oe=>{await u,A(),c(oe)},"resolve"),E=i(async oe=>{await u,A(),l(oe)},"reject");if(r?.aborted){let oe=qL(r);E(oe);return}let I=e.headers,x=I?(I.Expect??I.expect)==="100-continue":!1,b=a?s.httpsAgent:s.httpAgent;x&&!this.externalAgent&&(b=new(a?FL.Agent:UL)({keepAlive:!1,maxSockets:1/0})),d=Cn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?oUe(e.query):"",v;if(e.username!=null||e.password!=null){let oe=e.username??"",Q=e.password??"";v=`${oe}:${Q}`}let _=e.path;N&&(_+=`?${N}`),e.fragment&&(_+=`#${e.fragment}`);let J=e.hostname??"";J[0]==="["&&J.endsWith("]")?J=e.hostname.slice(1,-1):J=e.hostname;let Be={headers:e.headers,host:J,method:e.method,path:_,port:e.port,agent:b,auth:v},De=(a?FL.request:rUe)(Be,oe=>{let Q=new iUe({statusCode:oe.statusCode||-1,reason:oe.statusMessage,headers:aUe(oe.headers),body:oe});y({response:Q})});if(De.on("error",oe=>{BFt.includes(oe.code)?E(Object.assign(oe,{name:"TimeoutError"})):E(oe)}),r){let oe=i(()=>{De.destroy();let Q=qL(r);E(Q)},"onAbort");if(typeof r.addEventListener=="function"){let Q=r;Q.addEventListener("abort",oe,{once:!0}),De.once("close",()=>Q.removeEventListener("abort",oe))}else r.onabort=oe}let ce=n??s.requestTimeout;p=RFt(De,E,s.connectionTimeout),f=NFt(De,E,ce,s.throwOnRequestTimeout,o??console);let Tt=s.socketTimeout===void 0?Yb(s):void 0;Tt?m=eUe(De,E,Tt,!0):m=eUe(De,E,s.socketTimeout);let Re=Be.agent;typeof Re=="object"&&"keepAlive"in Re&&(h=PFt(De,{keepAlive:Re.keepAlive,keepAliveMsecs:Re.keepAliveMsecs})),u=cUe(De,e,ce,this.externalAgent).catch(oe=>(A(),l(oe)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>{switch(e){case Symbol.for("logger"):e="logger",r=n.logger??r;break;case Symbol.for("@smithy/defaultSocketTimeout"):e="defaultSocketTimeout",r=Yb(n)??r;break}return{...n,[e]:r}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:r,connectionTimeout:n,socketTimeout:s,socketAcquisitionWarningTimeout:o,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:l,logger:u}=e||{},d=!0,p=50,f;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,defaultSocketTimeout:Yb(e),socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(()=>f??=(async()=>{let m=require("node:http"),{Agent:h,request:A}=m.default??m;return rUe=A,UL=h,a instanceof UL||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new UL({keepAlive:d,maxSockets:p,...a})})(),"httpAgentProvider"),httpsAgent:c instanceof FL.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new FL.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},QFt=new Uint16Array(1),Jb=class{static{i(this,"ClientHttp2SessionRef")}id=QFt[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||(this.session.setTimeout(0),this.session.destroy())}useCount(){return this.refs}},OZ=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new Jb(r))}poll(){let e=!1;for(let r of this.sessions){if(r.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(e)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(e){this.sessions.push(e)}remove(e){let r=this.sessions.indexOf(e);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}},LZ=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(e,r){let n=this.getUrlString(e),s=this.getPool(n);if(!this.config.disableConcurrency&&!r.isEventStream){let u=s.poll();if(u)return u.retain(),u}let o=new Jb(this.connect(n)),a=o.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},u=>{if(u)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=i(()=>{this.removeFromPoolAndClose(n,o)},"graceful"),l=i(()=>{this.removeFromPoolAndCheckedDestroy(n,o)},"ensureDestroyed");return a.on("goaway",c),a.on("error",l),a.on("frameError",l),a.on("close",l),r.requestTimeout&&a.setTimeout(r.requestTimeout,l),s.offerLast(o),o.retain(),o}release(e,r){r.free()}createIsolatedSession(e,r){let n=this.getUrlString(e),s=new Jb(this.connect(n)),o=s.deref();o.settings({maxConcurrentStreams:1});let a=i(()=>{s.destroy()},"ensureDestroyed");o.on("error",a),o.on("frameError",a),o.on("close",a);let c=r.requestTimeout??3e5;return o.setTimeout(c,a),s.retain(),s}destroy(){for(let[e,r]of this.connectionPools){for(let n of[...r])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let r of this.connectionPools.values())r.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[r,n]of this.connectionPools){let s=[];for(let o of n)s.push({id:o.id,active:o.useCount(),maxConcurrent:o.max,totalRequests:o.total});e[r]={sessions:s}}return e}removeFromPoolAndClose(e,r){this.connectionPools.get(e)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(e,r){this.connectionPools.get(e)?.remove(r),r.destroy()}getPool(e){if(!this.connectionPools.has(e)){let r=new OZ;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(e,r)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?DZ.connect(e):DZ.connect(e,this.connectOptions)}},{constants:nUe}=DZ,MZ=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new LZ({});static create(e){return typeof e?.handle=="function"?e:new t(e)}constructor(e){this.configProvider=new Promise((r,n)=>{typeof e=="function"?e().then(s=>{r(s||{})}).catch(n):r(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:r,requestTimeout:n,isEventStream:s}={}){if(!this.config){let p=await this.configProvider;this.config={...p,defaultSocketTimeout:Yb(p)};let{disableConcurrentStreams:f,maxConcurrentStreams:m,nodeHttp2ConnectOptions:h}=this.config;this.connectionManager.setDisableConcurrentStreams(f??!1),m&&this.connectionManager.setMaxConcurrentStreams(m),h&&this.connectionManager.setNodeHttp2ConnectOptions(h)}let{requestTimeout:o,disableConcurrentStreams:a,sessionTimeout:c}=this.config,l=a||s,u=n??o,d=u===void 0&&c===void 0?this.config.defaultSocketTimeout:void 0;return new Promise((p,f)=>{let m=!1,h,A=i(async Q=>{await h,p(Q)},"resolve"),y=i(async Q=>{await h,f(Q)},"reject");if(r?.aborted){m=!0;let Q=qL(r);y(Q);return}let{hostname:E,method:I,port:x,protocol:b,query:N}=e,v="";if(e.username!=null||e.password!=null){let Q=e.username??"",Ve=e.password??"";v=`${Q}:${Ve}@`}let _=`${b}//${v}${E}${x?`:${x}`:""}`,J={destination:new URL(_)},Be={requestTimeout:this.config?.sessionTimeout,isEventStream:s},ke=l?this.connectionManager.createIsolatedSession(J,Be):this.connectionManager.lease(J,Be),De=ke.deref(),ce=i(Q=>{l&&ke.destroy(),m=!0,y(Q)},"rejectWithDestroy"),Tt=N?oUe(N):"",Re=e.path;Tt&&(Re+=`?${Tt}`),e.fragment&&(Re+=`#${e.fragment}`);let oe=De.request({...e.headers,[nUe.HTTP2_HEADER_PATH]:Re,[nUe.HTTP2_HEADER_METHOD]:I});if(u?oe.setTimeout(u,()=>{oe.close();let Q=new Error(`Stream timed out because of no activity for ${u} ms`);Q.name="TimeoutError",ce(Q)}):d&&(oe.setTimeout(d,()=>{let Q=new Error(`Stream timed out because of no activity for ${d} ms`);Q.name="TimeoutError",m=!0,y(Q),oe.destroy(Q),l&&ke.destroy()}),oe.once("response",()=>oe.setTimeout(d))),r){let Q=i(()=>{oe.close();let Ve=qL(r);ce(Ve)},"onAbort");if(typeof r.addEventListener=="function"){let Ve=r;Ve.addEventListener("abort",Q,{once:!0}),oe.once("close",()=>Ve.removeEventListener("abort",Q))}else r.onabort=Q}oe.on("frameError",(Q,Ve,Xa)=>{ce(new Error(`Frame type id ${Q} in stream id ${Xa} has failed with code ${Ve}.`))}),oe.on("error",ce),oe.on("aborted",()=>{ce(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${oe.rstCode}.`))}),oe.on("response",Q=>{let Ve=new iUe({statusCode:Q[":status"]??-1,headers:aUe(Q),body:oe});m=!0,A({response:Ve}),l&&(De.close(),oe.on("end",()=>{ke.destroy()}))}),oe.on("close",()=>{if(l?ke.destroy():this.connectionManager.release(J,ke),!m){let Q=new Error("Unexpected error: http2 request did not get a response");De.destroyed&&(Q.name="TimeoutError"),ce(Q)}}),h=cUe(oe,e,u)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(e===Symbol.for("@smithy/defaultSocketTimeout")&&(e="defaultSocketTimeout",r=Yb(n)??r),{...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};jb.DEFAULT_REQUEST_TIMEOUT=vFt;jb.NodeHttp2Handler=MZ;jb.NodeHttpHandler=kZ});var FZ=S(uUe=>{var{setCredentialFeature:DFt}=(Et(),Z(Fa)),{CredentialsProviderError:Ph}=(bt(),Z(Ui)),{NodeHttpHandler:kFt}=Ju(),OFt=require("node:fs/promises"),{HttpRequest:LFt}=(Ne(),Z(gh)),{sdkStreamMixin:MFt,parseRfc3339DateTime:FFt}=(xe(),Z(ph)),UFt="169.254.170.2",qFt="169.254.170.23",$Ft="[fd00:ec2::23]",GFt=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===UFt||t.hostname===qFt||t.hostname===$Ft)){if(t.hostname.includes("[")){if(t.hostname==="[::1]"||t.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(t.hostname==="localhost")return;let r=t.hostname.split("."),n=i(s=>{let o=parseInt(s,10);return 0<=o&&o<=255},"inRange");if(r[0]==="127"&&n(r[1])&&n(r[2])&&n(r[3])&&r.length===4)return}throw new Ph(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
- ECS container host 169.254.170.2
|
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:e})}},"checkUrl");function HFt(t){return new LFt({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(HFt,"createGetRequest");async function zFt(t,e){let n=await MFt(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 Ph("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:FFt(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new Ph(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new Ph(`Server responded with status: ${t.statusCode}`,{logger:e})}i(zFt,"getCredentials");var VFt=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"),WFt="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",YFt="http://169.254.170.2",JFt="AWS_CONTAINER_CREDENTIALS_FULL_URI",jFt="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",KFt="AWS_CONTAINER_AUTHORIZATION_TOKEN",XFt=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[WFt],n=t.awsContainerCredentialsFullUri??process.env[JFt],s=t.awsContainerAuthorizationToken??process.env[KFt],o=t.awsContainerAuthorizationTokenFile??process.env[jFt],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=`${YFt}${r}`;else if(n)e=n;else throw new Ph(`No HTTP credential provider host provided.
|
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:t.logger});let c=new URL(e);GFt(c,t.logger);let l=kFt.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=VFt(async()=>{let p=HFt(c);o?p.headers.Authorization=lUe((await OFt.readFile(o)).toString()):s&&(p.headers.Authorization=lUe(s));try{let f=await l.handle(p,{requestTimeout:u});return zFt(f.response).then(m=>DFt(m,"CREDENTIALS_HTTP","z"))}catch(f){throw new Ph(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),lUe=i(t=>{if(t.includes(`\r
|
|
`))throw new Ph("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");uUe.fromHttp=XFt});function ZFt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function e1t(t){return{schemeId:"smithy.api#noAuth"}}var dUe,pUe,fUe,UZ=g(()=>{rs();we();dUe=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(ZFt,"createAwsAuthSigv4HttpAuthOption");i(e1t,"createSmithyApiNoAuthHttpAuthOption");pUe=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(e1t(t)):e.push(ZFt(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),fUe=i(t=>{let e=Ol(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var mUe,hUe,qZ=g(()=>{mUe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),hUe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Wp,Kb=g(()=>{Wp={name:"@aws-sdk/nested-clients",version:"3.997.54",description:"Nested clients for AWS SDK packages.",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",license:"Apache-2.0",author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/sdk-for-javascript/"},repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],sideEffects:!1,main:"./dist-cjs/index.js",module:"./dist-es/index.js",browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},types:"./dist-types/index.d.ts",typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"],"*":["dist-types/ts3.4/submodules/*/index.d.ts"]}},"react-native":{},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}},scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"premove dist-es && tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove dist-types && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types",lint:"node ../../scripts/validation/submodules-linter.js",prebuild:"yarn lint",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},dependencies:{"@aws-sdk/core":"^3.979.1","@aws-sdk/signature-v4-multi-region":"^3.996.51","@aws-sdk/types":"^3.975.0","@smithy/core":"^3.38.0","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.14.0","@smithy/types":"^4.19.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~7.0.2"},engines:{node:">=20.0.0"}}});var $Z,AUe=g(()=>{$Z=Symbol("@smithy/core/cbor::tagSymbol")});var Xb,GZ=g(()=>{Xb=i((t,e)=>{let r=i(n=>{let s=n;return typeof s=="number"&&(s=s.toString()),s.indexOf(",")>=0&&(s=s.split(",")[0]),s.indexOf(":")>=0&&(s=s.split(":")[0]),s},"sanitizeErrorCode");if(e.__type!==void 0)return r(e.__type)},"loadSmithyRpcV2CborErrorCode")});function WL(t){let e=t.getSchema(),r=e[gUe];if(r)return r;let n=[],s=[];for(let[c,l]of t.structIterator())n.push(c),s.push(l);let o=new Array(n.length);for(let c=0;c<n.length;++c)o[c]=r1t(n[c]);let a={memberNames:n,memberSchemas:s,encodedKeys:o};return e[gUe]=a,a}function r1t(t){let e;YL?e=Buffer.from(t,"utf-8"):e=new TextEncoder().encode(t);let r=e.length,n;r<24?n=1:r<256?n=2:n=3;let s=new Uint8Array(n+r);return n===1?s[0]=96|r:n===2?(s[0]=120,s[1]=r):(s[0]=121,s[1]=r>>8,s[2]=r&255),s.set(e,n),s}function SUe(t){return YL?Buffer.allocUnsafe(t):new Uint8Array(t)}function CC(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Gl(Ko());return}Ct(1),qe[Te++]=246;return}if(t.isUnitSchema()){Ct(1),In(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){$L(e);return}if(t.isTimestampSchema()&&e instanceof Date){WZ(e);return}if(t.isStructSchema()){s1t(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){CUe(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){zZ(t,e,!1,n);return}if(e instanceof Date){WZ(e);return}if(e instanceof Uint8Array){$L(e);return}if(e instanceof je){bUe(e);return}if(e[$Z]){let o=e;xUe(o.tag,o.value);return}if(t.isDocumentSchema()){Array.isArray(e)?CUe(t,e,!0,n):zZ(t,e,!0,n);return}if(t.isBigDecimalSchema()){IC(e);return}zZ(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let o=(n?.base64Decoder??Er)(e);$L(o);return}Gl(e);return}if(typeof e=="number"){Ct(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?JL(e):eee(e);return}if(typeof e=="boolean"){Ct(1),qe[Te++]=224|(e?21:20);return}if(typeof e=="bigint"){zL(e);return}Gl(String(e))}function s1t(t,e,r){if(t.isUnionSchema()){let p=!1;for(let[f,m]of t.structIterator()){let h=e[f];if(h!=null){Ct(9),In(5,1),Gl(f),CC(m,h,t,r),p=!0;break}}if(!p){let{$unknown:f}=e;Array.isArray(f)?(Ct(9),In(5,1),Gl(f[0]),IC(f[1])):(Ct(9),In(5,0))}return}let n=WL(t),{memberNames:s,memberSchemas:o,encodedKeys:a}=n,c=s.length,l;c<24?l=1:c<256?l=2:l=3,Ct(l);let u=Te;Te+=l;let d=0;for(let p=0;p<c;++p){let f=e[s[p]];if(f==null&&!o[p].isIdempotencyToken())continue;let m=a[p];Ct(m.length),qe.set(m,Te),Te+=m.length,CC(o[p],f,t,r),++d}if(typeof e.__type=="string")for(let p in e)X(e,p)&&(s.includes(p)||(Gl(p),IC(e[p]),++d));l===1?qe[u]=160|d:l===2?(qe[u]=184,qe[u+1]=d):(qe[u]=185,qe[u+1]=d>>8,qe[u+2]=d&255)}function CUe(t,e,r,n){let s=!!t.getMergedTraits().sparse,o=t.getValueSchema();if(r||s){let a=[];for(let c=0;c<e.length;++c){let l=e[c];r?l!==void 0&&a.push(l):(l!=null||s)&&a.push(l)}Ct(9),In(4,a.length);for(let c=0;c<a.length;++c)CC(o,a[c],void 0,n)}else{let a=0;for(let c=0;c<e.length;++c)e[c]!=null&&++a;Ct(9),In(4,a);for(let c=0;c<e.length;++c)e[c]!=null&&CC(o,e[c],void 0,n)}}function zZ(t,e,r,n){let s=!!t.getMergedTraits().sparse,o=t.getValueSchema(),a=[];for(let c in e){if(!X(e,c))continue;let l=e[c];(r?l!==void 0:l!=null||s)&&a.push(c)}Ct(9),In(5,a.length);for(let c=0;c<a.length;++c){let l=a[c];Gl(l),CC(o,e[l],void 0,n)}}function IC(t){if(t==null){Ct(1),qe[Te++]=246;return}if(typeof t=="string"){Gl(t);return}if(typeof t=="number"){Ct(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?JL(t):eee(t);return}if(typeof t=="boolean"){Ct(1),qe[Te++]=224|(t?21:20);return}if(typeof t=="bigint"){zL(t);return}if(t instanceof Uint8Array){$L(t);return}if(t instanceof Date){WZ(t);return}if(t instanceof je){bUe(t);return}if(t[$Z]){let e=t;xUe(e.tag,e.value);return}if(Array.isArray(t)){Ct(9),In(4,t.length);for(let e=0;e<t.length;++e)IC(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Ct(9),In(5,e.length);for(let r=0;r<e.length;++r)Gl(e[r]),IC(t[e[r]]);return}Gl(String(t))}function Ct(t){if(Te+t>qe.length){let e=qe.length*2;for(;e<Te+t;)e*=2;let r=SUe(e);r.set(qe.subarray(0,Te)),qe=r,vh=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function In(t,e){if(e<24)qe[Te++]=t<<5|e;else if(e<256)qe[Te++]=t<<5|24,qe[Te++]=e;else if(e<65536)qe[Te++]=t<<5|25,qe[Te++]=e>>8,qe[Te++]=e&255;else if(e<4294967296)qe[Te++]=t<<5|26,vh.setUint32(Te,e),Te+=4;else{qe[Te++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;vh.setUint32(Te,r),vh.setUint32(Te+4,n),Te+=8}}function wUe(t,e){let r=Number(e);if(r<4294967296){In(t,r);return}qe[Te++]=t<<5|27,vh.setBigUint64(Te,e),Te+=8}function Gl(t){let e=t.length;if(e<=23){let r=gC.get(t);if(r){Ct(r.bytes.length),qe.set(r.bytes,Te),Te+=r.bytes.length,r.epoch=HZ;return}let n=Te;IUe(t,e);let s=Te,o=Uint8Array.prototype.slice.call(qe,n,s);if(gC.size>=yUe){if(EUe)return;let a=0;for(let[c,l]of gC){if(a>=1024)break;l.epoch!==HZ&&(gC.delete(c),++a)}if(a===0){EUe=!0;return}}gC.size<yUe&&gC.set(t,{epoch:HZ,bytes:o});return}IUe(t,e)}function IUe(t,e){if(YL){let r=e*3;Ct(r+9);let n=Buffer.byteLength(t);In(3,n),Te+=qe.write(t,Te)}else{let r=e*3;Ct(r+9);let n=Te,o=n1t.encodeInto(t,qe.subarray(n+9)).written,a;o<24?a=1:o<256?a=2:o<65536?a=3:o<4294967296?a=5:a=9,a<9&&qe.copyWithin(n+a,n+9,n+9+o),Te=n,In(3,o),Te+=o}}function eee(t){Ct(9),qe[Te++]=251,vh.setFloat64(Te,t),Te+=8}function JL(t){Ct(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;In(r,n)}function zL(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Ct(9),wUe(r,n);else{let s=n.toString(2),o=Math.ceil(s.length/8),a=new Uint8Array(o),c=n;for(let l=o-1;l>=0;--l)a[l]=Number(c&BigInt(255)),c>>=BigInt(8);Ct(o+16),qe[Te++]=e?194:195,In(2,o),qe.set(a,Te),Te+=o}}function $L(t){Ct(t.length+9),In(2,t.length),qe.set(t,Te),Te+=t.length}function xUe(t,e){Ct(9),typeof t=="bigint"?wUe(6,t):In(6,t),IC(e)}function bUe(t){let e=t.string,r=BigInt(0),n=e.search(/[eE]/);n!==-1&&(r=BigInt(e.slice(n+1)),e=e.slice(0,n));let s=e.indexOf("."),o=s===-1?0:e.length-s-1,a=r-BigInt(o),c=BigInt(e.replace(".",""));Ct(9),qe[Te++]=196,In(4,2),Ct(9),a>=-0x20000000000000n&&a<=0x1fffffffffffffn?JL(Number(a)):zL(a),zL(c)}function WZ(t){Ct(18),In(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?JL(e):eee(e)}var HL,gUe,YL,n1t,VZ,qe,vh,Te,yUe,gC,HZ,EUe,tee=g(()=>{ve();Ne();He();xe();AUe();HL=class extends hn{static{i(this,"CborShapeSerializer2")}write(e,r){Te=0;let n=O.of(e);CC(n,r,void 0,this.serdeContext)}flush(){let e=qe.subarray(0,Te);return Te=0,qe=SUe(VZ),vh=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),e}},gUe=Symbol.for("@smithy/cbor-struct-cache");i(WL,"loadCborStructIterator");i(r1t,"encodeCborStringKey");YL=typeof Buffer<"u",n1t=new TextEncoder,VZ=2048,qe=YL?Buffer.allocUnsafe(VZ):new Uint8Array(VZ),vh=new DataView(qe.buffer,qe.byteOffset,qe.byteLength),Te=0,yUe=2048,gC=new Map,HZ=0,EUe=!1;i(SUe,"allocUnsafe");i(CC,"writeValue");i(s1t,"writeStruct");i(CUe,"writeList");i(zZ,"writeMap");i(IC,"writeUntypedValue");i(Ct,"ensure");i(In,"encodeHeader");i(wUe,"encodeBigHeader");i(Gl,"writeString");i(IUe,"writeStringUncached");i(eee,"writeFloat64");i(JL,"writeInteger");i(zL,"writeBigInt");i($L,"writeBytes");i(xUe,"writeTag");i(bUe,"writeNumericValue");i(WZ,"writeTimestamp")});function ei(t){if(se>=Sn)throw new Error("unexpected end of CBOR payload.");let e=(Cr[se]&224)>>5;if((Cr[se]&31)===31&&e>=2&&e<=5)return l1t(t,e);switch(e){case 0:return m1t();case 1:return h1t();case 2:return eM();case 3:return SC();case 4:return o1t(t);case 5:return i1t(t);case 6:return c1t(t);case 7:return g1t();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function o1t(t){let e=ZL(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let s=0;s<e;++s)n[s]=ei(r);return n}function i1t(t){let e=ZL();if(t.isStructSchema())return a1t(t,e,se);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let s=0;s<e;++s){let o=SC();n[o]=ei(r)}return n}function a1t(t,e,r){let n=t.isUnionSchema(),s=WL(t),{memberSchemas:o,encodedKeys:a,memberNames:c}=s,l=a.length,u={},d,p,f=0,m=!1,h=0;for(let A=0;A<e;++A){let y=TUe(a,l,h);if(y>=0){h=y+1,h>=l&&(h=0);let E=ei(o[y]);E!=null&&(u[c[y]]=E)}else{let E=SC(),I=ei(O.of(15));E==="__type"&&typeof I=="string"?m=!0:(d=E,p=I,++f)}}if(n){let A=!0;for(let y in u)if(X(u,y)){A=!1;break}A&&f===1&&(u.$unknown=[d,p])}else if(m){se=r;let A=O.of(15);for(let y=0;y<e;++y){let E=SC(),I=ei(A);E in u||(u[E]=I)}}return u}function c1t(t){let e=XL(),r=typeof e=="bigint"?Number(e):e;if(r===1){let o=O.of(15),a=ei(o);return dp(a)}if(r===2||r===3){let o=eM(),a=BigInt(0);for(let c=0;c<o.length;++c)a=a<<BigInt(8)|BigInt(o[c]);return r===3?-a-BigInt(1):a}if(r===4){let o=O.of(15),a=ei(o),[c,l]=a,u=l<0?-1:1,d=BigInt(u)*BigInt(l),p=String(d),f=l<0?"-":"",m;if(typeof c=="number"&&Math.abs(c)<=2**28){let A=c,y="0".repeat(Math.abs(A)+1)+p;m=A===0?y:y.slice(0,y.length+A)+"."+y.slice(A),m=m.replace(/^0+/g,""),m===""&&(m="0"),m[0]==="."&&(m="0"+m),m=f+m}else{let A=BigInt(c);if(p.length===1)m=f+p+"e"+String(A);else{let y=A+BigInt(p.length-1);m=f+p[0]+"."+p.slice(1)+"e"+String(y)}}return RD(m)}let n=O.of(15),s=ei(n);return{tag:PUe(e),value:s}}function l1t(t,e){switch(e){case 3:return u1t();case 2:return d1t();case 4:return p1t(t);case 5:return f1t(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function u1t(){se+=1;let t=[],e=0;for(;se<Sn;){if(Cr[se]===255){se+=1;let n=new Uint8Array(e),s=0;for(let o=0;o<t.length;++o)n.set(t[o],s),s+=t[o].length;return NUe?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):nee.decode(n)}let r=eM();t.push(r),e+=r.length}throw new Error("expected break marker.")}function d1t(){se+=1;let t=[],e=0;for(;se<Sn;){if(Cr[se]===255){se+=1;let n=new Uint8Array(e),s=0;for(let o=0;o<t.length;++o)n.set(t[o],s),s+=t[o].length;return n}let r=eM();t.push(r),e+=r.length}throw new Error("expected break marker.")}function p1t(t){se+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;se<Sn;){if(Cr[se]===255)return se+=1,r;r.push(ei(e))}throw new Error("expected break marker.")}function f1t(t){if(se+=1,t.isStructSchema()){let n=WL(t),{memberSchemas:s,encodedKeys:o,memberNames:a}=n,c=o.length,l=t.isUnionSchema(),u={},d,p,f=0,m=0;for(;se<Sn;){if(Cr[se]===255){if(se+=1,l){let A=!0;for(let y in u)if(X(u,y)){A=!1;break}A&&f===1&&(u.$unknown=[d,p])}return u}let h=TUe(o,c,m);if(h>=0){m=h+1,m>=c&&(m=0);let A=ei(s[h]);A!=null&&(u[a[h]]=A)}else{let A=SC(),y=ei(O.of(15));A!=="__type"&&(d=A,p=y,++f)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;se<Sn;){if(Cr[se]===255)return se+=1,r;let n=SC();r[n]=ei(e)}throw new Error("expected break marker.")}function TUe(t,e,r){let n=t[r];if(se+n.length<=Sn&&RUe(se,n))return se+=n.length,r;for(let s=0;s<e;++s){if(s===r)continue;let o=t[s];if(se+o.length<=Sn&&RUe(se,o))return se+=o.length,s}return-1}function RUe(t,e){let r=e.length;if(Cr[t]!==e[0])return!1;for(let n=1;n<r;++n)if(Cr[t+n]!==e[n])return!1;return!0}function XL(){let t=Cr[se]&31;if(t<24)return se+=1,t;switch(t){case 24:return Sn-se<2&&ju(1),se+=2,Cr[se-1];case 25:return Sn-se<3&&ju(2),se+=3,Yp.getUint16(se-2);case 26:return Sn-se<5&&ju(4),se+=5,Yp.getUint32(se-4);case 27:{Sn-se<9&&ju(8),se+=9;let e=Yp.getUint32(se-8);return e<2097152?e*4294967296+Yp.getUint32(se-4):Yp.getBigUint64(se-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function ZL(){let t=XL();return typeof t=="bigint"?Number(t):t}function m1t(){let t=XL();return PUe(t)}function h1t(){let t=XL();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function eM(){let t=ZL();Sn-se<t&&ju(t);let e=se;return se+=t,Cr.subarray(e,e+t)}function SC(){let t=ZL();Sn-se<t&&ju(t);let e=se;return se+=t,t<24?A1t(e,t):see?Cr.toString("utf-8",e,e+t):nee.decode(Cr.subarray(e,e+t))}function A1t(t,e){let r=e;for(let a=0;a<e;++a)r=r*31+Cr[t+a]|0;let n=r>>>0&oee-1,s=BUe[n];if(s!==void 0&&s.length===e){let a=!0;for(let c=0;c<e;++c)if(s.charCodeAt(c)!==Cr[t+c]){a=!1;break}if(a)return ree[n]=t0,s}let o=see?Cr.toString("utf-8",t,t+e):nee.decode(Cr.subarray(t,t+e));return ree[n]!==t0&&(BUe[n]=o,ree[n]=t0),o}function g1t(){let t=se,e=Cr[t]&31;switch(e){case 21:return se=t+1,!0;case 20:return se=t+1,!1;case 22:return se=t+1,null;case 23:return se=t+1,null;case 25:return Sn-t<3&&ju(2),se=t+3,y1t(Cr[t+1],Cr[t+2]);case 26:return Sn-t<5&&ju(4),se=t+5,Yp.getFloat32(t+1);case 27:return Sn-t<9&&ju(8),se=t+9,Yp.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function y1t(t,e){let r=t>>7,n=(t&124)>>2,s=(t&3)<<8|e,o=r===0?1:-1;return n===0?s===0?0:o*(Math.pow(2,-14)*(s/1024)):n===31?s===0?o*(1/0):NaN:o*(Math.pow(2,n-15)*(1+s/1024))}function PUe(t){if(typeof t=="number")return t;let e=Number(t);return Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:t}function ju(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function jL(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return dp(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return dp(e.value)}if(t.isBlobSchema()||typeof e>"u"||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="bigint"||typeof e=="symbol"||typeof e!="object"||e===null||"byteLength"in e||e instanceof Date||e instanceof je||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),s=[];for(let o of e)s.push(jL(n,o));return s}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let s in e)X(e,s)&&(r[s]=jL(n,e[s]))}else if(t.isStructSchema()){let n=t.isUnionSchema(),s;if(n){s=new Set;for(let o in e)X(e,o)&&o!=="__type"&&s.add(o)}for(let[o,a]of t.structIterator())n&&s.delete(o),e[o]!=null&&(r[o]=jL(a,e[o]));if(n&&s?.size===1){let o=!0;for(let a in r)if(X(r,a)){o=!1;break}if(o){let a=s.values().next().value;r.$unknown=[a,e[a]]}}else if(typeof e.__type=="string")for(let o in e)X(e,o)&&(o in r||(r[o]=e[o]))}return r}var KL,NUe,nee,Cr,see,Yp,se,Sn,oee,BUe,ree,t0,_Ue=g(()=>{ve();Ne();He();xe();tee();KL=class extends hn{static{i(this,"CborShapeDeserializer2")}read(e,r){return Cr=r,see=NUe&&r instanceof Buffer,Yp=new DataView(r.buffer,r.byteOffset,r.byteLength),se=0,Sn=r.length,t0=t0+1&65535,ei(O.of(e))}readValue(e,r){return jL(O.of(e),r)}},NUe=typeof Buffer<"u",nee=new TextDecoder,Cr=new Uint8Array(0),see=!1,Yp=new DataView(new ArrayBuffer(0)),se=0,Sn=0,oee=2048,BUe=new Array(oee),ree=new Uint16Array(oee),t0=0;i(ei,"readValue");i(o1t,"readList");i(i1t,"readMap");i(a1t,"readStruct");i(c1t,"readTag");i(l1t,"readIndefinite");i(u1t,"readUtf8StringIndefinite");i(d1t,"readByteStringIndefinite");i(p1t,"readListIndefinite");i(f1t,"readMapIndefinite");i(TUe,"matchStructKey");i(RUe,"bytesMatch");i(XL,"decodeArgument");i(ZL,"decodeCount");i(m1t,"readUnsignedInt");i(h1t,"readNegativeInt");i(eM,"readByteString");i(SC,"readUtf8String");i(A1t,"decodeUtf8Cached");i(g1t,"readSpecial");i(y1t,"bytesToFloat16");i(PUe,"castBigInt");i(ju,"overflow");i(jL,"transformObject")});var tM,vUe=g(()=>{Ne();tee();_Ue();tM=class extends hn{static{i(this,"CborCodec")}createSerializer(){let e=new HL;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new KL;return e.setSerdeContext(this.serdeContext),e}}});var r0,QUe=g(()=>{Ne();He();vUe();GZ();r0=class extends Ep{static{i(this,"SmithyRpcV2CborProtocol")}codec=new tM;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}getSmithyProtocolHeaderValue(){return"rpc-v2-cbor"}applyEmptyBody(e){e.body||(this.serializer.write(15,{}),e.body=this.serializer.flush()),e.body instanceof Uint8Array&&(e.headers["content-length"]=String(e.body.byteLength))}async handleError(e,r,n,s,o){let a=Xb(n,s)??"Unknown",c=["*"],{defaultNamespace:l}=this.options;c.unshift(l);let[u,d]=a.includes("#")?a.split("#"):[void 0,a];u&&c.unshift(u);let p={$metadata:o,$fault:n.statusCode<500?"client":"server"},f=[this.compositeErrorRegistry];u&&f.push(yt.for(u)),f.push(yt.for(l));let[m,h,A]=this.resolveError(d,c,f);if(A==="native"||A==="synthetic"){s.Message&&(s.message=s.Message);let b=A==="synthetic"?new h({name:d}):new Error(d);throw Object.assign(b,p,s)}let y=O.of(m),E=s.message??s.Message??"Unknown",I=new h({}),x={};for(let[b,N]of y.structIterator())x[b]=this.deserializer.readValue(N,s[b]);throw Object.assign(I,p,{$fault:y.getMergedTraits().error,message:E},x)}getDefaultContentType(){return"application/cbor"}}});var DUe=g(()=>{GZ();QUe()});var lo,Qh=g(()=>{we();He();lo=class{static{i(this,"ProtocolLib")}queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,r){let n=r.getMemberSchemas(),s=Object.values(n).find(o=>!!o.getMergedTraits().httpPayload);if(s){let o=s.getMergedTraits().mediaType;return o||(s.isStringSchema()?"text/plain":s.isBlobSchema()?"application/octet-stream":e)}else if(!r.isUnitSchema()&&Object.values(n).find(a=>{let{httpQuery:c,httpQueryParams:l,httpHeader:u,httpLabel:d,httpPrefixHeaders:p}=a.getMergedTraits();return!c&&!l&&!u&&!d&&p===void 0}))return e}async getErrorSchemaOrThrowBaseException(e,r,n,s,o,a){let c=e;e.includes("#")&&([,c]=e.split("#"));let l={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:a?.(this.errorRegistry,c)??this.errorRegistry.getSchema(e),errorMetadata:l}}catch{s.message=s.message??s.Message??"UnknownError";let d=this.errorRegistry,p=d.getBaseException();if(p){let h=d.getErrorCtor(p)??Error;throw this.decorateServiceException(Object.assign(new h({name:c}),l),s)}let f=s,m=f?.message??f?.Message??f?.Error?.Message??f?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(m),{name:c},l),s)}}compose(e,r,n){let s=n;r.includes("#")&&([s]=r.split("#"));let o=yt.for(s),a=yt.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,r={}){if(this.queryCompat){let n=e.Message??r.Message,s=oh(e,r);n&&(s.message=n);let o=s.Error??{};o.Type=s.Error?.Type,o.Code=s.Error?.Code,o.Message=s.Error?.message??s.Error?.Message??n,s.Error=o;let a=s.$metadata.requestId;return a&&(s.RequestId=a),s}return oh(e,r)}setQueryCompatError(e,r){let n=r.headers?.["x-amzn-query-error"];if(e!==void 0&&n!=null){let[s,o]=n.split(";"),a=Object.keys(e),c={Code:s,Type:o};e.Code=s,e.Type=o;for(let l=0;l<a.length;l++){let u=a[l];c[u==="message"?"Message":u]=e[u]}delete c.__type,e.Error=c}}queryCompatOutput(e,r){e.Error&&(r.Error=e.Error),e.Type&&(r.Type=e.Type),e.Code&&(r.Code=e.Code)}findQueryCompatibleError(e,r){try{return e.getSchema(r)}catch{return e.find(s=>O.of(s).getMergedTraits().awsQueryError?.[0]===r)}}}});var rM,kUe=g(()=>{DUe();He();Qh();rM=class extends r0{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new lo(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),s}async handleError(e,r,n,s,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,n);let a=(()=>{let h=n.headers["x-amzn-query-error"];return h&&this.awsQueryCompatible?h.split(";")[0]:Xb(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={};for(let[h,A]of u.structIterator())s[h]!=null&&(m[h]=this.deserializer.readValue(A,s[h]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}}});var Jp,nM=g(()=>{Ne();He();Qh();Jp=class extends El{static{i(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r}),this.serviceTarget=n,this.codec=o??new Hi({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new lo(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,s.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),(Li(e.input)==="unit"||!s.body)&&(s.body="{}"),s}getPayloadCodec(){return this.codec}async handleError(e,r,n,s,o){let{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(s,n);let c=BE(n,s,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,c,this.options.defaultNamespace);let{errorSchema:l,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(c,this.options.defaultNamespace,n,s,o,a?this.mixin.findQueryCompatibleError:void 0),d=O.of(l),p=s.message??s.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(l)??Error,m=new f({}),h={},A=this.codec.createDeserializer();for(let[y,E]of d.structIterator())s[y]!=null&&(h[y]=A.readObject(E,s[y]));throw a&&this.mixin.queryCompatOutput(s,h),this.mixin.decorateServiceException(Object.assign(m,u,{$fault:d.getMergedTraits().error,message:p},h),s)}}});var sM,OUe=g(()=>{nM();sM=class extends Jp{static{i(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var oM,LUe=g(()=>{nM();oM=class extends Jp{static{i(this,"AwsJson1_1Protocol")}constructor({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:r,serviceTarget:n,awsQueryCompatible:s,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var Hl,MUe=g(()=>{Ne();He();Qh();Hl=class extends yp{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new lo;constructor({defaultNamespace:e,errorTypeRegistries:r,jsonCodec:n}){super({defaultNamespace:e,errorTypeRegistries:r});let s={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=n??new Hi(s),this.serializer=new wp(this.codec.createSerializer(),s),this.deserializer=new Sp(this.codec.createDeserializer(),s)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e),super.setSerdeContext(e)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=O.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return s.body==null&&s.headers["content-type"]===this.getDefaultContentType()&&(s.body="{}"),s}async deserializeResponse(e,r,n){let s=await super.deserializeResponse(e,r,n),o=O.of(e.output);for(let[a,c]of o.structIterator())c.getMemberTraits().httpPayload&&!(a in s)&&(s[a]=null);return s}async handleError(e,r,n,s,o){let a=bE(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({});await this.deserializeHttpMessage(c,r,n,s);let m={},h=this.codec.createDeserializer();for(let[A,y]of u.structIterator()){let E=y.getMergedTraits().jsonName??A;m[A]=h.readObject(y,s[E])}throw this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}getDefaultContentType(){return"application/json"}}});var iM,FUe=g(()=>{Ne();He();Qh();iM=class extends TE{static{i(this,"AwsSmithyRpcV2JsonProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new lo(this.awsQueryCompatible)}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);return this.awsQueryCompatible&&(s.headers["x-amzn-query-mode"]="true"),s}async handleError(e,r,n,s,o){this.awsQueryCompatible&&this.mixin.setQueryCompatError(s,n);let a=(()=>{let A=n.headers["x-amzn-query-error"];return A&&this.awsQueryCompatible?A.split(";")[0]:RE(n,s)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),u=O.of(c),d=s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({}),m={},h=this.getPayloadCodec().createDeserializer();for(let[A,y]of u.structIterator())s[A]!=null&&(m[A]=h.readObject(y,s[A]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(s,m),this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}}});var lM=S(cM=>{var E1t=/[&<>"]/g,C1t={"&":"&","<":"<",">":">",'"':"""};function I1t(t){return t.replace(E1t,e=>C1t[e])}i(I1t,"escapeAttribute");var S1t=/[&"'<>\r\n\u0085\u2028]/g,w1t={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","\x85":"…","\u2028":"
"};function x1t(t){return t.replace(S1t,e=>w1t[e])}i(x1t,"escapeElement");var aM=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return x1t(""+this.value)}},aee=class t{static{i(this,"XmlNode")}name;children;attributes={};static of(e,r,n){let s=new t(e);return r!==void 0&&s.addChildNode(new aM(r)),n!==void 0&&s.withName(n),s}constructor(e,r=[]){this.name=e,this.children=r}withName(e){return this.name=e,this}addAttribute(e,r){return this.attributes[e]=r,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,r){return r!=null&&(this.attributes[e]=r),this}cc(e,r,n=r){if(e[r]!=null){let s=t.of(r,e[r]).withName(n);this.c(s)}}l(e,r,n,s){e[r]!=null&&s().map(a=>{a.withName(n),this.c(a)})}lc(e,r,n,s){if(e[r]!=null){let o=s(),a=new t(n);o.map(c=>{a.c(c)}),this.c(a)}}toString(){let e=!!this.children.length,r=`<${this.name}`,n=this.attributes;for(let s of Object.keys(n)){let o=n[s];o!=null&&(r+=` ${s}="${I1t(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}};function iee(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}i(iee,"writeKey");function b1t(t){return new cee(t).parse()}i(b1t,"parseXML");var cee=class t{static{i(this,"AwsXmlParser")}x;i=0;z;constructor(e){this.x=e,this.x=e.replace(/\r\n?/g,`
|
|
`),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-sdk XML parse error: expected "${e}" not found.`);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]);)++e.i}readAttrValue(){let e=this,r=e.x[e.i];++e.i;let n="";for(;e.i<e.z&&e.x[e.i]!==r;)n+=e.x[e.i++];return++e.i,e.decodeEntities(n)}parseTag(){let e=this;++e.i;let r="";for(;e.i<e.z&&!` \r
|
|
>/`.includes(e.x[e.i]);)r+=e.x[e.i++];let n=!1,s={};for(;e.i<e.z&&(e.trim(),!">/".includes(e.x[e.i]));){let d="";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__"&&iee(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-sdk XML parse error: expected > at the end of self-closing tag.");return++e.i,{tag:r,value:n?s:""}}if(e.x[e.i]!==">")throw new Error("@aws-sdk XML parse error: expected > at the end of opening tag.");++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(`
|
|
`)?{tag:r,value:""}:{tag:r,value:d}}let u={};for(let d of o)d.trim()===""&&d.includes(`
|
|
`)||(u["#text"]="#text"in u?u["#text"]+d:d);for(let d of a)d.tag==="__proto__"&&iee(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__"&&iee(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]??"")}};cM.XmlNode=aee;cM.XmlText=aM;cM.parseXML=b1t});var zl,n0=g(()=>{zl=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var uM,UUe=g(()=>{uM=class{static{i(this,"UnionSerde")}from;to;keys;constructor(e,r){this.from=e,this.to=r;let n=Object.keys(this.from),s=new Set(n);s.delete("__type"),this.keys=s}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let e=this.keys.values().next().value,r=this.from[e];this.to.$unknown=[e,r]}}}});function qUe(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var $Ue=g(()=>{i(qUe,"writeKey")});var GUe,jp,dM=g(()=>{GUe=R(lM());we();Ne();He();xe();n0();UUe();$Ue();jp=class extends zl{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new Ip(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,r,n){let s=O.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??qt)(r),l=this.parseXml(c);return this.readSchema(e,n?l[n]:l)}readSchema(e,r){let n=O.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],h=f[p];m==="__proto__"&&qUe(a),a[m]=this.readSchema(l,h)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new uM(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 - xml deserializer unhandled schema type for ${n.getName(!0)}`)}return n.isListSchema()?[]:n.isMapSchema()||n.isStructSchema()?{}:this.stringDeserializer.read(n,r)}parseXml(e){if(e.length){let r;try{r=(0,GUe.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]),ah(o)}return{}}}});var wC,lee=g(()=>{Ne();He();xe();xe();n0();wC=class extends zl{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(e){super(),this.settings=e}write(e,r,n=""){this.buffer===void 0&&(this.buffer="");let s=O.of(e);if(n&&!n.endsWith(".")&&(n+="."),s.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(n),this.writeValue((this.serdeContext?.base64Encoder??Qt)(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(Ko()));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),An(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Vo(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?this.write(4,r,n):r instanceof Uint8Array?this.write(21,r,n):r&&typeof r=="object"?this.write(143,r,n):(this.writeKey(n),this.writeValue(String(r)));else if(s.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(n),this.writeValue(""));else{let o=s.getValueSchema(),a=this.settings.flattenLists||s.getMergedTraits().xmlFlattened,c=1;for(let l of r){if(l==null)continue;let u=o.getMergedTraits(),d=this.getKey("member",u.xmlName,u.ec2QueryName),p=a?`${n}${c}`:`${n}${d}.${c}`;this.write(o,l,p),++c}}}else if(s.isMapSchema()){if(r&&typeof r=="object"){let o=s.getKeySchema(),a=s.getValueSchema(),c=s.getMergedTraits().xmlFlattened,l=1;for(let u in r){let d=r[u];if(d==null)continue;let p=o.getMergedTraits(),f=this.getKey("key",p.xmlName,p.ec2QueryName),m=c?`${n}${l}.${f}`:`${n}entry.${l}.${f}`,h=a.getMergedTraits(),A=this.getKey("value",h.xmlName,h.ec2QueryName),y=c?`${n}${l}.${A}`:`${n}entry.${l}.${A}`;this.write(o,u,m),this.write(a,d,y),++l}}}else if(s.isStructSchema()){if(r&&typeof r=="object"){let o=!1;for(let[a,c]of s.structIterator()){if(r[a]==null&&!c.isIdempotencyToken())continue;let l=c.getMergedTraits(),u=this.getKey(a,l.xmlName,l.ec2QueryName,"struct"),d=`${n}${u}`;this.write(c,r[a],d),o=!0}if(!o&&s.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,l]=a,u=`${n}${c}`;this.write(15,l,u)}}}}else if(!s.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${s.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let e=this.buffer;return delete this.buffer,e}getKey(e,r,n,s){let{ec2:o,capitalizeKeys:a}=this.settings;if(o&&n)return n;let c=r??e;return a&&s==="struct"?c[0].toUpperCase()+c.slice(1):c}writeKey(e){e.endsWith(".")&&(e=e.slice(0,e.length-1)),this.buffer+=`&${_a(e)}=`}writeValue(e){this.buffer+=_a(e)}}});var Kp,uee=g(()=>{Ne();He();Qh();dM();lee();Kp=class extends El{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new lo;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries}),this.options=e;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:!0};this.serializer=new wC(r),this.deserializer=new jp(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n);s.path.endsWith("/")||(s.path+="/"),s.headers["content-type"]="application/x-www-form-urlencoded",(Li(e.input)==="unit"||!s.body)&&(s.body="");let o=e.name.split("#")[1]??e.name;return s.body=`Action=${o}&Version=${this.options.version}`+s.body,s.body.endsWith("&")&&(s.body=s.body.slice(-1)),s}async deserializeResponse(e,r,n){let s=this.deserializer,o=O.of(e.output),a={};if(n.statusCode>=300){let d=await tn(n.body,r);d.byteLength>0&&Object.assign(a,await s.read(15,d)),await this.handleError(e,r,n,a,this.deserializeMetadata(n))}for(let d in n.headers){let p=n.headers[d];delete n.headers[d],n.headers[d.toLowerCase()]=p}let c=e.name.split("#")[1]??e.name,l=o.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,u=await tn(n.body,r);return u.byteLength>0&&Object.assign(a,await s.read(o,u,l)),a.$metadata=this.deserializeMetadata(n),a}useNestedResult(){return!0}async handleError(e,r,n,s,o){let a=this.loadQueryErrorCode(n,s)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let c=this.loadQueryError(s)??{},l=this.loadQueryErrorMessage(s);c.message=l,c.Error={Type:c.Type,Code:c.Code,Message:l};let{errorSchema:u,errorMetadata:d}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,c,o,this.mixin.findQueryCompatibleError),p=O.of(u),f=this.compositeErrorRegistry.getErrorCtor(u)??Error,m=new f({}),h={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[A,y]of p.structIterator()){let E=y.getMergedTraits().xmlName??A,I=c[E]??s[E];h[A]=this.deserializer.readSchema(y,I)}throw this.mixin.decorateServiceException(Object.assign(m,d,{$fault:p.getMergedTraits().error,message:l},h),s)}loadQueryErrorCode(e,r){let n=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(n!==void 0)return n;if(e.statusCode==404)return"NotFound"}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){let r=this.loadQueryError(e);return r?.message??r?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var pM,HUe=g(()=>{uee();pM=class extends Kp{static{i(this,"AwsEc2QueryProtocol")}options;constructor(e){super(e),this.options=e;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var zUe,VUe=g(()=>{Ne();xe();zUe=i((t,e)=>tn(t,e).then(r=>(e?.utf8Encoder??qt)(r)),"collectBodyString")});var WUe,dee,YUe,fM,pee=g(()=>{WUe=R(lM());we();VUe();dee=i((t,e)=>zUe(t,e).then(r=>{if(r.length){let n;try{n=(0,WUe.parseXML)(r)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:r}),c}let s="#text",o=Object.keys(n)[0],a=n[o];return a[s]&&(a[o]=a[s],delete a[s]),ah(a)}return{}}),"parseXmlBody"),YUe=i(async(t,e)=>{let r=await dee(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),fM=i((t,e)=>{if(e?.Error?.Code!==void 0)return e.Error.Code;if(e?.Code!==void 0)return e.Code;if(t.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var Ps,xC,fee=g(()=>{Ps=R(lM());Ne();He();xe();xe();n0();xC=class extends zl{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(e){super(),this.settings=e}write(e,r){let n=O.of(e);if(n.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(n.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??Er)(r);else{this.buffer=this.writeStruct(n,r,void 0);let s=n.getMergedTraits();s.httpPayload&&!s.xmlName&&this.buffer.withName(n.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let e=this.buffer;return this.settings.xmlNamespace&&(e?.attributes?.xmlns||e.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,e.toString()}writeStruct(e,r,n){let s=e.getMergedTraits(),o=e.isMemberSchema()&&!s.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():s.xmlName??e.getName();if(!o||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);let a=Ps.XmlNode.of(o),[c,l]=this.getXmlnsAttribute(e,n);for(let[d,p]of e.structIterator()){let f=r[d];if(f!=null||p.isIdempotencyToken()){if(p.getMergedTraits().xmlAttribute){a.addAttribute(p.getMergedTraits().xmlName??d,this.writeSimple(p,f));continue}if(p.isListSchema())this.writeList(p,f,a,l);else if(p.isMapSchema())this.writeMap(p,f,a,l);else if(p.isStructSchema())a.addChildNode(this.writeStruct(p,f,l));else{let m=Ps.XmlNode.of(p.getMergedTraits().xmlName??p.getMemberName());this.writeSimpleInto(p,f,m,l),a.addChildNode(m)}}}let{$unknown:u}=r;if(u&&e.isUnionSchema()&&Array.isArray(u)&&Object.keys(r).length===1){let[d,p]=u,f=Ps.XmlNode.of(d);if(typeof p!="string")if(r instanceof Ps.XmlNode||r instanceof Ps.XmlText)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,p,f,l),a.addChildNode(f)}return l&&a.addAttribute(c,l),a}writeList(e,r,n,s){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);let o=e.getMergedTraits(),a=e.getValueSchema(),c=a.getMergedTraits(),l=!!c.sparse,u=!!o.xmlFlattened,[d,p]=this.getXmlnsAttribute(e,s),f=i((m,h)=>{if(a.isListSchema())this.writeList(a,Array.isArray(h)?h:[h],m,p);else if(a.isMapSchema())this.writeMap(a,h,m,p);else if(a.isStructSchema()){let A=this.writeStruct(a,h,p);m.addChildNode(A.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let A=Ps.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,h,A,p),m.addChildNode(A)}},"writeItem");if(u)for(let m of r)(l||m!=null)&&f(n,m);else{let m=Ps.XmlNode.of(o.xmlName??e.getMemberName());p&&m.addAttribute(d,p);for(let h of r)(l||h!=null)&&f(m,h);n.addChildNode(m)}}writeMap(e,r,n,s,o=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);let a=e.getMergedTraits(),c=e.getKeySchema(),u=c.getMergedTraits().xmlName??"key",d=e.getValueSchema(),p=d.getMergedTraits(),f=p.xmlName??"value",m=!!p.sparse,h=!!a.xmlFlattened,[A,y]=this.getXmlnsAttribute(e,s),E=i((I,x,b)=>{let N=Ps.XmlNode.of(u,x),[v,_]=this.getXmlnsAttribute(c,y);_&&N.addAttribute(v,_),I.addChildNode(N);let J=Ps.XmlNode.of(f);d.isListSchema()?this.writeList(d,b,J,y):d.isMapSchema()?this.writeMap(d,b,J,y,!0):d.isStructSchema()?J=this.writeStruct(d,b,y):this.writeSimpleInto(d,b,J,y),I.addChildNode(J)},"addKeyValue");if(h)for(let I in r){let x=r[I];if(m||x!=null){let b=Ps.XmlNode.of(a.xmlName??e.getMemberName());E(b,I,x),n.addChildNode(b)}}else{let I;o||(I=Ps.XmlNode.of(a.xmlName??e.getMemberName()),y&&I.addAttribute(A,y),n.addChildNode(I));for(let x in r){let b=r[x];if(m||b!=null){let N=Ps.XmlNode.of("entry");E(N,x,b),(o?n:I).addChildNode(N)}}}}writeSimple(e,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let n=O.of(e),s=null;if(r&&typeof r=="object")if(n.isBlobSchema())s=(this.serdeContext?.base64Encoder??Qt)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(An(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=Vo(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=Vo(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof je?r.string:String(r);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(s=String(r)),n.isStringSchema()&&(r===void 0&&n.isIdempotencyToken()?s=Ko():s=String(r)),s===null)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${r}`);return s}writeSimpleInto(e,r,n,s){let o=this.writeSimple(e,r),a=O.of(e),c=new Ps.XmlText(o),[l,u]=this.getXmlnsAttribute(a,s);u&&n.addAttribute(l,u),n.addChildNode(c)}getXmlnsAttribute(e,r){let n=e.getMergedTraits(),[s,o]=n.xmlNamespace??[];return o&&o!==r?[s?`xmlns:${s}`:"xmlns",o]:[void 0,void 0]}}});var bC,mee=g(()=>{n0();dM();fee();bC=class extends zl{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new xC(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new jp(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var mM,JUe=g(()=>{Ne();He();Qh();pee();mee();mM=class extends yp{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new lo;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new bC(r),this.serializer=new wp(this.codec.createSerializer(),r),this.deserializer=new Sp(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,r,n){let s=await super.serializeRequest(e,r,n),o=O.of(e.input);if(!s.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),o);a&&(s.headers["content-type"]=a)}return typeof s.body=="string"&&s.headers["content-type"]===this.getDefaultContentType()&&!s.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(o)&&(s.body='<?xml version="1.0" encoding="UTF-8"?>'+s.body),s}async deserializeResponse(e,r,n){return super.deserializeResponse(e,r,n)}async handleError(e,r,n,s,o){let a=fM(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let A of Object.keys(s.Error))s[A]=s.Error[A],A.toLowerCase()==="message"&&(s.message=s.Error[A]);s.RequestId&&!o.requestId&&(o.requestId=s.RequestId);let{errorSchema:c,errorMetadata:l}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,n,s,o),u=O.of(c),d=s.Error?.message??s.Error?.Message??s.message??s.Message??"UnknownError",p=this.compositeErrorRegistry.getErrorCtor(c)??Error,f=new p({});await this.deserializeHttpMessage(c,r,n,s);let m={},h=this.codec.createDeserializer();for(let[A,y]of u.structIterator()){let E=y.getMergedTraits().xmlName??A,I=s.Error?.[E]??s[E];m[A]=h.readSchema(y,I)}throw this.mixin.decorateServiceException(Object.assign(f,l,{$fault:u.getMergedTraits().error,message:d},m),s)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(let[,r]of e.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var jUe,KUe=g(()=>{xe();jUe=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,ED(t)},"awsExpectUnion")});var XUe,ZUe,e2e,t2e=g(()=>{XUe=i(t=>{if(t==null)return t;if(typeof t=="number"||typeof t=="bigint"){let e=new Error(`Received number ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}if(typeof t=="boolean"){let e=new Error(`Received boolean ${t} where a string was expected.`);return e.name="Warning",console.warn(e),String(t)}return t},"_toStr"),ZUe=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=t.toLowerCase();if(t!==""&&e!=="false"&&e!=="true"){let r=new Error(`Received string "${t}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return t!==""&&e!=="false"}return t},"_toBool"),e2e=i(t=>{if(t==null)return t;if(typeof t=="string"){let e=Number(t);if(e.toString()!==t){let r=new Error(`Received string "${t}" where a number was expected.`);return r.name="Warning",console.warn(r),t}return e}return t},"_toNum")});var hee={};cr(hee,{AwsEc2QueryProtocol:()=>pM,AwsJson1_0Protocol:()=>sM,AwsJson1_1Protocol:()=>oM,AwsJsonRpcProtocol:()=>Jp,AwsQueryProtocol:()=>Kp,AwsRestJsonProtocol:()=>Hl,AwsRestXmlProtocol:()=>mM,AwsSmithyRpcV2CborProtocol:()=>rM,AwsSmithyRpcV2JsonProtocol:()=>iM,JsonCodec:()=>PE,JsonCodec2:()=>Hi,JsonShapeDeserializer:()=>Rp,JsonShapeDeserializer2:()=>bp,JsonShapeSerializer:()=>Np,JsonShapeSerializer2:()=>Bp,QueryShapeSerializer:()=>wC,XmlCodec:()=>bC,XmlShapeDeserializer:()=>jp,XmlShapeSerializer:()=>xC,_toBool:()=>ZUe,_toNum:()=>e2e,_toStr:()=>XUe,awsExpectUnion:()=>jUe,loadJsonRpcErrorCode:()=>BE,loadRestJsonErrorCode:()=>bE,loadRestXmlErrorCode:()=>fM,parseJsonBody:()=>Hu,parseJsonErrorBody:()=>kk,parseXmlBody:()=>dee,parseXmlErrorBody:()=>YUe});var Dh=g(()=>{kUe();OUe();LUe();nM();MUe();FUe();Ne();HUe();uee();lee();JUe();mee();dM();fee();pee();KUe();t2e()});var s0,kh,hM,r2e,i2e,AM,Aee,n2e,gee,BC,s2e,o2e,B1t,uo,R1t,a2e,c2e=g(()=>{Dt();s0="ref",kh=-1,hM=!0,r2e="isSet",i2e="PartitionResult",AM="booleanEquals",Aee="getAttr",n2e={[s0]:"Endpoint"},gee={[s0]:i2e},BC={},s2e=[{[s0]:"Region"}],o2e={conditions:[[r2e,[n2e]],[r2e,s2e],["aws.partition",s2e,i2e],[AM,[{[s0]:"UseFIPS"},hM]],[AM,[{[s0]:"UseDualStack"},hM]],[AM,[{fn:Aee,argv:[gee,"supportsDualStack"]},hM]],[AM,[{fn:Aee,argv:[gee,"supportsFIPS"]},hM]],["stringEquals",[{fn:Aee,argv:[gee,"name"]},"aws-us-gov"]]],results:[[kh],[kh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[kh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[n2e,BC],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",BC],[kh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",BC],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",BC],[kh,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",BC],[kh,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",BC],[kh,"Invalid Configuration: Missing Region"]]},B1t=2,uo=1e8,R1t=new Int32Array([-1,1,-1,0,13,3,1,4,uo+12,2,5,uo+12,3,8,6,4,7,uo+11,5,uo+9,uo+10,4,11,9,6,10,uo+8,7,uo+6,uo+7,5,12,uo+5,6,uo+4,uo+5,3,uo+1,14,4,uo+2,uo+3]),a2e=qi.from(R1t,B1t,o2e.conditions,o2e.results)});var N1t,l2e,u2e=g(()=>{Et();Dt();c2e();N1t=new $i({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),l2e=i((t,e={})=>N1t.get(t,()=>yl(a2e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");no.aws=Ma});var wn,gM=g(()=>{we();wn=class t extends Mi{static{i(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var o0,i0,a0,c0,l0,u0,d0,p0,f0,m0,h0,yee=g(()=>{gM();o0=class t extends wn{static{i(this,"AccessDeniedException")}static shapeId="com.amazonaws.ssooidc#AccessDeniedException";name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},i0=class t extends wn{static{i(this,"AuthorizationPendingException")}static shapeId="com.amazonaws.ssooidc#AuthorizationPendingException";name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},a0=class t extends wn{static{i(this,"ExpiredTokenException")}static shapeId="com.amazonaws.ssooidc#ExpiredTokenException";name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},c0=class t extends wn{static{i(this,"InternalServerException")}static shapeId="com.amazonaws.ssooidc#InternalServerException";name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},l0=class t extends wn{static{i(this,"InvalidClientException")}static shapeId="com.amazonaws.ssooidc#InvalidClientException";name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},u0=class t extends wn{static{i(this,"InvalidGrantException")}static shapeId="com.amazonaws.ssooidc#InvalidGrantException";name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},d0=class t extends wn{static{i(this,"InvalidRequestException")}static shapeId="com.amazonaws.ssooidc#InvalidRequestException";name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}},p0=class t extends wn{static{i(this,"InvalidScopeException")}static shapeId="com.amazonaws.ssooidc#InvalidScopeException";name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},f0=class t extends wn{static{i(this,"SlowDownException")}static shapeId="com.amazonaws.ssooidc#SlowDownException";name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},m0=class t extends wn{static{i(this,"UnauthorizedClientException")}static shapeId="com.amazonaws.ssooidc#UnauthorizedClientException";name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}},h0=class t extends wn{static{i(this,"UnsupportedGrantTypeException")}static shapeId="com.amazonaws.ssooidc#UnsupportedGrantTypeException";name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error,this.error_description=e.error_description}}});var T1t,P1t,_1t,v1t,Q1t,D1t,k1t,O1t,L1t,M1t,F1t,U1t,q1t,$1t,G1t,H1t,z1t,V1t,W1t,Y1t,Vl,J1t,j1t,K1t,X1t,Z1t,Ir,eUt,Ha,tUt,rUt,za,nUt,d2e,p2e,sUt,f2e,oUt,iUt,aUt,$r,m2e,h2e,Xi,A2e,g2e,y2e,E2e,C2e,I2e,S2e,w2e,x2e,b2e,B2e,Eee,cUt,lUt,uUt,dUt,R2e,N2e,T2e,Cee,yM=g(()=>{He();yee();gM();T1t="AccessDeniedException",P1t="AuthorizationPendingException",_1t="AccessToken",v1t="ClientSecret",Q1t="CreateToken",D1t="CreateTokenRequest",k1t="CreateTokenResponse",O1t="CodeVerifier",L1t="ExpiredTokenException",M1t="InvalidClientException",F1t="InvalidGrantException",U1t="InvalidRequestException",q1t="InternalServerException",$1t="InvalidScopeException",G1t="IdToken",H1t="RefreshToken",z1t="SlowDownException",V1t="UnauthorizedClientException",W1t="UnsupportedGrantTypeException",Y1t="accessToken",Vl="client",J1t="clientId",j1t="clientSecret",K1t="codeVerifier",X1t="code",Z1t="deviceCode",Ir="error",eUt="expiresIn",Ha="error_description",tUt="grantType",rUt="http",za="httpError",nUt="idToken",d2e="reason",p2e="refreshToken",sUt="redirectUri",f2e="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",oUt="scope",iUt="server",aUt="tokenType",$r="com.amazonaws.ssooidc",m2e=new yt(f2e),h2e=[-3,f2e,"SSOOIDCServiceException",0,[],[]];m2e.registerError(h2e,wn);Xi=new yt($r),A2e=[-3,$r,T1t,{[Ir]:Vl,[za]:400},[Ir,d2e,Ha],[0,0,0]];Xi.registerError(A2e,o0);g2e=[-3,$r,P1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(g2e,i0);y2e=[-3,$r,L1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(y2e,a0);E2e=[-3,$r,q1t,{[Ir]:iUt,[za]:500},[Ir,Ha],[0,0]];Xi.registerError(E2e,c0);C2e=[-3,$r,M1t,{[Ir]:Vl,[za]:401},[Ir,Ha],[0,0]];Xi.registerError(C2e,l0);I2e=[-3,$r,F1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(I2e,u0);S2e=[-3,$r,U1t,{[Ir]:Vl,[za]:400},[Ir,d2e,Ha],[0,0,0]];Xi.registerError(S2e,d0);w2e=[-3,$r,$1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(w2e,p0);x2e=[-3,$r,z1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(x2e,f0);b2e=[-3,$r,V1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(b2e,m0);B2e=[-3,$r,W1t,{[Ir]:Vl,[za]:400},[Ir,Ha],[0,0]];Xi.registerError(B2e,h0);Eee=[m2e,Xi],cUt=[0,$r,_1t,8,0],lUt=[0,$r,v1t,8,0],uUt=[0,$r,O1t,8,0],dUt=[0,$r,G1t,8,0],R2e=[0,$r,H1t,8,0],N2e=[3,$r,D1t,0,[J1t,j1t,tUt,Z1t,X1t,p2e,oUt,sUt,K1t],[0,[()=>lUt,0],0,0,0,[()=>R2e,0],64,0,[()=>uUt,0]],3],T2e=[3,$r,k1t,0,[Y1t,aUt,eUt,p2e,nUt],[[()=>cUt,0],0,1,[()=>R2e,0],[()=>dUt,0]]],Cee=[9,$r,Q1t,{[rUt]:["POST","/token",200]},()=>N2e,()=>T2e]});var P2e,_2e=g(()=>{rs();Dh();Rs();Gu();we();Ne();xe();UZ();u2e();yM();P2e=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??l2e,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??pUe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ts}],logger:t?.logger??new ro,protocol:t?.protocol??Hl,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:Eee,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??va,urlParser:t?.urlParser??Qn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var EM,v2e,Q2e=g(()=>{Kb();Et();rs();we();bt();Xo();xe();EM=R(Ju());_2e();v2e=i(t=>{il(process.version);let e=Al(t),r=i(()=>e().then(ol),"defaultConfigProvider"),n=P2e(t);rl(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Qe(Ua,s),bodyLengthChecker:t?.bodyLengthChecker??ul,defaultUserAgentProvider:t?.defaultUserAgentProvider??La({serviceId:n.serviceId,clientVersion:Wp.version}),maxAttempts:t?.maxAttempts??Qe(bl,t),region:t?.region??Qe(Dn,{...Bs,...s}),requestHandler:EM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??Qe({...Rl,default:i(async()=>(await r()).retryMode||zi,"default")},t),streamCollector:t?.streamCollector??EM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??Qe(ml,s),useFipsEndpoint:t?.useFipsEndpoint??Qe(hl,s),userAgentAppId:t?.userAgentAppId??Qe(Ql,s)}},"getRuntimeConfig")});var D2e,k2e,O2e=g(()=>{D2e=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),k2e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var L2e,M2e=g(()=>{Et();we();Ne();O2e();L2e=i((t,e)=>{let r=Object.assign(Dl(t),Na(t),Cl(t),D2e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,kl(r),al(r),Il(r),k2e(r))},"resolveRuntimeExtensions")});var A0,Iee=g(()=>{Et();Rs();we();bt();Dt();Ne();Xo();He();UZ();qZ();Q2e();M2e();A0=class extends Zn{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=v2e(e||{});super(r),this.initConfig=r;let n=mUe(r),s=_l(n),o=Bl(s),a=Yo(o),c=a,l=Fu(c),u=fUe(l),d=L2e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(vl(this.config)),this.middlewareStack.use(zu(this.config)),this.middlewareStack.use(Sl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(ka(this.config,{httpAuthSchemeParametersProvider:dUe,identityProviderConfigProvider:i(async p=>new Zo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Oa(this.config))}destroy(){super.destroy()}}});var F2e,U2e,q2e,$2e=g(()=>{we();Dt();qZ();F2e=cl(hUe,"AWSSSOOIDCService","SSOOIDCClient",Uu),U2e={},q2e=i((t,e,r,n)=>[],"_mw0")});var g0,See=g(()=>{$2e();yM();g0=class extends F2e(U2e,q2e,"CreateToken",Cee){static{i(this,"CreateTokenCommand")}}});var pUt,CM,G2e=g(()=>{we();See();Iee();pUt={CreateTokenCommand:g0},CM=class extends A0{static{i(this,"SSOOIDC")}};sl(pUt,CM)});var H2e=g(()=>{See()});var fUt,mUt,z2e=g(()=>{fUt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},mUt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var V2e=g(()=>{});var wee={};cr(wee,{$Command:()=>xs,AccessDeniedException:()=>o0,AccessDeniedException$:()=>A2e,AccessDeniedExceptionReason:()=>fUt,AuthorizationPendingException:()=>i0,AuthorizationPendingException$:()=>g2e,CreateToken$:()=>Cee,CreateTokenCommand:()=>g0,CreateTokenRequest$:()=>N2e,CreateTokenResponse$:()=>T2e,ExpiredTokenException:()=>a0,ExpiredTokenException$:()=>y2e,InternalServerException:()=>c0,InternalServerException$:()=>E2e,InvalidClientException:()=>l0,InvalidClientException$:()=>C2e,InvalidGrantException:()=>u0,InvalidGrantException$:()=>I2e,InvalidRequestException:()=>d0,InvalidRequestException$:()=>S2e,InvalidRequestExceptionReason:()=>mUt,InvalidScopeException:()=>p0,InvalidScopeException$:()=>w2e,SSOOIDC:()=>CM,SSOOIDCClient:()=>A0,SSOOIDCServiceException:()=>wn,SSOOIDCServiceException$:()=>h2e,SlowDownException:()=>f0,SlowDownException$:()=>x2e,UnauthorizedClientException:()=>m0,UnauthorizedClientException$:()=>b2e,UnsupportedGrantTypeException:()=>h0,UnsupportedGrantTypeException$:()=>B2e,__Client:()=>Zn,errorTypeRegistries:()=>Eee});var xee=g(()=>{Iee();G2e();H2e();we();yM();z2e();yee();V2e();gM()});var j2e=S(y0=>{var{setTokenFeature:hUt}=(Et(),Z(Fa)),{getBearerTokenEnvKey:AUt}=(rs(),Z(_O)),{TokenProviderError:Va,getSSOTokenFilepath:gUt,parseKnownFiles:yUt,getProfileName:EUt,loadSsoSessionData:CUt,getSSOTokenFromFile:IUt,memoize:SUt,chain:wUt}=(bt(),Z(Ui)),{promises:xUt}=require("node:fs"),bUt=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new Va("Please pass 'signingName' to compute environment variable key",{logger:t});let r=AUt(e);if(!(r in process.env))throw new Va(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return hUt(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),BUt=300*1e3,bee="To refresh this SSO session run 'aws sso login' with the corresponding profile.",RUt=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=(xee(),Z(wee)),s=i(a=>e.clientConfig?.[a]??e.parentClientConfig?.[a]??r?.[a],"coalesce");return new n(Object.assign({},e.clientConfig??{},{region:t??e.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},"getSsoOidcClient"),NUt=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=(xee(),Z(wee));return(await RUt(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),W2e=i(t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new Va(`Token is expired. ${bee}`,!1)},"validateTokenExpiry"),Oh=i((t,e,r=!1)=>{if(typeof e>"u")throw new Va(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${bee}`,!1)},"validateTokenKey"),{writeFile:TUt}=xUt,PUt=i((t,e)=>{let r=gUt(t),n=JSON.stringify(e,null,2);return TUt(r,n)},"writeSSOTokenToFile"),Y2e=new Map,IM=new Map,J2e=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await yUt(t),n=EUt({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new Va(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new Va(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,a=IM.get(o);if(a)return await a;let l=(await CUt(t))[o];if(!l)throw new Va(`Sso session '${o}' could not be found in shared credentials file.`,!1);for(let E of["sso_start_url","sso_region"])if(!l[E])throw new Va(`Sso session '${o}' is missing required property '${E}'.`,!1);l.sso_start_url;let u=l.sso_region,d;try{d=await IUt(o)}catch{throw new Va(`The SSO session token associated with profile=${n} was not found or is invalid. ${bee}`,!1)}Oh("accessToken",d.accessToken),Oh("expiresAt",d.expiresAt);let{accessToken:p,expiresAt:f}=d,m={token:p,expiration:new Date(f)};if(m.expiration.getTime()-Date.now()>BUt)return m;let h=IM.get(o);if(h)return await h;let A=Y2e.get(o)??0;if(Date.now()-A<30*1e3)return W2e(m),m;Oh("clientId",d.clientId,!0),Oh("clientSecret",d.clientSecret,!0),Oh("refreshToken",d.refreshToken,!0);let y=(async()=>{try{Y2e.set(o,Date.now());let E=await NUt(d,u,t,e);Oh("accessToken",E.accessToken),Oh("expiresIn",E.expiresIn);let I=new Date(Date.now()+E.expiresIn*1e3);try{await PUt(o,{...d,accessToken:E.accessToken,expiresAt:I.toISOString(),refreshToken:E.refreshToken})}catch{}return{token:E.accessToken,expiration:I}}catch{return W2e(m),m}})();IM.set(o,y);try{return await y}finally{IM.delete(o)}},"fromSso"),_Ut=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new Va("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),vUt=i((t={})=>SUt(wUt(J2e(t),async()=>{throw new Va("Could not load token from any providers",!1)}),e=>e.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,e=>e.expiration!==void 0),"nodeProvider");y0.fromEnvSigningName=bUt;y0.fromSso=J2e;y0.fromStatic=_Ut;y0.nodeProvider=vUt});function QUt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function DUt(t){return{schemeId:"smithy.api#noAuth"}}var K2e,X2e,Z2e,Bee=g(()=>{rs();we();K2e=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(QUt,"createAwsAuthSigv4HttpAuthOption");i(DUt,"createSmithyApiNoAuthHttpAuthOption");X2e=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(DUt(t)):e.push(QUt(t)),e},"defaultSSOHttpAuthSchemeProvider"),Z2e=i(t=>{let e=Ol(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var eqe,tqe,Ree=g(()=>{eqe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),tqe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var E0,Lh,SM,rqe,iqe,wM,Nee,nqe,Tee,RC,sqe,oqe,kUt,po,OUt,aqe,cqe=g(()=>{Dt();E0="ref",Lh=-1,SM=!0,rqe="isSet",iqe="PartitionResult",wM="booleanEquals",Nee="getAttr",nqe={[E0]:"Endpoint"},Tee={[E0]:iqe},RC={},sqe=[{[E0]:"Region"}],oqe={conditions:[[rqe,[nqe]],[rqe,sqe],["aws.partition",sqe,iqe],[wM,[{[E0]:"UseFIPS"},SM]],[wM,[{[E0]:"UseDualStack"},SM]],[wM,[{fn:Nee,argv:[Tee,"supportsDualStack"]},SM]],[wM,[{fn:Nee,argv:[Tee,"supportsFIPS"]},SM]],["stringEquals",[{fn:Nee,argv:[Tee,"name"]},"aws-us-gov"]]],results:[[Lh],[Lh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Lh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[nqe,RC],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",RC],[Lh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",RC],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",RC],[Lh,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",RC],[Lh,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",RC],[Lh,"Invalid Configuration: Missing Region"]]},kUt=2,po=1e8,OUt=new Int32Array([-1,1,-1,0,13,3,1,4,po+12,2,5,po+12,3,8,6,4,7,po+11,5,po+9,po+10,4,11,9,6,10,po+8,7,po+6,po+7,5,12,po+5,6,po+4,po+5,3,po+1,14,4,po+2,po+3]),aqe=qi.from(OUt,kUt,oqe.conditions,oqe.results)});var LUt,lqe,uqe=g(()=>{Et();Dt();cqe();LUt=new $i({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),lqe=i((t,e={})=>LUt.get(t,()=>yl(aqe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");no.aws=Ma});var Wa,xM=g(()=>{we();Wa=class t extends Mi{static{i(this,"SSOServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var C0,I0,S0,w0,Pee=g(()=>{xM();C0=class t extends Wa{static{i(this,"InvalidRequestException")}static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},I0=class t extends Wa{static{i(this,"ResourceNotFoundException")}static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},S0=class t extends Wa{static{i(this,"TooManyRequestsException")}static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},w0=class t extends Wa{static{i(this,"UnauthorizedException")}static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var MUt,FUt,UUt,qUt,$Ut,GUt,HUt,zUt,VUt,WUt,YUt,JUt,jUt,KUt,XUt,bM,BM,ZUt,e2t,RM,t2t,dqe,NM,r2t,n2t,s2t,pqe,o2t,i2t,a2t,Zi,fqe,mqe,x0,hqe,Aqe,gqe,yqe,_ee,c2t,l2t,u2t,Eqe,Cqe,Iqe,vee,TM=g(()=>{He();Pee();xM();MUt="AccessTokenType",FUt="GetRoleCredentials",UUt="GetRoleCredentialsRequest",qUt="GetRoleCredentialsResponse",$Ut="InvalidRequestException",GUt="RoleCredentials",HUt="ResourceNotFoundException",zUt="SecretAccessKeyType",VUt="SessionTokenType",WUt="TooManyRequestsException",YUt="UnauthorizedException",JUt="accountId",jUt="accessKeyId",KUt="accessToken",XUt="account_id",bM="client",BM="error",ZUt="expiration",e2t="http",RM="httpError",t2t="httpHeader",dqe="httpQuery",NM="message",r2t="roleCredentials",n2t="roleName",s2t="role_name",pqe="smithy.ts.sdk.synthetic.com.amazonaws.sso",o2t="secretAccessKey",i2t="sessionToken",a2t="x-amz-sso_bearer_token",Zi="com.amazonaws.sso",fqe=new yt(pqe),mqe=[-3,pqe,"SSOServiceException",0,[],[]];fqe.registerError(mqe,Wa);x0=new yt(Zi),hqe=[-3,Zi,$Ut,{[BM]:bM,[RM]:400},[NM],[0]];x0.registerError(hqe,C0);Aqe=[-3,Zi,HUt,{[BM]:bM,[RM]:404},[NM],[0]];x0.registerError(Aqe,I0);gqe=[-3,Zi,WUt,{[BM]:bM,[RM]:429},[NM],[0]];x0.registerError(gqe,S0);yqe=[-3,Zi,YUt,{[BM]:bM,[RM]:401},[NM],[0]];x0.registerError(yqe,w0);_ee=[fqe,x0],c2t=[0,Zi,MUt,8,0],l2t=[0,Zi,zUt,8,0],u2t=[0,Zi,VUt,8,0],Eqe=[3,Zi,UUt,0,[n2t,JUt,KUt],[[0,{[dqe]:s2t}],[0,{[dqe]:XUt}],[()=>c2t,{[t2t]:a2t}]],3],Cqe=[3,Zi,qUt,0,[r2t],[[()=>Iqe,0]]],Iqe=[3,Zi,GUt,0,[jUt,o2t,i2t,ZUt],[0,[()=>l2t,0],[()=>u2t,0],1]],vee=[9,Zi,FUt,{[e2t]:["GET","/federation/credentials",200]},()=>Eqe,()=>Cqe]});var Sqe,wqe=g(()=>{rs();Dh();Rs();Gu();we();Ne();xe();Bee();uqe();TM();Sqe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??lqe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??X2e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ts}],logger:t?.logger??new ro,protocol:t?.protocol??Hl,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:_ee,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??va,urlParser:t?.urlParser??Qn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var PM,xqe,bqe=g(()=>{Kb();Et();rs();we();bt();Xo();xe();PM=R(Ju());wqe();xqe=i(t=>{il(process.version);let e=Al(t),r=i(()=>e().then(ol),"defaultConfigProvider"),n=Sqe(t);rl(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Qe(Ua,s),bodyLengthChecker:t?.bodyLengthChecker??ul,defaultUserAgentProvider:t?.defaultUserAgentProvider??La({serviceId:n.serviceId,clientVersion:Wp.version}),maxAttempts:t?.maxAttempts??Qe(bl,t),region:t?.region??Qe(Dn,{...Bs,...s}),requestHandler:PM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??Qe({...Rl,default:i(async()=>(await r()).retryMode||zi,"default")},t),streamCollector:t?.streamCollector??PM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??Qe(ml,s),useFipsEndpoint:t?.useFipsEndpoint??Qe(hl,s),userAgentAppId:t?.userAgentAppId??Qe(Ql,s)}},"getRuntimeConfig")});var Bqe,Rqe,Nqe=g(()=>{Bqe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),Rqe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var Tqe,Pqe=g(()=>{Et();we();Ne();Nqe();Tqe=i((t,e)=>{let r=Object.assign(Dl(t),Na(t),Cl(t),Bqe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,kl(r),al(r),Il(r),Rqe(r))},"resolveRuntimeExtensions")});var b0,Qee=g(()=>{Et();Rs();we();bt();Dt();Ne();Xo();He();Bee();Ree();bqe();Pqe();b0=class extends Zn{static{i(this,"SSOClient")}config;constructor(...[e]){let r=xqe(e||{});super(r),this.initConfig=r;let n=eqe(r),s=_l(n),o=Bl(s),a=Yo(o),c=a,l=Fu(c),u=Z2e(l),d=Tqe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(vl(this.config)),this.middlewareStack.use(zu(this.config)),this.middlewareStack.use(Sl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(ka(this.config,{httpAuthSchemeParametersProvider:K2e,identityProviderConfigProvider:i(async p=>new Zo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Oa(this.config))}destroy(){super.destroy()}}});var _qe,vqe,Qqe,Dqe=g(()=>{we();Dt();Ree();_qe=cl(tqe,"SWBPortalService","SSOClient",Uu),vqe={},Qqe=i((t,e,r,n)=>[],"_mw0")});var B0,Dee=g(()=>{Dqe();TM();B0=class extends _qe(vqe,Qqe,"GetRoleCredentials",vee){static{i(this,"GetRoleCredentialsCommand")}}});var d2t,_M,kqe=g(()=>{we();Dee();Qee();d2t={GetRoleCredentialsCommand:B0},_M=class extends b0{static{i(this,"SSO")}};sl(d2t,_M)});var Oqe=g(()=>{Dee()});var Lqe=g(()=>{});var Mqe={};cr(Mqe,{$Command:()=>xs,GetRoleCredentials$:()=>vee,GetRoleCredentialsCommand:()=>B0,GetRoleCredentialsRequest$:()=>Eqe,GetRoleCredentialsResponse$:()=>Cqe,InvalidRequestException:()=>C0,InvalidRequestException$:()=>hqe,ResourceNotFoundException:()=>I0,ResourceNotFoundException$:()=>Aqe,RoleCredentials$:()=>Iqe,SSO:()=>_M,SSOClient:()=>b0,SSOServiceException:()=>Wa,SSOServiceException$:()=>mqe,TooManyRequestsException:()=>S0,TooManyRequestsException$:()=>gqe,UnauthorizedException:()=>w0,UnauthorizedException$:()=>yqe,__Client:()=>Zn,errorTypeRegistries:()=>_ee});var Fqe=g(()=>{Qee();kqe();Oqe();we();TM();Pee();Lqe();xM()});var Uqe=S(kee=>{var{GetRoleCredentialsCommand:p2t,SSOClient:f2t}=(Fqe(),Z(Mqe));kee.GetRoleCredentialsCommand=p2t;kee.SSOClient=f2t});var Oee=S(vM=>{var{CredentialsProviderError:Ya,getSSOTokenFromFile:m2t,getProfileName:h2t,parseKnownFiles:A2t,loadSsoSessionData:g2t}=(bt(),Z(Ui)),{setCredentialFeature:qqe}=(Et(),Z(Fa)),{fromSso:y2t}=j2e(),Gqe=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),R0=!1,$qe=i(async({ssoStartUrl:t,ssoSession:e,ssoAccountId:r,ssoRegion:n,ssoRoleName:s,ssoClient:o,clientConfig:a,parentClientConfig:c,callerClientConfig:l,profile:u,filepath:d,configFilepath:p,ignoreCache:f,logger:m})=>{let h,A="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let ce=await y2t({profile:u,filepath:d,configFilepath:p,ignoreCache:f,clientConfig:a,parentClientConfig:c,logger:m})({callerClientConfig:l});h={accessToken:ce.token,expiresAt:new Date(ce.expiration).toISOString()}}catch(ce){throw new Ya(ce.message,{tryNextLink:R0,logger:m})}else try{h=await m2t(t)}catch{throw new Ya(`The SSO session associated with this profile is invalid. ${A}`,{tryNextLink:R0,logger:m})}if(new Date(h.expiresAt).getTime()-Date.now()<=0)throw new Ya(`The SSO session associated with this profile has expired. ${A}`,{tryNextLink:R0,logger:m});let{accessToken:y}=h,{SSOClient:E,GetRoleCredentialsCommand:I}=Uqe(),x=o||new E(Object.assign({},a??{},{logger:a?.logger??l?.logger??c?.logger,region:a?.region??n,userAgentAppId:a?.userAgentAppId??l?.userAgentAppId??c?.userAgentAppId})),b;try{b=await x.send(new I({accountId:r,roleName:s,accessToken:y}))}catch(ce){throw new Ya(ce,{tryNextLink:R0,logger:m})}let{roleCredentials:{accessKeyId:N,secretAccessKey:v,sessionToken:_,expiration:J,credentialScope:Be,accountId:ke}={}}=b;if(!N||!v||!_||!J)throw new Ya("SSO returns an invalid temporary credential.",{tryNextLink:R0,logger:m});let De={accessKeyId:N,secretAccessKey:v,sessionToken:_,expiration:new Date(J),...Be&&{credentialScope:Be},...ke&&{accountId:ke}};return e?qqe(De,"CREDENTIALS_SSO","s"):qqe(De,"CREDENTIALS_SSO_LEGACY","u"),De},"resolveSSOCredentials"),Hqe=i((t,e)=>{let{sso_start_url:r,sso_account_id:n,sso_region:s,sso_role_name:o}=t;if(!r||!n||!s||!o)throw new Ya(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(t).join(", ")}
|
|
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:e});return t},"validateSsoProfile"),E2t=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=h2t({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await A2t(t))[l];if(!d)throw new Ya(`Profile ${l} was not found.`,{logger:t.logger});if(!Gqe(d))throw new Ya(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await g2t(t))[d.sso_session],I=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new Ya("Conflicting SSO region"+I,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new Ya("Conflicting SSO start_url"+I,{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:h,sso_session:A}=Hqe(d,t.logger);return $qe({ssoStartUrl:p,ssoSession:A,ssoAccountId:f,ssoRegion:m,ssoRoleName:h,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 Ya('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return $qe({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");vM.fromSSO=E2t;vM.isSsoProfile=Gqe;vM.validateSsoProfile=Hqe});var Fee=S(DM=>{var{SignatureV4:C2t,signatureV4aContainer:zqe}=VX(),N0={CrtSignerV4:null},Lee="X-Amz-S3session-Token",Vqe=Lee.toLowerCase(),QM=class extends C2t{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=Wqe(r);e.headers[Vqe]=r.sessionToken;let o=this;return Yqe(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=Wqe(r);return delete e.headers[Vqe],e.headers[Lee]=r.sessionToken,e.query=e.query??{},e.query[Lee]=r.sessionToken,Yqe(this,s),this.presign(e,n)}};function Wqe(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(Wqe,"getCredentialsWithoutSessionToken");function Yqe(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(Yqe,"setSingleOverride");var Mee=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof N0.CrtSignerV4=="function"?"crt":typeof zqe.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new QM(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=N0.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=N0.CrtSignerV4;if(s&&n instanceof s)return n.presign(e,r);throw new Error(`presign 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.presign(e,r)}async presignWithCredentials(e,r,n={}){if(n.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,r,n)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=N0.CrtSignerV4,r=zqe.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e=="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};DM.SignatureV4MultiRegion=Mee;DM.SignatureV4SignWithCredentials=QM;DM.signatureV4CrtContainer=N0});var TC,Mh,T0,Jqe,n$e,P0,On,Uee,jqe,Kqe,Xqe,Zqe,e$e,Ln,qee,NC,t$e,r$e,I2t,mt,S2t,s$e,o$e=g(()=>{Dt();TC="ref",Mh=-1,T0=!0,Jqe="isSet",n$e="PartitionResult",P0="booleanEquals",On="stringEquals",Uee="getAttr",jqe="us-east-1",Kqe="sigv4",Xqe="sts",Zqe="https://sts.{Region}.{PartitionResult#dnsSuffix}",e$e={[TC]:"Endpoint"},Ln={[TC]:"Region"},qee={[TC]:n$e},NC={},t$e=[Ln],r$e={conditions:[[Jqe,[e$e]],[Jqe,t$e],["aws.partition",t$e,n$e],[P0,[{[TC]:"UseFIPS"},T0]],[P0,[{[TC]:"UseDualStack"},T0]],[On,[Ln,"aws-global"]],[P0,[{[TC]:"UseGlobalEndpoint"},T0]],[On,[Ln,"eu-central-1"]],[P0,[{fn:Uee,argv:[qee,"supportsDualStack"]},T0]],[P0,[{fn:Uee,argv:[qee,"supportsFIPS"]},T0]],[On,[Ln,"ap-south-1"]],[On,[Ln,"eu-north-1"]],[On,[Ln,"eu-west-1"]],[On,[Ln,"eu-west-2"]],[On,[Ln,"eu-west-3"]],[On,[Ln,"sa-east-1"]],[On,[Ln,jqe]],[On,[Ln,"us-east-2"]],[On,[Ln,"us-west-2"]],[On,[Ln,"us-west-1"]],[On,[Ln,"ca-central-1"]],[On,[Ln,"ap-southeast-1"]],[On,[Ln,"ap-northeast-1"]],[On,[Ln,"ap-southeast-2"]],[On,[{fn:Uee,argv:[qee,"name"]},"aws-us-gov"]]],results:[[Mh],["https://sts.amazonaws.com",{authSchemes:[{name:Kqe,signingName:Xqe,signingRegion:jqe}]}],[Zqe,{authSchemes:[{name:Kqe,signingName:Xqe,signingRegion:"{Region}"}]}],[Mh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Mh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[e$e,NC],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",NC],[Mh,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",NC],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",NC],[Mh,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",NC],[Mh,"DualStack is enabled but this partition does not support DualStack"],[Zqe,NC],[Mh,"Invalid Configuration: Missing Region"]]},I2t=2,mt=1e8,S2t=new Int32Array([-1,1,-1,0,30,3,1,4,mt+14,2,5,mt+14,3,25,6,4,24,7,5,mt+1,8,6,9,mt+13,7,mt+1,10,10,mt+1,11,11,mt+1,12,12,mt+1,13,13,mt+1,14,14,mt+1,15,15,mt+1,16,16,mt+1,17,17,mt+1,18,18,mt+1,19,19,mt+1,20,20,mt+1,21,21,mt+1,22,22,mt+1,23,23,mt+1,mt+2,8,mt+11,mt+12,4,28,26,9,27,mt+10,24,mt+8,mt+9,8,29,mt+7,9,mt+6,mt+7,3,mt+3,31,4,mt+4,mt+5]),s$e=qi.from(S2t,I2t,r$e.conditions,r$e.results)});var w2t,kM,$ee=g(()=>{Et();Dt();o$e();w2t=new $i({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),kM=i((t,e={})=>w2t.get(t,()=>yl(s$e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");no.aws=Ma});function c$e(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function Gee(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function l$e(t){return{schemeId:"smithy.api#noAuth"}}var i$e,x2t,b2t,a$e,B2t,R2t,u$e,d$e,Hee=g(()=>{rs();i$e=R(Fee());we();Dt();$ee();x2t=i(t=>async(e,r,n)=>{if(!n)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await t(e,r,n),o=vt(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await Yx(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),b2t=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),a$e=x2t(b2t);i(c$e,"createAwsAuthSigv4HttpAuthOption");i(Gee,"createAwsAuthSigv4aHttpAuthOption");i(l$e,"createSmithyApiNoAuthHttpAuthOption");B2t=i((t,e,r)=>i(s=>{let a=t(s).properties?.authSchemes;if(!a)return e(s);let c=[];for(let l of a){let{name:u,properties:d={},...p}=l,f=u.toLowerCase();u!==f&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${u}' to '${f}'`);let m;if(f==="sigv4a"){m="aws.auth#sigv4a";let y=a.find(E=>{let I=E.name.toLowerCase();return I!=="sigv4a"&&I.startsWith("sigv4")});if(i$e.SignatureV4MultiRegion.sigv4aDependency()==="none"&&y)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let h=r[m];if(!h)throw new Error(`Could not find HttpAuthOption create function for '${m}'`);let A=h(s);A.schemeId=m,A.signingProperties={...A.signingProperties||{},...p,...d},c.push(A)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),R2t=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(l$e(t)),e.push(Gee(t))):(e.push(c$e(t)),e.push(Gee(t))),e},"_defaultSTSHttpAuthSchemeProvider"),u$e=B2t(kM,R2t,{"aws.auth#sigv4":c$e,"aws.auth#sigv4a":Gee,"smithy.api#noAuth":l$e}),d$e=i(t=>{let e=Ol(t),r=Cb(e);return Object.assign(r,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var p$e,f$e,zee=g(()=>{p$e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),f$e={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var fo,OM=g(()=>{we();fo=class t extends Mi{static{i(this,"STSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var _0,v0,Q0,D0,k0,O0,L0,Vee=g(()=>{OM();_0=class t extends fo{static{i(this,"ExpiredTokenException")}static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},v0=class t extends fo{static{i(this,"MalformedPolicyDocumentException")}static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},Q0=class t extends fo{static{i(this,"PackedPolicyTooLargeException")}static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},D0=class t extends fo{static{i(this,"RegionDisabledException")}static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},k0=class t extends fo{static{i(this,"IDPRejectedClaimException")}static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},O0=class t extends fo{static{i(this,"InvalidIdentityTokenException")}static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},L0=class t extends fo{static{i(this,"IDPCommunicationErrorException")}static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}}});var N2t,T2t,P2t,_2t,v2t,Q2t,Wee,D2t,k2t,O2t,L2t,Yee,M2t,m$e,F2t,U2t,q2t,$2t,G2t,H2t,z2t,V2t,h$e,A$e,g$e,W2t,Y2t,J2t,j2t,K2t,X2t,y$e,Z2t,eqt,E$e,tqt,C$e,rqt,nqt,Jee,sqt,oqt,I$e,S$e,iqt,aqt,cqt,lqt,uqt,dqt,pqt,fqt,Fh,Uh,mqt,qh,$h,Gh,hqt,w$e,Aqt,Kt,x$e,b$e,Xp,B$e,R$e,N$e,T$e,P$e,_$e,v$e,jee,gqt,yqt,Kee,Q$e,D$e,k$e,O$e,Xee,L$e,M$e,F$e,U$e,Eqt,Cqt,Zee,ete,M0=g(()=>{He();Vee();OM();N2t="Arn",T2t="AccessKeyId",P2t="AssumeRole",_2t="AssumedRoleId",v2t="AssumeRoleRequest",Q2t="AssumeRoleResponse",Wee="AssumedRoleUser",D2t="AssumeRoleWithWebIdentity",k2t="AssumeRoleWithWebIdentityRequest",O2t="AssumeRoleWithWebIdentityResponse",L2t="Audience",Yee="Credentials",M2t="ContextAssertion",m$e="DurationSeconds",F2t="Expiration",U2t="ExternalId",q2t="ExpiredTokenException",$2t="IDPCommunicationErrorException",G2t="IDPRejectedClaimException",H2t="InvalidIdentityTokenException",z2t="Key",V2t="MalformedPolicyDocumentException",h$e="MinimumSessionTokenSize",A$e="Policy",g$e="PolicyArns",W2t="ProviderArn",Y2t="ProvidedContexts",J2t="ProvidedContextsListType",j2t="ProvidedContext",K2t="PolicyDescriptorType",X2t="ProviderId",y$e="PackedPolicySize",Z2t="PackedPolicyTooLargeException",eqt="Provider",E$e="RoleArn",tqt="RegionDisabledException",C$e="RoleSessionName",rqt="SecretAccessKey",nqt="SubjectFromWebIdentityToken",Jee="SourceIdentity",sqt="SerialNumber",oqt="SessionToken",I$e="SessionTokenSize",S$e="SessionTokenUtilization",iqt="Tags",aqt="TokenCode",cqt="TransitiveTagKeys",lqt="Tag",uqt="Value",dqt="WebIdentityToken",pqt="arn",fqt="accessKeySecretType",Fh="awsQueryError",Uh="client",mqt="clientTokenType",qh="error",$h="httpError",Gh="message",hqt="policyDescriptorListType",w$e="smithy.ts.sdk.synthetic.com.amazonaws.sts",Aqt="tagListType",Kt="com.amazonaws.sts",x$e=new yt(w$e),b$e=[-3,w$e,"STSServiceException",0,[],[]];x$e.registerError(b$e,fo);Xp=new yt(Kt),B$e=[-3,Kt,q2t,{[Fh]:["ExpiredTokenException",400],[qh]:Uh,[$h]:400},[Gh],[0]];Xp.registerError(B$e,_0);R$e=[-3,Kt,$2t,{[Fh]:["IDPCommunicationError",400],[qh]:Uh,[$h]:400},[Gh],[0]];Xp.registerError(R$e,L0);N$e=[-3,Kt,G2t,{[Fh]:["IDPRejectedClaim",403],[qh]:Uh,[$h]:403},[Gh],[0]];Xp.registerError(N$e,k0);T$e=[-3,Kt,H2t,{[Fh]:["InvalidIdentityToken",400],[qh]:Uh,[$h]:400},[Gh],[0]];Xp.registerError(T$e,O0);P$e=[-3,Kt,V2t,{[Fh]:["MalformedPolicyDocument",400],[qh]:Uh,[$h]:400},[Gh],[0]];Xp.registerError(P$e,v0);_$e=[-3,Kt,Z2t,{[Fh]:["PackedPolicyTooLarge",400],[qh]:Uh,[$h]:400},[Gh],[0]];Xp.registerError(_$e,Q0);v$e=[-3,Kt,tqt,{[Fh]:["RegionDisabledException",403],[qh]:Uh,[$h]:403},[Gh],[0]];Xp.registerError(v$e,D0);jee=[x$e,Xp],gqt=[0,Kt,fqt,8,0],yqt=[0,Kt,mqt,8,0],Kee=[3,Kt,Wee,0,[_2t,N2t],[0,0],2],Q$e=[3,Kt,v2t,0,[E$e,C$e,g$e,A$e,m$e,iqt,cqt,U2t,sqt,aqt,Jee,Y2t,h$e],[0,0,()=>U$e,0,1,()=>Cqt,64,0,0,0,0,()=>Eqt,1],2],D$e=[3,Kt,Q2t,0,[Yee,Wee,y$e,Jee,S$e,I$e],[[()=>Xee,0],()=>Kee,1,0,1,1]],k$e=[3,Kt,k2t,0,[E$e,C$e,dqt,X2t,g$e,A$e,m$e,h$e],[0,0,[()=>yqt,0],0,()=>U$e,0,1,1],3],O$e=[3,Kt,O2t,0,[Yee,nqt,Wee,y$e,eqt,L2t,Jee,S$e,I$e],[[()=>Xee,0],0,()=>Kee,1,0,0,0,1,1]],Xee=[3,Kt,Yee,0,[T2t,rqt,oqt,F2t],[0,[()=>gqt,0],0,4],4],L$e=[3,Kt,K2t,0,[pqt],[0]],M$e=[3,Kt,j2t,0,[W2t,M2t],[0,0]],F$e=[3,Kt,lqt,0,[z2t,uqt],[0,0],2],U$e=[1,Kt,hqt,0,()=>L$e],Eqt=[1,Kt,J2t,0,()=>M$e],Cqt=[1,Kt,Aqt,0,()=>F$e],Zee=[9,Kt,P2t,0,()=>Q$e,()=>D$e],ete=[9,Kt,D2t,0,()=>k$e,()=>O$e]});var q$e,$$e,G$e=g(()=>{rs();Dh();q$e=R(Fee());Rs();Gu();we();Ne();xe();Hee();$ee();M0();$$e=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??kM,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??u$e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Vu},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ts}],logger:t?.logger??new ro,protocol:t?.protocol??Kp,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:jee,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??va,signerConstructor:t?.signerConstructor??q$e.SignatureV4MultiRegion,urlParser:t?.urlParser??Qn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var LM,H$e,z$e=g(()=>{Kb();Et();rs();Rs();we();bt();Xo();xe();LM=R(Ju());G$e();H$e=i(t=>{il(process.version);let e=Al(t),r=i(()=>e().then(ol),"defaultConfigProvider"),n=$$e(t);rl(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Qe(Ua,s),bodyLengthChecker:t?.bodyLengthChecker??ul,defaultUserAgentProvider:t?.defaultUserAgentProvider??La({serviceId:n.serviceId,clientVersion:Wp.version}),httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4")||(async a=>await t.credentialDefaultProvider(a?.__config||{})()),"identityProvider"),signer:new yn},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Vu},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ts}],maxAttempts:t?.maxAttempts??Qe(bl,t),region:t?.region??Qe(Dn,{...Bs,...s}),requestHandler:LM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??Qe({...Rl,default:i(async()=>(await r()).retryMode||zi,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??Qe(Ib,s),streamCollector:t?.streamCollector??LM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??Qe(ml,s),useFipsEndpoint:t?.useFipsEndpoint??Qe(hl,s),userAgentAppId:t?.userAgentAppId??Qe(Ql,s)}},"getRuntimeConfig")});var V$e,W$e,Y$e=g(()=>{V$e=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),W$e=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var J$e,j$e=g(()=>{Et();we();Ne();Y$e();J$e=i((t,e)=>{let r=Object.assign(Dl(t),Na(t),Cl(t),V$e(t));return e.forEach(n=>n.configure(r)),Object.assign(t,kl(r),al(r),Il(r),W$e(r))},"resolveRuntimeExtensions")});var Zp,MM=g(()=>{Et();Rs();we();bt();Dt();Ne();Xo();He();Hee();zee();z$e();j$e();Zp=class extends Zn{static{i(this,"STSClient")}config;constructor(...[e]){let r=H$e(e||{});super(r),this.initConfig=r;let n=p$e(r),s=_l(n),o=Bl(s),a=Yo(o),c=a,l=Fu(c),u=d$e(l),d=J$e(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(vl(this.config)),this.middlewareStack.use(zu(this.config)),this.middlewareStack.use(Sl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(ka(this.config,{httpAuthSchemeParametersProvider:a$e,identityProviderConfigProvider:i(async p=>new Zo({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Oa(this.config))}destroy(){super.destroy()}}});var FM,UM,qM,tte=g(()=>{we();Dt();zee();FM=cl(f$e,"AWSSecurityTokenServiceV20110615","STSClient",Uu),UM={},qM=i((t,e,r,n)=>[],"_mw0")});var Hh,$M=g(()=>{tte();M0();Hh=class extends FM(UM,qM,"AssumeRole",Zee){static{i(this,"AssumeRoleCommand")}}});var zh,GM=g(()=>{tte();M0();zh=class extends FM(UM,qM,"AssumeRoleWithWebIdentity",ete){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var Iqt,HM,K$e=g(()=>{we();$M();GM();MM();Iqt={AssumeRoleCommand:Hh,AssumeRoleWithWebIdentityCommand:zh},HM=class extends Zp{static{i(this,"STS")}};sl(Iqt,HM)});var X$e=g(()=>{$M();GM()});var Z$e=g(()=>{});var eGe,tGe,rGe,nGe,sGe,oGe=g(()=>{Et();$M();GM();eGe=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),tGe=i(async(t,e,r,n={})=>{let s=typeof t=="function"?await t():t,o=typeof e=="function"?await e():e,a="",c=s??o??(a=await EO(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),rGe=i((t,e)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:d=t?.parentClientConfig?.logger,profile:p=t?.parentClientConfig?.profile,region:f,requestHandler:m=t?.parentClientConfig?.requestHandler,credentialProviderLogger:h,userAgentAppId:A=t?.parentClientConfig?.userAgentAppId}=t,y=await tGe(f,t?.parentClientConfig?.region,h,{logger:d,profile:p}),E=!sGe(m);r=new e({...t,userAgentAppId:A,profile:p,credentialDefaultProvider:i(()=>async()=>n,"credentialDefaultProvider"),region:y,requestHandler:E?m:void 0,logger:d})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Hh(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=eGe(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return rp(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),nGe=i((t,e)=>{let r;return async n=>{if(!r){let{logger:l=t?.parentClientConfig?.logger,profile:u=t?.parentClientConfig?.profile,region:d,requestHandler:p=t?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=t?.parentClientConfig?.userAgentAppId}=t,h=await tGe(d,t?.parentClientConfig?.region,f,{logger:l,profile:u}),A=!sGe(p);r=new e({...t,userAgentAppId:m,profile:u,region:h,requestHandler:A?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new zh(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=eGe(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&rp(c,"RESOLVED_ACCOUNT_ID","T"),rp(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),sGe=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var iGe,aGe,cGe,Sqt,lGe=g(()=>{oGe();MM();iGe=i((t,e)=>e?class extends t{static{i(this,"CustomizableSTSClient")}constructor(n){super(n);for(let s of e)this.middlewareStack.use(s)}}:t,"getCustomizableStsClientCtor"),aGe=i((t={},e)=>rGe(t,iGe(Zp,e)),"getDefaultRoleAssumer"),cGe=i((t={},e)=>nGe(t,iGe(Zp,e)),"getDefaultRoleAssumerWithWebIdentity"),Sqt=i(t=>e=>t({roleAssumer:aGe(e),roleAssumerWithWebIdentity:cGe(e),...e}),"decorateDefaultCredentialProvider")});var rte={};cr(rte,{$Command:()=>xs,AssumeRole$:()=>Zee,AssumeRoleCommand:()=>Hh,AssumeRoleRequest$:()=>Q$e,AssumeRoleResponse$:()=>D$e,AssumeRoleWithWebIdentity$:()=>ete,AssumeRoleWithWebIdentityCommand:()=>zh,AssumeRoleWithWebIdentityRequest$:()=>k$e,AssumeRoleWithWebIdentityResponse$:()=>O$e,AssumedRoleUser$:()=>Kee,Credentials$:()=>Xee,ExpiredTokenException:()=>_0,ExpiredTokenException$:()=>B$e,IDPCommunicationErrorException:()=>L0,IDPCommunicationErrorException$:()=>R$e,IDPRejectedClaimException:()=>k0,IDPRejectedClaimException$:()=>N$e,InvalidIdentityTokenException:()=>O0,InvalidIdentityTokenException$:()=>T$e,MalformedPolicyDocumentException:()=>v0,MalformedPolicyDocumentException$:()=>P$e,PackedPolicyTooLargeException:()=>Q0,PackedPolicyTooLargeException$:()=>_$e,PolicyDescriptorType$:()=>L$e,ProvidedContext$:()=>M$e,RegionDisabledException:()=>D0,RegionDisabledException$:()=>v$e,STS:()=>HM,STSClient:()=>Zp,STSServiceException:()=>fo,STSServiceException$:()=>b$e,Tag$:()=>F$e,__Client:()=>Zn,decorateDefaultCredentialProvider:()=>Sqt,errorTypeRegistries:()=>jee,getDefaultRoleAssumer:()=>aGe,getDefaultRoleAssumerWithWebIdentity:()=>cGe});var nte=g(()=>{MM();K$e();X$e();we();M0();Vee();Z$e();lGe();OM()});function wqt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function xqt(t){return{schemeId:"smithy.api#noAuth"}}var uGe,dGe,pGe,ste=g(()=>{rs();we();uGe=i(async(t,e,r)=>({operation:vt(e).operation,region:await xt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(wqt,"createAwsAuthSigv4HttpAuthOption");i(xqt,"createSmithyApiNoAuthHttpAuthOption");dGe=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(xqt(t)):e.push(wqt(t)),e},"defaultSigninHttpAuthSchemeProvider"),pGe=i(t=>{let e=Ol(t);return Object.assign(e,{authSchemePreference:xt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var fGe,mGe,ote=g(()=>{fGe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),mGe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var rf,ef,hGe,PC,AGe,_C,gGe,ate,Ku,ite,yGe,EGe,tf,wGe,CGe,zM,ss,IGe,SGe,bqt,rt,Bqt,xGe,bGe=g(()=>{Dt();rf="ref",ef=-1,hGe=!1,PC=!0,AGe="isSet",_C="booleanEquals",gGe="coalesce",ate="PartitionResult",Ku="stringEquals",ite="getAttr",yGe="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",EGe={[rf]:"Endpoint"},tf={fn:ite,argv:[{[rf]:ate},"name"]},wGe={[rf]:"Region"},CGe={[rf]:ate},zM={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},ss={},IGe=[wGe],SGe={conditions:[[AGe,IGe],[_C,[{fn:gGe,argv:[{[rf]:"IsControlPlane"},hGe]},PC]],[AGe,[EGe]],["aws.partition",IGe,ate],[_C,[{[rf]:"UseFIPS"},PC]],[Ku,[tf,"aws"]],[_C,[{fn:gGe,argv:[{[rf]:"IsOAuthEndpoint"},hGe]},PC]],[_C,[{[rf]:"UseDualStack"},PC]],[Ku,[tf,"aws-cn"]],[Ku,[wGe,"us-gov-west-1"]],[Ku,[tf,"aws-us-gov"]],[_C,[{fn:ite,argv:[CGe,"supportsFIPS"]},PC]],[Ku,[tf,"aws-iso"]],[Ku,[tf,"aws-iso-b"]],[Ku,[tf,"aws-iso-f"]],[Ku,[tf,"aws-iso-e"]],[Ku,[tf,"aws-eusc"]],[_C,[{fn:ite,argv:[CGe,"supportsDualStack"]},PC]]],results:[[ef],["https://signin.{Region}.api.aws",zM],["https://signin.{Region}.api.amazonwebservices.com.cn",zM],[yGe,zM],[ef,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",zM],["https://{Region}.signin.aws.amazon.com",ss],["https://{Region}.signin.amazonaws.cn",ss],["https://{Region}.signin.amazonaws-us-gov.com",ss],["https://{Region}.signin.c2shome.ic.gov",ss],["https://{Region}.signin.sc2shome.sgov.gov",ss],["https://{Region}.signin.csphome.hci.ic.gov",ss],["https://{Region}.signin.csphome.adc-e.uk",ss],["https://{Region}.signin.amazonaws-eusc.eu",ss],["https://signin-fips.amazonaws-us-gov.com",ss],["https://{Region}.signin-fips.amazonaws-us-gov.com",ss],["https://{Region}.signin.{PartitionResult#dnsSuffix}",ss],[ef,"Invalid Configuration: FIPS and custom endpoint are not supported"],[ef,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[EGe,ss],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",ss],[ef,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",ss],[ef,"FIPS is enabled but this partition does not support FIPS"],[yGe,ss],[ef,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",ss],[ef,"Invalid Configuration: Missing Region"]]},bqt=2,rt=1e8,Bqt=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,rt+27,6,rt+4,rt+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,rt+7,13,10,rt+8,14,12,rt+9,15,13,rt+10,16,14,rt+11,17,15,rt+12,18,16,rt+13,rt+16,6,rt+5,20,7,21,rt+6,17,rt+24,rt+25,6,rt+4,23,7,27,24,9,rt+14,25,10,rt+15,26,11,rt+22,rt+23,11,28,rt+21,17,rt+20,rt+21,2,35,30,3,39,31,4,32,rt+27,6,rt+4,33,7,rt+27,34,9,rt+14,rt+27,3,39,36,4,38,37,7,rt+18,rt+19,6,rt+4,rt+17,5,rt+1,40,8,rt+2,rt+3]),xGe=qi.from(Bqt,bqt,SGe.conditions,SGe.results)});var Rqt,BGe,RGe=g(()=>{Et();Dt();bGe();Rqt=new $i({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),BGe=i((t,e={})=>Rqt.get(t,()=>yl(xGe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");no.aws=Ma});var Ja,VM=g(()=>{we();Ja=class t extends Mi{static{i(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var F0,U0,q0,$0,cte=g(()=>{VM();F0=class t extends Ja{static{i(this,"AccessDeniedException")}static shapeId="com.amazonaws.signin#AccessDeniedException";name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},U0=class t extends Ja{static{i(this,"InternalServerException")}static shapeId="com.amazonaws.signin#InternalServerException";name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},q0=class t extends Ja{static{i(this,"TooManyRequestsError")}static shapeId="com.amazonaws.signin#TooManyRequestsError";name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}},$0=class t extends Ja{static{i(this,"ValidationException")}static shapeId="com.amazonaws.signin#ValidationException";name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.error=e.error}}});var Nqt,Tqt,Pqt,_qt,vqt,Qqt,Dqt,kqt,Oqt,Lqt,Mqt,Fqt,Uqt,qqt,$qt,NGe,lte,Gqt,fte,TGe,PGe,Hqt,nf,ute,zqt,dte,Vqt,kGe,mte,_Ge,Mn,YM,Wqt,WM,vGe,OGe,QGe,DGe,Yqt,Jqt,jqt,pte,Kqt,os,LGe,MGe,G0,FGe,UGe,qGe,$Ge,hte,Xqt,GGe,HGe,zGe,VGe,WGe,YGe,JGe,jGe,Ate,gte,H0=g(()=>{He();cte();VM();Nqt="AccessDeniedException",Tqt="AccessToken",Pqt="CreateOAuth2Token",_qt="CreateOAuth2TokenRequest",vqt="CreateOAuth2TokenRequestBody",Qqt="CreateOAuth2TokenResponseBody",Dqt="CreateOAuth2TokenResponse",kqt="CreateOAuth2TokenWithIAM",Oqt="CreateOAuth2TokenWithIAMRequest",Lqt="CreateOAuth2TokenWithIAMResponse",Mqt="InternalServerException",Fqt="OAuthAccessToken",Uqt="RefreshToken",qqt="TooManyRequestsError",$qt="ValidationException",NGe="accessKeyId",lte="accessToken",Gqt="access_token",fte="client",TGe="clientId",PGe="codeVerifier",Hqt="code",nf="error",ute="expiresIn",zqt="expires_in",dte="grantType",Vqt="grant_type",kGe="http",mte="httpError",_Ge="idToken",Mn="jsonName",YM="message",Wqt="resource",WM="refreshToken",vGe="redirectUri",OGe="smithy.ts.sdk.synthetic.com.amazonaws.signin",QGe="secretAccessKey",DGe="sessionToken",Yqt="server",Jqt="tokenInput",jqt="tokenOutput",pte="tokenType",Kqt="token_type",os="com.amazonaws.signin",LGe=new yt(OGe),MGe=[-3,OGe,"SigninServiceException",0,[],[]];LGe.registerError(MGe,Ja);G0=new yt(os),FGe=[-3,os,Nqt,{[nf]:fte},[nf,YM],[0,0],2];G0.registerError(FGe,F0);UGe=[-3,os,Mqt,{[nf]:Yqt,[mte]:500},[nf,YM],[0,0],2];G0.registerError(UGe,U0);qGe=[-3,os,qqt,{[nf]:fte,[mte]:429},[nf,YM],[0,0],2];G0.registerError(qGe,q0);$Ge=[-3,os,$qt,{[nf]:fte,[mte]:400},[nf,YM],[0,0],2];G0.registerError($Ge,$0);hte=[LGe,G0],Xqt=[0,os,Fqt,8,0],GGe=[0,os,Uqt,8,0],HGe=[3,os,Tqt,8,[NGe,QGe,DGe],[[0,{[Mn]:NGe}],[0,{[Mn]:QGe}],[0,{[Mn]:DGe}]],3],zGe=[3,os,_qt,0,[Jqt],[[()=>VGe,16]],1],VGe=[3,os,vqt,0,[TGe,dte,Hqt,vGe,PGe,WM],[[0,{[Mn]:TGe}],[0,{[Mn]:dte}],0,[0,{[Mn]:vGe}],[0,{[Mn]:PGe}],[()=>GGe,{[Mn]:WM}]],2],WGe=[3,os,Dqt,0,[jqt],[[()=>YGe,16]],1],YGe=[3,os,Qqt,0,[lte,pte,ute,WM,_Ge],[[()=>HGe,{[Mn]:lte}],[0,{[Mn]:pte}],[1,{[Mn]:ute}],[()=>GGe,{[Mn]:WM}],[0,{[Mn]:_Ge}]],4],JGe=[3,os,Oqt,0,[dte,Wqt],[[0,{[Mn]:Vqt}],0],2],jGe=[3,os,Lqt,0,[lte,pte,ute],[[()=>Xqt,{[Mn]:Gqt}],[0,{[Mn]:Kqt}],[1,{[Mn]:zqt}]],3],Ate=[9,os,Pqt,{[kGe]:["POST","/v1/token",200]},()=>zGe,()=>WGe],gte=[9,os,kqt,{[kGe]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>JGe,()=>jGe]});var KGe,XGe=g(()=>{rs();Dh();Rs();Gu();we();Ne();xe();ste();RGe();H0();KGe=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Er,base64Encoder:t?.base64Encoder??Qt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??BGe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??dGe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new yn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ts}],logger:t?.logger??new ro,protocol:t?.protocol??Hl,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:hte,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??va,urlParser:t?.urlParser??Qn,utf8Decoder:t?.utf8Decoder??Zr,utf8Encoder:t?.utf8Encoder??qt}),"getRuntimeConfig")});var JM,ZGe,eHe=g(()=>{Kb();Et();rs();we();bt();Xo();xe();JM=R(Ju());XGe();ZGe=i(t=>{il(process.version);let e=Al(t),r=i(()=>e().then(ol),"defaultConfigProvider"),n=KGe(t);rl(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Qe(Ua,s),bodyLengthChecker:t?.bodyLengthChecker??ul,defaultUserAgentProvider:t?.defaultUserAgentProvider??La({serviceId:n.serviceId,clientVersion:Wp.version}),maxAttempts:t?.maxAttempts??Qe(bl,t),region:t?.region??Qe(Dn,{...Bs,...s}),requestHandler:JM.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??Qe({...Rl,default:i(async()=>(await r()).retryMode||zi,"default")},t),streamCollector:t?.streamCollector??JM.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??Qe(ml,s),useFipsEndpoint:t?.useFipsEndpoint??Qe(hl,s),userAgentAppId:t?.userAgentAppId??Qe(Ql,s)}},"getRuntimeConfig")});var tHe,rHe,nHe=g(()=>{tHe=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),rHe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var sHe,oHe=g(()=>{Et();we();Ne();nHe();sHe=i((t,e)=>{let r=Object.assign(Dl(t),Na(t),Cl(t),tHe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,kl(r),al(r),Il(r),rHe(r))},"resolveRuntimeExtensions")});var z0,yte=g(()=>{Et();Rs();we();bt();Dt();Ne();Xo();He();ste();ote();eHe();oHe();z0=class extends Zn{static{i(this,"SigninClient")}config;constructor(...[e]){let r=ZGe(e||{});super(r),this.initConfig=r;let n=fGe(r),s=_l(n),o=Bl(s),a=Yo(o),c=a,l=Fu(c),u=pGe(l),d=sHe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(nl(this.config)),this.middlewareStack.use(vl(this.config)),this.middlewareStack.use(zu(this.config)),this.middlewareStack.use(Sl(this.config)),this.middlewareStack.use(Nl(this.config)),this.middlewareStack.use(Tl(this.config)),this.middlewareStack.use(Pl(this.config)),this.middlewareStack.use(ka(this.config,{httpAuthSchemeParametersProvider:uGe,identityProviderConfigProvider:i(async p=>new Zo({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Oa(this.config))}destroy(){super.destroy()}}});var jM,iHe,aHe,KM,Ete=g(()=>{we();Dt();ote();jM=cl(mGe,"Signin","SigninClient",Uu),iHe={IsControlPlane:{type:"staticContextParams",value:!1}},aHe={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},KM=i((t,e,r,n)=>[],"_mw0")});var V0,Cte=g(()=>{Ete();H0();V0=class extends jM(iHe,KM,"CreateOAuth2Token",Ate){static{i(this,"CreateOAuth2TokenCommand")}}});var W0,Ite=g(()=>{Ete();H0();W0=class extends jM(aHe,KM,"CreateOAuth2TokenWithIAM",gte){static{i(this,"CreateOAuth2TokenWithIAMCommand")}}});var Zqt,XM,cHe=g(()=>{we();Cte();Ite();yte();Zqt={CreateOAuth2TokenCommand:V0,CreateOAuth2TokenWithIAMCommand:W0},XM=class extends z0{static{i(this,"Signin")}};sl(Zqt,XM)});var lHe=g(()=>{Cte();Ite()});var e$t,uHe=g(()=>{e$t={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",OAUTH_INVALID_GRANT:"invalid_grant",OAUTH_INVALID_REQUEST:"invalid_request",OAUTH_INVALID_SCOPE:"invalid_scope",OAUTH_INVALID_TARGET:"invalid_target",OAUTH_RATE_EXCEEDED:"rate_exceeded",OAUTH_SERVICE_UNAVAILABLE:"service_unavailable",OAUTH_UNSUPPORTED_GRANT_TYPE:"unsupported_grant_type",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND",SERVER_ERROR:"server_error",SERVICE_QUOTA_EXCEEDED:"SERVICE_QUOTA_EXCEEDED",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var dHe=g(()=>{});var pHe={};cr(pHe,{$Command:()=>xs,AccessDeniedException:()=>F0,AccessDeniedException$:()=>FGe,AccessToken$:()=>HGe,CreateOAuth2Token$:()=>Ate,CreateOAuth2TokenCommand:()=>V0,CreateOAuth2TokenRequest$:()=>zGe,CreateOAuth2TokenRequestBody$:()=>VGe,CreateOAuth2TokenResponse$:()=>WGe,CreateOAuth2TokenResponseBody$:()=>YGe,CreateOAuth2TokenWithIAM$:()=>gte,CreateOAuth2TokenWithIAMCommand:()=>W0,CreateOAuth2TokenWithIAMRequest$:()=>JGe,CreateOAuth2TokenWithIAMResponse$:()=>jGe,InternalServerException:()=>U0,InternalServerException$:()=>UGe,OAuth2ErrorCode:()=>e$t,Signin:()=>XM,SigninClient:()=>z0,SigninServiceException:()=>Ja,SigninServiceException$:()=>MGe,TooManyRequestsError:()=>q0,TooManyRequestsError$:()=>qGe,ValidationException:()=>$0,ValidationException$:()=>$Ge,__Client:()=>Zn,errorTypeRegistries:()=>hte});var fHe=g(()=>{yte();cHe();lHe();we();H0();uHe();cte();dHe();VM()});var AHe=S(hHe=>{var{setCredentialFeature:t$t}=(Et(),Z(Fa)),{CredentialsProviderError:sf,parseKnownFiles:r$t,getProfileName:n$t}=(bt(),Z(Ui)),{HttpRequest:s$t}=(Ne(),Z(gh)),{createHash:o$t,createPrivateKey:i$t,createPublicKey:a$t,sign:c$t}=require("node:crypto"),{promises:Ste}=require("node:fs"),{homedir:l$t}=require("node:os"),{dirname:u$t,join:mHe}=require("node:path"),wte=class t{static{i(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(e,r,n){this.profileData=e,this.init=r,this.callerClientConfig=n}async loadCredentials(){let e=await this.loadToken();if(!e)throw new sf(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=e.accessToken,n=Date.now();return new Date(r.expiresAt).getTime()-n<=t.REFRESH_THRESHOLD?this.refresh(e):this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let r=await this.loadToken().catch(()=>e),n=Date.now(),s=new Date(r.accessToken.expiresAt).getTime(),o=new Date(e.accessToken.expiresAt).getTime(),a=s<=n&&o>n?e:r;if(new Date(a.accessToken.expiresAt).getTime()-Date.now()>t.REFRESH_THRESHOLD)return this.toCredentials(a.accessToken);let{SigninClient:l,CreateOAuth2TokenCommand:u}=(fHe(),Z(pHe)),{logger:d,userAgentAppId:p}=this.callerClientConfig??{},m=i(E=>E?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,h=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,A=new l({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:m,logger:d,userAgentAppId:p,...this.init?.clientConfig});this.createDPoPInterceptor(A.middlewareStack);let y={tokenInput:{clientId:a.clientId,refreshToken:a.refreshToken,grantType:"refresh_token"}};try{let E=await A.send(new u(y)),{accessKeyId:I,secretAccessKey:x,sessionToken:b}=E.tokenOutput?.accessToken??{},{refreshToken:N,expiresIn:v}=E.tokenOutput??{};if(!I||!x||!b||!N)throw new sf("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let _=(v??900)*1e3,J=new Date(Date.now()+_),Be={...a,accessToken:{...a.accessToken,accessKeyId:I,secretAccessKey:x,sessionToken:b,expiresAt:J.toISOString()},refreshToken:N};return await this.saveToken(Be),this.toCredentials(Be.accessToken)}catch(E){if(E.name==="AccessDeniedException"){let x=E.error,b;switch(x){case"TOKEN_EXPIRED":b="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":b="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":b="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:b=`Failed to refresh token: ${String(E)}. Please re-authenticate using \`aws login\``}throw new sf(b,{logger:this.logger,tryNextLink:!1})}if(new Date(a.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(E)}. Using existing token until expiry.`),this.toCredentials(a.accessToken);throw new sf(`Failed to refresh token: ${String(E)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let r=await Ste.readFile(e,"utf8"),n=JSON.parse(r),s=["accessToken","clientId","refreshToken","dpopKey"].filter(o=>!n[o]);if(n.accessToken?.accountId||s.push("accountId"),s.length>0)throw new sf(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new sf(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=u$t(r);try{await Ste.mkdir(n,{recursive:!0})}catch{}await Ste.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??mHe(l$t(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=o$t("sha256").update(r).digest("hex");return mHe(e,`${n}.json`)}derToRawSignature(e){let r=2;if(e[r]!==2)throw new Error("Invalid DER signature");r++;let n=e[r++],s=e.subarray(r,r+n);if(r+=n,e[r]!==2)throw new Error("Invalid DER signature");r++;let o=e[r++],a=e.subarray(r,r+o);s=s[0]===0?s.subarray(1):s,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-s.length),s]),l=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,l])}createDPoPInterceptor(e){e.add(r=>async n=>{if(s$t.isInstance(n.request)){let s=n.request,o=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,a=await this.generateDpop(s.method,o);s.headers={...s.headers,DPoP:a}}return r(n)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",r){let n=await this.loadToken();try{let s=i$t({key:n.dpopKey,format:"pem",type:"sec1"}),a=a$t(s).export({format:"der",type:"spki"}),c=-1;for(let I=0;I<a.length;I++)if(a[I]===4){c=I;break}let l=a.slice(c+1,c+33),u=a.slice(c+33,c+65),d={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:l.toString("base64url"),y:u.toString("base64url")}},p={jti:crypto.randomUUID(),htm:e,htu:r,iat:Math.floor(Date.now()/1e3)},f=Buffer.from(JSON.stringify(d)).toString("base64url"),m=Buffer.from(JSON.stringify(p)).toString("base64url"),h=`${f}.${m}`,A=c$t("sha256",Buffer.from(h),s),E=this.derToRawSignature(A).toString("base64url");return`${h}.${E}`}catch(s){throw new sf(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}},d$t=i(t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await r$t(t||{}),n=n$t({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new sf(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new wte(s,t,e).loadCredentials();return t$t(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");hHe.fromLoginCredentials=d$t});var bte=S(gHe=>{var{externalDataInterceptor:p$t,CredentialsProviderError:xte,parseKnownFiles:f$t,getProfileName:m$t}=(bt(),Z(Ui)),{exec:h$t}=require("node:child_process"),{promisify:A$t}=require("node:util"),{setCredentialFeature:g$t}=(Et(),Z(Fa)),y$t=i((t,e,r)=>{if(e.Version!==1)throw Error(`Profile ${t} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${t} credential_process returned invalid credentials.`);if(e.Expiration){let o=new Date;if(new Date(e.Expiration)<o)throw Error(`Profile ${t} credential_process returned expired credentials.`)}let n=e.AccountId;!n&&r?.[t]?.aws_account_id&&(n=r[t].aws_account_id);let s={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...n&&{accountId:n}};return g$t(s,"CREDENTIALS_PROCESS","w"),s},"getValidatedProcessCredentials"),E$t=i(async(t,e,r)=>{let n=e[t];if(e[t]){let s=n.credential_process;if(s!==void 0){let o=A$t(p$t?.getTokenRecord?.().exec??h$t);try{let{stdout:a}=await o(s),c;try{c=JSON.parse(a.trim())}catch{throw Error(`Profile ${t} credential_process returned invalid JSON.`)}return y$t(t,c,e)}catch(a){throw new xte(a.message,{logger:r})}}else throw new xte(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new xte(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),C$t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await f$t(t);return E$t(m$t({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");gHe.fromProcess=C$t});var Rte=S(Bte=>{var{setCredentialFeature:I$t}=(Et(),Z(Fa)),{CredentialsProviderError:S$t,externalDataInterceptor:w$t}=(bt(),Z(Ui)),{readFileSync:x$t}=require("node:fs"),EHe=i(t=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:n,webIdentityToken:s,providerId:o,policyArns:a,policy:c,durationSeconds:l}=t,{roleAssumerWithWebIdentity:u}=t;if(!u){let{getDefaultRoleAssumerWithWebIdentity:d}=(nte(),Z(rte));u=d({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...e?.callerClientConfig,...t.parentClientConfig}},t.clientPlugins)}return u({RoleArn:r,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:o,PolicyArns:a,Policy:c,DurationSeconds:l})},"fromWebToken"),yHe="AWS_WEB_IDENTITY_TOKEN_FILE",b$t="AWS_ROLE_ARN",B$t="AWS_ROLE_SESSION_NAME",R$t=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[yHe],n=t?.roleArn??process.env[b$t],s=t?.roleSessionName??process.env[B$t];if(!r||!n)throw new S$t("Web identity configuration not specified",{logger:t.logger});let o=await EHe({...t,webIdentityToken:w$t?.getTokenRecord?.()[r]??x$t(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[yHe]&&I$t(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");Bte.fromTokenFile=R$t;Bte.fromWebToken=EHe});var BHe=S(bHe=>{var{CredentialsProviderError:ZM,chain:N$t,getProfileName:wHe,parseKnownFiles:T$t}=(bt(),Z(Ui)),{setCredentialFeature:Xu}=(Et(),Z(Fa)),P$t=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=FZ(),{fromContainerMetadata:a}=ML();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>N$t(o(s??{}),a(s))().then(Nte)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=ML();return async()=>o(s)().then(Nte)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=jX();return async()=>o(s)().then(Nte)},"Environment")};if(t in n)return n[t];throw new ZM(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),Nte=i(t=>Xu(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),_$t=i((t,{profile:e="default",logger:r}={})=>!!t&&typeof t=="object"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1&&["undefined","string"].indexOf(typeof t.external_id)>-1&&["undefined","string"].indexOf(typeof t.mfa_serial)>-1&&(v$t(t,{profile:e,logger:r})||Q$t(t,{profile:e,logger:r})),"isAssumeRoleProfile"),v$t=i((t,{profile:e,logger:r})=>{let n=typeof t.source_profile=="string"&&typeof t.credential_source>"u";return n&&r?.debug?.(` ${e} isAssumeRoleWithSourceProfile source_profile=${t.source_profile}`),n},"isAssumeRoleWithSourceProfile"),Q$t=i((t,{profile:e,logger:r})=>{let n=typeof t.credential_source=="string"&&typeof t.source_profile>"u";return n&&r?.debug?.(` ${e} isCredentialSourceProfile credential_source=${t.credential_source}`),n},"isCredentialSourceProfile"),D$t=i(async(t,e,r,n,s={},o)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let a=e[t],{source_profile:c,region:l}=a;if(!r.roleAssumer){let{getDefaultRoleAssumer:d}=(nte(),Z(rte));r.roleAssumer=d({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...n,...r?.parentClientConfig,region:l??r?.parentClientConfig?.region??n?.region}},r.clientPlugins)}if(c&&c in s)throw new ZM(`Detected a cycle attempting to resolve credentials for profile ${wHe(r)}. Profiles visited: `+Object.keys(s).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${t}]`}`);let u=c?o(c,e,r,n,{...s,[c]:!0},CHe(e[c]??{})):(await P$t(a.credential_source,t,r.logger)(r))();if(CHe(a))return u.then(d=>Xu(d,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let d={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id,DurationSeconds:parseInt(a.duration_seconds||"3600",10)},{mfa_serial:p}=a;if(p){if(!r.mfaCodeProvider)throw new ZM(`Profile ${t} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});d.SerialNumber=p,d.TokenCode=await r.mfaCodeProvider(p)}let f=await u;return r.roleAssumer(f,d).then(m=>Xu(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),CHe=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),k$t=i(t=>!!(t&&t.login_session),"isLoginProfile"),O$t=i(async(t,e,r)=>{let{fromLoginCredentials:n}=AHe(),s=await n({...e,profile:t})({callerClientConfig:r});return Xu(s,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),L$t=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),M$t=i(async(t,e)=>{let{fromProcess:r}=bte(),n=await r({...t,profile:e})();return Xu(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),F$t=i(async(t,e,r={},n)=>{let{fromSSO:s}=Oee();return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Xu(o,"CREDENTIALS_PROFILE_SSO","r"):Xu(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),U$t=i(t=>t&&(typeof t.sso_start_url=="string"||typeof t.sso_account_id=="string"||typeof t.sso_session=="string"||typeof t.sso_region=="string"||typeof t.sso_role_name=="string"),"isSsoProfile"),IHe=i(t=>!!t&&typeof t=="object"&&typeof t.aws_access_key_id=="string"&&typeof t.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof t.aws_session_token)>-1&&["undefined","string"].indexOf(typeof t.aws_account_id)>-1,"isStaticCredsProfile"),SHe=i(async(t,e)=>{e?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:t.aws_access_key_id,secretAccessKey:t.aws_secret_access_key,sessionToken:t.aws_session_token,...t.aws_credential_scope&&{credentialScope:t.aws_credential_scope},...t.aws_account_id&&{accountId:t.aws_account_id}};return Xu(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),q$t=i(t=>!!t&&typeof t=="object"&&typeof t.web_identity_token_file=="string"&&typeof t.role_arn=="string"&&["undefined","string"].indexOf(typeof t.role_session_name)>-1,"isWebIdentityProfile"),$$t=i(async(t,e,r)=>{let{fromTokenFile:n}=Rte(),s=await n({webIdentityTokenFile:t.web_identity_token_file,roleArn:t.role_arn,roleSessionName:t.role_session_name,roleAssumerWithWebIdentity:e.roleAssumerWithWebIdentity,logger:e.logger,parentClientConfig:e.parentClientConfig})({callerClientConfig:r});return Xu(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),xHe=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&IHe(a))return SHe(a,r);if(o||_$t(a,{profile:t,logger:r.logger}))return D$t(t,e,r,n,s,xHe);if(IHe(a))return SHe(a,r);if(q$t(a))return $$t(a,r,n);if(L$t(a))return M$t(r,t);if(U$t(a))return await F$t(t,a,r,n);if(k$t(a))return O$t(t,r,n);throw new ZM(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),G$t=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await T$t(t);return xHe(wHe({profile:t.profile??e?.profile}),r,t,e)},"fromIni");bHe.fromIni=G$t});var Tte=S(tF=>{var{ENV_KEY:H$t,ENV_SECRET:z$t,fromEnv:V$t}=jX(),{chain:W$t,CredentialsProviderError:eF,ENV_PROFILE:Y$t}=(bt(),Z(Ui)),RHe="AWS_EC2_METADATA_DISABLED",J$t=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=ML();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=FZ();return W$t(o(t),n(t))}return process.env[RHe]&&process.env[RHe]!=="false"?async()=>{throw new eF("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function j$t(t,e){let r=K$t(t),n,s,o,a,c=i(async l=>{if(l?.forceRefresh)return a||(a=r(l).then(u=>{o=u}).finally(()=>{a=void 0})),await a,o;if(o?.expiration&&o?.expiration?.getTime()<Date.now()&&(o=void 0),n)await n;else if(!o||e?.(o))if(o)s||(s=r(l).then(u=>{o=u}).catch(()=>{}).finally(()=>{s=void 0}));else return n=r(l).then(u=>{o=u}).finally(()=>{n=void 0}),c(l);return o},"provider");return c}i(j$t,"memoizeChain");var K$t=i(t=>async e=>{let r;for(let n of t)try{return await n(e)}catch(s){if(r=s,s?.tryNextLink)continue;throw s}throw r},"internalCreateChain"),NHe=!1,X$t=i((t={})=>j$t([async()=>{if(t.profile??process.env[Y$t])throw process.env[H$t]&&process.env[z$t]&&(NHe||((t.logger?.warn&&t.logger?.constructor?.name!=="NoOpLogger"?t.logger.warn.bind(t.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
Multiple credential sources detected:
|
|
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
This SDK will proceed with the AWS_PROFILE value.
|
|
|
|
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
`),NHe=!0)),new eF("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),V$t(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 eF("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=Oee();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=BHe();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=bte();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=Rte();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await J$t(t))()),async()=>{throw new eF("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],THe),"defaultProvider"),Z$t=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),THe=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");tF.credentialsTreatedAsExpired=THe;tF.credentialsWillNeedRefresh=Z$t;tF.defaultProvider=X$t});var z8e=S(C=>{var{awsEndpointFunctions:eGt,emitWarningIfUnsupportedVersion:tGt,createDefaultUserAgentProvider:rGt,NODE_APP_ID_CONFIG_OPTIONS:nGt,getAwsRegionExtensionConfiguration:sGt,resolveAwsRegionExtensionConfiguration:oGt,resolveUserAgentConfig:iGt,resolveHostHeaderConfig:aGt,getUserAgentPlugin:cGt,getHostHeaderPlugin:lGt,getLoggerPlugin:uGt,getRecursionDetectionPlugin:dGt}=(Et(),Z(Fa)),{getHttpAuthSchemeEndpointRuleSetPlugin:pGt,DefaultIdentityProviderConfig:fGt,getHttpSigningPlugin:mGt,createPaginator:Zu}=(Rs(),Z(pX)),{normalizeProvider:kHe,getSmithyContext:hGt,ServiceException:AGt,NoOpLogger:gGt,emitWarningIfUnsupportedVersion:yGt,loadConfigsForDefaultMode:EGt,getDefaultExtensionConfiguration:CGt,resolveDefaultRuntimeConfig:IGt,Client:OHe,makeBuilder:SGt,createWaiter:eU,checkExceptions:LHe,WaiterState:vC,createAggregatedClient:wGt}=(we(),Z(zy)),{Command:xGt}=(we(),Z(zy));C.$Command=xGt;C.__Client=OHe;var{resolveDefaultsModeConfig:bGt,loadConfig:Vh,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:BGt,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:RGt,NODE_REGION_CONFIG_OPTIONS:NGt,NODE_REGION_CONFIG_FILE_OPTIONS:TGt,resolveRegionConfig:PGt}=(bt(),Z(Ui)),{BinaryDecisionDiagram:_Gt,EndpointCache:vGt,decideEndpoint:QGt,customEndpointFunctions:DGt,resolveEndpointConfig:kGt,getEndpointPlugin:OGt}=(Dt(),Z(_9)),{parseUrl:LGt,getHttpHandlerExtensionConfiguration:MGt,resolveHttpHandlerRuntimeConfig:FGt,getContentLengthPlugin:UGt}=(Ne(),Z(gh)),{DEFAULT_RETRY_MODE:qGt,NODE_RETRY_MODE_CONFIG_OPTIONS:$Gt,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:GGt,resolveRetryConfig:HGt,getRetryPlugin:zGt}=(Xo(),Z(jK)),{TypeRegistry:MHe,getSchemaSerdePlugin:VGt}=(He(),Z(u6)),{resolveAwsSdkSigV4Config:WGt,AwsSdkSigV4Signer:YGt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:JGt}=(rs(),Z(_O)),{defaultProvider:jGt}=Tte(),{toUtf8:KGt,fromUtf8:XGt,toBase64:ZGt,fromBase64:eHt,calculateBodyLength:tHt}=(xe(),Z(ph)),{streamCollector:rHt,NodeHttpHandler:nHt}=Ju(),{AwsJson1_1Protocol:sHt}=(Dh(),Z(hee)),{Sha256:oHt}=(Gu(),Z(rK)),iHt=i(async(t,e,r)=>({operation:hGt(e).operation,region:await kHe(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function aHt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(aHt,"createAwsAuthSigv4HttpAuthOption");var cHt=i(t=>{let e=[];switch(t.operation){default:e.push(aHt(t))}return e},"defaultECRHttpAuthSchemeProvider"),lHt=i(t=>{let e=WGt(t);return Object.assign(e,{authSchemePreference:kHe(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),uHt=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),dHt={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},pHt="3.1160.0",fHt={version:pHt},QC="ref",Wh=-1,rF=!0,PHe="isSet",_te="PartitionResult",of="stringEquals",nF="booleanEquals",Pte="getAttr",_He={[QC]:"Endpoint"},af={fn:Pte,argv:[{[QC]:_te},"name"]},vHe={[QC]:_te},Yh={},QHe=[{[QC]:"Region"}],DHe={conditions:[[PHe,[_He]],[PHe,QHe],["aws.partition",QHe,_te],[of,[af,"aws-eusc"]],[of,[af,"aws-iso-f"]],[of,[af,"aws-iso-e"]],[of,[af,"aws-iso-b"]],[of,[af,"aws-iso"]],[of,[af,"aws-cn"]],[of,[af,"aws-us-gov"]],[of,[af,"aws"]],[nF,[{[QC]:"UseFIPS"},rF]],[nF,[{fn:Pte,argv:[vHe,"supportsFIPS"]},rF]],[nF,[{[QC]:"UseDualStack"},rF]],[nF,[{fn:Pte,argv:[vHe,"supportsDualStack"]},rF]]],results:[[Wh],[Wh,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Wh,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[_He,Yh],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",Yh],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Yh],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",Yh],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yh],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yh],[Wh,"FIPS and DualStack are enabled, but this partition does not support one or both"],[Wh,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Yh],[Wh,"DualStack is enabled but this partition does not support DualStack"],[Wh,"Invalid Configuration: Missing Region"]]},mHt=2,Fn=1e8,hHt=new Int32Array([-1,1,-1,0,23,3,1,4,Fn+13,2,5,Fn+13,3,20,6,4,20,7,5,20,8,6,20,9,7,20,10,8,20,11,9,20,12,10,20,13,11,16,14,13,15,Fn+4,14,Fn+11,Fn+12,12,18,17,13,Fn+9,Fn+10,13,19,Fn+6,14,Fn+8,Fn+9,11,22,21,13,Fn+5,Fn+4,13,Fn+7,Fn+6,11,Fn+1,24,13,Fn+2,Fn+3]),AHt=_Gt.from(hHt,mHt,DHe.conditions,DHe.results),gHt=new vGt({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yHt=i((t,e={})=>gHt.get(t,()=>QGt(AHt,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");DGt.aws=eGt;var fe=class t extends AGt{static{i(this,"ECRServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},sF=class t extends fe{static{i(this,"InvalidParameterException")}static shapeId="com.amazonaws.ecr#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},oF=class t extends fe{static{i(this,"RepositoryNotFoundException")}static shapeId="com.amazonaws.ecr#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},iF=class t extends fe{static{i(this,"ServerException")}static shapeId="com.amazonaws.ecr#ServerException";name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},aF=class t extends fe{static{i(this,"LimitExceededException")}static shapeId="com.amazonaws.ecr#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},cF=class t extends fe{static{i(this,"UnableToGetUpstreamImageException")}static shapeId="com.amazonaws.ecr#UnableToGetUpstreamImageException";name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},lF=class t extends fe{static{i(this,"ValidationException")}static shapeId="com.amazonaws.ecr#ValidationException";name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},uF=class t extends fe{static{i(this,"EmptyUploadException")}static shapeId="com.amazonaws.ecr#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},dF=class t extends fe{static{i(this,"InvalidLayerException")}static shapeId="com.amazonaws.ecr#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},pF=class t extends fe{static{i(this,"KmsException")}static shapeId="com.amazonaws.ecr#KmsException";name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.kmsError=e.kmsError}},fF=class t extends fe{static{i(this,"LayerAlreadyExistsException")}static shapeId="com.amazonaws.ecr#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},mF=class t extends fe{static{i(this,"LayerPartTooSmallException")}static shapeId="com.amazonaws.ecr#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},hF=class t extends fe{static{i(this,"UploadNotFoundException")}static shapeId="com.amazonaws.ecr#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},AF=class t extends fe{static{i(this,"PullThroughCacheRuleAlreadyExistsException")}static shapeId="com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException";name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},gF=class t extends fe{static{i(this,"SecretNotFoundException")}static shapeId="com.amazonaws.ecr#SecretNotFoundException";name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},yF=class t extends fe{static{i(this,"UnableToAccessSecretException")}static shapeId="com.amazonaws.ecr#UnableToAccessSecretException";name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},EF=class t extends fe{static{i(this,"UnableToDecryptSecretValueException")}static shapeId="com.amazonaws.ecr#UnableToDecryptSecretValueException";name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},CF=class t extends fe{static{i(this,"UnsupportedUpstreamRegistryException")}static shapeId="com.amazonaws.ecr#UnsupportedUpstreamRegistryException";name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},IF=class t extends fe{static{i(this,"InvalidTagParameterException")}static shapeId="com.amazonaws.ecr#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},SF=class t extends fe{static{i(this,"RepositoryAlreadyExistsException")}static shapeId="com.amazonaws.ecr#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wF=class t extends fe{static{i(this,"TooManyTagsException")}static shapeId="com.amazonaws.ecr#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},xF=class t extends fe{static{i(this,"TemplateAlreadyExistsException")}static shapeId="com.amazonaws.ecr#TemplateAlreadyExistsException";name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},bF=class t extends fe{static{i(this,"LifecyclePolicyNotFoundException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyNotFoundException";name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},BF=class t extends fe{static{i(this,"PullThroughCacheRuleNotFoundException")}static shapeId="com.amazonaws.ecr#PullThroughCacheRuleNotFoundException";name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},RF=class t extends fe{static{i(this,"RegistryPolicyNotFoundException")}static shapeId="com.amazonaws.ecr#RegistryPolicyNotFoundException";name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},NF=class t extends fe{static{i(this,"RepositoryNotEmptyException")}static shapeId="com.amazonaws.ecr#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},TF=class t extends fe{static{i(this,"TemplateNotFoundException")}static shapeId="com.amazonaws.ecr#TemplateNotFoundException";name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},PF=class t extends fe{static{i(this,"RepositoryPolicyNotFoundException")}static shapeId="com.amazonaws.ecr#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},_F=class t extends fe{static{i(this,"SigningConfigurationNotFoundException")}static shapeId="com.amazonaws.ecr#SigningConfigurationNotFoundException";name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},vF=class t extends fe{static{i(this,"ExclusionNotFoundException")}static shapeId="com.amazonaws.ecr#ExclusionNotFoundException";name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QF=class t extends fe{static{i(this,"ImageNotFoundException")}static shapeId="com.amazonaws.ecr#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},DF=class t extends fe{static{i(this,"ScanNotFoundException")}static shapeId="com.amazonaws.ecr#ScanNotFoundException";name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},kF=class t extends fe{static{i(this,"ReplicationBackfillNotFoundException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillNotFoundException";name="ReplicationBackfillNotFoundException";$fault="client";constructor(e){super({name:"ReplicationBackfillNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},OF=class t extends fe{static{i(this,"LayerInaccessibleException")}static shapeId="com.amazonaws.ecr#LayerInaccessibleException";name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},LF=class t extends fe{static{i(this,"LayersNotFoundException")}static shapeId="com.amazonaws.ecr#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},MF=class t extends fe{static{i(this,"UnableToGetUpstreamLayerException")}static shapeId="com.amazonaws.ecr#UnableToGetUpstreamLayerException";name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},FF=class t extends fe{static{i(this,"LifecyclePolicyPreviewNotFoundException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException";name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},UF=class t extends fe{static{i(this,"UnableToListUpstreamImageReferrersException")}static shapeId="com.amazonaws.ecr#UnableToListUpstreamImageReferrersException";name="UnableToListUpstreamImageReferrersException";$fault="client";constructor(e){super({name:"UnableToListUpstreamImageReferrersException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qF=class t extends fe{static{i(this,"ImageAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},$F=class t extends fe{static{i(this,"ImageDigestDoesNotMatchException")}static shapeId="com.amazonaws.ecr#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},GF=class t extends fe{static{i(this,"ImageTagAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},HF=class t extends fe{static{i(this,"ReferencedImagesNotFoundException")}static shapeId="com.amazonaws.ecr#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},zF=class t extends fe{static{i(this,"BlockedByOrganizationPolicyException")}static shapeId="com.amazonaws.ecr#BlockedByOrganizationPolicyException";name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},VF=class t extends fe{static{i(this,"ExclusionAlreadyExistsException")}static shapeId="com.amazonaws.ecr#ExclusionAlreadyExistsException";name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},WF=class t extends fe{static{i(this,"ImageArchivedException")}static shapeId="com.amazonaws.ecr#ImageArchivedException";name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},YF=class t extends fe{static{i(this,"UnsupportedImageTypeException")}static shapeId="com.amazonaws.ecr#UnsupportedImageTypeException";name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},JF=class t extends fe{static{i(this,"LifecyclePolicyPreviewInProgressException")}static shapeId="com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException";name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},jF=class t extends fe{static{i(this,"ReplicationBackfillInProgressException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillInProgressException";name="ReplicationBackfillInProgressException";$fault="client";constructor(e){super({name:"ReplicationBackfillInProgressException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},KF=class t extends fe{static{i(this,"ReplicationBackfillInvalidStatusException")}static shapeId="com.amazonaws.ecr#ReplicationBackfillInvalidStatusException";name="ReplicationBackfillInvalidStatusException";$fault="client";constructor(e){super({name:"ReplicationBackfillInvalidStatusException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},XF=class t extends fe{static{i(this,"ImageStorageClassUpdateNotSupportedException")}static shapeId="com.amazonaws.ecr#ImageStorageClassUpdateNotSupportedException";name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},ZF=class t extends fe{static{i(this,"InvalidLayerPartException")}static shapeId="com.amazonaws.ecr#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}},EHt="Attribute",CHt="AuthorizationData",IHt="AuthorizationDataList",SHt="AwsEcrContainerImageDetails",wHt="AttributeList",xHt="BlockedByOrganizationPolicyException",bHt="BatchCheckLayerAvailability",BHt="BatchCheckLayerAvailabilityRequest",RHt="BatchCheckLayerAvailabilityResponse",NHt="BatchDeleteImage",THt="BatchDeleteImageRequest",PHt="BatchDeleteImageResponse",_Ht="BatchGetImage",vHt="BatchGetImageRequest",QHt="BatchGetImageResponse",DHt="BatchGetRepositoryScanningConfiguration",kHt="BatchGetRepositoryScanningConfigurationRequest",OHt="BatchGetRepositoryScanningConfigurationResponse",LHt="CompleteLayerUpload",MHt="CompleteLayerUploadRequest",FHt="CompleteLayerUploadResponse",UHt="CreatePullThroughCacheRule",qHt="CreatePullThroughCacheRuleRequest",$Ht="CreatePullThroughCacheRuleResponse",GHt="CreateRepository",HHt="CreateRepositoryCreationTemplate",zHt="CreateRepositoryCreationTemplateRequest",VHt="CreateRepositoryCreationTemplateResponse",WHt="CreateRepositoryRequest",YHt="CreateRepositoryResponse",JHt="CvssScore",jHt="CvssScoreAdjustment",KHt="CvssScoreAdjustmentList",XHt="CvssScoreDetails",ZHt="CvssScoreList",ezt="DescribeImages",tzt="DescribeImagesFilter",rzt="DescribeImagesRequest",nzt="DescribeImageReplicationStatus",szt="DescribeImageReplicationStatusRequest",ozt="DescribeImageReplicationStatusResponse",izt="DescribeImagesResponse",azt="DescribeImageScanFindings",czt="DescribeImageScanFindingsRequest",lzt="DescribeImageScanFindingsResponse",uzt="DescribeImageSigningStatus",dzt="DescribeImageSigningStatusRequest",pzt="DescribeImageSigningStatusResponse",fzt="DeleteLifecyclePolicy",mzt="DeleteLifecyclePolicyRequest",hzt="DeleteLifecyclePolicyResponse",Azt="DeletePullThroughCacheRule",gzt="DeletePullThroughCacheRuleRequest",yzt="DeletePullThroughCacheRuleResponse",Ezt="DescribePullThroughCacheRulesRequest",Czt="DescribePullThroughCacheRulesResponse",Izt="DescribePullThroughCacheRules",Szt="DeregisterPullTimeUpdateExclusion",wzt="DeregisterPullTimeUpdateExclusionRequest",xzt="DeregisterPullTimeUpdateExclusionResponse",bzt="DeleteRepository",Bzt="DescribeReplicationBackfillResults",Rzt="DescribeReplicationBackfillResultsRequest",Nzt="DescribeReplicationBackfillResultsResponse",Tzt="DeleteRepositoryCreationTemplate",Pzt="DeleteRepositoryCreationTemplateRequest",_zt="DeleteRepositoryCreationTemplateResponse",vzt="DescribeRepositoryCreationTemplatesRequest",Qzt="DescribeRepositoryCreationTemplatesResponse",Dzt="DescribeRepositoryCreationTemplates",kzt="DeleteRegistryPolicy",Ozt="DeleteRegistryPolicyRequest",Lzt="DeleteRegistryPolicyResponse",Mzt="DeleteRepositoryPolicyRequest",Fzt="DeleteRepositoryPolicyResponse",Uzt="DeleteRepositoryPolicy",qzt="DeleteRepositoryRequest",$zt="DeleteRepositoryResponse",Gzt="DescribeRegistryRequest",Hzt="DescribeRegistryResponse",zzt="DescribeRepositoriesRequest",Vzt="DescribeRepositoriesResponse",Wzt="DescribeRegistry",Yzt="DescribeRepositories",Jzt="DeleteSigningConfiguration",jzt="DeleteSigningConfigurationRequest",Kzt="DeleteSigningConfigurationResponse",Xzt="ExclusionAlreadyExistsException",Zzt="EncryptionConfiguration",e3t="EncryptionConfigurationForRepositoryCreationTemplate",t3t="EnhancedImageScanFinding",r3t="EnhancedImageScanFindingList",n3t="ExclusionNotFoundException",s3t="EmptyUploadException",o3t="GetAccountSetting",i3t="GetAccountSettingRequest",a3t="GetAccountSettingResponse",c3t="GetAuthorizationToken",l3t="GetAuthorizationTokenRequest",u3t="GetAuthorizationTokenResponse",d3t="GetDownloadUrlForLayer",p3t="GetDownloadUrlForLayerRequest",f3t="GetDownloadUrlForLayerResponse",m3t="GetLifecyclePolicy",h3t="GetLifecyclePolicyPreview",A3t="GetLifecyclePolicyPreviewRequest",g3t="GetLifecyclePolicyPreviewResponse",y3t="GetLifecyclePolicyRequest",E3t="GetLifecyclePolicyResponse",C3t="GetRegistryPolicy",I3t="GetRegistryPolicyRequest",S3t="GetRegistryPolicyResponse",w3t="GetRepositoryPolicyRequest",x3t="GetRepositoryPolicyResponse",b3t="GetRepositoryPolicy",B3t="GetRegistryScanningConfiguration",R3t="GetRegistryScanningConfigurationRequest",N3t="GetRegistryScanningConfigurationResponse",T3t="GetSigningConfiguration",P3t="GetSigningConfigurationRequest",_3t="GetSigningConfigurationResponse",v3t="Image",Q3t="ImageArchivedException",D3t="ImageAlreadyExistsException",k3t="ImageDetail",O3t="ImageDigestDoesNotMatchException",L3t="ImageDetailList",M3t="ImageFailure",F3t="ImageFailureList",U3t="ImageIdentifier",q3t="ImageIdentifierList",$3t="ImageList",G3t="InvalidLayerException",H3t="InvalidLayerPartException",z3t="InitiateLayerUpload",V3t="InitiateLayerUploadRequest",W3t="InitiateLayerUploadResponse",Y3t="ImageNotFoundException",J3t="InvalidParameterException",j3t="ImageReferrer",K3t="ImageReferrerList",X3t="ImageReplicationStatus",Z3t="ImageReplicationStatusList",eVt="ImageScanningConfiguration",tVt="ImageStorageClassUpdateNotSupportedException",rVt="ImageScanFinding",nVt="ImageScanFindingList",sVt="ImageScanFindingsSummary",oVt="ImageScanFindings",iVt="ImageScanStatus",aVt="ImageSigningStatusList",cVt="ImageSigningStatus",lVt="ImageTagAlreadyExistsException",uVt="ImageTagMutabilityExclusionFilter",dVt="ImageTagMutabilityExclusionFilters",pVt="InvalidTagParameterException",fVt="Key",mVt="KmsException",hVt="Layer",AVt="LayerAlreadyExistsException",gVt="LimitExceededException",yVt="LayerFailure",EVt="LayerFailureList",CVt="ListImages",IVt="LayerInaccessibleException",SVt="ListImagesFilter",wVt="ListImagesRequest",xVt="ListImageReferrersFilter",bVt="ListImageReferrersRequest",BVt="ListImageReferrersResponse",RVt="ListImagesResponse",NVt="ListImageReferrers",TVt="LayerList",PVt="LayersNotFoundException",_Vt="LifecyclePolicyNotFoundException",vVt="LifecyclePolicyPreviewFilter",QVt="LifecyclePolicyPreviewInProgressException",DVt="LifecyclePolicyPreviewNotFoundException",kVt="LifecyclePolicyPreviewResult",OVt="LifecyclePolicyPreviewResultList",LVt="LifecyclePolicyPreviewSummary",MVt="LifecyclePolicyRuleAction",FVt="LayerPartTooSmallException",UVt="ListPullTimeUpdateExclusions",qVt="ListPullTimeUpdateExclusionsRequest",$Vt="ListPullTimeUpdateExclusionsResponse",GVt="ListReplicationBackfills",HVt="ListReplicationBackfillsRequest",zVt="ListReplicationBackfillsResponse",VVt="ListTagsForResource",WVt="ListTagsForResourceRequest",YVt="ListTagsForResourceResponse",JVt="PutAccountSetting",jVt="PutAccountSettingRequest",KVt="PutAccountSettingResponse",XVt="PutImage",ZVt="PutImageRequest",e4t="PutImageResponse",t4t="PutImageScanningConfiguration",r4t="PutImageScanningConfigurationRequest",n4t="PutImageScanningConfigurationResponse",s4t="PutImageTagMutability",o4t="PutImageTagMutabilityRequest",i4t="PutImageTagMutabilityResponse",a4t="PutLifecyclePolicy",c4t="PutLifecyclePolicyRequest",l4t="PutLifecyclePolicyResponse",u4t="PutReplicationConfiguration",d4t="PutReplicationConfigurationRequest",p4t="PutReplicationConfigurationResponse",f4t="PutRegistryPolicy",m4t="PutRegistryPolicyRequest",h4t="PutRegistryPolicyResponse",A4t="PutRegistryScanningConfiguration",g4t="PutRegistryScanningConfigurationRequest",y4t="PutRegistryScanningConfigurationResponse",E4t="PutSigningConfiguration",C4t="PutSigningConfigurationRequest",I4t="PutSigningConfigurationResponse",S4t="PullThroughCacheRule",w4t="PullThroughCacheRuleAlreadyExistsException",x4t="PullThroughCacheRuleList",b4t="PullThroughCacheRuleNotFoundException",B4t="PackageVulnerabilityDetails",R4t="Recommendation",N4t="RepositoryAlreadyExistsException",T4t="ReplicationBackfillInProgressException",P4t="ReplicationBackfillInvalidStatusException",_4t="ReplicationBackfillNotFoundException",v4t="ReplicationBackfillProgress",Q4t="ReplicationBackfillResult",D4t="ReplicationBackfillResultList",k4t="ReplicationBackfillSummary",O4t="ReplicationBackfillSummaryList",L4t="ReplicationConfiguration",M4t="RepositoryCreationTemplate",F4t="RepositoryCreationTemplateList",U4t="ReplicationDestination",q4t="ReplicationDestinationList",$4t="ResourceDetails",G4t="RepositoryFilter",H4t="RepositoryFilterList",z4t="ReferencedImagesNotFoundException",V4t="RepositoryList",W4t="ResourceList",Y4t="RepositoryNotEmptyException",J4t="RepositoryNotFoundException",j4t="RegistryPolicyNotFoundException",K4t="RepositoryPolicyNotFoundException",X4t="RegisterPullTimeUpdateExclusion",Z4t="RegisterPullTimeUpdateExclusionRequest",eWt="RegisterPullTimeUpdateExclusionResponse",tWt="ReplicationRule",rWt="ReplicationRuleList",nWt="RegistryScanningConfiguration",sWt="RepositoryScanningConfigurationFailure",oWt="RepositoryScanningConfigurationFailureList",iWt="RepositoryScanningConfigurationList",aWt="RepositoryScanningConfiguration",cWt="RegistryScanningRule",lWt="RegistryScanningRuleList",uWt="Remediation",dWt="Repository",pWt="Resource",fWt="SigningConfiguration",mWt="SigningConfigurationNotFoundException",hWt="ScoreDetails",AWt="ServerException",gWt="SubjectIdentifier",yWt="StartImageScan",EWt="StartImageScanRequest",CWt="StartImageScanResponse",IWt="StartLifecyclePolicyPreview",SWt="StartLifecyclePolicyPreviewRequest",wWt="StartLifecyclePolicyPreviewResponse",xWt="ScanNotFoundException",bWt="SecretNotFoundException",BWt="SigningRule",RWt="StartReplicationBackfill",NWt="StartReplicationBackfillRequest",TWt="StartReplicationBackfillResponse",PWt="StopReplicationBackfillRequest",_Wt="StopReplicationBackfillResponse",vWt="StopReplicationBackfill",QWt="ScanningRepositoryFilter",DWt="ScanningRepositoryFilterList",kWt="SigningRepositoryFilterList",OWt="SigningRepositoryFilter",LWt="SigningRuleList",MWt="SetRepositoryPolicy",FWt="SetRepositoryPolicyRequest",UWt="SetRepositoryPolicyResponse",qWt="Tag",$Wt="TemplateAlreadyExistsException",GWt="TransitioningImageTotalCount",HWt="TransitioningImageTotalCounts",zWt="TagList",VWt="TooManyTagsException",WWt="TemplateNotFoundException",YWt="TagResource",JWt="TagResourceRequest",jWt="TagResourceResponse",KWt="UpdateImageStorageClass",XWt="UpdateImageStorageClassRequest",ZWt="UpdateImageStorageClassResponse",e8t="UnsupportedImageTypeException",t8t="UploadLayerPart",r8t="UploadLayerPartRequest",n8t="UploadLayerPartResponse",s8t="UploadNotFoundException",o8t="UpdatePullThroughCacheRule",i8t="UpdatePullThroughCacheRuleRequest",a8t="UpdatePullThroughCacheRuleResponse",c8t="UntagResource",l8t="UpdateRepositoryCreationTemplate",u8t="UpdateRepositoryCreationTemplateRequest",d8t="UpdateRepositoryCreationTemplateResponse",p8t="UntagResourceRequest",f8t="UntagResourceResponse",m8t="UnableToAccessSecretException",h8t="UnableToDecryptSecretValueException",A8t="UnableToGetUpstreamImageException",g8t="UnableToGetUpstreamLayerException",y8t="UnableToListUpstreamImageReferrersException",E8t="UnsupportedUpstreamRegistryException",C8t="Value",I8t="ValidationException",S8t="VulnerablePackage",w8t="VulnerablePackagesList",x8t="ValidatePullThroughCacheRule",b8t="ValidatePullThroughCacheRuleRequest",B8t="ValidatePullThroughCacheRuleResponse",R8t="architecture",N8t="awsAccountId",T8t="authorizationData",P8t="awsEcrContainerImage",vte="appliedFor",_8t="acceptedMediaTypes",v8t="artifactMediaType",Q8t="appliedRulePriority",FHe="artifactStatus",D8t="appliedScanFilters",k8t="authorizationToken",O8t="artifactType",L8t="artifactTypes",M8t="action",F8t="adjustments",U8t="annotations",q8t="arch",$8t="attributes",G8t="author",H8t="backfills",z8t="baseScore",be="client",Jh="credentialArn",OC="createdAt",Wl="customRoleArn",V8t="completedReplicationCount",UHe="cvss",LC="description",W8t="downloadUrl",tB="destination",Y8t="destinations",J8t="details",j8t="digest",Ce="error",K8t="expiresAt",qHe="endedAt",X8t="exploitAvailable",rB="encryptionConfiguration",Z8t="enhancedFindings",eYt="expiringImageTotalCount",ed="ecrRepositoryPrefix",tYt="ecrRepositoryPrefixes",$He="encryptionType",rYt="epoch",tU="failures",nYt="findingArn",sYt="fixAvailable",cf="failureCode",oYt="failureCodes",iYt="fixedInVersion",aYt="firstObservedAt",cYt="filePath",rU="failureReason",lYt="failedReplicationCount",GHe="findingSeverityCounts",nU="filterType",uYt="failure",lf="filter",dYt="findings",HHe="force",pYt="httpError",fYt="images",mYt="imageDetails",nB="imageDigest",hYt="imageHash",MC="imageIds",ri="imageId",zHe="imageManifest",Qte="imageManifestMediaType",VHe="imagePushedAt",sU="imageStatus",oU="imageScanningConfiguration",WHe="imageScanCompletedAt",AYt="imageScanFindings",gYt="imageScanFindingsSummary",yYt="imageSizeInBytes",Dte="imageScanStatus",kte="imageTags",EYt="imageTotalCount",jh="imageTagMutability",Kh="imageTagMutabilityExclusionFilters",YHe="imageTag",CYt="inUseCount",IYt="isValid",SYt="id",wYt="image",xYt="key",bYt="kmsError",JHe="kmsKey",BYt="layers",RYt="layerAvailability",NYt="lastArchivedAt",TYt="lastActivatedAt",PYt="lastByteReceived",jHe="layerDigests",sB="layerDigest",KHe="lastEvaluatedAt",_Yt="lastInUseAt",vYt="lastObservedAt",Ote="lifecyclePolicy",QYt="layerPartBlob",Xh="lifecyclePolicyText",DYt="lastRecordedPullTime",kYt="layerSize",OYt="lastValidByteReceived",Ie="message",ja="maxResults",XHe="mediaType",LYt="metric",FC="name",Sr="nextToken",MYt="platform",FYt="pushedAt",iU="principalArn",UYt="proxyEndpoint",qYt="partFirstByte",$Yt="partLastByte",GYt="packageManager",HYt="previewResults",zYt="partSize",uf="policyText",VYt="pullThroughCacheRules",WYt="pullTimeUpdateExclusions",YYt="packageVulnerabilityDetails",aU="prefix",JYt="prefixes",ZHe="progress",jYt="registry",Lte="resourceArn",eze="repositoryArn",UC="replicationBackfillId",Mte="replicationConfiguration",Fte="repositoryCreationTemplate",KYt="repositoryCreationTemplates",Ute="repositoryFilters",L="registryId",XYt="registryIds",he="repositoryName",tze="repositoryNames",qte="repositoryPolicy",ZYt="replicationStatuses",eJt="registryScanningConfiguration",tJt="resultStatusFilter",$te="resourceTags",rJt="referenceUrls",nJt="repositoryUri",sJt="relatedVulnerabilities",rze="repository",oJt="reason",iJt="recommendation",aJt="referrers",nze="region",cJt="release",lJt="remediation",uJt="repositories",dJt="results",pJt="resources",cU="rules",sze="smithy.ts.sdk.synthetic.com.amazonaws.ecr",lU="startedAt",fJt="scanningConfigurations",mJt="scanningConfiguration",uU="signingConfiguration",hJt="storageClass",AJt="scoreDetails",oze="scanFrequency",gJt="subjectId",yJt="subImageFailureCodes",EJt="sourceLayerHash",CJt="subjectManifestDigest",ize="scanOnPush",aze="signingProfileArn",IJt="scoreSource",SJt="signingStatuses",cze="scanType",wJt="sourceUrl",lze="scoringVector",uze="score",xJt="server",dze="severity",bJt="size",pze="source",Ka="status",BJt="summary",dU="tags",RJt="transitioningImageTotalCounts",NJt="tagKeys",TJt="totalReplicationCount",Gte="tagStatus",Hte="targetStorageClass",PJt="text",_Jt="title",zte="type",vJt="uri",pU="updatedAt",qC="uploadId",Vte="upstreamRegistry",$C="upstreamRepositoryPrefix",oB="upstreamRegistryUrl",QJt="url",fU="value",DJt="vendorCreatedAt",kJt="vulnerabilityId",OJt="vulnerablePackages",LJt="vendorSeverity",fze="vulnerabilitySourceUpdatedAt",MJt="vendorUpdatedAt",Wte="version",w="com.amazonaws.ecr",mze=new MHe(sze),hze=[-3,sze,"ECRServiceException",0,[],[]];mze.registerError(hze,fe);var ye=new MHe(w),Aze=[-3,w,xHt,{[Ce]:be},[Ie],[0]];ye.registerError(Aze,zF);var gze=[-3,w,s3t,{[Ce]:be},[Ie],[0]];ye.registerError(gze,uF);var yze=[-3,w,Xzt,{[Ce]:be},[Ie],[0]];ye.registerError(yze,VF);var Eze=[-3,w,n3t,{[Ce]:be},[Ie],[0]];ye.registerError(Eze,vF);var Cze=[-3,w,D3t,{[Ce]:be},[Ie],[0]];ye.registerError(Cze,qF);var Ize=[-3,w,Q3t,{[Ce]:be},[Ie],[0]];ye.registerError(Ize,WF);var Sze=[-3,w,O3t,{[Ce]:be},[Ie],[0]];ye.registerError(Sze,$F);var wze=[-3,w,Y3t,{[Ce]:be},[Ie],[0]];ye.registerError(wze,QF);var xze=[-3,w,tVt,{[Ce]:be},[Ie],[0]];ye.registerError(xze,XF);var bze=[-3,w,lVt,{[Ce]:be},[Ie],[0]];ye.registerError(bze,GF);var Bze=[-3,w,G3t,{[Ce]:be},[Ie],[0]];ye.registerError(Bze,dF);var Rze=[-3,w,H3t,{[Ce]:be},[L,he,qC,OYt,Ie],[0,0,0,1,0]];ye.registerError(Rze,ZF);var Nze=[-3,w,J3t,{[Ce]:be},[Ie],[0]];ye.registerError(Nze,sF);var Tze=[-3,w,pVt,{[Ce]:be},[Ie],[0]];ye.registerError(Tze,IF);var Pze=[-3,w,mVt,{[Ce]:be},[Ie,bYt],[0,0]];ye.registerError(Pze,pF);var _ze=[-3,w,AVt,{[Ce]:be},[Ie],[0]];ye.registerError(_ze,fF);var vze=[-3,w,IVt,{[Ce]:be},[Ie],[0]];ye.registerError(vze,OF);var Qze=[-3,w,FVt,{[Ce]:be},[Ie],[0]];ye.registerError(Qze,mF);var Dze=[-3,w,PVt,{[Ce]:be},[Ie],[0]];ye.registerError(Dze,LF);var kze=[-3,w,_Vt,{[Ce]:be},[Ie],[0]];ye.registerError(kze,bF);var Oze=[-3,w,QVt,{[Ce]:be},[Ie],[0]];ye.registerError(Oze,JF);var Lze=[-3,w,DVt,{[Ce]:be},[Ie],[0]];ye.registerError(Lze,FF);var Mze=[-3,w,gVt,{[Ce]:be},[Ie],[0]];ye.registerError(Mze,aF);var Fze=[-3,w,w4t,{[Ce]:be},[Ie],[0]];ye.registerError(Fze,AF);var Uze=[-3,w,b4t,{[Ce]:be},[Ie],[0]];ye.registerError(Uze,BF);var qze=[-3,w,z4t,{[Ce]:be},[Ie],[0]];ye.registerError(qze,HF);var $ze=[-3,w,j4t,{[Ce]:be},[Ie],[0]];ye.registerError($ze,RF);var Gze=[-3,w,T4t,{[Ce]:be},[Ie],[0]];ye.registerError(Gze,jF);var Hze=[-3,w,P4t,{[Ce]:be},[Ie],[0]];ye.registerError(Hze,KF);var zze=[-3,w,_4t,{[Ce]:be},[Ie],[0]];ye.registerError(zze,kF);var Vze=[-3,w,N4t,{[Ce]:be},[Ie],[0]];ye.registerError(Vze,SF);var Wze=[-3,w,Y4t,{[Ce]:be},[Ie],[0]];ye.registerError(Wze,NF);var Yze=[-3,w,J4t,{[Ce]:be},[Ie],[0]];ye.registerError(Yze,oF);var Jze=[-3,w,K4t,{[Ce]:be},[Ie],[0]];ye.registerError(Jze,PF);var jze=[-3,w,xWt,{[Ce]:be},[Ie],[0]];ye.registerError(jze,DF);var Kze=[-3,w,bWt,{[Ce]:be},[Ie],[0]];ye.registerError(Kze,gF);var Xze=[-3,w,AWt,{[Ce]:xJt},[Ie],[0]];ye.registerError(Xze,iF);var Zze=[-3,w,mWt,{[Ce]:be},[Ie],[0]];ye.registerError(Zze,_F);var e3e=[-3,w,$Wt,{[Ce]:be},[Ie],[0]];ye.registerError(e3e,xF);var t3e=[-3,w,WWt,{[Ce]:be},[Ie],[0]];ye.registerError(t3e,TF);var r3e=[-3,w,VWt,{[Ce]:be},[Ie],[0]];ye.registerError(r3e,wF);var n3e=[-3,w,m8t,{[Ce]:be},[Ie],[0]];ye.registerError(n3e,yF);var s3e=[-3,w,h8t,{[Ce]:be},[Ie],[0]];ye.registerError(s3e,EF);var o3e=[-3,w,A8t,{[Ce]:be},[Ie],[0]];ye.registerError(o3e,cF);var i3e=[-3,w,g8t,{[Ce]:be},[Ie],[0]];ye.registerError(i3e,MF);var a3e=[-3,w,y8t,{[Ce]:be},[Ie],[0]];ye.registerError(a3e,UF);var c3e=[-3,w,e8t,{[Ce]:be},[Ie],[0]];ye.registerError(c3e,YF);var l3e=[-3,w,E8t,{[Ce]:be},[Ie],[0]];ye.registerError(l3e,CF);var u3e=[-3,w,s8t,{[Ce]:be},[Ie],[0]];ye.registerError(u3e,hF);var d3e=[-3,w,I8t,{[Ce]:be,[pYt]:400},[Ie],[0]];ye.registerError(d3e,lF);var p3e=[mze,ye],f3e=[3,w,EHt,0,[xYt,fU],[0,0],1],m3e=[3,w,CHt,0,[k8t,K8t,UYt],[0,4,0]],h3e=[3,w,SHt,0,[R8t,G8t,hYt,kte,MYt,FYt,_Yt,CYt,jYt,he],[0,0,0,64,0,4,4,1,0,0]],A3e=[3,w,BHt,0,[he,jHe,L],[0,64,0],2],g3e=[3,w,RHt,0,[BYt,tU],[()=>KJt,()=>jJt]],y3e=[3,w,THt,0,[he,MC,L],[0,()=>GC,0],2],E3e=[3,w,PHt,0,[MC,tU],[()=>GC,()=>IWe]],C3e=[3,w,vHt,0,[he,MC,L,_8t],[0,()=>GC,0,64],2],I3e=[3,w,QHt,0,[fYt,tU],[()=>zJt,()=>IWe]],S3e=[3,w,kHt,0,[tze],[64],1],w3e=[3,w,OHt,0,[fJt,tU],[()=>cjt,()=>ajt]],x3e=[3,w,MHt,0,[he,qC,jHe,L],[0,0,64,0],3],b3e=[3,w,FHt,0,[L,he,qC,sB],[0,0,0,0]],B3e=[3,w,qHt,0,[ed,oB,L,Vte,Jh,Wl,$C],[0,0,0,0,0,0,0],2],R3e=[3,w,$Ht,0,[ed,oB,OC,L,Vte,Jh,Wl,$C],[0,0,4,0,0,0,0,0]],N3e=[3,w,zHt,0,[aU,vte,LC,rB,$te,jh,Kh,qte,Ote,Wl],[0,64,0,()=>mU,()=>HC,0,()=>eA,0,0,0],2],T3e=[3,w,VHt,0,[L,Fte],[0,()=>aB]],P3e=[3,w,WHt,0,[he,L,dU,jh,Kh,oU,rB],[0,0,()=>HC,0,()=>eA,()=>iB,()=>Yte],1],_3e=[3,w,YHt,0,[rze],[()=>gU]],v3e=[3,w,JHt,0,[z8t,lze,pze,Wte],[1,0,0,0]],Q3e=[3,w,jHt,0,[LYt,oJt],[0,0]],D3e=[3,w,XHt,0,[F8t,uze,IJt,lze,Wte],[()=>qJt,1,0,0,0]],k3e=[3,w,mzt,0,[he,L],[0,0],1],O3e=[3,w,hzt,0,[L,he,Xh,KHe],[0,0,0,4]],L3e=[3,w,gzt,0,[ed,L],[0,0],1],M3e=[3,w,yzt,0,[ed,oB,OC,L,Jh,Wl,$C],[0,0,4,0,0,0,0]],F3e=[3,w,Ozt,0,[],[]],U3e=[3,w,Lzt,0,[L,uf],[0,0]],q3e=[3,w,Pzt,0,[aU],[0],1],$3e=[3,w,_zt,0,[L,Fte],[0,()=>aB]],G3e=[3,w,Mzt,0,[he,L],[0,0],1],H3e=[3,w,Fzt,0,[L,he,uf],[0,0,0]],z3e=[3,w,qzt,0,[he,L,HHe],[0,0,2],1],V3e=[3,w,$zt,0,[rze],[()=>gU]],W3e=[3,w,jzt,0,[],[]],Y3e=[3,w,Kzt,0,[L,uU],[0,()=>cB]],J3e=[3,w,wzt,0,[iU],[0],1],j3e=[3,w,xzt,0,[iU],[0]],K3e=[3,w,szt,0,[he,ri,L],[0,()=>_s,0],2],X3e=[3,w,ozt,0,[he,ri,ZYt],[0,()=>_s,()=>WJt]],Z3e=[3,w,czt,0,[he,ri,L,Sr,ja],[0,()=>_s,0,0,1],2],eVe=[3,w,lzt,0,[L,he,ri,Dte,AYt,Sr],[0,0,()=>_s,()=>hU,()=>UVe,0]],tVe=[3,w,tzt,0,[Gte,sU],[0,0]],rVe=[3,w,dzt,0,[he,ri,L],[0,()=>_s,0],2],nVe=[3,w,pzt,0,[he,ri,L,SJt],[0,()=>_s,0,()=>JJt]],sVe=[3,w,rzt,0,[he,L,MC,Sr,ja,lf],[0,0,()=>GC,0,1,()=>tVe],1],oVe=[3,w,izt,0,[mYt,Sr],[()=>HJt,0]],iVe=[3,w,Ezt,0,[L,tYt,Sr,ja],[0,64,0,1]],aVe=[3,w,Czt,0,[VYt,Sr],[()=>ZJt,0]],cVe=[3,w,Gzt,0,[],[]],lVe=[3,w,Hzt,0,[L,Mte],[0,()=>AU]],uVe=[3,w,Rzt,0,[UC,L,tJt,ja,Sr],[0,0,0,1,0],1],dVe=[3,w,Nzt,0,[L,UC,tB,Ka,cf,ZHe,dJt,lU,qHe,Sr],[0,0,()=>Zh,0,0,()=>Kte,()=>ejt,4,4,0]],pVe=[3,w,zzt,0,[L,tze,Sr,ja],[0,64,0,1]],fVe=[3,w,Vzt,0,[uJt,Sr],[()=>ijt,0]],mVe=[3,w,vzt,0,[JYt,Sr,ja],[64,0,1]],hVe=[3,w,Qzt,0,[L,KYt,Sr],[0,()=>sjt,0]],Yte=[3,w,Zzt,0,[$He,JHe],[0,0],1],mU=[3,w,e3t,0,[$He,JHe],[0,0],1],AVe=[3,w,t3t,0,[N8t,LC,nYt,aYt,vYt,YYt,lJt,pJt,uze,AJt,dze,Ka,_Jt,zte,pU,sYt,X8t],[0,0,0,4,4,()=>u4e,()=>D4e,()=>ljt,1,()=>H4e,0,0,0,0,4,0,0]],gVe=[3,w,i3t,0,[FC],[0],1],yVe=[3,w,a3t,0,[FC,fU],[0,0]],EVe=[3,w,l3t,0,[XYt],[64]],CVe=[3,w,u3t,0,[T8t],[()=>UJt]],IVe=[3,w,p3t,0,[he,sB,L],[0,0,0],2],SVe=[3,w,f3t,0,[W8t,sB],[0,0]],wVe=[3,w,A3t,0,[he,L,MC,Sr,ja,lf],[0,0,()=>GC,0,1,()=>YVe],1],xVe=[3,w,g3t,0,[L,he,Xh,Ka,Sr,HYt,BJt],[0,0,0,0,0,()=>XJt,()=>jVe]],bVe=[3,w,y3t,0,[he,L],[0,0],1],BVe=[3,w,E3t,0,[L,he,Xh,KHe],[0,0,0,4]],RVe=[3,w,I3t,0,[],[]],NVe=[3,w,S3t,0,[L,uf],[0,0]],TVe=[3,w,R3t,0,[],[]],PVe=[3,w,N3t,0,[L,mJt],[0,()=>jte]],_Ve=[3,w,w3t,0,[he,L],[0,0],1],vVe=[3,w,x3t,0,[L,he,uf],[0,0,0]],QVe=[3,w,P3t,0,[],[]],DVe=[3,w,_3t,0,[L,uU],[0,()=>cB]],Jte=[3,w,v3t,0,[L,he,ri,zHe,Qte],[0,0,()=>_s,0,0]],kVe=[3,w,k3t,0,[L,he,nB,kte,yYt,VHe,Dte,gYt,Qte,v8t,DYt,CJt,sU,NYt,TYt],[0,0,0,64,1,4,()=>hU,()=>qVe,0,0,4,0,0,4,4]],OVe=[3,w,M3t,0,[ri,cf,rU],[()=>_s,0,0]],_s=[3,w,U3t,0,[nB,YHe],[0,0]],LVe=[3,w,j3t,0,[j8t,XHe,bJt,O8t,U8t,FHe],[0,0,1,0,128,0],3],MVe=[3,w,X3t,0,[nze,L,Ka,cf],[0,0,0,0]],FVe=[3,w,rVt,0,[FC,LC,vJt,dze,$8t],[0,0,0,0,()=>FJt]],UVe=[3,w,oVt,0,[WHe,fze,GHe,dYt,Z8t],[4,4,129,()=>YJt,()=>GJt]],qVe=[3,w,sVt,0,[WHe,fze,GHe],[4,4,129]],iB=[3,w,eVt,0,[ize],[2]],hU=[3,w,iVt,0,[Ka,LC],[0,0]],$Ve=[3,w,cVt,0,[aze,cf,rU,Ka],[0,0,0,0]],GVe=[3,w,uVt,0,[nU,lf],[0,0],2],HVe=[3,w,V3t,0,[he,L],[0,0],1],zVe=[3,w,W3t,0,[qC,zYt],[0,1]],VVe=[3,w,hVt,0,[sB,RYt,kYt,XHe],[0,0,1,0]],WVe=[3,w,yVt,0,[sB,cf,rU],[0,0,0]],YVe=[3,w,vVt,0,[Gte],[0]],JVe=[3,w,kVt,0,[kte,nB,VHe,M8t,Q8t,hJt],[64,0,4,()=>KVe,1,0]],jVe=[3,w,LVt,0,[eYt,RJt],[1,()=>pjt]],KVe=[3,w,MVt,0,[zte,Hte],[0,0]],XVe=[3,w,xVt,0,[L8t,FHe],[64,0]],ZVe=[3,w,bVt,0,[he,gJt,L,lf,Sr,ja],[0,()=>nWe,0,()=>XVe,0,1],2],e4e=[3,w,BVt,0,[aJt,Sr],[()=>VJt,0]],t4e=[3,w,SVt,0,[Gte,sU],[0,0]],r4e=[3,w,wVt,0,[he,L,Sr,ja,lf],[0,0,0,1,()=>t4e],1],n4e=[3,w,RVt,0,[MC,Sr],[()=>GC,0]],s4e=[3,w,qVt,0,[ja,Sr],[1,0]],o4e=[3,w,$Vt,0,[WYt,Sr],[64,0]],i4e=[3,w,HVt,0,[L,ja,Sr],[0,1,0]],a4e=[3,w,zVt,0,[L,H8t,Sr],[0,()=>tjt,0]],c4e=[3,w,WVt,0,[Lte],[0],1],l4e=[3,w,YVt,0,[dU],[()=>HC]],u4e=[3,w,B4t,0,[UHe,rJt,sJt,pze,wJt,DJt,LJt,MJt,kJt,OJt],[()=>$Jt,64,64,0,0,4,0,4,0,()=>fjt]],d4e=[3,w,S4t,0,[ed,oB,OC,L,Jh,Wl,$C,Vte,pU],[0,0,4,0,0,0,0,0,4]],p4e=[3,w,jVt,0,[FC,fU],[0,0],2],f4e=[3,w,KVt,0,[FC,fU],[0,0]],m4e=[3,w,ZVt,0,[he,zHe,L,Qte,YHe,nB],[0,0,0,0,0,0],2],h4e=[3,w,e4t,0,[wYt],[()=>Jte]],A4e=[3,w,r4t,0,[he,oU,L],[0,()=>iB,0],2],g4e=[3,w,n4t,0,[L,he,oU],[0,0,()=>iB]],y4e=[3,w,o4t,0,[he,jh,L,Kh],[0,0,0,()=>eA],2],E4e=[3,w,i4t,0,[L,he,jh,Kh],[0,0,0,()=>eA]],C4e=[3,w,c4t,0,[he,Xh,L],[0,0,0],2],I4e=[3,w,l4t,0,[L,he,Xh],[0,0,0]],S4e=[3,w,m4t,0,[uf],[0],1],w4e=[3,w,h4t,0,[L,uf],[0,0]],x4e=[3,w,g4t,0,[cze,cU],[0,()=>SWe]],b4e=[3,w,y4t,0,[eJt],[()=>jte]],B4e=[3,w,d4t,0,[Mte],[()=>AU],1],R4e=[3,w,p4t,0,[Mte],[()=>AU]],N4e=[3,w,C4t,0,[uU],[()=>cB],1],T4e=[3,w,I4t,0,[uU],[()=>cB]],P4e=[3,w,R4t,0,[QJt,PJt],[0,0]],_4e=[3,w,Z4t,0,[iU],[0],1],v4e=[3,w,eWt,0,[iU,OC],[0,4]],jte=[3,w,nWt,0,[cze,cU],[0,()=>SWe]],Q4e=[3,w,cWt,0,[oze,Ute],[0,()=>wWe],2],D4e=[3,w,uWt,0,[iJt],[()=>P4e]],Kte=[3,w,v4t,0,[TJt,V8t,lYt,oYt],[1,1,1,64],4],k4e=[3,w,Q4t,0,[he,ri,Ka,cf,yJt],[0,()=>_s,0,0,64],3],O4e=[3,w,k4t,0,[UC,tB,Ka,lU,cf,ZHe,qHe],[0,()=>Zh,0,4,0,()=>Kte,4],4],AU=[3,w,L4t,0,[cU],[()=>njt],1],Zh=[3,w,U4t,0,[nze,L],[0,0],2],L4e=[3,w,tWt,0,[Y8t,Ute],[()=>rjt,()=>ojt],1],gU=[3,w,dWt,0,[eze,L,he,nJt,OC,jh,Kh,oU,rB],[0,0,0,0,4,0,()=>eA,()=>iB,()=>Yte]],aB=[3,w,M4t,0,[aU,LC,rB,$te,jh,Kh,qte,Ote,vte,Wl,OC,pU],[0,0,()=>mU,()=>HC,0,()=>eA,0,0,64,0,4,4]],M4e=[3,w,G4t,0,[lf,nU],[0,0],2],F4e=[3,w,aWt,0,[eze,he,ize,oze,D8t],[0,0,2,0,()=>wWe]],U4e=[3,w,sWt,0,[he,cf,rU],[0,0,0]],q4e=[3,w,pWt,0,[J8t,SYt,dU,zte],[()=>$4e,0,128,0]],$4e=[3,w,$4t,0,[P8t],[()=>h3e]],G4e=[3,w,QWt,0,[lf,nU],[0,0],2],H4e=[3,w,hWt,0,[UHe],[()=>D3e]],z4e=[3,w,FWt,0,[he,uf,L,HHe],[0,0,0,2],2],V4e=[3,w,UWt,0,[L,he,uf],[0,0,0]],cB=[3,w,fWt,0,[cU],[()=>djt],1],W4e=[3,w,OWt,0,[lf,nU],[0,0],2],Y4e=[3,w,BWt,0,[aze,Ute],[0,()=>ujt],1],J4e=[3,w,EWt,0,[he,ri,L],[0,()=>_s,0],2],j4e=[3,w,CWt,0,[L,he,ri,Dte],[0,0,()=>_s,()=>hU]],K4e=[3,w,SWt,0,[he,L,Xh],[0,0,0],1],X4e=[3,w,wWt,0,[L,he,Xh,Ka],[0,0,0,0]],Z4e=[3,w,NWt,0,[tB,L],[()=>Zh,0],1],eWe=[3,w,TWt,0,[UC,L,tB,Ka,lU],[0,0,()=>Zh,0,4]],tWe=[3,w,PWt,0,[UC,L],[0,0],1],rWe=[3,w,_Wt,0,[L,UC,tB,Ka,lU],[0,0,()=>Zh,0,4]],nWe=[3,w,gWt,0,[nB],[0],1],sWe=[3,w,qWt,0,[fVt,C8t],[0,0],2],oWe=[3,w,JWt,0,[Lte,dU],[0,()=>HC],2],iWe=[3,w,jWt,0,[],[]],aWe=[3,w,GWt,0,[Hte,EYt],[0,1]],cWe=[3,w,p8t,0,[Lte,NJt],[0,64],2],lWe=[3,w,f8t,0,[],[]],uWe=[3,w,XWt,0,[he,ri,Hte,L],[0,()=>_s,0,0],3],dWe=[3,w,ZWt,0,[L,he,ri,sU],[0,0,()=>_s,0]],pWe=[3,w,i8t,0,[ed,L,Jh,Wl],[0,0,0,0],1],fWe=[3,w,a8t,0,[ed,L,pU,Jh,Wl,$C],[0,0,4,0,0,0]],mWe=[3,w,u8t,0,[aU,LC,rB,$te,jh,Kh,qte,Ote,vte,Wl],[0,0,()=>mU,()=>HC,0,()=>eA,0,0,64,0],1],hWe=[3,w,d8t,0,[L,Fte],[0,()=>aB]],AWe=[3,w,r8t,0,[he,qC,qYt,$Yt,QYt,L],[0,0,1,1,21,0],5],gWe=[3,w,n8t,0,[L,he,qC,PYt],[0,0,0,1]],yWe=[3,w,b8t,0,[ed,L],[0,0],1],EWe=[3,w,B8t,0,[ed,L,oB,Jh,Wl,$C,IYt,uYt],[0,0,0,0,0,0,2,0]],CWe=[3,w,S8t,0,[q8t,rYt,cYt,FC,GYt,cJt,EJt,Wte,iYt],[0,1,0,0,0,0,0,0,0]],FJt=[1,w,wHt,0,()=>f3e],UJt=[1,w,IHt,0,()=>m3e],qJt=[1,w,KHt,0,()=>Q3e],$Jt=[1,w,ZHt,0,()=>v3e],GJt=[1,w,r3t,0,()=>AVe],HJt=[1,w,L3t,0,()=>kVe],IWe=[1,w,F3t,0,()=>OVe],GC=[1,w,q3t,0,()=>_s],zJt=[1,w,$3t,0,()=>Jte],VJt=[1,w,K3t,0,()=>LVe],WJt=[1,w,Z3t,0,()=>MVe],YJt=[1,w,nVt,0,()=>FVe],JJt=[1,w,aVt,0,()=>$Ve],eA=[1,w,dVt,0,()=>GVe],jJt=[1,w,EVt,0,()=>WVe],KJt=[1,w,TVt,0,()=>VVe],XJt=[1,w,OVt,0,()=>JVe],ZJt=[1,w,x4t,0,()=>d4e],SWe=[1,w,lWt,0,()=>Q4e],ejt=[1,w,D4t,0,()=>k4e],tjt=[1,w,O4t,0,()=>O4e],rjt=[1,w,q4t,0,()=>Zh],njt=[1,w,rWt,0,()=>L4e],sjt=[1,w,F4t,0,()=>aB],ojt=[1,w,H4t,0,()=>M4e],ijt=[1,w,V4t,0,()=>gU],ajt=[1,w,oWt,0,()=>U4e],cjt=[1,w,iWt,0,()=>F4e],ljt=[1,w,W4t,0,()=>q4e],wWe=[1,w,DWt,0,()=>G4e],ujt=[1,w,kWt,0,()=>W4e],djt=[1,w,LWt,0,()=>Y4e],HC=[1,w,zWt,0,()=>sWe],pjt=[1,w,HWt,0,()=>aWe],fjt=[1,w,w8t,0,()=>CWe],xWe=[9,w,bHt,0,()=>A3e,()=>g3e],bWe=[9,w,NHt,0,()=>y3e,()=>E3e],BWe=[9,w,_Ht,0,()=>C3e,()=>I3e],RWe=[9,w,DHt,0,()=>S3e,()=>w3e],NWe=[9,w,LHt,0,()=>x3e,()=>b3e],TWe=[9,w,UHt,0,()=>B3e,()=>R3e],PWe=[9,w,GHt,0,()=>P3e,()=>_3e],_We=[9,w,HHt,0,()=>N3e,()=>T3e],vWe=[9,w,fzt,0,()=>k3e,()=>O3e],QWe=[9,w,Azt,0,()=>L3e,()=>M3e],DWe=[9,w,kzt,0,()=>F3e,()=>U3e],kWe=[9,w,bzt,0,()=>z3e,()=>V3e],OWe=[9,w,Tzt,0,()=>q3e,()=>$3e],LWe=[9,w,Uzt,0,()=>G3e,()=>H3e],MWe=[9,w,Jzt,0,()=>W3e,()=>Y3e],FWe=[9,w,Szt,0,()=>J3e,()=>j3e],UWe=[9,w,nzt,0,()=>K3e,()=>X3e],qWe=[9,w,ezt,0,()=>sVe,()=>oVe],$We=[9,w,azt,0,()=>Z3e,()=>eVe],GWe=[9,w,uzt,0,()=>rVe,()=>nVe],HWe=[9,w,Izt,0,()=>iVe,()=>aVe],zWe=[9,w,Wzt,0,()=>cVe,()=>lVe],VWe=[9,w,Bzt,0,()=>uVe,()=>dVe],WWe=[9,w,Yzt,0,()=>pVe,()=>fVe],YWe=[9,w,Dzt,0,()=>mVe,()=>hVe],JWe=[9,w,o3t,0,()=>gVe,()=>yVe],jWe=[9,w,c3t,0,()=>EVe,()=>CVe],KWe=[9,w,d3t,0,()=>IVe,()=>SVe],XWe=[9,w,m3t,0,()=>bVe,()=>BVe],ZWe=[9,w,h3t,0,()=>wVe,()=>xVe],e8e=[9,w,C3t,0,()=>RVe,()=>NVe],t8e=[9,w,B3t,0,()=>TVe,()=>PVe],r8e=[9,w,b3t,0,()=>_Ve,()=>vVe],n8e=[9,w,T3t,0,()=>QVe,()=>DVe],s8e=[9,w,z3t,0,()=>HVe,()=>zVe],o8e=[9,w,NVt,0,()=>ZVe,()=>e4e],i8e=[9,w,CVt,0,()=>r4e,()=>n4e],a8e=[9,w,UVt,0,()=>s4e,()=>o4e],c8e=[9,w,GVt,0,()=>i4e,()=>a4e],l8e=[9,w,VVt,0,()=>c4e,()=>l4e],u8e=[9,w,JVt,0,()=>p4e,()=>f4e],d8e=[9,w,XVt,0,()=>m4e,()=>h4e],p8e=[9,w,t4t,0,()=>A4e,()=>g4e],f8e=[9,w,s4t,0,()=>y4e,()=>E4e],m8e=[9,w,a4t,0,()=>C4e,()=>I4e],h8e=[9,w,f4t,0,()=>S4e,()=>w4e],A8e=[9,w,A4t,0,()=>x4e,()=>b4e],g8e=[9,w,u4t,0,()=>B4e,()=>R4e],y8e=[9,w,E4t,0,()=>N4e,()=>T4e],E8e=[9,w,X4t,0,()=>_4e,()=>v4e],C8e=[9,w,MWt,0,()=>z4e,()=>V4e],I8e=[9,w,yWt,0,()=>J4e,()=>j4e],S8e=[9,w,IWt,0,()=>K4e,()=>X4e],w8e=[9,w,RWt,0,()=>Z4e,()=>eWe],x8e=[9,w,vWt,0,()=>tWe,()=>rWe],b8e=[9,w,YWt,0,()=>oWe,()=>iWe],B8e=[9,w,c8t,0,()=>cWe,()=>lWe],R8e=[9,w,KWt,0,()=>uWe,()=>dWe],N8e=[9,w,o8t,0,()=>pWe,()=>fWe],T8e=[9,w,l8t,0,()=>mWe,()=>hWe],P8e=[9,w,t8t,0,()=>AWe,()=>gWe],_8e=[9,w,x8t,0,()=>yWe,()=>EWe],mjt=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??eHt,base64Encoder:t?.base64Encoder??ZGt,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??yHt,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??cHt,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new YGt}],logger:t?.logger??new gGt,protocol:t?.protocol??sHt,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:p3e,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??oHt,urlParser:t?.urlParser??LGt,utf8Decoder:t?.utf8Decoder??XGt,utf8Encoder:t?.utf8Encoder??KGt}),"getRuntimeConfig$1"),hjt=i(t=>{yGt(process.version);let e=bGt(t),r=i(()=>e().then(EGt),"defaultConfigProvider"),n=mjt(t);tGt(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Vh(JGt,s),bodyLengthChecker:t?.bodyLengthChecker??tHt,credentialDefaultProvider:t?.credentialDefaultProvider??jGt,defaultUserAgentProvider:t?.defaultUserAgentProvider??rGt({serviceId:n.serviceId,clientVersion:fHt.version}),maxAttempts:t?.maxAttempts??Vh(GGt,t),region:t?.region??Vh(NGt,{...TGt,...s}),requestHandler:nHt.create(t?.requestHandler??r),retryMode:t?.retryMode??Vh({...$Gt,default:i(async()=>(await r()).retryMode||qGt,"default")},t),streamCollector:t?.streamCollector??rHt,useDualstackEndpoint:t?.useDualstackEndpoint??Vh(RGt,s),useFipsEndpoint:t?.useFipsEndpoint??Vh(BGt,s),userAgentAppId:t?.userAgentAppId??Vh(nGt,s)}},"getRuntimeConfig"),Ajt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),gjt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),yjt=i((t,e)=>{let r=Object.assign(sGt(t),CGt(t),MGt(t),Ajt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,oGt(r),IGt(r),FGt(r),gjt(r))},"resolveRuntimeExtensions"),ti=class extends OHe{static{i(this,"ECRClient")}config;constructor(...[e]){let r=hjt(e||{});super(r),this.initConfig=r;let n=uHt(r),s=iGt(n),o=HGt(s),a=PGt(o),c=aGt(a),l=kGt(c),u=lHt(l),d=yjt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(VGt(this.config)),this.middlewareStack.use(cGt(this.config)),this.middlewareStack.use(zGt(this.config)),this.middlewareStack.use(UGt(this.config)),this.middlewareStack.use(lGt(this.config)),this.middlewareStack.use(uGt(this.config)),this.middlewareStack.use(dGt(this.config)),this.middlewareStack.use(pGt(this.config,{httpAuthSchemeParametersProvider:iHt,identityProviderConfigProvider:i(async p=>new fGt({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(mGt(this.config))}destroy(){super.destroy()}},te=SGt(dHt,"AmazonEC2ContainerRegistry_V20150921","ECRClient",OGt),re={},ne=i((t,e,r,n)=>[],"_mw0"),e1=class extends te(re,ne,"BatchCheckLayerAvailability",xWe){static{i(this,"BatchCheckLayerAvailabilityCommand")}},t1=class extends te(re,ne,"BatchDeleteImage",bWe){static{i(this,"BatchDeleteImageCommand")}},r1=class extends te(re,ne,"BatchGetImage",BWe){static{i(this,"BatchGetImageCommand")}},n1=class extends te(re,ne,"BatchGetRepositoryScanningConfiguration",RWe){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},s1=class extends te(re,ne,"CompleteLayerUpload",NWe){static{i(this,"CompleteLayerUploadCommand")}},o1=class extends te(re,ne,"CreatePullThroughCacheRule",TWe){static{i(this,"CreatePullThroughCacheRuleCommand")}},i1=class extends te(re,ne,"CreateRepository",PWe){static{i(this,"CreateRepositoryCommand")}},a1=class extends te(re,ne,"CreateRepositoryCreationTemplate",_We){static{i(this,"CreateRepositoryCreationTemplateCommand")}},c1=class extends te(re,ne,"DeleteLifecyclePolicy",vWe){static{i(this,"DeleteLifecyclePolicyCommand")}},l1=class extends te(re,ne,"DeletePullThroughCacheRule",QWe){static{i(this,"DeletePullThroughCacheRuleCommand")}},u1=class extends te(re,ne,"DeleteRegistryPolicy",DWe){static{i(this,"DeleteRegistryPolicyCommand")}},d1=class extends te(re,ne,"DeleteRepository",kWe){static{i(this,"DeleteRepositoryCommand")}},p1=class extends te(re,ne,"DeleteRepositoryCreationTemplate",OWe){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},f1=class extends te(re,ne,"DeleteRepositoryPolicy",LWe){static{i(this,"DeleteRepositoryPolicyCommand")}},m1=class extends te(re,ne,"DeleteSigningConfiguration",MWe){static{i(this,"DeleteSigningConfigurationCommand")}},h1=class extends te(re,ne,"DeregisterPullTimeUpdateExclusion",FWe){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},A1=class extends te(re,ne,"DescribeImageReplicationStatus",UWe){static{i(this,"DescribeImageReplicationStatusCommand")}},DC=class extends te(re,ne,"DescribeImageScanFindings",$We){static{i(this,"DescribeImageScanFindingsCommand")}},Y0=class extends te(re,ne,"DescribeImages",qWe){static{i(this,"DescribeImagesCommand")}},g1=class extends te(re,ne,"DescribeImageSigningStatus",GWe){static{i(this,"DescribeImageSigningStatusCommand")}},J0=class extends te(re,ne,"DescribePullThroughCacheRules",HWe){static{i(this,"DescribePullThroughCacheRulesCommand")}},y1=class extends te(re,ne,"DescribeRegistry",zWe){static{i(this,"DescribeRegistryCommand")}},j0=class extends te(re,ne,"DescribeReplicationBackfillResults",VWe){static{i(this,"DescribeReplicationBackfillResultsCommand")}},K0=class extends te(re,ne,"DescribeRepositories",WWe){static{i(this,"DescribeRepositoriesCommand")}},X0=class extends te(re,ne,"DescribeRepositoryCreationTemplates",YWe){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},E1=class extends te(re,ne,"GetAccountSetting",JWe){static{i(this,"GetAccountSettingCommand")}},C1=class extends te(re,ne,"GetAuthorizationToken",jWe){static{i(this,"GetAuthorizationTokenCommand")}},I1=class extends te(re,ne,"GetDownloadUrlForLayer",KWe){static{i(this,"GetDownloadUrlForLayerCommand")}},S1=class extends te(re,ne,"GetLifecyclePolicy",XWe){static{i(this,"GetLifecyclePolicyCommand")}},kC=class extends te(re,ne,"GetLifecyclePolicyPreview",ZWe){static{i(this,"GetLifecyclePolicyPreviewCommand")}},w1=class extends te(re,ne,"GetRegistryPolicy",e8e){static{i(this,"GetRegistryPolicyCommand")}},x1=class extends te(re,ne,"GetRegistryScanningConfiguration",t8e){static{i(this,"GetRegistryScanningConfigurationCommand")}},b1=class extends te(re,ne,"GetRepositoryPolicy",r8e){static{i(this,"GetRepositoryPolicyCommand")}},B1=class extends te(re,ne,"GetSigningConfiguration",n8e){static{i(this,"GetSigningConfigurationCommand")}},R1=class extends te(re,ne,"InitiateLayerUpload",s8e){static{i(this,"InitiateLayerUploadCommand")}},N1=class extends te(re,ne,"ListImageReferrers",o8e){static{i(this,"ListImageReferrersCommand")}},Z0=class extends te(re,ne,"ListImages",i8e){static{i(this,"ListImagesCommand")}},T1=class extends te(re,ne,"ListPullTimeUpdateExclusions",a8e){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},eB=class extends te(re,ne,"ListReplicationBackfills",c8e){static{i(this,"ListReplicationBackfillsCommand")}},P1=class extends te(re,ne,"ListTagsForResource",l8e){static{i(this,"ListTagsForResourceCommand")}},_1=class extends te(re,ne,"PutAccountSetting",u8e){static{i(this,"PutAccountSettingCommand")}},v1=class extends te(re,ne,"PutImage",d8e){static{i(this,"PutImageCommand")}},Q1=class extends te(re,ne,"PutImageScanningConfiguration",p8e){static{i(this,"PutImageScanningConfigurationCommand")}},D1=class extends te(re,ne,"PutImageTagMutability",f8e){static{i(this,"PutImageTagMutabilityCommand")}},k1=class extends te(re,ne,"PutLifecyclePolicy",m8e){static{i(this,"PutLifecyclePolicyCommand")}},O1=class extends te(re,ne,"PutRegistryPolicy",h8e){static{i(this,"PutRegistryPolicyCommand")}},L1=class extends te(re,ne,"PutRegistryScanningConfiguration",A8e){static{i(this,"PutRegistryScanningConfigurationCommand")}},M1=class extends te(re,ne,"PutReplicationConfiguration",g8e){static{i(this,"PutReplicationConfigurationCommand")}},F1=class extends te(re,ne,"PutSigningConfiguration",y8e){static{i(this,"PutSigningConfigurationCommand")}},U1=class extends te(re,ne,"RegisterPullTimeUpdateExclusion",E8e){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},q1=class extends te(re,ne,"SetRepositoryPolicy",C8e){static{i(this,"SetRepositoryPolicyCommand")}},$1=class extends te(re,ne,"StartImageScan",I8e){static{i(this,"StartImageScanCommand")}},G1=class extends te(re,ne,"StartLifecyclePolicyPreview",S8e){static{i(this,"StartLifecyclePolicyPreviewCommand")}},H1=class extends te(re,ne,"StartReplicationBackfill",w8e){static{i(this,"StartReplicationBackfillCommand")}},z1=class extends te(re,ne,"StopReplicationBackfill",x8e){static{i(this,"StopReplicationBackfillCommand")}},V1=class extends te(re,ne,"TagResource",b8e){static{i(this,"TagResourceCommand")}},W1=class extends te(re,ne,"UntagResource",B8e){static{i(this,"UntagResourceCommand")}},Y1=class extends te(re,ne,"UpdateImageStorageClass",R8e){static{i(this,"UpdateImageStorageClassCommand")}},J1=class extends te(re,ne,"UpdatePullThroughCacheRule",N8e){static{i(this,"UpdatePullThroughCacheRuleCommand")}},j1=class extends te(re,ne,"UpdateRepositoryCreationTemplate",T8e){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},K1=class extends te(re,ne,"UploadLayerPart",P8e){static{i(this,"UploadLayerPartCommand")}},X1=class extends te(re,ne,"ValidatePullThroughCacheRule",_8e){static{i(this,"ValidatePullThroughCacheRuleCommand")}},v8e=Zu(ti,DC,"nextToken","nextToken","maxResults"),Q8e=Zu(ti,Y0,"nextToken","nextToken","maxResults"),D8e=Zu(ti,J0,"nextToken","nextToken","maxResults"),k8e=Zu(ti,j0,"nextToken","nextToken","maxResults"),O8e=Zu(ti,K0,"nextToken","nextToken","maxResults"),L8e=Zu(ti,X0,"nextToken","nextToken","maxResults"),M8e=Zu(ti,kC,"nextToken","nextToken","maxResults"),F8e=Zu(ti,Z0,"nextToken","nextToken","maxResults"),U8e=Zu(ti,eB,"nextToken","nextToken","maxResults"),q8e=i(async(t,e)=>{let r;try{let n=await t.send(new DC(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:vC.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:vC.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:vC.RETRY,reason:r}},"checkState$1"),Ejt=i(async(t,e)=>eU({...{minDelay:5,maxDelay:120},...t},e,q8e),"waitForImageScanComplete"),$8e=i(async(t,e)=>{let n=await eU({...{minDelay:5,maxDelay:120},...t},e,q8e);return LHe(n)},"waitUntilImageScanComplete"),G8e=i(async(t,e)=>{let r;try{let n=await t.send(new kC(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:vC.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:vC.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:vC.RETRY,reason:r}},"checkState"),Cjt=i(async(t,e)=>eU({...{minDelay:5,maxDelay:120},...t},e,G8e),"waitForLifecyclePolicyPreviewComplete"),H8e=i(async(t,e)=>{let n=await eU({...{minDelay:5,maxDelay:120},...t},e,G8e);return LHe(n)},"waitUntilLifecyclePolicyPreviewComplete"),Ijt={BatchCheckLayerAvailabilityCommand:e1,BatchDeleteImageCommand:t1,BatchGetImageCommand:r1,BatchGetRepositoryScanningConfigurationCommand:n1,CompleteLayerUploadCommand:s1,CreatePullThroughCacheRuleCommand:o1,CreateRepositoryCommand:i1,CreateRepositoryCreationTemplateCommand:a1,DeleteLifecyclePolicyCommand:c1,DeletePullThroughCacheRuleCommand:l1,DeleteRegistryPolicyCommand:u1,DeleteRepositoryCommand:d1,DeleteRepositoryCreationTemplateCommand:p1,DeleteRepositoryPolicyCommand:f1,DeleteSigningConfigurationCommand:m1,DeregisterPullTimeUpdateExclusionCommand:h1,DescribeImageReplicationStatusCommand:A1,DescribeImagesCommand:Y0,DescribeImageScanFindingsCommand:DC,DescribeImageSigningStatusCommand:g1,DescribePullThroughCacheRulesCommand:J0,DescribeRegistryCommand:y1,DescribeReplicationBackfillResultsCommand:j0,DescribeRepositoriesCommand:K0,DescribeRepositoryCreationTemplatesCommand:X0,GetAccountSettingCommand:E1,GetAuthorizationTokenCommand:C1,GetDownloadUrlForLayerCommand:I1,GetLifecyclePolicyCommand:S1,GetLifecyclePolicyPreviewCommand:kC,GetRegistryPolicyCommand:w1,GetRegistryScanningConfigurationCommand:x1,GetRepositoryPolicyCommand:b1,GetSigningConfigurationCommand:B1,InitiateLayerUploadCommand:R1,ListImageReferrersCommand:N1,ListImagesCommand:Z0,ListPullTimeUpdateExclusionsCommand:T1,ListReplicationBackfillsCommand:eB,ListTagsForResourceCommand:P1,PutAccountSettingCommand:_1,PutImageCommand:v1,PutImageScanningConfigurationCommand:Q1,PutImageTagMutabilityCommand:D1,PutLifecyclePolicyCommand:k1,PutRegistryPolicyCommand:O1,PutRegistryScanningConfigurationCommand:L1,PutReplicationConfigurationCommand:M1,PutSigningConfigurationCommand:F1,RegisterPullTimeUpdateExclusionCommand:U1,SetRepositoryPolicyCommand:q1,StartImageScanCommand:$1,StartLifecyclePolicyPreviewCommand:G1,StartReplicationBackfillCommand:H1,StopReplicationBackfillCommand:z1,TagResourceCommand:V1,UntagResourceCommand:W1,UpdateImageStorageClassCommand:Y1,UpdatePullThroughCacheRuleCommand:J1,UpdateRepositoryCreationTemplateCommand:j1,UploadLayerPartCommand:K1,ValidatePullThroughCacheRuleCommand:X1},Sjt={paginateDescribeImages:Q8e,paginateDescribeImageScanFindings:v8e,paginateDescribePullThroughCacheRules:D8e,paginateDescribeReplicationBackfillResults:k8e,paginateDescribeRepositories:O8e,paginateDescribeRepositoryCreationTemplates:L8e,paginateGetLifecyclePolicyPreview:M8e,paginateListImages:F8e,paginateListReplicationBackfills:U8e},wjt={waitUntilImageScanComplete:$8e,waitUntilLifecyclePolicyPreviewComplete:H8e},Z1=class extends ti{static{i(this,"ECR")}};wGt(Ijt,Z1,{paginators:Sjt,waiters:wjt});var xjt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},bjt={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},Bjt={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},Rjt={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},Njt={WILDCARD:"WILDCARD"},Tjt={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},Pjt={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"},_jt={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},vjt={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},Qjt={WILDCARD:"WILDCARD"},Djt={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},kjt={WILDCARD_MATCH:"WILDCARD_MATCH"},Ojt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Ljt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},Mjt={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},Fjt={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},Ujt={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"},qjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},$jt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Gjt={PREFIX_MATCH:"PREFIX_MATCH"},Hjt={COMPLETE:"COMPLETE",FAILED:"FAILED"},zjt={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",PREPARING:"PREPARING",STOPPED:"STOPPED",STOPPING:"STOPPING"},Vjt={ARCHIVE:"ARCHIVE"},Wjt={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},Yjt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},Jjt={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},jjt={BASIC:"BASIC",ENHANCED:"ENHANCED"},Kjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},Xjt={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},Zjt={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};C.ArtifactStatus=Xjt;C.ArtifactStatusFilter=Kjt;C.Attribute$=f3e;C.AuthorizationData$=m3e;C.AwsEcrContainerImageDetails$=h3e;C.BatchCheckLayerAvailability$=xWe;C.BatchCheckLayerAvailabilityCommand=e1;C.BatchCheckLayerAvailabilityRequest$=A3e;C.BatchCheckLayerAvailabilityResponse$=g3e;C.BatchDeleteImage$=bWe;C.BatchDeleteImageCommand=t1;C.BatchDeleteImageRequest$=y3e;C.BatchDeleteImageResponse$=E3e;C.BatchGetImage$=BWe;C.BatchGetImageCommand=r1;C.BatchGetImageRequest$=C3e;C.BatchGetImageResponse$=I3e;C.BatchGetRepositoryScanningConfiguration$=RWe;C.BatchGetRepositoryScanningConfigurationCommand=n1;C.BatchGetRepositoryScanningConfigurationRequest$=S3e;C.BatchGetRepositoryScanningConfigurationResponse$=w3e;C.BlockedByOrganizationPolicyException=zF;C.BlockedByOrganizationPolicyException$=Aze;C.CompleteLayerUpload$=NWe;C.CompleteLayerUploadCommand=s1;C.CompleteLayerUploadRequest$=x3e;C.CompleteLayerUploadResponse$=b3e;C.CreatePullThroughCacheRule$=TWe;C.CreatePullThroughCacheRuleCommand=o1;C.CreatePullThroughCacheRuleRequest$=B3e;C.CreatePullThroughCacheRuleResponse$=R3e;C.CreateRepository$=PWe;C.CreateRepositoryCommand=i1;C.CreateRepositoryCreationTemplate$=_We;C.CreateRepositoryCreationTemplateCommand=a1;C.CreateRepositoryCreationTemplateRequest$=N3e;C.CreateRepositoryCreationTemplateResponse$=T3e;C.CreateRepositoryRequest$=P3e;C.CreateRepositoryResponse$=_3e;C.CvssScore$=v3e;C.CvssScoreAdjustment$=Q3e;C.CvssScoreDetails$=D3e;C.DeleteLifecyclePolicy$=vWe;C.DeleteLifecyclePolicyCommand=c1;C.DeleteLifecyclePolicyRequest$=k3e;C.DeleteLifecyclePolicyResponse$=O3e;C.DeletePullThroughCacheRule$=QWe;C.DeletePullThroughCacheRuleCommand=l1;C.DeletePullThroughCacheRuleRequest$=L3e;C.DeletePullThroughCacheRuleResponse$=M3e;C.DeleteRegistryPolicy$=DWe;C.DeleteRegistryPolicyCommand=u1;C.DeleteRegistryPolicyRequest$=F3e;C.DeleteRegistryPolicyResponse$=U3e;C.DeleteRepository$=kWe;C.DeleteRepositoryCommand=d1;C.DeleteRepositoryCreationTemplate$=OWe;C.DeleteRepositoryCreationTemplateCommand=p1;C.DeleteRepositoryCreationTemplateRequest$=q3e;C.DeleteRepositoryCreationTemplateResponse$=$3e;C.DeleteRepositoryPolicy$=LWe;C.DeleteRepositoryPolicyCommand=f1;C.DeleteRepositoryPolicyRequest$=G3e;C.DeleteRepositoryPolicyResponse$=H3e;C.DeleteRepositoryRequest$=z3e;C.DeleteRepositoryResponse$=V3e;C.DeleteSigningConfiguration$=MWe;C.DeleteSigningConfigurationCommand=m1;C.DeleteSigningConfigurationRequest$=W3e;C.DeleteSigningConfigurationResponse$=Y3e;C.DeregisterPullTimeUpdateExclusion$=FWe;C.DeregisterPullTimeUpdateExclusionCommand=h1;C.DeregisterPullTimeUpdateExclusionRequest$=J3e;C.DeregisterPullTimeUpdateExclusionResponse$=j3e;C.DescribeImageReplicationStatus$=UWe;C.DescribeImageReplicationStatusCommand=A1;C.DescribeImageReplicationStatusRequest$=K3e;C.DescribeImageReplicationStatusResponse$=X3e;C.DescribeImageScanFindings$=$We;C.DescribeImageScanFindingsCommand=DC;C.DescribeImageScanFindingsRequest$=Z3e;C.DescribeImageScanFindingsResponse$=eVe;C.DescribeImageSigningStatus$=GWe;C.DescribeImageSigningStatusCommand=g1;C.DescribeImageSigningStatusRequest$=rVe;C.DescribeImageSigningStatusResponse$=nVe;C.DescribeImages$=qWe;C.DescribeImagesCommand=Y0;C.DescribeImagesFilter$=tVe;C.DescribeImagesRequest$=sVe;C.DescribeImagesResponse$=oVe;C.DescribePullThroughCacheRules$=HWe;C.DescribePullThroughCacheRulesCommand=J0;C.DescribePullThroughCacheRulesRequest$=iVe;C.DescribePullThroughCacheRulesResponse$=aVe;C.DescribeRegistry$=zWe;C.DescribeRegistryCommand=y1;C.DescribeRegistryRequest$=cVe;C.DescribeRegistryResponse$=lVe;C.DescribeReplicationBackfillResults$=VWe;C.DescribeReplicationBackfillResultsCommand=j0;C.DescribeReplicationBackfillResultsRequest$=uVe;C.DescribeReplicationBackfillResultsResponse$=dVe;C.DescribeRepositories$=WWe;C.DescribeRepositoriesCommand=K0;C.DescribeRepositoriesRequest$=pVe;C.DescribeRepositoriesResponse$=fVe;C.DescribeRepositoryCreationTemplates$=YWe;C.DescribeRepositoryCreationTemplatesCommand=X0;C.DescribeRepositoryCreationTemplatesRequest$=mVe;C.DescribeRepositoryCreationTemplatesResponse$=hVe;C.ECR=Z1;C.ECRClient=ti;C.ECRServiceException=fe;C.ECRServiceException$=hze;C.EmptyUploadException=uF;C.EmptyUploadException$=gze;C.EncryptionConfiguration$=Yte;C.EncryptionConfigurationForRepositoryCreationTemplate$=mU;C.EncryptionType=_jt;C.EnhancedImageScanFinding$=AVe;C.ExclusionAlreadyExistsException=VF;C.ExclusionAlreadyExistsException$=yze;C.ExclusionNotFoundException=vF;C.ExclusionNotFoundException$=Eze;C.FindingSeverity=Fjt;C.GetAccountSetting$=JWe;C.GetAccountSettingCommand=E1;C.GetAccountSettingRequest$=gVe;C.GetAccountSettingResponse$=yVe;C.GetAuthorizationToken$=jWe;C.GetAuthorizationTokenCommand=C1;C.GetAuthorizationTokenRequest$=EVe;C.GetAuthorizationTokenResponse$=CVe;C.GetDownloadUrlForLayer$=KWe;C.GetDownloadUrlForLayerCommand=I1;C.GetDownloadUrlForLayerRequest$=IVe;C.GetDownloadUrlForLayerResponse$=SVe;C.GetLifecyclePolicy$=XWe;C.GetLifecyclePolicyCommand=S1;C.GetLifecyclePolicyPreview$=ZWe;C.GetLifecyclePolicyPreviewCommand=kC;C.GetLifecyclePolicyPreviewRequest$=wVe;C.GetLifecyclePolicyPreviewResponse$=xVe;C.GetLifecyclePolicyRequest$=bVe;C.GetLifecyclePolicyResponse$=BVe;C.GetRegistryPolicy$=e8e;C.GetRegistryPolicyCommand=w1;C.GetRegistryPolicyRequest$=RVe;C.GetRegistryPolicyResponse$=NVe;C.GetRegistryScanningConfiguration$=t8e;C.GetRegistryScanningConfigurationCommand=x1;C.GetRegistryScanningConfigurationRequest$=TVe;C.GetRegistryScanningConfigurationResponse$=PVe;C.GetRepositoryPolicy$=r8e;C.GetRepositoryPolicyCommand=b1;C.GetRepositoryPolicyRequest$=_Ve;C.GetRepositoryPolicyResponse$=vVe;C.GetSigningConfiguration$=n8e;C.GetSigningConfigurationCommand=B1;C.GetSigningConfigurationRequest$=QVe;C.GetSigningConfigurationResponse$=DVe;C.Image$=Jte;C.ImageActionType=Wjt;C.ImageAlreadyExistsException=qF;C.ImageAlreadyExistsException$=Cze;C.ImageArchivedException=WF;C.ImageArchivedException$=Ize;C.ImageDetail$=kVe;C.ImageDigestDoesNotMatchException=$F;C.ImageDigestDoesNotMatchException$=Sze;C.ImageFailure$=OVe;C.ImageFailureCode=Bjt;C.ImageIdentifier$=_s;C.ImageNotFoundException=QF;C.ImageNotFoundException$=wze;C.ImageReferrer$=LVe;C.ImageReplicationStatus$=MVe;C.ImageScanFinding$=FVe;C.ImageScanFindings$=UVe;C.ImageScanFindingsSummary$=qVe;C.ImageScanStatus$=hU;C.ImageScanningConfiguration$=iB;C.ImageSigningStatus$=$Ve;C.ImageStatus=qjt;C.ImageStatusFilter=Ljt;C.ImageStorageClassUpdateNotSupportedException=XF;C.ImageStorageClassUpdateNotSupportedException$=xze;C.ImageTagAlreadyExistsException=GF;C.ImageTagAlreadyExistsException$=bze;C.ImageTagMutability=vjt;C.ImageTagMutabilityExclusionFilter$=GVe;C.ImageTagMutabilityExclusionFilterType=Qjt;C.InitiateLayerUpload$=s8e;C.InitiateLayerUploadCommand=R1;C.InitiateLayerUploadRequest$=HVe;C.InitiateLayerUploadResponse$=zVe;C.InvalidLayerException=dF;C.InvalidLayerException$=Bze;C.InvalidLayerPartException=ZF;C.InvalidLayerPartException$=Rze;C.InvalidParameterException=sF;C.InvalidParameterException$=Nze;C.InvalidTagParameterException=IF;C.InvalidTagParameterException$=Tze;C.KmsException=pF;C.KmsException$=Pze;C.Layer$=VVe;C.LayerAlreadyExistsException=fF;C.LayerAlreadyExistsException$=_ze;C.LayerAvailability=bjt;C.LayerFailure$=WVe;C.LayerFailureCode=xjt;C.LayerInaccessibleException=OF;C.LayerInaccessibleException$=vze;C.LayerPartTooSmallException=mF;C.LayerPartTooSmallException$=Qze;C.LayersNotFoundException=LF;C.LayersNotFoundException$=Dze;C.LifecyclePolicyNotFoundException=bF;C.LifecyclePolicyNotFoundException$=kze;C.LifecyclePolicyPreviewFilter$=YVe;C.LifecyclePolicyPreviewInProgressException=JF;C.LifecyclePolicyPreviewInProgressException$=Oze;C.LifecyclePolicyPreviewNotFoundException=FF;C.LifecyclePolicyPreviewNotFoundException$=Lze;C.LifecyclePolicyPreviewResult$=JVe;C.LifecyclePolicyPreviewStatus=Jjt;C.LifecyclePolicyPreviewSummary$=jVe;C.LifecyclePolicyRuleAction$=KVe;C.LifecyclePolicyStorageClass=Yjt;C.LifecyclePolicyTargetStorageClass=Vjt;C.LimitExceededException=aF;C.LimitExceededException$=Mze;C.ListImageReferrers$=o8e;C.ListImageReferrersCommand=N1;C.ListImageReferrersFilter$=XVe;C.ListImageReferrersRequest$=ZVe;C.ListImageReferrersResponse$=e4e;C.ListImages$=i8e;C.ListImagesCommand=Z0;C.ListImagesFilter$=t4e;C.ListImagesRequest$=r4e;C.ListImagesResponse$=n4e;C.ListPullTimeUpdateExclusions$=a8e;C.ListPullTimeUpdateExclusionsCommand=T1;C.ListPullTimeUpdateExclusionsRequest$=s4e;C.ListPullTimeUpdateExclusionsResponse$=o4e;C.ListReplicationBackfills$=c8e;C.ListReplicationBackfillsCommand=eB;C.ListReplicationBackfillsRequest$=i4e;C.ListReplicationBackfillsResponse$=a4e;C.ListTagsForResource$=l8e;C.ListTagsForResourceCommand=P1;C.ListTagsForResourceRequest$=c4e;C.ListTagsForResourceResponse$=l4e;C.PackageVulnerabilityDetails$=u4e;C.PullThroughCacheRule$=d4e;C.PullThroughCacheRuleAlreadyExistsException=AF;C.PullThroughCacheRuleAlreadyExistsException$=Fze;C.PullThroughCacheRuleNotFoundException=BF;C.PullThroughCacheRuleNotFoundException$=Uze;C.PutAccountSetting$=u8e;C.PutAccountSettingCommand=_1;C.PutAccountSettingRequest$=p4e;C.PutAccountSettingResponse$=f4e;C.PutImage$=d8e;C.PutImageCommand=v1;C.PutImageRequest$=m4e;C.PutImageResponse$=h4e;C.PutImageScanningConfiguration$=p8e;C.PutImageScanningConfigurationCommand=Q1;C.PutImageScanningConfigurationRequest$=A4e;C.PutImageScanningConfigurationResponse$=g4e;C.PutImageTagMutability$=f8e;C.PutImageTagMutabilityCommand=D1;C.PutImageTagMutabilityRequest$=y4e;C.PutImageTagMutabilityResponse$=E4e;C.PutLifecyclePolicy$=m8e;C.PutLifecyclePolicyCommand=k1;C.PutLifecyclePolicyRequest$=C4e;C.PutLifecyclePolicyResponse$=I4e;C.PutRegistryPolicy$=h8e;C.PutRegistryPolicyCommand=O1;C.PutRegistryPolicyRequest$=S4e;C.PutRegistryPolicyResponse$=w4e;C.PutRegistryScanningConfiguration$=A8e;C.PutRegistryScanningConfigurationCommand=L1;C.PutRegistryScanningConfigurationRequest$=x4e;C.PutRegistryScanningConfigurationResponse$=b4e;C.PutReplicationConfiguration$=g8e;C.PutReplicationConfigurationCommand=M1;C.PutReplicationConfigurationRequest$=B4e;C.PutReplicationConfigurationResponse$=R4e;C.PutSigningConfiguration$=y8e;C.PutSigningConfigurationCommand=F1;C.PutSigningConfigurationRequest$=N4e;C.PutSigningConfigurationResponse$=T4e;C.RCTAppliedFor=Djt;C.Recommendation$=P4e;C.ReferencedImagesNotFoundException=HF;C.ReferencedImagesNotFoundException$=qze;C.RegisterPullTimeUpdateExclusion$=E8e;C.RegisterPullTimeUpdateExclusionCommand=U1;C.RegisterPullTimeUpdateExclusionRequest$=_4e;C.RegisterPullTimeUpdateExclusionResponse$=v4e;C.RegistryPolicyNotFoundException=RF;C.RegistryPolicyNotFoundException$=$ze;C.RegistryScanningConfiguration$=jte;C.RegistryScanningRule$=Q4e;C.Remediation$=D4e;C.ReplicationBackfillInProgressException=jF;C.ReplicationBackfillInProgressException$=Gze;C.ReplicationBackfillInvalidStatusException=KF;C.ReplicationBackfillInvalidStatusException$=Hze;C.ReplicationBackfillNotFoundException=kF;C.ReplicationBackfillNotFoundException$=zze;C.ReplicationBackfillProgress$=Kte;C.ReplicationBackfillResult$=k4e;C.ReplicationBackfillResultStatus=Hjt;C.ReplicationBackfillStatus=zjt;C.ReplicationBackfillSummary$=O4e;C.ReplicationConfiguration$=AU;C.ReplicationDestination$=Zh;C.ReplicationRule$=L4e;C.ReplicationStatus=Ojt;C.Repository$=gU;C.RepositoryAlreadyExistsException=SF;C.RepositoryAlreadyExistsException$=Vze;C.RepositoryCreationTemplate$=aB;C.RepositoryFilter$=M4e;C.RepositoryFilterType=Gjt;C.RepositoryNotEmptyException=NF;C.RepositoryNotEmptyException$=Wze;C.RepositoryNotFoundException=oF;C.RepositoryNotFoundException$=Yze;C.RepositoryPolicyNotFoundException=PF;C.RepositoryPolicyNotFoundException$=Jze;C.RepositoryScanningConfiguration$=F4e;C.RepositoryScanningConfigurationFailure$=U4e;C.Resource$=q4e;C.ResourceDetails$=$4e;C.ScanFrequency=Tjt;C.ScanNotFoundException=DF;C.ScanNotFoundException$=jze;C.ScanStatus=Ujt;C.ScanType=jjt;C.ScanningConfigurationFailureCode=Rjt;C.ScanningRepositoryFilter$=G4e;C.ScanningRepositoryFilterType=Njt;C.ScoreDetails$=H4e;C.SecretNotFoundException=gF;C.SecretNotFoundException$=Kze;C.ServerException=iF;C.ServerException$=Xze;C.SetRepositoryPolicy$=C8e;C.SetRepositoryPolicyCommand=q1;C.SetRepositoryPolicyRequest$=z4e;C.SetRepositoryPolicyResponse$=V4e;C.SigningConfiguration$=cB;C.SigningConfigurationNotFoundException=_F;C.SigningConfigurationNotFoundException$=Zze;C.SigningRepositoryFilter$=W4e;C.SigningRepositoryFilterType=kjt;C.SigningRule$=Y4e;C.SigningStatus=$jt;C.StartImageScan$=I8e;C.StartImageScanCommand=$1;C.StartImageScanRequest$=J4e;C.StartImageScanResponse$=j4e;C.StartLifecyclePolicyPreview$=S8e;C.StartLifecyclePolicyPreviewCommand=G1;C.StartLifecyclePolicyPreviewRequest$=K4e;C.StartLifecyclePolicyPreviewResponse$=X4e;C.StartReplicationBackfill$=w8e;C.StartReplicationBackfillCommand=H1;C.StartReplicationBackfillRequest$=Z4e;C.StartReplicationBackfillResponse$=eWe;C.StopReplicationBackfill$=x8e;C.StopReplicationBackfillCommand=z1;C.StopReplicationBackfillRequest$=tWe;C.StopReplicationBackfillResponse$=rWe;C.SubjectIdentifier$=nWe;C.Tag$=sWe;C.TagResource$=b8e;C.TagResourceCommand=V1;C.TagResourceRequest$=oWe;C.TagResourceResponse$=iWe;C.TagStatus=Mjt;C.TargetStorageClass=Zjt;C.TemplateAlreadyExistsException=xF;C.TemplateAlreadyExistsException$=e3e;C.TemplateNotFoundException=TF;C.TemplateNotFoundException$=t3e;C.TooManyTagsException=wF;C.TooManyTagsException$=r3e;C.TransitioningImageTotalCount$=aWe;C.UnableToAccessSecretException=yF;C.UnableToAccessSecretException$=n3e;C.UnableToDecryptSecretValueException=EF;C.UnableToDecryptSecretValueException$=s3e;C.UnableToGetUpstreamImageException=cF;C.UnableToGetUpstreamImageException$=o3e;C.UnableToGetUpstreamLayerException=MF;C.UnableToGetUpstreamLayerException$=i3e;C.UnableToListUpstreamImageReferrersException=UF;C.UnableToListUpstreamImageReferrersException$=a3e;C.UnsupportedImageTypeException=YF;C.UnsupportedImageTypeException$=c3e;C.UnsupportedUpstreamRegistryException=CF;C.UnsupportedUpstreamRegistryException$=l3e;C.UntagResource$=B8e;C.UntagResourceCommand=W1;C.UntagResourceRequest$=cWe;C.UntagResourceResponse$=lWe;C.UpdateImageStorageClass$=R8e;C.UpdateImageStorageClassCommand=Y1;C.UpdateImageStorageClassRequest$=uWe;C.UpdateImageStorageClassResponse$=dWe;C.UpdatePullThroughCacheRule$=N8e;C.UpdatePullThroughCacheRuleCommand=J1;C.UpdatePullThroughCacheRuleRequest$=pWe;C.UpdatePullThroughCacheRuleResponse$=fWe;C.UpdateRepositoryCreationTemplate$=T8e;C.UpdateRepositoryCreationTemplateCommand=j1;C.UpdateRepositoryCreationTemplateRequest$=mWe;C.UpdateRepositoryCreationTemplateResponse$=hWe;C.UploadLayerPart$=P8e;C.UploadLayerPartCommand=K1;C.UploadLayerPartRequest$=AWe;C.UploadLayerPartResponse$=gWe;C.UploadNotFoundException=hF;C.UploadNotFoundException$=u3e;C.UpstreamRegistry=Pjt;C.ValidatePullThroughCacheRule$=_8e;C.ValidatePullThroughCacheRuleCommand=X1;C.ValidatePullThroughCacheRuleRequest$=yWe;C.ValidatePullThroughCacheRuleResponse$=EWe;C.ValidationException=lF;C.ValidationException$=d3e;C.VulnerablePackage$=CWe;C.errorTypeRegistries=p3e;C.paginateDescribeImageScanFindings=v8e;C.paginateDescribeImages=Q8e;C.paginateDescribePullThroughCacheRules=D8e;C.paginateDescribeReplicationBackfillResults=k8e;C.paginateDescribeRepositories=O8e;C.paginateDescribeRepositoryCreationTemplates=L8e;C.paginateGetLifecyclePolicyPreview=M8e;C.paginateListImages=F8e;C.paginateListReplicationBackfills=U8e;C.waitForImageScanComplete=Ejt;C.waitForLifecyclePolicyPreviewComplete=Cjt;C.waitUntilImageScanComplete=$8e;C.waitUntilLifecyclePolicyPreviewComplete=H8e});var wje=S(B=>{var{awsEndpointFunctions:e5t,emitWarningIfUnsupportedVersion:t5t,createDefaultUserAgentProvider:r5t,NODE_APP_ID_CONFIG_OPTIONS:n5t,getAwsRegionExtensionConfiguration:s5t,resolveAwsRegionExtensionConfiguration:o5t,resolveUserAgentConfig:i5t,resolveHostHeaderConfig:a5t,getUserAgentPlugin:c5t,getHostHeaderPlugin:l5t,getLoggerPlugin:u5t,getRecursionDetectionPlugin:d5t}=(Et(),Z(Fa)),{getHttpAuthSchemeEndpointRuleSetPlugin:p5t,DefaultIdentityProviderConfig:f5t,getHttpSigningPlugin:m5t,createPaginator:u2}=(Rs(),Z(pX)),{normalizeProvider:j8e,getSmithyContext:h5t,ServiceException:A5t,NoOpLogger:g5t,emitWarningIfUnsupportedVersion:y5t,loadConfigsForDefaultMode:E5t,getDefaultExtensionConfiguration:C5t,resolveDefaultRuntimeConfig:I5t,Client:K8e,makeBuilder:S5t,createAggregatedClient:w5t}=(we(),Z(zy)),{Command:x5t}=(we(),Z(zy));B.$Command=x5t;B.__Client=K8e;var{resolveDefaultsModeConfig:b5t,loadConfig:tA,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:B5t,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:R5t,NODE_REGION_CONFIG_OPTIONS:N5t,NODE_REGION_CONFIG_FILE_OPTIONS:T5t,resolveRegionConfig:P5t}=(bt(),Z(Ui)),{BinaryDecisionDiagram:_5t,EndpointCache:v5t,decideEndpoint:Q5t,customEndpointFunctions:D5t,resolveEndpointConfig:k5t,getEndpointPlugin:O5t}=(Dt(),Z(_9)),{parseUrl:L5t,getHttpHandlerExtensionConfiguration:M5t,resolveHttpHandlerRuntimeConfig:F5t,getContentLengthPlugin:U5t}=(Ne(),Z(gh)),{DEFAULT_RETRY_MODE:q5t,NODE_RETRY_MODE_CONFIG_OPTIONS:$5t,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:G5t,resolveRetryConfig:H5t,getRetryPlugin:z5t}=(Xo(),Z(jK)),{TypeRegistry:X8e,getSchemaSerdePlugin:V5t}=(He(),Z(u6)),{resolveAwsSdkSigV4Config:W5t,AwsSdkSigV4Signer:Y5t,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:J5t}=(rs(),Z(_O)),{defaultProvider:j5t}=Tte(),{toUtf8:K5t,fromUtf8:X5t,toBase64:Z5t,fromBase64:e6t,calculateBodyLength:t6t}=(xe(),Z(ph)),{streamCollector:r6t,NodeHttpHandler:n6t}=Ju(),{AwsJson1_1Protocol:s6t}=(Dh(),Z(hee)),{Sha256:o6t}=(Gu(),Z(rK)),i6t=i(async(t,e,r)=>({operation:h5t(e).operation,region:await j8e(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");function a6t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(a6t,"createAwsAuthSigv4HttpAuthOption");var c6t=i(t=>{let e=[];switch(t.operation){default:e.push(a6t(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider"),l6t=i(t=>{let e=W5t(t);return Object.assign(e,{authSchemePreference:j8e(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),u6t=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),d6t={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},p6t="3.1160.0",f6t={version:p6t},lB="ref",rA=-1,yU=!0,V8e="isSet",Z8e="PartitionResult",EU="booleanEquals",Xte="getAttr",W8e={[lB]:"Endpoint"},Zte={[lB]:Z8e},zC={},Y8e=[{[lB]:"Region"}],J8e={conditions:[[V8e,[W8e]],[V8e,Y8e],["aws.partition",Y8e,Z8e],[EU,[{[lB]:"UseFIPS"},yU]],[EU,[{[lB]:"UseDualStack"},yU]],[EU,[{fn:Xte,argv:[Zte,"supportsDualStack"]},yU]],[EU,[{fn:Xte,argv:[Zte,"supportsFIPS"]},yU]],["stringEquals",[{fn:Xte,argv:[Zte,"name"]},"aws"]]],results:[[rA],[rA,"Invalid Configuration: FIPS and custom endpoint are not supported"],[rA,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[W8e,zC],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",zC],[rA,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",zC],[rA,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",zC],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",zC],[rA,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",zC],[rA,"Invalid Configuration: Missing Region"]]},m6t=2,mo=1e8,h6t=new Int32Array([-1,1,-1,0,13,3,1,4,mo+12,2,5,mo+12,3,9,6,4,7,mo+11,5,8,mo+10,7,mo+8,mo+9,4,11,10,6,mo+6,mo+7,5,12,mo+5,6,mo+4,mo+5,3,mo+1,14,4,mo+2,mo+3]),A6t=_5t.from(h6t,m6t,J8e.conditions,J8e.results),g6t=new v5t({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),y6t=i((t,e={})=>g6t.get(t,()=>Q5t(A6t,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");D5t.aws=e5t;var Bt=class t extends A5t{static{i(this,"ECRPUBLICServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic#ECRPUBLICServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},CU=class t extends Bt{static{i(this,"InvalidParameterException")}static shapeId="com.amazonaws.ecrpublic#InvalidParameterException";name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},IU=class t extends Bt{static{i(this,"RegistryNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RegistryNotFoundException";name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},SU=class t extends Bt{static{i(this,"RepositoryNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryNotFoundException";name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},wU=class t extends Bt{static{i(this,"ServerException")}static shapeId="com.amazonaws.ecrpublic#ServerException";name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e}),Object.setPrototypeOf(this,t.prototype)}},xU=class t extends Bt{static{i(this,"UnsupportedCommandException")}static shapeId="com.amazonaws.ecrpublic#UnsupportedCommandException";name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},bU=class t extends Bt{static{i(this,"EmptyUploadException")}static shapeId="com.amazonaws.ecrpublic#EmptyUploadException";name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},BU=class t extends Bt{static{i(this,"InvalidLayerException")}static shapeId="com.amazonaws.ecrpublic#InvalidLayerException";name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},RU=class t extends Bt{static{i(this,"LayerAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#LayerAlreadyExistsException";name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},NU=class t extends Bt{static{i(this,"LayerPartTooSmallException")}static shapeId="com.amazonaws.ecrpublic#LayerPartTooSmallException";name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},TU=class t extends Bt{static{i(this,"UploadNotFoundException")}static shapeId="com.amazonaws.ecrpublic#UploadNotFoundException";name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},PU=class t extends Bt{static{i(this,"InvalidTagParameterException")}static shapeId="com.amazonaws.ecrpublic#InvalidTagParameterException";name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},_U=class t extends Bt{static{i(this,"LimitExceededException")}static shapeId="com.amazonaws.ecrpublic#LimitExceededException";name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},vU=class t extends Bt{static{i(this,"RepositoryAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#RepositoryAlreadyExistsException";name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},QU=class t extends Bt{static{i(this,"TooManyTagsException")}static shapeId="com.amazonaws.ecrpublic#TooManyTagsException";name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},DU=class t extends Bt{static{i(this,"RepositoryNotEmptyException")}static shapeId="com.amazonaws.ecrpublic#RepositoryNotEmptyException";name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},kU=class t extends Bt{static{i(this,"RepositoryPolicyNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException";name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},OU=class t extends Bt{static{i(this,"ImageNotFoundException")}static shapeId="com.amazonaws.ecrpublic#ImageNotFoundException";name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},LU=class t extends Bt{static{i(this,"RepositoryCatalogDataNotFoundException")}static shapeId="com.amazonaws.ecrpublic#RepositoryCatalogDataNotFoundException";name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},MU=class t extends Bt{static{i(this,"ImageAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#ImageAlreadyExistsException";name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},FU=class t extends Bt{static{i(this,"ImageDigestDoesNotMatchException")}static shapeId="com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException";name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},UU=class t extends Bt{static{i(this,"ImageTagAlreadyExistsException")}static shapeId="com.amazonaws.ecrpublic#ImageTagAlreadyExistsException";name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},qU=class t extends Bt{static{i(this,"InvalidLayerPartException")}static shapeId="com.amazonaws.ecrpublic#InvalidLayerPartException";name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype),this.registryId=e.registryId,this.repositoryName=e.repositoryName,this.uploadId=e.uploadId,this.lastValidByteReceived=e.lastValidByteReceived}},$U=class t extends Bt{static{i(this,"LayersNotFoundException")}static shapeId="com.amazonaws.ecrpublic#LayersNotFoundException";name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},GU=class t extends Bt{static{i(this,"ReferencedImagesNotFoundException")}static shapeId="com.amazonaws.ecrpublic#ReferencedImagesNotFoundException";name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,t.prototype)}},E6t="AuthorizationData",C6t="BatchCheckLayerAvailability",I6t="BatchCheckLayerAvailabilityRequest",S6t="BatchCheckLayerAvailabilityResponse",w6t="BatchDeleteImage",x6t="BatchDeleteImageRequest",b6t="BatchDeleteImageResponse",B6t="CompleteLayerUpload",R6t="CompleteLayerUploadRequest",N6t="CompleteLayerUploadResponse",T6t="CreateRepository",P6t="CreateRepositoryRequest",_6t="CreateRepositoryResponse",v6t="DescribeImages",Q6t="DescribeImagesRequest",D6t="DescribeImagesResponse",k6t="DescribeImageTags",O6t="DescribeImageTagsRequest",L6t="DescribeImageTagsResponse",M6t="DeleteRepository",F6t="DeleteRepositoryPolicy",U6t="DeleteRepositoryPolicyRequest",q6t="DeleteRepositoryPolicyResponse",$6t="DeleteRepositoryRequest",G6t="DeleteRepositoryResponse",H6t="DescribeRegistriesRequest",z6t="DescribeRegistriesResponse",V6t="DescribeRepositoriesRequest",W6t="DescribeRepositoriesResponse",Y6t="DescribeRegistries",J6t="DescribeRepositories",j6t="EmptyUploadException",K6t="GetAuthorizationToken",X6t="GetAuthorizationTokenRequest",Z6t="GetAuthorizationTokenResponse",e9t="GetRegistryCatalogData",t9t="GetRegistryCatalogDataRequest",r9t="GetRegistryCatalogDataResponse",n9t="GetRepositoryCatalogDataRequest",s9t="GetRepositoryCatalogDataResponse",o9t="GetRepositoryCatalogData",i9t="GetRepositoryPolicy",a9t="GetRepositoryPolicyRequest",c9t="GetRepositoryPolicyResponse",l9t="Image",u9t="ImageAlreadyExistsException",d9t="ImageDetail",p9t="ImageDigestDoesNotMatchException",f9t="ImageDetailList",m9t="ImageFailure",h9t="ImageFailureList",A9t="ImageIdentifier",g9t="ImageIdentifierList",y9t="InvalidLayerException",E9t="InvalidLayerPartException",C9t="InitiateLayerUpload",I9t="InitiateLayerUploadRequest",S9t="InitiateLayerUploadResponse",w9t="ImageNotFoundException",x9t="InvalidParameterException",b9t="ImageTagAlreadyExistsException",B9t="ImageTagDetail",R9t="ImageTagDetailList",N9t="InvalidTagParameterException",T9t="Key",P9t="Layer",_9t="LayerAlreadyExistsException",v9t="LimitExceededException",Q9t="LayerFailure",D9t="LayerFailureList",k9t="LayerList",O9t="LayersNotFoundException",L9t="LayerPartTooSmallException",M9t="ListTagsForResource",F9t="ListTagsForResourceRequest",U9t="ListTagsForResourceResponse",q9t="PutImage",$9t="PutImageRequest",G9t="PutImageResponse",H9t="PutRegistryCatalogData",z9t="PutRegistryCatalogDataRequest",V9t="PutRegistryCatalogDataResponse",W9t="PutRepositoryCatalogDataRequest",Y9t="PutRepositoryCatalogDataResponse",J9t="PutRepositoryCatalogData",j9t="Registry",K9t="RegistryAlias",X9t="RepositoryAlreadyExistsException",Z9t="RegistryAliasList",eKt="RegistryCatalogData",tKt="RepositoryCatalogDataInput",rKt="RepositoryCatalogDataNotFoundException",nKt="RepositoryCatalogData",sKt="ReferencedImageDetail",oKt="ReferencedImagesNotFoundException",iKt="RegistryList",aKt="RepositoryList",cKt="RepositoryNotEmptyException",lKt="RegistryNotFoundException",uKt="RepositoryNotFoundException",dKt="RepositoryPolicyNotFoundException",pKt="Repository",fKt="ServerException",mKt="SetRepositoryPolicy",hKt="SetRepositoryPolicyRequest",AKt="SetRepositoryPolicyResponse",gKt="Tag",yKt="TagList",EKt="TooManyTagsException",CKt="TagResource",IKt="TagResourceRequest",SKt="TagResourceResponse",wKt="UnsupportedCommandException",xKt="UploadLayerPart",bKt="UploadLayerPartRequest",BKt="UploadLayerPartResponse",RKt="UploadNotFoundException",NKt="UntagResource",TKt="UntagResourceRequest",PKt="UntagResourceResponse",_Kt="Value",vKt="aliases",QKt="authorizationData",eYe="artifactMediaType",DKt="authorizationToken",tYe="aboutText",rYe="architectures",sr="client",nYe="createdAt",mB="catalogData",sYe="description",oYe="displayName",kKt="defaultRegistryAlias",Xt="error",OKt="expiresAt",iYe="failures",aYe="failureCode",cYe="failureReason",lYe="force",LKt="image",MKt="imageDetails",d2="imageDigest",FKt="imageDetail",ere="imageIds",uYe="imageId",dYe="imageManifest",p2="imageManifestMediaType",pYe="imagePushedAt",fYe="imageSizeInBytes",UKt="imageTags",qKt="imageTagDetails",tre="imageTag",$Kt="layers",GKt="layerAvailability",HKt="lastByteReceived",mYe="layerDigests",rre="layerDigest",zKt="logoImageBlob",VKt="layerPartBlob",WKt="layerSize",YKt="logoUrl",JKt="lastValidByteReceived",Zt="message",jKt="marketplaceCertified",f2="maxResults",KKt="mediaType",XKt="name",pf="nextToken",hYe="operatingSystems",ZKt="partFirstByte",eXt="partLastByte",tXt="primaryRegistryAlias",rXt="partSize",m2="policyText",AYe="repository",nre="resourceArn",nXt="registryArn",sXt="repositoryArn",gYe="registryCatalogData",$t="registryId",er="repositoryName",oXt="repositoryNames",iXt="registryUri",aXt="repositoryUri",cXt="registries",lXt="repositories",yYe="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",uXt="server",dXt="status",sre="tags",pXt="tagKeys",VC="uploadId",EYe="usageText",fXt="verified",P="com.amazonaws.ecrpublic",CYe=new X8e(yYe),IYe=[-3,yYe,"ECRPUBLICServiceException",0,[],[]];CYe.registerError(IYe,Bt);var Gt=new X8e(P),SYe=[-3,P,j6t,{[Xt]:sr},[Zt],[0]];Gt.registerError(SYe,bU);var wYe=[-3,P,u9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(wYe,MU);var xYe=[-3,P,p9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(xYe,FU);var bYe=[-3,P,w9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(bYe,OU);var BYe=[-3,P,b9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(BYe,UU);var RYe=[-3,P,y9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(RYe,BU);var NYe=[-3,P,E9t,{[Xt]:sr},[$t,er,VC,JKt,Zt],[0,0,0,1,0]];Gt.registerError(NYe,qU);var TYe=[-3,P,x9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(TYe,CU);var PYe=[-3,P,N9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(PYe,PU);var _Ye=[-3,P,_9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(_Ye,RU);var vYe=[-3,P,L9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(vYe,NU);var QYe=[-3,P,O9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(QYe,$U);var DYe=[-3,P,v9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(DYe,_U);var kYe=[-3,P,oKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(kYe,GU);var OYe=[-3,P,lKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(OYe,IU);var LYe=[-3,P,X9t,{[Xt]:sr},[Zt],[0]];Gt.registerError(LYe,vU);var MYe=[-3,P,rKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(MYe,LU);var FYe=[-3,P,cKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(FYe,DU);var UYe=[-3,P,uKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(UYe,SU);var qYe=[-3,P,dKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(qYe,kU);var $Ye=[-3,P,fKt,{[Xt]:uXt},[Zt],[0]];Gt.registerError($Ye,wU);var GYe=[-3,P,EKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(GYe,QU);var HYe=[-3,P,wKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(HYe,xU);var zYe=[-3,P,RKt,{[Xt]:sr},[Zt],[0]];Gt.registerError(zYe,TU);var VYe=[CYe,Gt],WYe=[3,P,E6t,0,[DKt,OKt],[0,4]],YYe=[3,P,I6t,0,[er,mYe,$t],[0,64,0],2],JYe=[3,P,S6t,0,[$Kt,iYe],[()=>yXt,()=>gXt]],jYe=[3,P,x6t,0,[er,ere,$t],[0,()=>are,0],2],KYe=[3,P,b6t,0,[ere,iYe],[()=>are,()=>hXt]],XYe=[3,P,R6t,0,[er,VC,mYe,$t],[0,0,64,0],3],ZYe=[3,P,N6t,0,[$t,er,VC,rre],[0,0,0,0]],eJe=[3,P,P6t,0,[er,mB,sre],[0,()=>ire,()=>cre],1],tJe=[3,P,_6t,0,[AYe,mB],[()=>A2,()=>g2]],rJe=[3,P,U6t,0,[er,$t],[0,0],1],nJe=[3,P,q6t,0,[$t,er,m2],[0,0,0]],sJe=[3,P,$6t,0,[er,$t,lYe],[0,0,2],1],oJe=[3,P,G6t,0,[AYe],[()=>A2]],iJe=[3,P,Q6t,0,[er,$t,ere,pf,f2],[0,0,()=>are,0,1],1],aJe=[3,P,D6t,0,[MKt,pf],[()=>mXt,0]],cJe=[3,P,O6t,0,[er,$t,pf,f2],[0,0,0,1],1],lJe=[3,P,L6t,0,[qKt,pf],[()=>AXt,0]],uJe=[3,P,H6t,0,[pf,f2],[0,1]],dJe=[3,P,z6t,0,[cXt,pf],[()=>CXt,0],1],pJe=[3,P,V6t,0,[$t,oXt,pf,f2],[0,64,0,1]],fJe=[3,P,W6t,0,[lXt,pf],[()=>IXt,0]],mJe=[3,P,X6t,0,[],[]],hJe=[3,P,Z6t,0,[QKt],[()=>WYe]],AJe=[3,P,t9t,0,[],[]],gJe=[3,P,r9t,0,[gYe],[()=>ore],1],yJe=[3,P,n9t,0,[er,$t],[0,0],1],EJe=[3,P,s9t,0,[mB],[()=>g2]],CJe=[3,P,a9t,0,[er,$t],[0,0],1],IJe=[3,P,c9t,0,[$t,er,m2],[0,0,0]],SJe=[3,P,l9t,0,[$t,er,uYe,dYe,p2],[0,0,()=>h2,0,0]],wJe=[3,P,d9t,0,[$t,er,d2,UKt,fYe,pYe,p2,eYe],[0,0,0,64,1,4,0,0]],xJe=[3,P,m9t,0,[uYe,aYe,cYe],[()=>h2,0,0]],h2=[3,P,A9t,0,[d2,tre],[0,0]],bJe=[3,P,B9t,0,[tre,nYe,FKt],[0,4,()=>MJe]],BJe=[3,P,I9t,0,[er,$t],[0,0],1],RJe=[3,P,S9t,0,[VC,rXt],[0,1]],NJe=[3,P,P9t,0,[rre,GKt,WKt,KKt],[0,0,1,0]],TJe=[3,P,Q9t,0,[rre,aYe,cYe],[0,0,0]],PJe=[3,P,F9t,0,[nre],[0],1],_Je=[3,P,U9t,0,[sre],[()=>cre]],vJe=[3,P,$9t,0,[er,dYe,$t,p2,tre,d2],[0,0,0,0,0,0],2],QJe=[3,P,G9t,0,[LKt],[()=>SJe]],DJe=[3,P,z9t,0,[oYe],[0]],kJe=[3,P,V9t,0,[gYe],[()=>ore],1],OJe=[3,P,W9t,0,[er,mB,$t],[0,()=>ire,0],2],LJe=[3,P,Y9t,0,[mB],[()=>g2]],MJe=[3,P,sKt,0,[d2,fYe,pYe,p2,eYe],[0,1,4,0,0]],FJe=[3,P,j9t,0,[$t,nXt,iXt,fXt,vKt],[0,0,0,2,()=>EXt],5],UJe=[3,P,K9t,0,[XKt,dXt,tXt,kKt],[0,0,2,2],4],ore=[3,P,eKt,0,[oYe],[0]],A2=[3,P,pKt,0,[sXt,$t,er,aXt,nYe],[0,0,0,0,4]],g2=[3,P,nKt,0,[sYe,rYe,hYe,YKt,tYe,EYe,jKt],[0,64,64,0,0,0,2]],ire=[3,P,tKt,0,[sYe,rYe,hYe,zKt,tYe,EYe],[0,64,64,21,0,0]],qJe=[3,P,hKt,0,[er,m2,$t,lYe],[0,0,0,2],2],$Je=[3,P,AKt,0,[$t,er,m2],[0,0,0]],GJe=[3,P,gKt,0,[T9t,_Kt],[0,0]],HJe=[3,P,IKt,0,[nre,sre],[0,()=>cre],2],zJe=[3,P,SKt,0,[],[]],VJe=[3,P,TKt,0,[nre,pXt],[0,64],2],WJe=[3,P,PKt,0,[],[]],YJe=[3,P,bKt,0,[er,VC,ZKt,eXt,VKt,$t],[0,0,1,1,21,0],5],JJe=[3,P,BKt,0,[$t,er,VC,HKt],[0,0,0,1]],mXt=[1,P,f9t,0,()=>wJe],hXt=[1,P,h9t,0,()=>xJe],are=[1,P,g9t,0,()=>h2],AXt=[1,P,R9t,0,()=>bJe],gXt=[1,P,D9t,0,()=>TJe],yXt=[1,P,k9t,0,()=>NJe],EXt=[1,P,Z9t,0,()=>UJe],CXt=[1,P,iKt,0,()=>FJe],IXt=[1,P,aKt,0,()=>A2],cre=[1,P,yKt,0,()=>GJe],jJe=[9,P,C6t,0,()=>YYe,()=>JYe],KJe=[9,P,w6t,0,()=>jYe,()=>KYe],XJe=[9,P,B6t,0,()=>XYe,()=>ZYe],ZJe=[9,P,T6t,0,()=>eJe,()=>tJe],eje=[9,P,M6t,0,()=>sJe,()=>oJe],tje=[9,P,F6t,0,()=>rJe,()=>nJe],rje=[9,P,v6t,0,()=>iJe,()=>aJe],nje=[9,P,k6t,0,()=>cJe,()=>lJe],sje=[9,P,Y6t,0,()=>uJe,()=>dJe],oje=[9,P,J6t,0,()=>pJe,()=>fJe],ije=[9,P,K6t,0,()=>mJe,()=>hJe],aje=[9,P,e9t,0,()=>AJe,()=>gJe],cje=[9,P,o9t,0,()=>yJe,()=>EJe],lje=[9,P,i9t,0,()=>CJe,()=>IJe],uje=[9,P,C9t,0,()=>BJe,()=>RJe],dje=[9,P,M9t,0,()=>PJe,()=>_Je],pje=[9,P,q9t,0,()=>vJe,()=>QJe],fje=[9,P,H9t,0,()=>DJe,()=>kJe],mje=[9,P,J9t,0,()=>OJe,()=>LJe],hje=[9,P,mKt,0,()=>qJe,()=>$Je],Aje=[9,P,CKt,0,()=>HJe,()=>zJe],gje=[9,P,NKt,0,()=>VJe,()=>WJe],yje=[9,P,xKt,0,()=>YJe,()=>JJe],SXt=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??e6t,base64Encoder:t?.base64Encoder??Z5t,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??y6t,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??c6t,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Y5t}],logger:t?.logger??new g5t,protocol:t?.protocol??s6t,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:VYe,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",sha256:t?.sha256??o6t,urlParser:t?.urlParser??L5t,utf8Decoder:t?.utf8Decoder??X5t,utf8Encoder:t?.utf8Encoder??K5t}),"getRuntimeConfig$1"),wXt=i(t=>{y5t(process.version);let e=b5t(t),r=i(()=>e().then(E5t),"defaultConfigProvider"),n=SXt(t);t5t(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??tA(J5t,s),bodyLengthChecker:t?.bodyLengthChecker??t6t,credentialDefaultProvider:t?.credentialDefaultProvider??j5t,defaultUserAgentProvider:t?.defaultUserAgentProvider??r5t({serviceId:n.serviceId,clientVersion:f6t.version}),maxAttempts:t?.maxAttempts??tA(G5t,t),region:t?.region??tA(N5t,{...T5t,...s}),requestHandler:n6t.create(t?.requestHandler??r),retryMode:t?.retryMode??tA({...$5t,default:i(async()=>(await r()).retryMode||q5t,"default")},t),streamCollector:t?.streamCollector??r6t,useDualstackEndpoint:t?.useDualstackEndpoint??tA(R5t,s),useFipsEndpoint:t?.useFipsEndpoint??tA(B5t,s),userAgentAppId:t?.userAgentAppId??tA(n5t,s)}},"getRuntimeConfig"),xXt=i(t=>{let e=t.httpAuthSchemes,r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(s){let o=e.findIndex(a=>a.schemeId===s.schemeId);o===-1?e.push(s):e.splice(o,1,s)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}},"getHttpAuthExtensionConfiguration"),bXt=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),BXt=i((t,e)=>{let r=Object.assign(s5t(t),C5t(t),M5t(t),xXt(t));return e.forEach(n=>n.configure(r)),Object.assign(t,o5t(r),I5t(r),F5t(r),bXt(r))},"resolveRuntimeExtensions"),df=class extends K8e{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=wXt(e||{});super(r),this.initConfig=r;let n=u6t(r),s=i5t(n),o=H5t(s),a=P5t(o),c=a5t(a),l=k5t(c),u=l6t(l),d=BXt(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(V5t(this.config)),this.middlewareStack.use(c5t(this.config)),this.middlewareStack.use(z5t(this.config)),this.middlewareStack.use(U5t(this.config)),this.middlewareStack.use(l5t(this.config)),this.middlewareStack.use(u5t(this.config)),this.middlewareStack.use(d5t(this.config)),this.middlewareStack.use(p5t(this.config,{httpAuthSchemeParametersProvider:i6t,identityProviderConfigProvider:i(async p=>new f5t({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(m5t(this.config))}destroy(){super.destroy()}},or=S5t(d6t,"SpencerFrontendService","ECRPUBLICClient",O5t),ir={},ar=i((t,e,r,n)=>[],"_mw0"),HU=class extends or(ir,ar,"BatchCheckLayerAvailability",jJe){static{i(this,"BatchCheckLayerAvailabilityCommand")}},zU=class extends or(ir,ar,"BatchDeleteImage",KJe){static{i(this,"BatchDeleteImageCommand")}},VU=class extends or(ir,ar,"CompleteLayerUpload",XJe){static{i(this,"CompleteLayerUploadCommand")}},WU=class extends or(ir,ar,"CreateRepository",ZJe){static{i(this,"CreateRepositoryCommand")}},YU=class extends or(ir,ar,"DeleteRepository",eje){static{i(this,"DeleteRepositoryCommand")}},JU=class extends or(ir,ar,"DeleteRepositoryPolicy",tje){static{i(this,"DeleteRepositoryPolicyCommand")}},uB=class extends or(ir,ar,"DescribeImages",rje){static{i(this,"DescribeImagesCommand")}},dB=class extends or(ir,ar,"DescribeImageTags",nje){static{i(this,"DescribeImageTagsCommand")}},pB=class extends or(ir,ar,"DescribeRegistries",sje){static{i(this,"DescribeRegistriesCommand")}},fB=class extends or(ir,ar,"DescribeRepositories",oje){static{i(this,"DescribeRepositoriesCommand")}},jU=class extends or(ir,ar,"GetAuthorizationToken",ije){static{i(this,"GetAuthorizationTokenCommand")}},KU=class extends or(ir,ar,"GetRegistryCatalogData",aje){static{i(this,"GetRegistryCatalogDataCommand")}},XU=class extends or(ir,ar,"GetRepositoryCatalogData",cje){static{i(this,"GetRepositoryCatalogDataCommand")}},ZU=class extends or(ir,ar,"GetRepositoryPolicy",lje){static{i(this,"GetRepositoryPolicyCommand")}},e2=class extends or(ir,ar,"InitiateLayerUpload",uje){static{i(this,"InitiateLayerUploadCommand")}},t2=class extends or(ir,ar,"ListTagsForResource",dje){static{i(this,"ListTagsForResourceCommand")}},r2=class extends or(ir,ar,"PutImage",pje){static{i(this,"PutImageCommand")}},n2=class extends or(ir,ar,"PutRegistryCatalogData",fje){static{i(this,"PutRegistryCatalogDataCommand")}},s2=class extends or(ir,ar,"PutRepositoryCatalogData",mje){static{i(this,"PutRepositoryCatalogDataCommand")}},o2=class extends or(ir,ar,"SetRepositoryPolicy",hje){static{i(this,"SetRepositoryPolicyCommand")}},i2=class extends or(ir,ar,"TagResource",Aje){static{i(this,"TagResourceCommand")}},a2=class extends or(ir,ar,"UntagResource",gje){static{i(this,"UntagResourceCommand")}},c2=class extends or(ir,ar,"UploadLayerPart",yje){static{i(this,"UploadLayerPartCommand")}},Eje=u2(df,uB,"nextToken","nextToken","maxResults"),Cje=u2(df,dB,"nextToken","nextToken","maxResults"),Ije=u2(df,pB,"nextToken","nextToken","maxResults"),Sje=u2(df,fB,"nextToken","nextToken","maxResults"),RXt={BatchCheckLayerAvailabilityCommand:HU,BatchDeleteImageCommand:zU,CompleteLayerUploadCommand:VU,CreateRepositoryCommand:WU,DeleteRepositoryCommand:YU,DeleteRepositoryPolicyCommand:JU,DescribeImagesCommand:uB,DescribeImageTagsCommand:dB,DescribeRegistriesCommand:pB,DescribeRepositoriesCommand:fB,GetAuthorizationTokenCommand:jU,GetRegistryCatalogDataCommand:KU,GetRepositoryCatalogDataCommand:XU,GetRepositoryPolicyCommand:ZU,InitiateLayerUploadCommand:e2,ListTagsForResourceCommand:t2,PutImageCommand:r2,PutRegistryCatalogDataCommand:n2,PutRepositoryCatalogDataCommand:s2,SetRepositoryPolicyCommand:o2,TagResourceCommand:i2,UntagResourceCommand:a2,UploadLayerPartCommand:c2},NXt={paginateDescribeImages:Eje,paginateDescribeImageTags:Cje,paginateDescribeRegistries:Ije,paginateDescribeRepositories:Sje},l2=class extends df{static{i(this,"ECRPUBLIC")}};w5t(RXt,l2,{paginators:NXt});var TXt={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},PXt={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},_Xt={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},vXt={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};B.AuthorizationData$=WYe;B.BatchCheckLayerAvailability$=jJe;B.BatchCheckLayerAvailabilityCommand=HU;B.BatchCheckLayerAvailabilityRequest$=YYe;B.BatchCheckLayerAvailabilityResponse$=JYe;B.BatchDeleteImage$=KJe;B.BatchDeleteImageCommand=zU;B.BatchDeleteImageRequest$=jYe;B.BatchDeleteImageResponse$=KYe;B.CompleteLayerUpload$=XJe;B.CompleteLayerUploadCommand=VU;B.CompleteLayerUploadRequest$=XYe;B.CompleteLayerUploadResponse$=ZYe;B.CreateRepository$=ZJe;B.CreateRepositoryCommand=WU;B.CreateRepositoryRequest$=eJe;B.CreateRepositoryResponse$=tJe;B.DeleteRepository$=eje;B.DeleteRepositoryCommand=YU;B.DeleteRepositoryPolicy$=tje;B.DeleteRepositoryPolicyCommand=JU;B.DeleteRepositoryPolicyRequest$=rJe;B.DeleteRepositoryPolicyResponse$=nJe;B.DeleteRepositoryRequest$=sJe;B.DeleteRepositoryResponse$=oJe;B.DescribeImageTags$=nje;B.DescribeImageTagsCommand=dB;B.DescribeImageTagsRequest$=cJe;B.DescribeImageTagsResponse$=lJe;B.DescribeImages$=rje;B.DescribeImagesCommand=uB;B.DescribeImagesRequest$=iJe;B.DescribeImagesResponse$=aJe;B.DescribeRegistries$=sje;B.DescribeRegistriesCommand=pB;B.DescribeRegistriesRequest$=uJe;B.DescribeRegistriesResponse$=dJe;B.DescribeRepositories$=oje;B.DescribeRepositoriesCommand=fB;B.DescribeRepositoriesRequest$=pJe;B.DescribeRepositoriesResponse$=fJe;B.ECRPUBLIC=l2;B.ECRPUBLICClient=df;B.ECRPUBLICServiceException=Bt;B.ECRPUBLICServiceException$=IYe;B.EmptyUploadException=bU;B.EmptyUploadException$=SYe;B.GetAuthorizationToken$=ije;B.GetAuthorizationTokenCommand=jU;B.GetAuthorizationTokenRequest$=mJe;B.GetAuthorizationTokenResponse$=hJe;B.GetRegistryCatalogData$=aje;B.GetRegistryCatalogDataCommand=KU;B.GetRegistryCatalogDataRequest$=AJe;B.GetRegistryCatalogDataResponse$=gJe;B.GetRepositoryCatalogData$=cje;B.GetRepositoryCatalogDataCommand=XU;B.GetRepositoryCatalogDataRequest$=yJe;B.GetRepositoryCatalogDataResponse$=EJe;B.GetRepositoryPolicy$=lje;B.GetRepositoryPolicyCommand=ZU;B.GetRepositoryPolicyRequest$=CJe;B.GetRepositoryPolicyResponse$=IJe;B.Image$=SJe;B.ImageAlreadyExistsException=MU;B.ImageAlreadyExistsException$=wYe;B.ImageDetail$=wJe;B.ImageDigestDoesNotMatchException=FU;B.ImageDigestDoesNotMatchException$=xYe;B.ImageFailure$=xJe;B.ImageFailureCode=_Xt;B.ImageIdentifier$=h2;B.ImageNotFoundException=OU;B.ImageNotFoundException$=bYe;B.ImageTagAlreadyExistsException=UU;B.ImageTagAlreadyExistsException$=BYe;B.ImageTagDetail$=bJe;B.InitiateLayerUpload$=uje;B.InitiateLayerUploadCommand=e2;B.InitiateLayerUploadRequest$=BJe;B.InitiateLayerUploadResponse$=RJe;B.InvalidLayerException=BU;B.InvalidLayerException$=RYe;B.InvalidLayerPartException=qU;B.InvalidLayerPartException$=NYe;B.InvalidParameterException=CU;B.InvalidParameterException$=TYe;B.InvalidTagParameterException=PU;B.InvalidTagParameterException$=PYe;B.Layer$=NJe;B.LayerAlreadyExistsException=RU;B.LayerAlreadyExistsException$=_Ye;B.LayerAvailability=PXt;B.LayerFailure$=TJe;B.LayerFailureCode=TXt;B.LayerPartTooSmallException=NU;B.LayerPartTooSmallException$=vYe;B.LayersNotFoundException=$U;B.LayersNotFoundException$=QYe;B.LimitExceededException=_U;B.LimitExceededException$=DYe;B.ListTagsForResource$=dje;B.ListTagsForResourceCommand=t2;B.ListTagsForResourceRequest$=PJe;B.ListTagsForResourceResponse$=_Je;B.PutImage$=pje;B.PutImageCommand=r2;B.PutImageRequest$=vJe;B.PutImageResponse$=QJe;B.PutRegistryCatalogData$=fje;B.PutRegistryCatalogDataCommand=n2;B.PutRegistryCatalogDataRequest$=DJe;B.PutRegistryCatalogDataResponse$=kJe;B.PutRepositoryCatalogData$=mje;B.PutRepositoryCatalogDataCommand=s2;B.PutRepositoryCatalogDataRequest$=OJe;B.PutRepositoryCatalogDataResponse$=LJe;B.ReferencedImageDetail$=MJe;B.ReferencedImagesNotFoundException=GU;B.ReferencedImagesNotFoundException$=kYe;B.Registry$=FJe;B.RegistryAlias$=UJe;B.RegistryAliasStatus=vXt;B.RegistryCatalogData$=ore;B.RegistryNotFoundException=IU;B.RegistryNotFoundException$=OYe;B.Repository$=A2;B.RepositoryAlreadyExistsException=vU;B.RepositoryAlreadyExistsException$=LYe;B.RepositoryCatalogData$=g2;B.RepositoryCatalogDataInput$=ire;B.RepositoryCatalogDataNotFoundException=LU;B.RepositoryCatalogDataNotFoundException$=MYe;B.RepositoryNotEmptyException=DU;B.RepositoryNotEmptyException$=FYe;B.RepositoryNotFoundException=SU;B.RepositoryNotFoundException$=UYe;B.RepositoryPolicyNotFoundException=kU;B.RepositoryPolicyNotFoundException$=qYe;B.ServerException=wU;B.ServerException$=$Ye;B.SetRepositoryPolicy$=hje;B.SetRepositoryPolicyCommand=o2;B.SetRepositoryPolicyRequest$=qJe;B.SetRepositoryPolicyResponse$=$Je;B.Tag$=GJe;B.TagResource$=Aje;B.TagResourceCommand=i2;B.TagResourceRequest$=HJe;B.TagResourceResponse$=zJe;B.TooManyTagsException=QU;B.TooManyTagsException$=GYe;B.UnsupportedCommandException=xU;B.UnsupportedCommandException$=HYe;B.UntagResource$=gje;B.UntagResourceCommand=a2;B.UntagResourceRequest$=VJe;B.UntagResourceResponse$=WJe;B.UploadLayerPart$=yje;B.UploadLayerPartCommand=c2;B.UploadLayerPartRequest$=YJe;B.UploadLayerPartResponse$=JJe;B.UploadNotFoundException=TU;B.UploadNotFoundException$=zYe;B.errorTypeRegistries=VYe;B.paginateDescribeImageTags=Cje;B.paginateDescribeImages=Eje;B.paginateDescribeRegistries=Ije;B.paginateDescribeRepositories=Sje});var XXt={};cr(XXt,{main:()=>t5e});module.exports=Z(XXt);var Ere=R(require("os"),1);function td(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(td,"toCommandValue");function x2(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}i(x2,"toCommandProperties");function hf(t,e,r){let n=new b2(t,e,r);process.stdout.write(n.toString()+Ere.EOL)}i(hf,"issueCommand");function B2(t,e=""){hf(t,{},e)}i(B2,"issue");var yre="::",b2=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=yre+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${c5e(s)}`)}}return e+=`${yre}${a5e(this.message)}`,e}};function a5e(t){return td(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(a5e,"escapeData");function c5e(t){return td(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(c5e,"escapeProperty");var Cre=R(require("crypto"),1),IB=R(require("fs"),1),CB=R(require("os"),1);function Ire(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!IB.existsSync(r))throw new Error(`Missing file at path: ${r}`);IB.appendFileSync(r,`${td(e)}${CB.EOL}`,{encoding:"utf8"})}i(Ire,"issueFileCommand");function Sre(t,e){let r=`ghadelimiter_${Cre.randomUUID()}`,n=td(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${CB.EOL}${n}${CB.EOL}${r}`}i(Sre,"prepareKeyValueMessage");var Cde=R(require("os"),1);var ZI=R(require("http"),1),sH=R(require("https"),1);function R2(t){let e=t.protocol==="https:";if(l5e(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new SB(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new SB(`http://${r}`)}else return}i(R2,"getProxyUrl");function l5e(t){if(!t.hostname)return!1;let e=t.hostname;if(u5e(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(l5e,"checkBypass");function u5e(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(u5e,"isLoopbackAddress");var SB=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Cd=R(oA(),1),Xue=R(Hf(),1);var br=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())})},ci;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(ci||(ci={}));var ls;(function(t){t.Accept="accept",t.ContentType="content-type"})(ls||(ls={}));var uu;(function(t){t.ApplicationJson="application/json"})(uu||(uu={}));var qit=[ci.MovedPermanently,ci.ResourceMoved,ci.SeeOther,ci.TemporaryRedirect,ci.PermanentRedirect],$it=[ci.BadGateway,ci.ServiceUnavailable,ci.GatewayTimeout],Git=["OPTIONS","GET","DELETE","HEAD"],Hit=10,zit=5,rH=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},nH=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return br(this,void 0,void 0,function*(){return new Promise(e=>br(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return br(this,void 0,void 0,function*(){return new Promise(e=>br(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var EN=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return br(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return br(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return br(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return br(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return br(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return br(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return br(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return br(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return br(this,arguments,void 0,function*(r,n={}){n[ls.Accept]=this._getExistingOrDefaultHeader(n,ls.Accept,uu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[ls.Accept]=this._getExistingOrDefaultHeader(o,ls.Accept,uu.ApplicationJson),o[ls.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,uu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[ls.Accept]=this._getExistingOrDefaultHeader(o,ls.Accept,uu.ApplicationJson),o[ls.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,uu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return br(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[ls.Accept]=this._getExistingOrDefaultHeader(o,ls.Accept,uu.ApplicationJson),o[ls.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,uu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return br(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&Git.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ci.Unauthorized){let p;for(let f of this.handlers)if(f.canHandleAuthentication(u)){p=f;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&qit.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),f.hostname!==o.hostname)for(let m in s)m.toLowerCase()==="authorization"&&delete s[m];a=this._prepareRequest(e,f,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!$it.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return br(this,void 0,void 0,function*(){return new Promise((n,s)=>{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new nH(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=R2(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?sH:ZI;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},XI(this.requestOptions.headers),XI(e||{})):XI(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=XI(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=XI(this.requestOptions.headers)[ls.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[ls.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=R2(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||ZI.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?Cd.httpsOverHttps:Cd.httpsOverHttp:l=u?Cd.httpOverHttps:Cd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new sH.Agent(c):new ZI.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new Xue.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return br(this,void 0,void 0,function*(){e=Math.min(Hit,e);let r=zit*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return br(this,void 0,void 0,function*(){return new Promise((n,s)=>br(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===ci.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let f=new Date(p);if(!isNaN(f.valueOf()))return f}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new rH(d,o);p.result=a.result,s(p)}else n(a)}))})}},XI=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Vit=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())})};var CN=class{static{i(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Vit(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Zue=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())})},IN=class t{static{i(this,"OidcClient")}static createHttpClient(e=!0,r=10){let n={allowRetries:e,maxRetries:r};return new EN("actions/oidc-client",[new CN(t.getRequestToken())],n)}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){return Zue(this,void 0,void 0,function*(){var r;let o=(r=(yield t.createHttpClient().getJson(e).catch(a=>{throw new Error(`Failed to get ID Token.
|
|
|
|
Error Code : ${a.statusCode}
|
|
|
|
Error Message: ${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 Zue(this,void 0,void 0,function*(){try{let r=t.getIDTokenUrl();if(e){let s=encodeURIComponent(e);r=`${r}&audience=${s}`}T(`ID token url is ${r}`);let n=yield t.getCall(r);return $n(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var tde=require("os"),eS=require("fs");var oH=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:Wit,appendFile:Yit,writeFile:Jit}=eS.promises,ede="GITHUB_STEP_SUMMARY";var iH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return oH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ede];if(!e)throw new Error(`Unable to find environment variable for $${ede}. Check if your runtime environment supports job summaries.`);try{yield Wit(e,eS.constants.R_OK|eS.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return oH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Jit:Yit)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return oH(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(tde.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.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});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Gtr=new iH;var hH=R(require("os"),1);var mH=require("string_decoder");var nS=R(require("os"),1),fH=R(require("events"),1),mde=R(require("child_process"),1),hde=R(require("path"),1);var lde=require("assert"),Bo=R(require("path"),1);var tS=R(require("fs"),1),Id=R(require("path"),1);var aH=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())})},{chmod:cH,copyFile:nde,lstat:SN,mkdir:sde,open:Ytr,readdir:lH,rename:jit,rm:ode,rmdir:Jtr,stat:zf,symlink:ide,unlink:uH}=tS.promises,uc=process.platform==="win32";function ade(t){return aH(this,void 0,void 0,function*(){let e=yield tS.promises.readlink(t);return uc&&!e.endsWith("\\")?`${e}\\`:e})}i(ade,"readlink");var jtr=tS.constants.O_RDONLY;function tg(t){return aH(this,void 0,void 0,function*(){try{yield zf(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(tg,"exists");function wN(t){if(t=Kit(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return uc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(wN,"isRooted");function dH(t,e){return aH(this,void 0,void 0,function*(){let r;try{r=yield zf(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(uc){let s=Id.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(rde(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield zf(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(uc){try{let o=Id.dirname(t),a=Id.basename(t).toUpperCase();for(let c of yield lH(o))if(a===c.toUpperCase()){t=Id.join(o,c);break}}catch(o){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${o}`)}return t}else if(rde(r))return t}}return""})}i(dH,"tryGetExecutablePath");function Kit(t){return t=t||"",uc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(Kit,"normalizeSeparators");function rde(t){return(t.mode&1)>0||(t.mode&8)>0&&process.getgid!==void 0&&t.gid===process.getgid()||(t.mode&64)>0&&process.getuid!==void 0&&t.uid===process.getuid()}i(rde,"isUnixExecutable");var Vf=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 ude(t,e){return Vf(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=Zit(s),l=(yield tg(n))?yield zf(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?Bo.join(n,Bo.basename(r)):n;if(!(yield tg(r)))throw new Error(`no such file or directory: ${r}`);if((yield zf(r)).isDirectory())if(a)yield dde(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(Bo.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield pde(r,u,o)}})}i(ude,"cp");function rS(t){return Vf(this,void 0,void 0,function*(){if(uc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield ode(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(rS,"rmRF");function Wf(t){return Vf(this,void 0,void 0,function*(){(0,lde.ok)(t,"a path argument must be provided"),yield sde(t,{recursive:!0})})}i(Wf,"mkdirP");function Ms(t,e){return Vf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield Ms(t,!1);if(!n)throw uc?new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`):new Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return n}let r=yield Xit(t);return r&&r.length>0?r[0]:""})}i(Ms,"which");function Xit(t){return Vf(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(uc&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(Bo.delimiter))s&&e.push(s);if(wN(t)){let s=yield dH(t,e);return s?[s]:[]}if(t.includes(Bo.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(Bo.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield dH(Bo.join(s,t),e);o&&n.push(o)}return n})}i(Xit,"findInPath");function Zit(t){let e=t.force==null?!0:t.force,r=!!t.recursive,n=t.copySourceDirectory==null?!0:!!t.copySourceDirectory;return{force:e,recursive:r,copySourceDirectory:n}}i(Zit,"readCopyOptions");function dde(t,e,r,n){return Vf(this,void 0,void 0,function*(){if(r>=255)return;r++,yield Wf(e);let s=yield lH(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield SN(a)).isDirectory()?yield dde(a,c,r,n):yield pde(a,c,n)}yield cH(e,(yield zf(t)).mode)})}i(dde,"cpDirRecursive");function pde(t,e,r){return Vf(this,void 0,void 0,function*(){if((yield SN(t)).isSymbolicLink()){try{yield SN(e),yield uH(e)}catch(s){s.code==="EPERM"&&(yield cH(e,"0666"),yield uH(e))}let n=yield ade(t);yield ide(n,e,uc?"junction":null)}else(!(yield tg(e))||r)&&(yield nde(t,e))})}i(pde,"copyFile");var Ade=require("timers");var fde=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())})},xN=process.platform==="win32",bN=class extends fH.EventEmitter{static{i(this,"ToolRunner")}constructor(e,r,n){if(super(),!e)throw new Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=r||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,r){let n=this._getSpawnFileName(),s=this._getSpawnArgs(e),o=r?"":"[command]";if(xN)if(this._isCmdFile()){o+=n;for(let a of s)o+=` ${a}`}else if(e.windowsVerbatimArguments){o+=`"${n}"`;for(let a of s)o+=` ${a}`}else{o+=this._windowsQuoteCmdArg(n);for(let a of s)o+=` ${this._windowsQuoteCmdArg(a)}`}else{o+=n;for(let a of s)o+=` ${a}`}return o}_processLineBuffer(e,r,n){try{let s=r+e.toString(),o=s.indexOf(nS.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+nS.EOL.length),o=s.indexOf(nS.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return xN&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(xN&&this._isCmdFile()){let r=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)r+=" ",r+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return r+='"',[r]}return this.args}_endsWith(e,r){return e.endsWith(r)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let r=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],n=!1;for(let a of e)if(r.some(c=>c===a)){n=!0;break}if(!n)return e;let s='"',o=!0;for(let a=e.length;a>0;a--)s+=e[a-1],o&&e[a-1]==="\\"?s+="\\":e[a-1]==='"'?(o=!0,s+='"'):o=!1;return s+='"',s.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let r='"',n=!0;for(let s=e.length;s>0;s--)r+=e[s-1],n&&e[s-1]==="\\"?r+="\\":e[s-1]==='"'?(n=!0,r+="\\"):n=!1;return r+='"',r.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let r={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return r.outStream=e.outStream||process.stdout,r.errStream=e.errStream||process.stderr,r}_getSpawnOptions(e,r){e=e||{};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${r}"`),n}exec(){return fde(this,void 0,void 0,function*(){return!wN(this.toolPath)&&(this.toolPath.includes("/")||xN&&this.toolPath.includes("\\"))&&(this.toolPath=hde.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield Ms(this.toolPath,!0),new Promise((e,r)=>fde(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:");for(let u of this.args)this._debug(` ${u}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+nS.EOL);let s=new pH(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield tg(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=mde.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o)),c="";a.stdout&&a.stdout.on("data",u=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(u),!n.silent&&n.outStream&&n.outStream.write(u),c=this._processLineBuffer(u,c,d=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(d)})});let l="";if(a.stderr&&a.stderr.on("data",u=>{s.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(u),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(u),l=this._processLineBuffer(u,l,d=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(d)})}),a.on("error",u=>{s.processError=u.message,s.processExited=!0,s.processClosed=!0,s.CheckComplete()}),a.on("exit",u=>{s.processExitCode=u,s.processExited=!0,this._debug(`Exit code ${u} received from tool '${this.toolPath}'`),s.CheckComplete()}),a.on("close",u=>{s.processExitCode=u,s.processExited=!0,s.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),s.CheckComplete()}),s.on("done",(u,d)=>{c.length>0&&this.emit("stdline",c),l.length>0&&this.emit("errline",l),a.removeAllListeners(),u?r(u):e(d)}),this.options.input){if(!a.stdin)throw new Error("child process missing stdin");a.stdin.end(this.options.input)}}))})}};function gde(t){let e=[],r=!1,n=!1,s="";function o(a){n&&a!=='"'&&(s+="\\"),s+=a,n=!1}i(o,"append");for(let a=0;a<t.length;a++){let c=t.charAt(a);if(c==='"'){n?o(c):r=!r;continue}if(c==="\\"&&n){o(c);continue}if(c==="\\"&&r){n=!0;continue}if(c===" "&&!r){s.length>0&&(e.push(s),s="");continue}o(c)}return s.length>0&&e.push(s.trim()),e}i(gde,"argStringToArray");var pH=class t extends fH.EventEmitter{static{i(this,"ExecState")}constructor(e,r){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!r)throw new Error("toolPath must not be empty");this.options=e,this.toolPath=r,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=(0,Ade.setTimeout)(t.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let r=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(r)}e._setResult()}}};var yde=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 Sd(t,e,r){return yde(this,void 0,void 0,function*(){let n=gde(t);if(n.length===0)throw new Error("Parameter 'commandLine' cannot be null or empty.");let s=n[0];return e=n.slice(1).concat(e||[]),new bN(s,e,r).exec()})}i(Sd,"exec");function sS(t,e,r){return yde(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new mH.StringDecoder("utf8"),l=new mH.StringDecoder("utf8"),u=(n=r?.listeners)===null||n===void 0?void 0:n.stdout,d=(s=r?.listeners)===null||s===void 0?void 0:s.stderr,p=i(A=>{a+=l.write(A),d&&d(A)},"stdErrListener"),f=i(A=>{o+=c.write(A),u&&u(A)},"stdOutListener"),m=Object.assign(Object.assign({},r?.listeners),{stdout:f,stderr:p}),h=yield Sd(t,e,Object.assign(Object.assign({},r),{listeners:m}));return o+=c.end(),a+=l.end(),{exitCode:h,stdout:o,stderr:a}})}i(sS,"getExecOutput");var rrr=hH.default.platform(),nrr=hH.default.arch();var Ede=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())})},AH;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(AH||(AH={}));function $n(t){hf("add-mask",{},t)}i($n,"setSecret");function la(t,e){let r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(e&&e.required&&!r)throw new Error(`Input required and not supplied: ${t}`);return e&&e.trimWhitespace===!1?r:r.trim()}i(la,"getInput");function Ide(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=la(t,e);if(r.includes(s))return!0;if(n.includes(s))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(Ide,"getBooleanInput");function Sde(t){process.exitCode=AH.Failure,ng(t)}i(Sde,"setFailed");function Yf(){return process.env.RUNNER_DEBUG==="1"}i(Yf,"isDebug");function T(t){hf("debug",{},t)}i(T,"debug");function ng(t,e={}){hf("error",x2(e),t instanceof Error?t.toString():t)}i(ng,"error");function ur(t,e={}){hf("warning",x2(e),t instanceof Error?t.toString():t)}i(ur,"warning");function ae(t){process.stdout.write(t+Cde.EOL)}i(ae,"info");function rat(t){B2("group",t)}i(rat,"startGroup");function nat(){B2("endgroup")}i(nat,"endGroup");function iS(t,e){return Ede(this,void 0,void 0,function*(){rat(t);let r;try{r=yield e()}finally{nat()}return r})}i(iS,"group");function Jf(t,e){if(process.env.GITHUB_STATE||"")return Ire("STATE",Sre(t,e));hf("save-state",{name:t},td(e))}i(Jf,"saveState");function wde(t){return process.env[`STATE_${t}`]||""}i(wde,"getState");function xde(t){return Ede(this,void 0,void 0,function*(){return yield IN.getIDToken(t)})}i(xde,"getIDToken");var tx=R(require("fs"),1),NJ=R(require("os"),1),TJ=R(require("path"),1);var Bde=R(require("os"),1);function aS(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(aS,"toCommandValue");function Rde(t,e,r){let n=new gH(t,e,r);process.stdout.write(n.toString()+Bde.EOL)}i(Rde,"issueCommand");var bde="::",gH=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=bde+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${oat(s)}`)}}return e+=`${bde}${sat(this.message)}`,e}};function sat(t){return aS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(sat,"escapeData");function oat(t){return aS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(oat,"escapeProperty");var BN=R(oA(),1),aat=R(Hf(),1);var dc;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(dc||(dc={}));var Nde;(function(t){t.Accept="accept",t.ContentType="content-type"})(Nde||(Nde={}));var Tde;(function(t){t.ApplicationJson="application/json"})(Tde||(Tde={}));var Nrr=[dc.MovedPermanently,dc.ResourceMoved,dc.SeeOther,dc.TemporaryRedirect,dc.PermanentRedirect],Trr=[dc.BadGateway,dc.ServiceUnavailable,dc.GatewayTimeout];var _de=require("os"),cS=require("fs");var yH=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:uat,appendFile:dat,writeFile:pat}=cS.promises,Pde="GITHUB_STEP_SUMMARY";var EH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return yH(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Pde];if(!e)throw new Error(`Unable to find environment variable for $${Pde}. Check if your runtime environment supports job summaries.`);try{yield uat(e,cS.constants.R_OK|cS.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return yH(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?pat:dat)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return yH(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(_de.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.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});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Urr=new EH;var CH=R(require("os"),1);var zrr=CH.default.platform(),Vrr=CH.default.arch();var vde;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(vde||(vde={}));function us(t){Rde("debug",{},t)}i(us,"debug");var Fs=R(require("fs"),1);var lut=R(UH(),1);var FN=R(require("os"),1),wd=R(require("path"),1);var di=R(UH(),1);var wfe=require("assert");var Sfe=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())})};var Zsr=process.platform==="win32",eor=process.platform==="darwin";function xfe(t,e,r,n){return Sfe(this,void 0,void 0,function*(){if(r=di.clean(r)||r,n=n||FN.arch(),us(`Caching tool ${e} ${r} ${n}`),us(`source dir: ${t}`),!Fs.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield put(e,r,n);for(let o of Fs.readdirSync(t)){let a=wd.join(t,o);yield ude(a,s,{recursive:!0})}return fut(e,r,n),s})}i(xfe,"cacheDir");function bfe(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||FN.arch(),!Bfe(e)){let s=dut(t,r);e=mut(s,e)}let n="";if(e){e=di.clean(e)||"";let s=wd.join(UN(),t,e,r);us(`checking cache: ${s}`),Fs.existsSync(s)&&Fs.existsSync(`${s}.complete`)?(us(`Found tool in cache ${t} ${e} ${r}`),n=s):us("not found")}return n}i(bfe,"find");function dut(t,e){let r=[];e=e||FN.arch();let n=wd.join(UN(),t);if(Fs.existsSync(n)){let s=Fs.readdirSync(n);for(let o of s)if(Bfe(o)){let a=wd.join(n,o,e||"");Fs.existsSync(a)&&Fs.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(dut,"findAllVersions");function put(t,e,r){return Sfe(this,void 0,void 0,function*(){let n=wd.join(UN(),t,di.clean(e)||e,r||"");us(`destination ${n}`);let s=`${n}.complete`;return yield rS(n),yield rS(s),yield Wf(n),n})}i(put,"_createToolPath");function fut(t,e,r){let s=`${wd.join(UN(),t,di.clean(e)||e,r||"")}.complete`;Fs.writeFileSync(s,""),us("finished caching tool")}i(fut,"_completeToolPath");function Bfe(t){let e=di.clean(t)||"";us(`isExplicit: ${e}`);let r=di.valid(e)!=null;return us(`explicit? ${r}`),r}i(Bfe,"isExplicitVersion");function mut(t,e){let r="";us(`evaluating ${t.length} versions`),t=t.sort((n,s)=>di.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(di.satisfies(s,e)){r=s;break}}return r?us(`matched: ${r}`):us("match not found"),r}i(mut,"evaluateVersions");function UN(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,wfe.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(UN,"_getCacheDirectory");var ex=R(require("path"),1);var Nfe=R(require("os"),1);function AS(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(AS,"toCommandValue");function Tfe(t,e,r){let n=new qH(t,e,r);process.stdout.write(n.toString()+Nfe.EOL)}i(Tfe,"issueCommand");var Rfe="::",qH=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=Rfe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${gut(s)}`)}}return e+=`${Rfe}${Aut(this.message)}`,e}};function Aut(t){return AS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(Aut,"escapeData");function gut(t){return AS(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(gut,"escapeProperty");var qN=R(oA(),1),Eut=R(Hf(),1);var fc;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(fc||(fc={}));var Pfe;(function(t){t.Accept="accept",t.ContentType="content-type"})(Pfe||(Pfe={}));var _fe;(function(t){t.ApplicationJson="application/json"})(_fe||(_fe={}));var por=[fc.MovedPermanently,fc.ResourceMoved,fc.SeeOther,fc.TemporaryRedirect,fc.PermanentRedirect],mor=[fc.BadGateway,fc.ServiceUnavailable,fc.GatewayTimeout];var Qfe=require("os"),gS=require("fs");var $H=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:Cut,appendFile:Iut,writeFile:Sut}=gS.promises,vfe="GITHUB_STEP_SUMMARY";var GH=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return $H(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[vfe];if(!e)throw new Error(`Unable to find environment variable for $${vfe}. Check if your runtime environment supports job summaries.`);try{yield Cut(e,gS.constants.R_OK|gS.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([o,a])=>` ${o}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return $H(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Sut:Iut)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return $H(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(Qfe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),o=this.wrap(n,s);return this.addRaw(o).addEOL()}addTable(e){let r=e.map(s=>{let o=s.map(a=>{if(typeof a=="string")return this.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});return this.wrap(p,l,f)}).join("");return this.wrap("tr",o)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:o}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),o&&{height:o}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",o=this.wrap(s,e);return this.addRaw(o).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},Ror=new GH;var HH=R(require("os"),1);var vor=HH.default.platform(),Qor=HH.default.arch();var Dfe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(Dfe||(Dfe={}));function pi(t){Tfe("debug",{},t)}i(pi,"debug");var cg=R(require("fs"),1);function VH(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,pi(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,pi(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,pi(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,pi(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,pi(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(VH,"getOptions");var zN=R(require("path"),1);var og=R(require("path"),1),xd=R(require("assert"),1);var bd=process.platform==="win32";function pu(t){if(t=du(t),bd&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=og.dirname(t);return bd&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=du(e)),e}i(pu,"dirname");function $N(t,e){if((0,xd.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,xd.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),yS(e))return e;if(bd){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,xd.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(ua(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,xd.default)(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return(0,xd.default)(yS(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||bd&&t.endsWith("\\")||(t+=og.sep),t+e}i($N,"ensureAbsoluteRoot");function yS(t){return(0,xd.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=ua(t),bd?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(yS,"hasAbsoluteRoot");function ES(t){return(0,xd.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=ua(t),bd?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(ES,"hasRoot");function ua(t){return t=t||"",bd?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(ua,"normalizeSeparators");function du(t){return t?(t=ua(t),!t.endsWith(og.sep)||t===og.sep||bd&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(du,"safeTrimTrailingSeparator");var da;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(da||(da={}));var kfe=process.platform==="win32";function YH(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=kfe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=kfe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=pu(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=pu(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(YH,"getSearchPaths");function Ofe(t,e){let r=da.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(Ofe,"match");function Lfe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i(Lfe,"partialMatch");var rme=R(require("os"),1),ag=R(require("path"),1);var Nd=R(require("assert"),1);var JH=i((t,e,r)=>{let n=t instanceof RegExp?Mfe(t,r):t,s=e instanceof RegExp?Mfe(e,r):e,o=n!==null&&s!=null&&But(n,s,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+n.length,o[1]),post:r.slice(o[1]+s.length)}},"balanced"),Mfe=i((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),But=i((t,e,r)=>{let n,s,o,a,c,l=r.indexOf(t),u=r.indexOf(e,l+1),d=l;if(l>=0&&u>0){if(t===e)return[l,u];for(n=[],o=r.length;d>=0&&!c;){if(d===l)n.push(d),l=r.indexOf(t,d+1);else if(n.length===1){let p=n.pop();p!==void 0&&(c=[p,u])}else s=n.pop(),s!==void 0&&s<o&&(o=s,a=u),u=r.indexOf(e,d+1);d=l<u&&l>=0?l:u}n.length&&a!==void 0&&(c=[o,a])}return c},"range");var Ffe="\0SLASH"+Math.random()+"\0",Ufe="\0OPEN"+Math.random()+"\0",ZH="\0CLOSE"+Math.random()+"\0",qfe="\0COMMA"+Math.random()+"\0",$fe="\0PERIOD"+Math.random()+"\0",Rut=new RegExp(Ffe,"g"),Nut=new RegExp(Ufe,"g"),Tut=new RegExp(ZH,"g"),Put=new RegExp(qfe,"g"),_ut=new RegExp($fe,"g"),vut=/\\\\/g,Qut=/\\{/g,Dut=/\\}/g,kut=/\\,/g,Out=/\\\./g,Lut=1e5,Mut=4e6,Fut=1e3,Uut=1e3;function jH(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(jH,"numeric");function qut(t){return t.replace(vut,Ffe).replace(Qut,Ufe).replace(Dut,ZH).replace(kut,qfe).replace(Out,$fe)}i(qut,"escapeBraces");function $ut(t){return t.replace(Rut,"\\").replace(Nut,"{").replace(Tut,"}").replace(Put,",").replace(_ut,".")}i($ut,"unescapeBraces");function KH(t,e){for(let r=0;r<e.length;r++)t.push(e[r])}i(KH,"pushAll");function Gut(t){let e=[],r="";for(;;){let n=JH("{","}",t);if(!n){let l=t.split(",");return l[0]=r+l[0],KH(e,l),e}let{pre:s,body:o,post:a}=n,c=s.split(",");if(c[0]=r+c[0],c[c.length-1]+="{"+o+"}",!a.length)return KH(e,c),e;r=c.pop(),KH(e,c),t=a}}i(Gut,"parseCommaParts");function Gfe(t,e={}){if(!t)return[];let{max:r=Lut,maxLength:n=Mut,maxDepth:s=Fut,maxRewrites:o=Uut}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),XH(qut(t),r,n,s,0,o,!0).map($ut)}i(Gfe,"expand");function Hut(t){return"{"+t+"}"}i(Hut,"embrace");function zut(t){return/^-?0\d/.test(t)}i(zut,"isPadded");function Vut(t,e){return t<=e}i(Vut,"lte");function Wut(t,e){return t>=e}i(Wut,"gte");function CS(t,e,r,n,s,o){let a=[],c=0;for(let l=0;l<t.length;l++)for(let u=0;u<r.length;u++){if(a.length>=n)return a;let d=t[l]+e+r[u];if(!(o&&!d)){if(c+d.length>s)return a;a.push(d),c+=d.length}}return a}i(CS,"combine");function Yut(t,e,r,n){let s=t.split(/\.\./),o=[];if(s[0]===void 0||s[1]===void 0)return o;let a=jH(s[0]),c=jH(s[1]),l=Math.max(s[0].length,s[1].length),u=s.length===3&&s[2]!==void 0?Math.max(Math.abs(jH(s[2])),1):1,d=Vut;c<a&&(u*=-1,d=Wut);let f=s.some(zut),m=0;for(let h=a;d(h,c)&&o.length<r;h+=u){let A;if(e)A=String.fromCharCode(h),A==="\\"&&(A="");else if(A=String(h),f){let y=l-A.length;if(y>0){let E=new Array(y+1).join("0");h<0?A="-"+E+A.slice(1):A=E+A}}if(m+A.length>n)break;o.push(A),m+=A.length}return o}i(Yut,"expandSequence");function XH(t,e,r,n,s,o,a){if(s>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let p=JH("{","}",t);if(!p)return CS(c,t,[""],e,r,u);let f=p.pre;if(/\$$/.test(f)){if(c=CS(c,f+"{"+p.body+"}",[""],e,r,u&&!p.post.length),d=!1,!p.post.length)break;t=p.post;continue}let m=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(p.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(p.body),A=m||h,y=p.body.indexOf(",")>=0;if(!A&&!y){if(l<o&&p.post.match(/,(?!,).*\}/)){l++,t=p.pre+"{"+p.body+ZH+p.post,a=!0;continue}return CS(c,f+"{"+p.body+"}"+p.post,[""],e,r,u)}d&&(u=a&&!A,d=!1);let E;if(A)E=Yut(p.body,h,e,r);else{let I=Gut(p.body);if(I.length===1&&I[0]!==void 0&&(I=XH(I[0],e,r,n,s+1,o,!1).map(Hut),I.length===1)){if(c=CS(c,f+I[0],[""],e,r,u&&!p.post.length),!p.post.length)break;t=p.post;continue}let x=u&&!p.post.length&&!f;for(let N=0;x&&N<c.length;N++)c[N]&&(x=!1);E=[];let b=0;e:for(let N=0;N<I.length;N++){let v=XH(I[N],e,r,n,s+1,o,!1);for(let _=0;_<v.length;_++){let J=v[_];if(!(x&&!J)){if(E.length>=e||b+J.length>r)break e;E.push(J),b+=J.length}}}}if(c=CS(c,f,E,e,r,u&&!p.post.length),!p.post.length)break;t=p.post}return c}i(XH,"expand_");var IS=i(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var Jut={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},SS=i(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),jut=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),Hfe=i(t=>t.join(""),"rangesToString"),zfe=i((t,e)=>{let r=e;if(t.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],s=[],o=r+1,a=!1,c=!1,l=!1,u=!1,d=r,p="";e:for(;o<t.length;){let A=t.charAt(o);if((A==="!"||A==="^")&&o===r+1){u=!0,o++;continue}if(A==="]"&&a&&!l){d=o+1;break}if(a=!0,A==="\\"&&!l){l=!0,o++;continue}if(A==="["&&!l){for(let[y,[E,I,x]]of Object.entries(Jut))if(t.startsWith(y,o)){if(p)return["$.",!1,t.length-r,!0];o+=y.length,x?s.push(E):n.push(E),c=c||I;continue e}}if(l=!1,p){A>p?n.push(SS(p)+"-"+SS(A)):A===p&&n.push(SS(A)),p="",o++;continue}if(t.startsWith("-]",o+1)){n.push(SS(A+"-")),o+=2;continue}if(t.startsWith("-",o+1)){p=A,o+=2;continue}n.push(SS(A)),o++}if(d<o)return["",!1,0,!1];if(!n.length&&!s.length)return["$.",!1,t.length-r,!0];if(s.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let A=n[0].length===2?n[0].slice(-1):n[0];return[jut(A),!1,d-r,!1]}let f="["+(u?"^":"")+Hfe(n)+"]",m="["+(u?"":"^")+Hfe(s)+"]";return[n.length&&s.length?"("+f+"|"+m+")":n.length?f:m,c,d-r,!0]},"parseClass");var Bd=i((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1"),"unescape");var Us,Kut=new Set(["!","?","+","*","@"]),ez=i(t=>Kut.has(t),"isExtglobType"),Vfe=i(t=>ez(t.type),"isExtglobAST"),Xut=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Zut=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),edt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Wfe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),tdt="(?!(?:^|/)\\.\\.?(?:$|/))",GN="(?!\\.)",rdt=new Set(["[","."]),ndt=new Set(["..","."]),sdt=new Set("().*{}+?[]^$\\!"),odt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),tz="[^/]",Yfe=tz+"*?",Jfe=tz+"+?",idt=0,Kf=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#s;#o;#i;#a=!1;#l;#c;#u=!1;id=++idt;get depth(){return(this.#s?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#e.id,parent:this.#s?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,r,n={}){this.type=e,e&&(this.#t=!0),this.#s=r,this.#e=this.#s?this.#s.#e:this,this.#l=this.#e===this?n:this.#e.#l,this.#i=this.#e===this?[]:this.#e.#i,e==="!"&&!this.#e.#a&&this.#i.push(this),this.#o=this.#s?this.#s.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#c=this.#r.map(e=>String(e)).join("")}#g(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;this.toString(),this.#a=!0;let e;for(;e=this.#i.pop();){if(e.type!=="!")continue;let r=e,n=r.#s;for(;n;){for(let s=r.#o+1;!n.type&&s<n.#r.length;s++)for(let o of e.#r){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(n.#r[s])}r=n,n=r.#s}}return this}push(...e){for(let r of e)if(r!==""){if(typeof r!="string"&&!(r instanceof Us&&r.#s===this))throw new Error("invalid part: "+r);this.#r.push(r)}}toJSON(){let e=this.type===null?this.#r.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#r.map(r=>r.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&this.#s?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#s?.isStart())return!1;if(this.#o===0)return!0;let e=this.#s;for(let r=0;r<this.#o;r++){let n=e.#r[r];if(!(n instanceof Us&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#s?.type==="!")return!0;if(!this.#s?.isEnd())return!1;if(!this.type)return this.#s?.isEnd();let e=this.#s?this.#s.#r.length:0;return this.#o===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}clone(e){let r=new Us(this.type,e);for(let n of this.#r)r.copyIn(n);return r}static#d(e,r,n,s,o){let a=s.maxExtglobRecursion??2,c=!1,l=!1,u=-1,d=!1;if(r.type===null){let A=n,y="";for(;A<e.length;){let E=e.charAt(A++);if(c||E==="\\"){c=!c,y+=E;continue}if(l){A===u+1?(E==="^"||E==="!")&&(d=!0):E==="]"&&!(A===u+2&&d)&&(l=!1),y+=E;continue}else if(E==="["){l=!0,u=A,d=!1,y+=E;continue}if(!s.noext&&ez(E)&&e.charAt(A)==="("&&o<=a){r.push(y),y="";let x=new Us(E,r);A=Us.#d(e,x,A,s,o+1),r.push(x);continue}y+=E}return r.push(y),A}let p=n+1,f=new Us(null,r),m=[],h="";for(;p<e.length;){let A=e.charAt(p++);if(c||A==="\\"){c=!c,h+=A;continue}if(l){p===u+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(p===u+2&&d)&&(l=!1),h+=A;continue}else if(A==="["){l=!0,u=p,d=!1,h+=A;continue}if(!s.noext&&ez(A)&&e.charAt(p)==="("&&(o<=a||r&&r.#p(A))){let E=r&&r.#p(A)?0:1;f.push(h),h="";let I=new Us(A,f);f.push(I),p=Us.#d(e,I,p,s,o+E);continue}if(A==="|"){f.push(h),h="",m.push(f),f=new Us(null,r);continue}if(A===")")return h===""&&r.#r.length===0&&(r.#u=!0),f.push(h),h="",r.push(...m,f),p;h+=A}return r.type=null,r.#t=void 0,r.#r=[e.substring(n-1)],p}#y(e){return this.#m(e,Zut)}#m(e,r=Xut){if(!e||typeof e!="object"||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!="object"||n.type===null?!1:this.#p(n.type,r)}#p(e,r=edt){return!!r.get(this.type)?.includes(e)}#E(e,r){let n=e.#r[0],s=new Us(null,n,this.options);s.#r.push(""),n.push(s),this.#h(e,r)}#h(e,r){let n=e.#r[0];this.#r.splice(r,1,...n.#r);for(let s of n.#r)typeof s=="object"&&(s.#s=this);this.#c=void 0}#C(e){return!!Wfe.get(this.type)?.has(e)}#I(e){if(!e||typeof e!="object"||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let r=e.#r[0];return!r||typeof r!="object"||r.type===null?!1:this.#C(r.type)}#S(e){let r=Wfe.get(this.type),n=e.#r[0],s=r?.get(n.type);if(!s)return!1;this.#r=n.#r;for(let o of this.#r)typeof o=="object"&&(o.#s=this);this.type=s,this.#c=void 0,this.#u=!1}static fromGlob(e,r={}){let n=new Us(null,void 0,r);return Us.#d(e,n,0,r,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[r,n,s,o]=this.toRegExpSource();if(!(s||this.#t||this.#l.nocase&&!this.#l.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let c=(this.#l.nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:e})}get options(){return this.#l}toRegExpSource(e){let r=e??!!this.#l.dot;if(this.#e===this&&(this.#f(),this.#g()),!Vfe(this)){let l=this.isStart()&&this.isEnd()&&!this.#r.some(m=>typeof m!="string"),u=this.#r.map(m=>{let[h,A,y,E]=typeof m=="string"?Us.#w(m,this.#t,l):m.toRegExpSource(e);return this.#t=this.#t||y,this.#n=this.#n||E,h}).join(""),d="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&ndt.has(this.#r[0]))){let h=rdt,A=r&&h.has(u.charAt(0))||u.startsWith("\\.")&&h.has(u.charAt(2))||u.startsWith("\\.\\.")&&h.has(u.charAt(4)),y=!r&&!e&&h.has(u.charAt(0));d=A?tdt:y?GN:""}let p="";return this.isEnd()&&this.#e.#a&&this.#s?.type==="!"&&(p="(?:$|\\/)"),[d+u+p,Bd(u),this.#t=!!this.#t,this.#n]}let n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",o=this.#A(r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString(),u=this;return u.#r=[l],u.type=null,u.#t=void 0,[l,Bd(this.toString()),!1,!1]}let a=!n||e||r||!GN?"":this.#A(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let c="";if(this.type==="!"&&this.#u)c=(this.isStart()&&!r?GN:"")+Jfe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?GN:"")+Yfe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=s+o+l}return[c,Bd(o),this.#t=!!this.#t,this.#n]}#f(){if(Vfe(this)){let e=0,r=!1;do{r=!0;for(let n=0;n<this.#r.length;n++){let s=this.#r[n];typeof s=="object"&&(s.#f(),this.#m(s)?(r=!1,this.#h(s,n)):this.#y(s)?(r=!1,this.#E(s,n)):this.#I(s)&&(r=!1,this.#S(s)))}}while(!r&&++e<10)}else for(let e of this.#r)typeof e=="object"&&e.#f();this.#c=void 0}#A(e){return this.#r.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,s,o,a]=r.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#w(e,r,n=!1){let s=!1,o="",a=!1,c=!1;for(let l=0;l<e.length;l++){let u=e.charAt(l);if(s){s=!1,o+=(sdt.has(u)?"\\":"")+u;continue}if(u==="*"){if(c)continue;c=!0,o+=n&&/^[*]+$/.test(e)?Jfe:Yfe,r=!0;continue}else c=!1;if(u==="\\"){l===e.length-1?o+="\\\\":s=!0;continue}if(u==="["){let[d,p,f,m]=zfe(e,l);if(f){o+=d,a=a||p,l+=f-1,r=r||m;continue}}if(u==="?"){o+=tz,r=!0;continue}o+=odt(u)}return[o,Bd(e),!!r,a]}};Us=Kf;var rz=i((t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),"escape");var fs=i((t,e,r={})=>(IS(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Rd(e,r).match(t)),"minimatch"),adt=/^\*+([^+@!?*[(]*)$/,cdt=i(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),ldt=i(t=>e=>e.endsWith(t),"starDotExtTestDot"),udt=i(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),ddt=i(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),pdt=/^\*+\.\*+$/,fdt=i(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),mdt=i(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),hdt=/^\.\*+$/,Adt=i(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),gdt=/^\*+$/,ydt=i(t=>t.length!==0&&!t.startsWith("."),"starTest"),Edt=i(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),Cdt=/^\?+([^+@!?*[(]*)?$/,Idt=i(([t,e=""])=>{let r=Xfe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),Sdt=i(([t,e=""])=>{let r=Zfe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),wdt=i(([t,e=""])=>{let r=Zfe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),xdt=i(([t,e=""])=>{let r=Xfe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),Xfe=i(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),Zfe=i(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),eme=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jfe={win32:{sep:"\\"},posix:{sep:"/"}},bdt=eme==="win32"?jfe.win32.sep:jfe.posix.sep;fs.sep=bdt;var zn=Symbol("globstar **");fs.GLOBSTAR=zn;var Bdt="[^/]",Rdt=Bdt+"*?",Ndt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Tdt="(?:(?!(?:\\/|^)\\.).)*?",Pdt=i((t,e={})=>r=>fs(r,t,e),"filter");fs.filter=Pdt;var fi=i((t,e={})=>Object.assign({},t,e),"ext"),_dt=i(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return fs;let e=fs;return Object.assign(i((n,s,o={})=>e(n,s,fi(t,o)),"m"),{Minimatch:class extends e.Minimatch{static{i(this,"Minimatch")}constructor(s,o={}){super(s,fi(t,o))}static defaults(s){return e.defaults(fi(t,s)).Minimatch}},AST:class extends e.AST{static{i(this,"AST")}constructor(s,o,a={}){super(s,o,fi(t,a))}static fromGlob(s,o={}){return e.AST.fromGlob(s,fi(t,o))}},unescape:i((n,s={})=>e.unescape(n,fi(t,s)),"unescape"),escape:i((n,s={})=>e.escape(n,fi(t,s)),"escape"),filter:i((n,s={})=>e.filter(n,fi(t,s)),"filter"),defaults:i(n=>e.defaults(fi(t,n)),"defaults"),makeRe:i((n,s={})=>e.makeRe(n,fi(t,s)),"makeRe"),braceExpand:i((n,s={})=>e.braceExpand(n,fi(t,s)),"braceExpand"),match:i((n,s,o={})=>e.match(n,s,fi(t,o)),"match"),sep:e.sep,GLOBSTAR:zn})},"defaults");fs.defaults=_dt;var tme=i((t,e={})=>(IS(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Gfe(t,{max:e.braceExpandMax})),"braceExpand");fs.braceExpand=tme;var vdt=i((t,e={})=>new Rd(t,e).makeRe(),"makeRe");fs.makeRe=vdt;var Qdt=i((t,e,r={})=>{let n=new Rd(e,r);return t=t.filter(s=>n.match(s)),n.options.nonull&&!t.length&&t.push(e),t},"match");fs.match=Qdt;var Kfe=/[?*]|[+@!]\(.*?\)|\[|\]/,Ddt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Rd=class{static{i(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,r={}){IS(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||eme,this.isWindows=this.platform==="win32";let n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}debug(...e){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let s=this.globParts.map((o,a,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=o[0]===""&&o[1]===""&&(o[2]==="?"||!Kfe.test(o[2]))&&!Kfe.test(o[3]),u=/^[a-z]:/i.test(o[0]);if(l)return[...o.slice(0,4),...o.slice(4).map(d=>this.parse(d))];if(u)return[o[0],...o.slice(1).map(d=>this.parse(d))]}return o.map(l=>this.parse(l))});if(this.debug(this.pattern,s),this.set=s.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let a=this.set[o];a[0]===""&&a[1]===""&&this.globParts[o][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let n of e)for(let s=0;s<n.length;s++)n[s]==="**"&&(n[s]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let s=n;for(;r[s+1]==="**";)s++;s!==n&&r.splice(n,s-n)}return r})}levelOneOptimize(e){return e.map(r=>(r=r.reduce((n,s)=>{let o=n[n.length-1];return s==="**"&&o==="**"?n:s===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(s),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let o=e[s];s===1&&o===""&&e[0]===""||(o==="."||o==="")&&(r=!0,e.splice(s,1),s--)}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(r=!0,e.pop())}let n=0;for(;(n=e.indexOf("..",n+1))!==-1;){let s=e[n-1];s&&s!=="."&&s!==".."&&s!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(s))&&(r=!0,e.splice(n-1,2),n-=2)}}while(r);return e.length===0?[""]:e}firstPhasePreProcess(e){let r=!1;do{r=!1;for(let n of e){let s=-1;for(;(s=n.indexOf("**",s+1))!==-1;){let a=s;for(;n[a+1]==="**";)a++;a>s&&n.splice(s+1,a-s);let c=n[s+1],l=n[s+2],u=n[s+3];if(c!==".."||!l||l==="."||l===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(s,1);let d=n.slice(0);d[s]="**",e.push(d),s--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){let c=n[a];a===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(a,1),a--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){let a=n[o-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;let l=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...l),n.length===0&&n.push(""),o-=2}}}}while(r);return e}secondPhasePreProcess(e){for(let r=0;r<e.length-1;r++)for(let n=r+1;n<e.length;n++){let s=this.partsMatch(e[r],e[n],!this.preserveMultipleSlashes);if(s){e[r]=[],e[n]=s;break}}return e.filter(r=>r.length)}partsMatch(e,r,n=!1){let s=0,o=0,a=[],c="";for(;s<e.length&&o<r.length;)if(e[s]===r[o])a.push(c==="b"?r[o]:e[s]),s++,o++;else if(n&&e[s]==="**"&&r[o]===e[s+1])a.push(e[s]),s++;else if(n&&r[o]==="**"&&e[s]===r[o+1])a.push(r[o]),o++;else if(e[s]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(c==="b")return!1;c="a",a.push(e[s]),s++,o++}else if(r[o]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(c==="a")return!1;c="b",a.push(r[o]),s++,o++}else return!1;return e.length===r.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,n=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n=!1){let s=0,o=0;if(this.isWindows){let c=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),l=!c&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),u=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=!u&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=l?3:c?0:void 0,f=d?3:u?0:void 0;if(typeof p=="number"&&typeof f=="number"){let[m,h]=[e[p],r[f]];m.toLowerCase()===h.toLowerCase()&&(r[f]=m,o=f,s=p)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),r.includes(zn)?this.#e(e,r,n,s,o):this.#n(e,r,n,s,o)}#e(e,r,n,s,o){let a=r.indexOf(zn,o),c=r.lastIndexOf(zn),[l,u,d]=n?[r.slice(o,a),r.slice(a+1),[]]:[r.slice(o,a),r.slice(a+1,c),r.slice(c+1)];if(l.length){let I=e.slice(s,s+l.length);if(!this.#n(I,l,n,0,0))return!1;s+=l.length,o+=l.length}let p=0;if(d.length){if(d.length+s>e.length)return!1;let I=e.length-d.length;if(this.#n(e,d,n,I,0))p=d.length;else{if(e[e.length-1]!==""||s+d.length===e.length||(I--,!this.#n(e,d,n,I,0)))return!1;p=d.length+1}}if(!u.length){let I=!!p;for(let x=s;x<e.length-p;x++){let b=String(e[x]);if(I=!0,b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1}return n||I}let f=[[[],0]],m=f[0],h=0,A=[0];for(let I of u)I===zn?(A.push(h),m=[[],0],f.push(m)):(m[0].push(I),h++);let y=f.length-1,E=e.length-p;for(let I of f)I[1]=E-(A[y--]+I[0].length);return!!this.#t(e,f,s,0,n,0,!!p)}#t(e,r,n,s,o,a,c){let l=r[s];if(!l){for(let p=n;p<e.length;p++){c=!0;let f=e[p];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1}return c}let[u,d]=l;for(;n<=d;){if(this.#n(e.slice(0,n+u.length),u,o,n,0)&&a<this.maxGlobstarRecursion){let m=this.#t(e,r,n+u.length,s+1,o,a+1,c);if(m!==!1)return m}let f=e[n];if(f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1;n++}return o||null}#n(e,r,n,s,o){let a,c,l,u;for(a=s,c=o,u=e.length,l=r.length;a<u&&c<l;a++,c++){this.debug("matchOne loop");let d=r[c],p=e[a];if(this.debug(r,d,p),d===!1||d===zn)return!1;let f;if(typeof d=="string"?(f=p===d,this.debug("string match",d,p,f)):(f=d.test(p),this.debug("pattern match",d,p,f)),!f)return!1}if(a===u&&c===l)return!0;if(a===u)return n;if(c===l)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return tme(this.pattern,this.options)}parse(e){IS(e);let r=this.options;if(e==="**")return zn;if(e==="")return"";let n,s=null;(n=e.match(gdt))?s=r.dot?Edt:ydt:(n=e.match(adt))?s=(r.nocase?r.dot?ddt:udt:r.dot?ldt:cdt)(n[1]):(n=e.match(Cdt))?s=(r.nocase?r.dot?Sdt:Idt:r.dot?wdt:xdt)(n):(n=e.match(pdt))?s=r.dot?mdt:fdt:(n=e.match(hdt))&&(s=Adt);let o=Kf.fromGlob(e,this.options).toMMPattern();return s&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:s}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Rdt:r.dot?Ndt:Tdt,s=new Set(r.nocase?["i"]:[]),o=e.map(l=>{let u=l.map(p=>{if(p instanceof RegExp)for(let f of p.flags.split(""))s.add(f);return typeof p=="string"?Ddt(p):p===zn?zn:p._src});u.forEach((p,f)=>{let m=u[f+1],h=u[f-1];p!==zn||h===zn||(h===void 0?m!==void 0&&m!==zn?u[f+1]="(?:\\/|"+n+"\\/)?"+m:u[f]=n:m===void 0?u[f-1]=h+"(?:\\/|\\/"+n+")?":m!==zn&&(u[f-1]=h+"(?:\\/|\\/"+n+"\\/)"+m,u[f+1]=zn))});let d=u.filter(p=>p!==zn);if(this.partial&&d.length>=1){let p=[];for(let f=1;f<=d.length;f++)p.push(d.slice(0,f).join("/"));return"(?:"+p.join("|")+")"}return d.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];o="^"+a+o+c+"$",this.partial&&(o="^(?:\\/|"+a+o.slice(1,-1)+c+")$"),this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...s].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let o=this.set;this.debug(this.pattern,"set",o);let a=s[s.length-1];if(!a)for(let c=s.length-2;!a&&c>=0;c--)a=s[c];for(let c of o){let l=s;if(n.matchBase&&c.length===1&&(l=[a]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return fs.defaults(e).Minimatch}};fs.AST=Kf;fs.Minimatch=Rd;fs.escape=rz;fs.unescape=Bd;var Xf=R(require("path"),1);var ig=R(require("assert"),1);var kdt=process.platform==="win32",Zf=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,ig.default)(e,"Parameter 'itemPath' must not be empty"),e=du(e),!ES(e))this.segments=e.split(Xf.sep);else{let r=e,n=pu(r);for(;n!==r;){let s=Xf.basename(r);this.segments.unshift(s),r=n,n=pu(r)}this.segments.unshift(r)}else{(0,ig.default)(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];(0,ig.default)(n,"Parameter 'itemPath' must not contain any empty segments"),n=ua(e[r]),r===0&&ES(n)?(n=du(n),(0,ig.default)(n===pu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):((0,ig.default)(!n.includes(Xf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(Xf.sep)||kdt&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=Xf.sep,e+=this.segments[n];return e}};var fu=process.platform==="win32",wS=class t{static{i(this,"Pattern")}constructor(e,r=!1,n,s){this.negate=!1;let o;if(typeof e=="string")o=e.trim();else{n=n||[],(0,Nd.default)(n.length,"Parameter 'segments' must not empty");let u=t.getLiteral(n[0]);(0,Nd.default)(u&&yS(u),"Parameter 'segments' first element must be a root path"),o=new Zf(n).toString().trim(),e&&(o=`!${o}`)}for(;o.startsWith("!");)this.negate=!this.negate,o=o.substr(1).trim();o=t.fixupPattern(o,s),this.segments=new Zf(o).segments,this.trailingSeparator=ua(o).endsWith(ag.sep),o=du(o);let a=!1,c=this.segments.map(u=>t.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new Zf(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),fu?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:fu,nocomment:!0,noext:!0,nonegate:!0};o=fu?o.replace(/\\/g,"/"):o,this.minimatch=new Rd(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=ua(e),!e.endsWith(ag.sep)&&this.isImplicitPattern===!1&&(e=`${e}${ag.sep}`)):e=du(e),this.minimatch.match(e)?this.trailingSeparator?da.Directory:da.All:da.None}partialMatch(e){return e=du(e),pu(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(fu?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(fu?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,Nd.default)(e,"pattern cannot be empty");let n=new Zf(e).segments.map(s=>t.getLiteral(s));if((0,Nd.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,Nd.default)(!ES(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=ua(e),e==="."||e.startsWith(`.${ag.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${ag.sep}`))r=r||rme.homedir(),(0,Nd.default)(r,"Unable to determine HOME directory"),(0,Nd.default)(yS(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(fu&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=$N("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(fu&&(e==="\\"||e.match(/^\\[^\\]/))){let s=$N("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=$N(t.globEscape(process.cwd()),e);return ua(e)}static getLiteral(e){let r="";for(let n=0;n<e.length;n++){let s=e[n];if(s==="\\"&&!fu&&n+1<e.length){r+=e[++n];continue}else{if(s==="*"||s==="?")return"";if(s==="["&&n+1<e.length){let o="",a=-1;for(let c=n+1;c<e.length;c++){let l=e[c];if(l==="\\"&&!fu&&c+1<e.length){o+=e[++c];continue}else if(l==="]"){a=c;break}else o+=l}if(a>=0){if(o.length>1)return"";if(o){r+=o,n=a;continue}}}}r+=s}return r}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}};var xS=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var nz=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())})},Odt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},Td=function(t){return this instanceof Td?(this.v=t,this):new Td(t)},Ldt=function(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),s[Symbol.asyncIterator]=function(){return this},s;function a(m){return function(h){return Promise.resolve(h).then(m,p)}}function c(m,h){n[m]&&(s[m]=function(A){return new Promise(function(y,E){o.push([m,A,y,E])>1||l(m,A)})},h&&(s[m]=h(s[m])))}function l(m,h){try{u(n[m](h))}catch(A){f(o[0][3],A)}}function u(m){m.value instanceof Td?Promise.resolve(m.value.v).then(d,p):f(o[0][2],m)}function d(m){l("next",m)}function p(m){l("throw",m)}function f(m,h){m(h),o.shift(),o.length&&l(o[0][0],o[0][1])}},Mdt=process.platform==="win32",HN=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=VH(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return nz(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=Odt(this.globGenerator()),l;l=yield c.next(),e=l.done,!e;a=!0){s=l.value,a=!1;let u=s;o.push(u)}}catch(u){r={error:u}}finally{try{!a&&!e&&(n=c.return)&&(yield n.call(c))}finally{if(r)throw r.error}}return o})}globGenerator(){return Ldt(this,arguments,i(function*(){let r=VH(this.options),n=[];for(let a of this.patterns)n.push(a),r.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")&&n.push(new wS(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of YH(n)){pi(`Search path '${a}'`);try{yield Td(cg.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new xS(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=Ofe(n,a.path),l=!!c||Lfe(n,a.path);if(!c&&!l)continue;let u=yield Td(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&zN.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&da.Directory&&r.matchDirectories)yield yield Td(a.path);else if(!l)continue;let d=a.level+1,p=(yield Td(cg.promises.readdir(a.path))).map(f=>new xS(zN.join(a.path,f),d));s.push(...p.reverse())}else c&da.File&&(yield yield Td(a.path))}},"globGenerator_1"))}static create(e,r){return nz(this,void 0,void 0,function*(){let n=new t(r);Mdt&&(e=e.replace(/\r\n/g,`
|
|
`),e=e.replace(/\r/g,`
|
|
`));let s=e.split(`
|
|
`).map(o=>o.trim());for(let o of s)!o||o.startsWith("#")||n.patterns.push(new wS(o));return n.searchPaths.push(...YH(n.patterns)),n})}static stat(e,r,n){return nz(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield cg.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){pi(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw o}else s=yield cg.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield cg.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){pi(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var Fdt=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 nme(t,e){return Fdt(this,void 0,void 0,function*(){return yield HN.create(t,e)})}i(nme,"create");var aT=R(require("crypto"),1),pg=R(require("fs"),1),em=R(require("path"),1),jhe=R(Yhe(),1),Khe=R(require("util"),1);var PS;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(PS||(PS={}));var hs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(hs||(hs={}));var Ro;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ro||(Ro={}));var sT=2,oT=5e3,xz=5e3,bz=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Jhe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,_S="cache.tar",Bz="manifest.txt",Dcr=10*Math.pow(1024,3),iT="cache read denied:";var dg=function(t,e,r,n){function s(o){return o instanceof r?o:new r(function(a){a(o)})}return i(s,"adopt"),new(r||(r=Promise))(function(o,a){function c(d){try{u(n.next(d))}catch(p){a(p)}}i(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(p){a(p)}}i(l,"rejected");function u(d){d.done?o(d.value):s(d.value).then(c,l)}i(u,"step"),u((n=n.apply(t,e||[])).next())})},Ymt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(a){return new Promise(function(c,l){a=t[o](a),s(c,l,a.done,a.value)})}}function s(o,a,c,l){Promise.resolve(l).then(function(u){o({value:u,done:c})},a)}},Jmt="1.0";function tm(){return dg(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=em.join(n,"actions","temp")}let r=em.join(e,aT.randomUUID());return yield Wf(r),r})}i(tm,"createTempDirectory");function hc(t){return pg.statSync(t).size}i(hc,"getArchiveFileSizeInBytes");function Rz(t){return dg(this,void 0,void 0,function*(){var e,r,n,s,o;let a=[],c=(o=process.env.GITHUB_WORKSPACE)!==null&&o!==void 0?o:process.cwd(),l=yield nme(t.join(`
|
|
`),{implicitDescendants:!1});try{for(var u=!0,d=Ymt(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let m=em.relative(c,s).replace(new RegExp(`\\${em.sep}`,"g"),"/");T(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(f){r={error:f}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}i(Rz,"resolvePaths");function vS(t){return dg(this,void 0,void 0,function*(){return Khe.promisify(pg.unlink)(t)})}i(vS,"unlinkFile");function Xhe(t){return dg(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Sd(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(s=>n+=s.toString(),"stdout"),stderr:i(s=>n+=s.toString(),"stderr")}})}catch(s){T(s.message)}return n=n.trim(),T(n),n})}i(Xhe,"getVersion");function QS(){return dg(this,void 0,void 0,function*(){let t=yield Xhe("zstd",["--quiet"]),e=jhe.clean(t);return T(`zstd version: ${e}`),t===""?hs.Gzip:hs.ZstdWithoutLong})}i(QS,"getCompressionMethod");function _d(t){return t===hs.Gzip?PS.Gzip:PS.Zstd}i(_d,"getCacheFileName");function Zhe(){return dg(this,void 0,void 0,function*(){return pg.existsSync(bz)?bz:(yield Xhe("tar")).toLowerCase().includes("gnu tar")?Ms("tar"):""})}i(Zhe,"getGnuTarPathOnWindows");function Nz(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(Nz,"assertDefined");function fg(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Jmt),aT.createHash("sha256").update(n.join("|")).digest("hex")}i(fg,"getCacheVersion");function eAe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(eAe,"getRuntimeToken");var kS=R(require("http"),1),_z=R(require("https"),1);function Tz(t){let e=t.protocol==="https:";if(jmt(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new lT(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new lT(`http://${r}`)}else return}i(Tz,"getProxyUrl");function jmt(t){if(!t.hostname)return!1;let e=t.hostname;if(Kmt(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let o of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(o==="*"||s.some(a=>a===o||a.endsWith(`.${o}`)||o.startsWith(".")&&a.endsWith(`${o}`)))return!0;return!1}i(jmt,"checkBypass");function Kmt(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(Kmt,"isLoopbackAddress");var lT=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var vd=R(oA(),1),tAe=R(Hf(),1);var Rr=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())})},At;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(At||(At={}));var As;(function(t){t.Accept="accept",t.ContentType="content-type"})(As||(As={}));var mu;(function(t){t.ApplicationJson="application/json"})(mu||(mu={}));var Zmt=[At.MovedPermanently,At.ResourceMoved,At.SeeOther,At.TemporaryRedirect,At.PermanentRedirect],eht=[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout],tht=["OPTIONS","GET","DELETE","HEAD"],rht=10,nht=5,Ac=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},Pz=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return Rr(this,void 0,void 0,function*(){return new Promise(e=>Rr(this,void 0,void 0,function*(){let r=Buffer.alloc(0);this.message.on("data",n=>{r=Buffer.concat([r,n])}),this.message.on("end",()=>{e(r.toString())})}))})}readBodyBuffer(){return Rr(this,void 0,void 0,function*(){return new Promise(e=>Rr(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};var No=class{static{i(this,"HttpClient")}constructor(e,r,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=r||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,r){return Rr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return Rr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return Rr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return Rr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return Rr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return Rr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return Rr(this,arguments,void 0,function*(r,n={}){n[As.Accept]=this._getExistingOrDefaultHeader(n,As.Accept,mu.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[As.Accept]=this._getExistingOrDefaultHeader(o,As.Accept,mu.ApplicationJson),o[As.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,mu.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[As.Accept]=this._getExistingOrDefaultHeader(o,As.Accept,mu.ApplicationJson),o[As.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,mu.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return Rr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[As.Accept]=this._getExistingOrDefaultHeader(o,As.Accept,mu.ApplicationJson),o[As.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,mu.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return Rr(this,void 0,void 0,function*(){if(this._disposed)throw new Error("Client has already been disposed.");let o=new URL(r),a=this._prepareRequest(e,o,s),c=this._allowRetries&&tht.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===At.Unauthorized){let p;for(let f of this.handlers)if(f.canHandleAuthentication(u)){p=f;break}return p?p.handleAuthentication(this,a,n):u}let d=this._maxRedirects;for(;u.message.statusCode&&Zmt.includes(u.message.statusCode)&&this._allowRedirects&&d>0;){let p=u.message.headers.location;if(!p)break;let f=new URL(p);if(o.protocol==="https:"&&o.protocol!==f.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield u.readBody(),f.hostname!==o.hostname)for(let m in s)m.toLowerCase()==="authorization"&&delete s[m];a=this._prepareRequest(e,f,s),u=yield this.requestRaw(a,n),d--}if(!u.message.statusCode||!eht.includes(u.message.statusCode))return u;l+=1,l<c&&(yield u.readBody(),yield this._performExponentialBackoff(l))}while(l<c);return u})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,r){return Rr(this,void 0,void 0,function*(){return new Promise((n,s)=>{function o(a,c){a?s(a):c?n(c):s(new Error("Unknown error"))}i(o,"callbackForResult"),this.requestRawWithCallback(e,r,o)})})}requestRawWithCallback(e,r,n){typeof r=="string"&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(r,"utf8"));let s=!1;function o(l,u){s||(s=!0,n(l,u))}i(o,"handleResult");let a=e.httpModule.request(e.options,l=>{let u=new Pz(l);o(void 0,u)}),c;a.on("socket",l=>{c=l}),a.setTimeout(this._socketTimeout||3*6e4,()=>{c&&c.end(),o(new Error(`Request timeout: ${e.options.path}`))}),a.on("error",function(l){o(l)}),r&&typeof r=="string"&&a.write(r,"utf8"),r&&typeof r!="string"?(r.on("close",function(){a.end()}),r.pipe(a)):a.end()}getAgent(e){let r=new URL(e);return this._getAgent(r)}getAgentDispatcher(e){let r=new URL(e),n=Tz(r);if(n&&n.hostname)return this._getProxyAgentDispatcher(r,n)}_prepareRequest(e,r,n){let s={};s.parsedUrl=r;let o=s.parsedUrl.protocol==="https:";s.httpModule=o?_z:kS;let a=o?443:80;if(s.options={},s.options.host=s.parsedUrl.hostname,s.options.port=s.parsedUrl.port?parseInt(s.parsedUrl.port):a,s.options.path=(s.parsedUrl.pathname||"")+(s.parsedUrl.search||""),s.options.method=e,s.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(s.options.headers["user-agent"]=this.userAgent),s.options.agent=this._getAgent(s.parsedUrl),this.handlers)for(let c of this.handlers)c.prepareRequest(s.options);return s}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},DS(this.requestOptions.headers),DS(e||{})):DS(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=DS(this.requestOptions.headers)[r];a&&(s=typeof a=="number"?a.toString():a)}let o=e[r];return o!==void 0?typeof o=="number"?o.toString():o:s!==void 0?s:n}_getExistingOrDefaultContentTypeHeader(e,r){let n;if(this.requestOptions&&this.requestOptions.headers){let o=DS(this.requestOptions.headers)[As.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[As.ContentType];return s!==void 0?typeof s=="number"?String(s):Array.isArray(s)?s.join(", "):s:n!==void 0?n:r}_getAgent(e){let r,n=Tz(e),s=n&&n.hostname;if(this._keepAlive&&s&&(r=this._proxyAgent),s||(r=this._agent),r)return r;let o=e.protocol==="https:",a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||kS.globalAgent.maxSockets),n&&n.hostname){let c={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},l,u=n.protocol==="https:";o?l=u?vd.httpsOverHttps:vd.httpsOverHttp:l=u?vd.httpOverHttps:vd.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new _z.Agent(c):new kS.Agent(c),this._agent=r}return o&&this._ignoreSslError&&(r.options=Object.assign(r.options||{},{rejectUnauthorized:!1})),r}_getProxyAgentDispatcher(e,r){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let s=e.protocol==="https:";return n=new tAe.ProxyAgent(Object.assign({uri:r.href,pipelining:this._keepAlive?1:0},(r.username||r.password)&&{token:`Basic ${Buffer.from(`${r.username}:${r.password}`).toString("base64")}`})),this._proxyAgentDispatcher=n,s&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let r=e||"actions/http-client",n=process.env.ACTIONS_ORCHESTRATION_ID;if(n){let s=n.replace(/[^a-z0-9_.-]/gi,"_");return`${r} actions_orchestration_id/${s}`}return r}_performExponentialBackoff(e){return Rr(this,void 0,void 0,function*(){e=Math.min(rht,e);let r=nht*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return Rr(this,void 0,void 0,function*(){return new Promise((n,s)=>Rr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===At.NotFound&&n(a);function c(d,p){if(typeof p=="string"){let f=new Date(p);if(!isNaN(f.valueOf()))return f}return p}i(c,"dateTimeDeserializer");let l,u;try{u=yield e.readBody(),u&&u.length>0&&(r&&r.deserializeDates?l=JSON.parse(u,c):l=JSON.parse(u),a.result=l),a.headers=e.message.headers}catch{}if(o>299){let d;l&&l.message?d=l.message:u&&u.length>0?d=u:d=`Failed request: (${o})`;let p=new Ac(d,o);p.result=a.result,s(p)}else n(a)}))})}},DS=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var sht=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())})};var mg=class{static{i(this,"BearerCredentialHandler")}constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return sht(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var Wg=R(require("fs"),1),PIe=require("url");var gc=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var nAe=require("node:os"),sAe=R(require("node:util"),1),oAe=R(require("node:process"),1);function iAe(t,...e){oAe.default.stderr.write(`${sAe.default.format(t,...e)}${nAe.EOL}`)}i(iAe,"log");var aAe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,lAe,vz=[],Qz=[],uT=[];aAe&&Dz(aAe);var uAe=Object.assign(t=>dAe(t),{enable:Dz,enabled:kz,disable:oht,log:iAe});function Dz(t){lAe=t,vz=[],Qz=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?Qz.push(r.substring(1)):vz.push(r);for(let r of uT)r.enabled=kz(r.namespace)}i(Dz,"enable");function kz(t){if(t.endsWith("*"))return!0;for(let e of Qz)if(cAe(t,e))return!1;for(let e of vz)if(cAe(t,e))return!0;return!1}i(kz,"enabled");function cAe(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let f=[],m="";for(let h of e)h==="*"&&m==="*"||(m=h,f.push(h));r=f.join("")}let n=0,s=0,o=r.length,a=t.length,c=-1,l=-1;for(;n<a&&s<o;)if(r[s]==="*"){if(c=s,s++,s===o)return!0;for(;t[n]!==r[s];)if(n++,n===a)return!1;l=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(c>=0){if(s=c+1,n=l+1,n===a)return!1;for(;t[n]!==r[s];)if(n++,n===a)return!1;l=n,n++,s++;continue}else return!1;let u=n===t.length,d=s===r.length,p=s===r.length-1&&r[s]==="*";return u&&(d||p)}i(cAe,"namespaceMatches");function oht(){let t=lAe||"";return Dz(""),t}i(oht,"disable");function dAe(t){let e=Object.assign(r,{enabled:kz(t),destroy:iht,log:uAe.log,namespace:t,extend:aht});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),uT.push(e),e}i(dAe,"createDebugger");function iht(){let t=uT.indexOf(this);return t>=0?(uT.splice(t,1),!0):!1}i(iht,"destroy");function aht(t){let e=dAe(`${this.namespace}:${t}`);return e.log=this.log,e}i(aht,"extend");var hg=uAe;var Oz=["verbose","info","warning","error"],pAe={verbose:400,info:300,warning:200,error:100};function fAe(t,e){e.log=(...r)=>{t.log(...r)}}i(fAe,"patchLogMethod");function mAe(t){return Oz.includes(t)}i(mAe,"isTypeSpecRuntimeLogLevel");function dT(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=hg(t.namespace);s.log=(...d)=>{hg.log(...d)};function o(d){if(d&&!mAe(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${Oz.join(",")}`);n=d;let p=[];for(let f of e)a(f)&&p.push(f.namespace);hg.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(mAe(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${Oz.join(", ")}.`));function a(d){return!!(n&&pAe[d.level]<=pAe[n])}i(a,"shouldEnable");function c(d,p){let f=Object.assign(d.extend(p),{level:p});if(fAe(d,f),a(f)){let m=hg.disable();hg.enable(m+","+f.namespace)}return e.add(f),f}i(c,"createLogger");function l(){return n}i(l,"contextGetLogLevel");function u(d){let p=s.extend(d);return fAe(s,p),{error:c(p,"error"),warning:c(p,"warning"),info:c(p,"info"),verbose:c(p,"verbose")}}return i(u,"contextCreateClientLogger"),{setLogLevel:o,getLogLevel:l,createClientLogger:u,logger:s}}i(dT,"createLoggerContext");var hAe=dT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),cht=hAe.logger;function OS(t){return hAe.createClientLogger(t)}i(OS,"createClientLogger");function pT(t){return t.toLowerCase()}i(pT,"normalizeName");function*lht(t){for(let e of t.values())yield[e.name,e.value]}i(lht,"headerIterator");var Lz=class{static{i(this,"HttpHeadersImpl")}_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(pT(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(pT(e))?.value}has(e){return this._headersMap.has(pT(e))}delete(e){this._headersMap.delete(pT(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]=n.value;else for(let[n,s]of this._headersMap)r[n]=s.value;return r}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return lht(this._headersMap)}};function To(t){return new Lz(t)}i(To,"createHttpHeaders");function rm(){return crypto.randomUUID()}i(rm,"randomUUID");var Mz=class{static{i(this,"PipelineRequestImpl")}url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??To(),this.method=e.method??"GET",this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||rm(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function fT(t){return new Mz(t)}i(fT,"createPipelineRequest");var AAe=new Set(["Deserialize","Serialize","Retry","Sign"]),Fz=class t{static{i(this,"HttpPipeline")}_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,r={}){if(r.phase&&r.afterPhase)throw new Error("Policies inside a phase cannot specify afterPhase.");if(r.phase&&!AAe.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!AAe.has(r.afterPhase))throw new Error(`Invalid afterPhase name: ${r.afterPhase}`);this._policies.push({policy:e,options:r}),this._orderedPolicies=void 0}removePolicy(e){let r=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(r.push(n.policy),!1):!0),this._orderedPolicies=void 0,r}sendRequest(e,r){return this.getOrderedPolicies().reduceRight((o,a)=>c=>a.sendRequest(c,o),o=>e.sendRequest(o))(r)}getOrderedPolicies(){return this._orderedPolicies||(this._orderedPolicies=this.orderPolicies()),this._orderedPolicies}clone(){return new t(this._policies)}static create(){return new t}orderPolicies(){let e=[],r=new Map;function n(h){return{name:h,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}i(n,"createPhase");let s=n("Serialize"),o=n("None"),a=n("Deserialize"),c=n("Retry"),l=n("Sign"),u=[s,o,a,c,l];function d(h){return h==="Retry"?c:h==="Serialize"?s:h==="Deserialize"?a:h==="Sign"?l:o}i(d,"getPhase");for(let h of this._policies){let A=h.policy,y=h.options,E=A.name;if(r.has(E))throw new Error("Duplicate policy names not allowed in pipeline");let I={policy:A,dependsOn:new Set,dependants:new Set};y.afterPhase&&(I.afterPhase=d(y.afterPhase),I.afterPhase.hasAfterPolicies=!0),r.set(E,I),d(y.phase).policies.add(I)}for(let h of this._policies){let{policy:A,options:y}=h,E=A.name,I=r.get(E);if(!I)throw new Error(`Missing node for policy ${E}`);if(y.afterPolicies)for(let x of y.afterPolicies){let b=r.get(x);b&&(I.dependsOn.add(b),b.dependants.add(I))}if(y.beforePolicies)for(let x of y.beforePolicies){let b=r.get(x);b&&(b.dependsOn.add(I),I.dependants.add(b))}}function p(h){h.hasRun=!0;for(let A of h.policies)if(!(A.afterPhase&&(!A.afterPhase.hasRun||A.afterPhase.policies.size))&&A.dependsOn.size===0){e.push(A.policy);for(let y of A.dependants)y.dependsOn.delete(A);r.delete(A.policy.name),h.policies.delete(A)}}i(p,"walkPhase");function f(){for(let h of u){if(p(h),h.policies.size>0&&h!==o){o.hasRun||p(o);return}h.hasAfterPolicies&&p(o)}}i(f,"walkPhases");let m=0;for(;r.size>0;){m++;let h=e.length;if(f(),e.length<=h&&m>1)throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}return e}};function mT(){return Fz.create()}i(mT,"createEmptyPipeline");function Ag(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(Ag,"isObject");function nm(t){if(Ag(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(nm,"isError");var gAe=require("node:util"),yAe=gAe.inspect.custom;var Uz="REDACTED",uht=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],dht=["api-version"],pa=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=uht.concat(e),r=dht.concat(r),this.allowedHeaderNames=new Set(e.map(n=>n.toLowerCase())),this.allowedQueryParameters=new Set(r.map(n=>n.toLowerCase()))}sanitize(e){let r=new Set;return JSON.stringify(e,(n,s)=>{if(s instanceof Error)return{...s,name:s.name,message:s.message};if(n==="headers")return this.sanitizeHeaders(s);if(n==="url")return this.sanitizeUrl(s);if(n==="query")return this.sanitizeQuery(s);if(n==="body")return;if(n==="response")return;if(n==="operationSpec")return;if(Array.isArray(s)||Ag(s)){if(r.has(s))return"[Circular]";r.add(s)}return s},2)}sanitizeUrl(e){if(typeof e!="string"||e===null||e==="")return e;let r=new URL(e);if(!r.search)return e;for(let[n]of r.searchParams)this.allowedQueryParameters.has(n.toLowerCase())||r.searchParams.set(n,Uz);return r.toString()}sanitizeHeaders(e){let r={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?r[n]=e[n]:r[n]=Uz;return r}sanitizeQuery(e){if(typeof e!="object"||e===null)return e;let r={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?r[n]=e[n]:r[n]=Uz;return r}};var pht=new pa,gs=class t extends Error{static{i(this,"RestError")}static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,r={}){super(e),this.name="RestError",this.code=r.code,this.statusCode=r.statusCode,Object.defineProperty(this,"request",{value:r.request,enumerable:!1}),Object.defineProperty(this,"response",{value:r.response,enumerable:!1});let n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,yAe,{value:i(()=>`RestError: ${this.message}
|
|
${pht.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function hT(t){return t instanceof gs?!0:nm(t)&&t.name==="RestError"}i(hT,"isRestError");function qs(t,e){return Buffer.from(t,e)}i(qs,"stringToUint8Array");var AT=R(require("node:http"),1),gT=R(require("node:https"),1),qz=R(require("node:zlib"),1),CAe=require("node:stream");var Ai=OS("ts-http-runtime");var fht={};function LS(t){return t&&typeof t.pipe=="function"}i(LS,"isReadableStream");function EAe(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(EAe,"isStreamComplete");function IAe(t){return t&&typeof t.byteLength=="number"}i(IAe,"isArrayBuffer");var yT=class extends CAe.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}},$z=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 gc("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 pa;Ai.info(`request to '${u.sanitizeUrl(e.url)}' timed out. 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=ght(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,A=new yT(h);A.on("error",y=>{Ai.error("Error in upload progress",y)}),LS(c)?c.pipe(A):A.end(c),c=A}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=mht(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?hht(u,d):u;let m=e.onDownloadProgress;if(m){let h=new yT(m);h.on("error",A=>{Ai.error("Error in download progress",A)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await Aht(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();LS(c)&&(u=EAe(c));let d=Promise.resolve();LS(l)&&(d=EAe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Ai.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(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);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?AT.default.request(c,l):gT.default.request(c,l);d.once("error",p=>{u(new gs(p.message,{code:p.code??gs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new gc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&LS(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):IAe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ai.error("Unrecognized body type",n),u(new gs("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?AT.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new AT.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return gT.default.globalAgent;let s=e.tlsSettings??fht,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Ai.info("No cached TLS Agent exist, creating a new Agent"),o=new gT.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function mht(t){let e=To();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(mht,"getResponseHeaders");function hht(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=qz.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=qz.default.createInflate();return t.pipe(n),n}return t}i(hht,"getDecodedResponseStream");function Aht(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new gs(`Error reading response as text: ${s.message}`,{code:gs.PARSE_ERROR}))})})}i(Aht,"streamToText");function ght(t){return t?Buffer.isBuffer(t)?t.length:LS(t)?null:IAe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(ght,"getBodyLength");function SAe(){return new $z}i(SAe,"createNodeHttpClient");function ET(){return SAe()}i(ET,"createDefaultHttpClient");var Gz="logPolicy";function CT(t={}){let e=t.logger??Ai.info,r=new pa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:Gz,async sendRequest(n,s){if(!e.enabled)return s(n);e(`Request: ${r.sanitize(n)}`);let o=await s(n);return e(`Response status code: ${o.status}`),e(`Headers: ${r.sanitize(o.headers)}`),o}}}i(CT,"logPolicy");var IT="redirectPolicy",wAe=["GET","HEAD"];function ST(t={}){let{maxRetries:e=20}=t;return{name:IT,async sendRequest(r,n){let s=await n(r);return xAe(n,s,e)}}}i(ST,"redirectPolicy");async function xAe(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&wAe.includes(s.method)||o===302&&wAe.includes(s.method)||o===303&&s.method==="POST"||o===307)&&n<r){let l=new URL(c,s.url);s.url=l.toString(),o===303&&(s.method="GET",s.headers.delete("Content-Length"),delete s.body),s.headers.delete("Authorization");let u=await t(s);return xAe(t,u,r,n+1)}return e}i(xAe,"handleRedirect");function bAe(){return"User-Agent"}i(bAe,"getHeaderName");function BAe(){return bAe()}i(BAe,"getUserAgentHeaderName");var Zlr=BAe();var wT="decompressResponsePolicy";function xT(){return{name:wT,async sendRequest(t,e){return t.method!=="HEAD"&&t.headers.set("Accept-Encoding","gzip,deflate"),e(t)}}}i(xT,"decompressResponsePolicy");function MS(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(MS,"getRandomIntegerInclusive");function bT(t,e){let r=e.retryDelayInMs*Math.pow(2,t),n=Math.min(e.maxRetryDelayInMs,r);return{retryAfterInMs:n/2+MS(0,n/2)}}i(bT,"calculateRetryDelay");var yht="The operation was aborted.";function RAe(t,e,r){return new Promise((n,s)=>{let o,a,c=i(()=>s(new gc(r?.abortErrorMsg?r?.abortErrorMsg:yht)),"rejectOnAbort"),l=i(()=>{r?.abortSignal&&a&&r.abortSignal.removeEventListener("abort",a)},"removeListeners");if(a=i(()=>(o&&clearTimeout(o),l(),c()),"onAborted"),r?.abortSignal&&r.abortSignal.aborted)return c();o=setTimeout(()=>{l(),n(e)},t),r?.abortSignal&&r.abortSignal.addEventListener("abort",a)})}i(RAe,"delay");function NAe(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(NAe,"parseHeaderValueAsNumber");var Hz="Retry-After",Eht=["retry-after-ms","x-ms-retry-after-ms",Hz];function TAe(t){if(t&&[429,503].includes(t.status))try{for(let s of Eht){let o=NAe(t,s);if(o===0||o)return o*(s===Hz?1e3:1)}let e=t.headers.get(Hz);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(TAe,"getRetryAfterInMs");function PAe(t){return Number.isFinite(TAe(t))}i(PAe,"isThrottlingRetryResponse");function zz(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=TAe(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(zz,"throttlingRetryStrategy");var Cht=1e3,Iht=1e3*64;function BT(t={}){let e=t.retryDelayInMs??Cht,r=t.maxRetryDelayInMs??Iht;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=wht(o),c=a&&t.ignoreSystemErrors,l=Sht(s),u=l&&t.ignoreHttpStatusCodes;return s&&(PAe(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:bT(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(BT,"exponentialRetryStrategy");function Sht(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(Sht,"isExponentialRetryResponse");function wht(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(wht,"isSystemError");var xht=OS("ts-http-runtime retryPolicy"),bht="retryPolicy";function om(t,e={maxRetries:3}){let r=e.logger||xht;return{name:bht,async sendRequest(n,s){let o,a,c=-1;e:for(;;){c+=1,o=void 0,a=void 0;try{r.info(`Retry ${c}: Attempting to send request`,n.requestId),o=await s(n),r.info(`Retry ${c}: Received a response from request`,n.requestId)}catch(l){if(r.error(`Retry ${c}: Received an error from request`,n.requestId),a=l,!l||a.name!=="RestError")throw l;o=a.response}if(n.abortSignal?.aborted)throw r.error(`Retry ${c}: Request aborted.`),new gc;if(c>=(e.maxRetries??3)){if(r.info(`Retry ${c}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),a)throw a;if(o)return o;throw new Error("Maximum retries reached with no response or error to throw")}r.info(`Retry ${c}: Processing ${t.length} retry strategies.`);t:for(let l of t){let u=l.logger||r;u.info(`Retry ${c}: Processing retry strategy ${l.name}.`);let d=l.retry({retryCount:c,response:o,responseError:a});if(d.skipStrategy){u.info(`Retry ${c}: Skipped.`);continue t}let{errorToThrow:p,retryAfterInMs:f,redirectTo:m}=d;if(p)throw u.error(`Retry ${c}: Retry strategy ${l.name} throws error:`,p),p;if(f||f===0){u.info(`Retry ${c}: Retry strategy ${l.name} retries after ${f}`),await RAe(f,void 0,{abortSignal:n.abortSignal});continue e}if(m){u.info(`Retry ${c}: Retry strategy ${l.name} redirects to ${m}`),n.url=m;continue e}}if(a)throw r.info("None of the retry strategies could work with the received error. Throwing it."),a;if(o)return r.info("None of the retry strategies could work with the received response. Returning it."),o}}}}i(om,"retryPolicy");var Vz="defaultRetryPolicy";function RT(t={}){return{name:Vz,sendRequest:om([zz(),BT(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(RT,"defaultRetryPolicy");var _Ae=typeof window<"u"&&typeof window.document<"u",vAe=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),QAe=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",DAe=typeof Bun<"u"&&typeof Bun.version<"u",im=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var kAe=typeof navigator<"u"&&navigator?.product==="ReactNative";var Wz="formDataPolicy";function Bht(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(Bht,"formDataToFormDataMap");function NT(){return{name:Wz,async sendRequest(t,e){if(im&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=Bht(t.body),t.body=void 0),t.formData){let r=t.headers.get("Content-Type");r&&r.indexOf("application/x-www-form-urlencoded")!==-1?t.body=Rht(t.formData):await Nht(t.formData,t),t.formData=void 0}return e(t)}}}i(NT,"formDataPolicy");function Rht(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.append(r,s.toString());else e.append(r,n.toString());return e.toString()}i(Rht,"wwwFormUrlEncode");async function Nht(t,e){let r=e.headers.get("Content-Type");if(r&&!r.startsWith("multipart/form-data"))return;e.headers.set("Content-Type",r??"multipart/form-data");let n=[];for(let[s,o]of Object.entries(t))for(let a of Array.isArray(o)?o:[o])if(typeof a=="string")n.push({headers:To({"Content-Disposition":`form-data; name="${s}"`}),body:qs(a,"utf-8")});else{if(a==null||typeof a!="object")throw new Error(`Unexpected value for key ${s}: ${a}. Value should be serialized to string first.`);{let c=a.name||"blob",l=To();l.set("Content-Disposition",`form-data; name="${s}"; filename="${c}"`),l.set("Content-Type",a.type||"application/octet-stream"),n.push({headers:l,body:a})}}e.multipartBody={parts:n}}i(Nht,"prepareFormData");var Ege=R(ige(),1),Cge=R(hge(),1);var OAt="HTTPS_PROXY",LAt="HTTP_PROXY",MAt="ALL_PROXY",FAt="NO_PROXY",e3="proxyPolicy",Age=[],Ige=!1,UAt=new Map;function LT(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(LT,"getEnvironmentValue");function Sge(){if(!process)return;let t=LT(OAt),e=LT(MAt),r=LT(LAt);return t||e||r}i(Sge,"loadEnvironmentProxyValue");function qAt(t,e,r){if(e.length===0)return!1;let n=new URL(t).hostname;if(r?.has(n))return r.get(n);let s=!1;for(let o of e)o[0]==="."?(n.endsWith(o)||n.length===o.length-1&&n===o.slice(1))&&(s=!0):n===o&&(s=!0);return r?.set(n,s),s}i(qAt,"isBypassed");function $At(){let t=LT(FAt);return Ige=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i($At,"loadNoProxy");function t3(t){if(!t&&(t=Sge(),!t))return;let e=new URL(t);return{host:(e.protocol?e.protocol+"//":"")+e.hostname,port:Number.parseInt(e.port||"80"),username:e.username,password:e.password}}i(t3,"getDefaultProxySettings");function GAt(){let t=Sge();return t?new URL(t):void 0}i(GAt,"getDefaultProxySettingsInternal");function gge(t){let e;try{e=new URL(t.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${t.host}".`)}return e.port=String(t.port),t.username&&(e.username=t.username),t.password&&(e.password=t.password),e}i(gge,"getUrlFromProxySettings");function yge(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Ai.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.");let o=t.headers.toJSON();s?(e.httpProxyAgent||(e.httpProxyAgent=new Cge.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new Ege.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(yge,"setProxyAgentOnRequest");function MT(t,e){Ige||Age.push(...$At());let r=t?gge(t):GAt(),n={};return{name:e3,async sendRequest(s,o){return!s.proxySettings&&r&&!qAt(s.url,e?.customNoProxyList??Age,e?.customNoProxyList?void 0:UAt)?yge(s,n,r):s.proxySettings&&yge(s,n,gge(s.proxySettings)),o(s)}}}i(MT,"proxyPolicy");var r3="agentPolicy";function FT(t){return{name:r3,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(FT,"agentPolicy");var n3="tlsPolicy";function UT(t){return{name:n3,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(UT,"tlsPolicy");function qT(t){return typeof t.stream=="function"}i(qT,"isBlob");var $T=require("stream");async function*wge(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(wge,"streamAsyncIterator");function HAt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=wge.bind(t)),t.values||(t.values=wge.bind(t))}i(HAt,"makeAsyncIterable");function xge(t){return t instanceof ReadableStream?(HAt(t),$T.Readable.fromWeb(t)):t}i(xge,"ensureNodeStream");function zAt(t){return t instanceof Uint8Array?$T.Readable.from(Buffer.from(t)):qT(t)?xge(t.stream()):xge(t)}i(zAt,"toStream");async function bge(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(zAt);return $T.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(bge,"concat");function VAt(){return`----AzSDKFormBoundary${rm()}`}i(VAt,"generateBoundary");function WAt(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
|
|
`;return e}i(WAt,"encodeHeaders");function YAt(t){return t instanceof Uint8Array?t.byteLength:qT(t)?t.size===-1?void 0:t.size:void 0}i(YAt,"getLength");function JAt(t){let e=0;for(let r of t){let n=YAt(r);if(n===void 0)return;e+=n}return e}i(JAt,"getTotalLength");async function jAt(t,e,r){let n=[qs(`--${r}`,"utf-8"),...e.flatMap(o=>[qs(`\r
|
|
`,"utf-8"),qs(WAt(o.headers),"utf-8"),qs(`\r
|
|
`,"utf-8"),o.body,qs(`\r
|
|
--${r}`,"utf-8")]),qs(`--\r
|
|
\r
|
|
`,"utf-8")],s=JAt(n);s&&t.headers.set("Content-Length",s),t.body=await bge(n)}i(jAt,"buildRequestBody");var US="multipartPolicy",KAt=70,XAt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ZAt(t){if(t.length>KAt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!XAt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(ZAt,"assertValidBoundary");function GT(){return{name:US,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,o,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?ZAt(r):r=VAt(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await jAt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(GT,"multipartPolicy");function HT(){return mT()}i(HT,"createEmptyPipeline");var Bge=dT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),_fr=Bge.logger;function Cc(t){return Bge.createClientLogger(t)}i(Cc,"createClientLogger");var Ic=Cc("core-rest-pipeline");function i3(t={}){return CT({logger:Ic.info,...t})}i(i3,"logPolicy");var a3=IT;function c3(t={}){return ST(t)}i(c3,"redirectPolicy");var zT=R(require("node:os"),1),VT=R(require("node:process"),1);function Rge(){return"User-Agent"}i(Rge,"getHeaderName");async function Nge(t){if(VT.default&&VT.default.versions){let e=`${zT.default.type()} ${zT.default.release()}; ${zT.default.arch()}`,r=VT.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(Nge,"setPlatformSpecificData");var WT="1.22.2";function agt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(agt,"getUserAgentString");function Tge(){return Rge()}i(Tge,"getUserAgentHeaderName");async function YT(t){let e=new Map;e.set("core-rest-pipeline",WT),await Nge(e);let r=agt(e);return t?`${t} ${r}`:r}i(YT,"getUserAgentValue");var Pge=Tge(),_ge="userAgentPolicy";function l3(t={}){let e=YT(t.userAgentPrefix);return{name:_ge,async sendRequest(r,n){return r.headers.has(Pge)||r.headers.set(Pge,await e),n(r)}}}i(l3,"userAgentPolicy");var Qo=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function u3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new Qo(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(u3,"createAbortablePromise");var pgt="The delay was aborted.";function qS(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return u3(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??pgt})}i(qS,"delay");function Dd(t){if(nm(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(Dd,"getErrorMessage");function vge(t){return nm(t)}i(vge,"isError");function Sg(){return rm()}i(Sg,"randomUUID");var pt=im;var Qge=Symbol("rawContent");function p3(t){return typeof t[Qge]=="function"}i(p3,"hasRawContent");function Dge(t){return p3(t)?t[Qge]():t}i(Dge,"getRawContent");var JT=US;function f3(){let t=GT();return{name:JT,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)p3(n.body)&&(n.body=Dge(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(f3,"multipartPolicy");var m3=wT;function h3(){return xT()}i(h3,"decompressResponsePolicy");function A3(t={}){return RT(t)}i(A3,"defaultRetryPolicy");function g3(){return NT()}i(g3,"formDataPolicy");function kd(t){return t3(t)}i(kd,"getDefaultProxySettings");function y3(t,e){return MT(t,e)}i(y3,"proxyPolicy");var kge="setClientRequestIdPolicy";function E3(t="x-ms-client-request-id"){return{name:kge,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(E3,"setClientRequestIdPolicy");function C3(t){return FT(t)}i(C3,"agentPolicy");function I3(t){return UT(t)}i(I3,"tlsPolicy");var wg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Oge(t={}){let e=new S3(t.parentContext);return t.span&&(e=e.setValue(wg.span,t.span)),t.namespace&&(e=e.setValue(wg.namespace,t.namespace)),e}i(Oge,"createTracingContext");var S3=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var Mge=R(Lge(),1),KT=Mge.state;function fgt(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(fgt,"createDefaultTracingSpan");function mgt(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:fgt(),tracingContext:Oge({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(mgt,"createDefaultInstrumenter");function $S(){return KT.instrumenterImplementation||(KT.instrumenterImplementation=mgt()),KT.instrumenterImplementation}i($S,"getInstrumenter");function GS(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let f=$S().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),m=f.tracingContext,h=f.span;m.getValue(wg.namespace)||(m=m.setValue(wg.namespace,e)),h.setAttribute("az.namespace",m.getValue(wg.namespace));let A=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:m}});return{span:h,updatedOptions:A}}i(s,"startSpan");async function o(u,d,p,f){let{span:m,updatedOptions:h}=s(u,d,f);try{let A=await a(h.tracingOptions.tracingContext,()=>Promise.resolve(p(h,m)));return m.setStatus({status:"success"}),A}catch(A){throw m.setStatus({status:"error",error:A}),A}finally{m.end()}}i(o,"withSpan");function a(u,d,...p){return $S().withContext(u,d,...p)}i(a,"withContext");function c(u){return $S().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return $S().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(GS,"createTracingClient");var hu=gs;function lm(t){return hT(t)}i(lm,"isRestError");var Fge="tracingPolicy";function w3(t={}){let e=YT(t.userAgentPrefix),r=new pa({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=hgt();return{name:Fge,async sendRequest(s,o){if(!n)return o(s);let a=await e,c={"http.url":r.sanitizeUrl(s.url),"http.method":s.method,"http.user_agent":a,requestId:s.requestId};a&&(c["http.user_agent"]=a);let{span:l,tracingContext:u}=Agt(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return ygt(l,d),d}catch(d){throw ggt(l,d),d}}}}i(w3,"tracingPolicy");function hgt(){try{return GS({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:WT})}catch(t){Ic.warning(`Error when creating the TracingClient: ${Dd(t)}`);return}}i(hgt,"tryCreateTracingClient");function Agt(t,e,r){try{let{span:n,updatedOptions:s}=t.startSpan(`HTTP ${e.method}`,{tracingOptions:e.tracingOptions},{spanKind:"client",spanAttributes:r});if(!n.isRecording()){n.end();return}let o=t.createRequestHeaders(s.tracingOptions.tracingContext);for(let[a,c]of Object.entries(o))e.headers.set(a,c);return{span:n,tracingContext:s.tracingOptions.tracingContext}}catch(n){Ic.warning(`Skipping creating a tracing span due to an error: ${Dd(n)}`);return}}i(Agt,"tryCreateSpan");function ggt(t,e){try{t.setStatus({status:"error",error:vge(e)?e:void 0}),lm(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){Ic.warning(`Skipping tracing span processing due to an error: ${Dd(r)}`)}}i(ggt,"tryProcessError");function ygt(t,e){try{t.setAttribute("http.status_code",e.status);let r=e.headers.get("x-ms-request-id");r&&t.setAttribute("serviceRequestId",r),e.status>=400&&t.setStatus({status:"error"}),t.end()}catch(r){Ic.warning(`Skipping tracing span processing due to an error: ${Dd(r)}`)}}i(ygt,"tryProcessResponse");function XT(t){if(t instanceof AbortSignal)return{abortSignal:t};if(t.aborted)return{abortSignal:AbortSignal.abort(t.reason)};let e=new AbortController,r=!0;function n(){r&&(t.removeEventListener("abort",s),r=!1)}i(n,"cleanup");function s(){e.abort(t.reason),n()}return i(s,"listener"),t.addEventListener("abort",s),{abortSignal:e.signal,cleanup:n}}i(XT,"wrapAbortSignalLike");var Egt="wrapAbortSignalLikePolicy";function Uge(){return{name:Egt,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=XT(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(Uge,"wrapAbortSignalLikePolicy");function x3(t){let e=HT();return pt&&(t.agent&&e.addPolicy(C3(t.agent)),t.tlsOptions&&e.addPolicy(I3(t.tlsOptions)),e.addPolicy(y3(t.proxyOptions)),e.addPolicy(h3())),e.addPolicy(Uge()),e.addPolicy(g3(),{beforePolicies:[JT]}),e.addPolicy(l3(t.userAgentOptions)),e.addPolicy(E3(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(f3(),{afterPhase:"Deserialize"}),e.addPolicy(A3(t.retryOptions),{phase:"Retry"}),e.addPolicy(w3({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),pt&&e.addPolicy(c3(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(i3(t.loggingOptions),{afterPhase:"Sign"}),e}i(x3,"createPipelineFromOptions");function HS(){let t=ET();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?XT(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(HS,"createDefaultHttpClient");function Au(t){return To(t)}i(Au,"createHttpHeaders");function zS(t){return fT(t)}i(zS,"createPipelineRequest");var agr=Cc("core-rest-pipeline retryPolicy");var Cgt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Igt(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let o=await t();if(o===null)throw new Error("Failed to refresh access token.");return o}}i(n,"tryGetAccessToken");let s=await n();for(;s===null;)await qS(e),s=await n();return s}i(Igt,"beginRefresh");function b3(t,e){let r=null,n=null,s,o={...Cgt,...e},a={get isRefreshing(){return r!==null},get shouldRefresh(){return a.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-o.refreshWindowInMs<Date.now()},get mustRefresh(){return n===null||n.expiresOnTimestamp-o.forcedRefreshWindowInMs<Date.now()}};function c(l,u){return a.isRefreshing||(r=Igt(i(()=>t.getToken(l,u),"tryGetAccessToken"),o.retryIntervalInMs,n?.expiresOnTimestamp??Date.now()).then(p=>(r=null,n=p,s=u.tenantId,n)).catch(p=>{throw r=null,n=null,s=void 0,p})),r}return i(c,"refresh"),async(l,u)=>{let d=!!u.claims,p=s!==u.tenantId;return d&&(n=null),p||d||a.mustRefresh?c(l,u):(a.shouldRefresh&&c(l,u),n)}}i(b3,"createTokenCycler");var Hge="bearerTokenAuthenticationPolicy";async function ZT(t,e){try{return[await e(t),void 0]}catch(r){if(lm(r)&&r.response)return[r.response,r];throw r}}i(ZT,"trySendRequest");async function Sgt(t){let{scopes:e,getAccessToken:r,request:n}=t,s={abortSignal:n.abortSignal,tracingOptions:n.tracingOptions,enableCae:!0},o=await r(e,s);o&&t.request.headers.set("Authorization",`Bearer ${o.token}`)}i(Sgt,"defaultAuthorizeRequest");function qge(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(qge,"isChallengeResponse");async function $ge(t,e){let{scopes:r}=t,n=await t.getAccessToken(r,{enableCae:!0,claims:e});return n?(t.request.headers.set("Authorization",`${n.tokenType??"Bearer"} ${n.token}`),!0):!1}i($ge,"authorizeRequestOnCaeChallenge");function xg(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||Ic,o={authorizeRequest:n?.authorizeRequest?.bind(n)??Sgt,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?b3(e):()=>Promise.resolve(null);return{name:Hge,async sendRequest(c,l){if(!c.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");await o.authorizeRequest({scopes:Array.isArray(r)?r:[r],request:c,getAccessToken:a,logger:s});let u,d,p;if([u,d]=await ZT(c,l),qge(u)){let f=Gge(u.headers.get("WWW-Authenticate"));if(f){let m;try{m=atob(f)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`),u}p=await $ge({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await ZT(c,l))}else if(o.authorizeRequestOnChallenge&&(p=await o.authorizeRequestOnChallenge({scopes:Array.isArray(r)?r:[r],request:c,response:u,getAccessToken:a,logger:s}),p&&([u,d]=await ZT(c,l)),qge(u)&&(f=Gge(u.headers.get("WWW-Authenticate")),f))){let m;try{m=atob(f)}catch{return s.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`),u}p=await $ge({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await ZT(c,l))}}if(d)throw d;return u}}}i(xg,"bearerTokenAuthenticationPolicy");function wgt(t){let e=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,r=/(\w+)="([^"]*)"/g,n=[],s;for(;(s=e.exec(t))!==null;){let o=s[1],a=s[2],c={},l;for(;(l=r.exec(a))!==null;)c[l[1]]=l[2];n.push({scheme:o,params:c})}return n}i(wgt,"parseChallenges");function Gge(t){return t?wgt(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(Gge,"getCaeChallengeClaims");function Do(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(Do,"isTokenCredential");var B3="DisableKeepAlivePolicy";function zge(){return{name:B3,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(zge,"createDisableKeepAlivePolicy");function Vge(t){return t.getOrderedPolicies().some(e=>e.name===B3)}i(Vge,"pipelineContainsDisableKeepAlivePolicy");function R3(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(R3,"encodeByteArray");function N3(t){return Buffer.from(t,"base64")}i(N3,"decodeString");function bgt(t,e){return e!=="Composite"&&e!=="Dictionary"&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean"||e?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||t===void 0||t===null)}i(bgt,"isPrimitiveBody");var Bgt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wge(t){return Bgt.test(t)}i(Wge,"isDuration");var Rgt=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function Yge(t){return Rgt.test(t)}i(Yge,"isValidUuid");function Ngt(t){let e={...t.headers,...t.body};return t.hasNullableType&&Object.getOwnPropertyNames(e).length===0?t.shouldWrapBody?{body:null}:null:t.shouldWrapBody?{...t.headers,body:t.body}:e}i(Ngt,"handleNullableResponseAndWrappableBody");function T3(t,e){let r=t.parsedHeaders;if(t.request.method==="HEAD")return{...r,body:t.parsedBody};let n=e&&e.bodyMapper,s=!!n?.nullable,o=n?.type.name;if(o==="Stream")return{...r,blobBody:t.blobBody,readableStreamBody:t.readableStreamBody};let a=o==="Composite"&&n.type.modelProperties||{},c=Object.keys(a).some(l=>a[l].serializedName==="");if(o==="Sequence"||c){let l=t.parsedBody??[];for(let u of Object.keys(a))a[u].serializedName&&(l[u]=t.parsedBody?.[u]);if(r)for(let u of Object.keys(r))l[u]=r[u];return s&&!t.parsedBody&&!r&&Object.getOwnPropertyNames(a).length===0?null:l}return Ngt({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:bgt(t.parsedBody,o)})}i(T3,"flattenResponse");var P3=class{static{i(this,"SerializerImpl")}modelMappers;isXML;constructor(e={},r=!1){this.modelMappers=e,this.isXML=r}validateConstraints(e,r,n){let s=i((o,a)=>{throw new Error(`"${n}" with value "${r}" should satisfy the constraint "${o}": ${a}.`)},"failValidation");if(e.constraints&&r!==void 0&&r!==null){let{ExclusiveMaximum:o,ExclusiveMinimum:a,InclusiveMaximum:c,InclusiveMinimum:l,MaxItems:u,MaxLength:d,MinItems:p,MinLength:f,MultipleOf:m,Pattern:h,UniqueItems:A}=e.constraints;if(o!==void 0&&r>=o&&s("ExclusiveMaximum",o),a!==void 0&&r<=a&&s("ExclusiveMinimum",a),c!==void 0&&r>c&&s("InclusiveMaximum",c),l!==void 0&&r<l&&s("InclusiveMinimum",l),u!==void 0&&r.length>u&&s("MaxItems",u),d!==void 0&&r.length>d&&s("MaxLength",d),p!==void 0&&r.length<p&&s("MinItems",p),f!==void 0&&r.length<f&&s("MinLength",f),m!==void 0&&r%m!==0&&s("MultipleOf",m),h){let y=typeof h=="string"?new RegExp(h):h;(typeof r!="string"||r.match(y)===null)&&s("Pattern",h)}A&&r.some((y,E,I)=>I.indexOf(y)!==E)&&s("UniqueItems",A)}}serialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"}},a={},c=e.type.name;n||(n=e.serializedName),c.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(r=e.defaultValue);let{required:l,nullable:u}=e;if(l&&u&&r===void 0)throw new Error(`${n} cannot be undefined.`);if(l&&!u&&r==null)throw new Error(`${n} cannot be null or undefined.`);if(!l&&u===!1&&r===null)throw new Error(`${n} cannot be null.`);return r==null||c.match(/^any$/i)!==null?a=r:c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null?a=Dgt(c,n,r):c.match(/^Enum$/i)!==null?a=kgt(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=Mgt(c,r,n):c.match(/^ByteArray$/i)!==null?a=Ogt(n,r):c.match(/^Base64Url$/i)!==null?a=Lgt(n,r):c.match(/^Sequence$/i)!==null?a=Fgt(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=Ugt(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=$gt(this,e,r,n,!!this.isXML,o)),a}deserialize(e,r,n,s={xml:{}}){let o={xml:{rootName:s.xml.rootName??"",includeRoot:s.xml.includeRoot??!1,xmlCharKey:s.xml.xmlCharKey??"_"},ignoreUnknownProperties:s.ignoreUnknownProperties??!1};if(r==null)return this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped&&(r=[]),e.defaultValue!==void 0&&(r=e.defaultValue),r;let a,c=e.type.name;if(n||(n=e.serializedName),c.match(/^Composite$/i)!==null)a=Hgt(this,e,r,n,o);else{if(this.isXML){let l=o.xml.xmlCharKey;r["$"]!==void 0&&r[l]!==void 0&&(r=r[l])}c.match(/^Number$/i)!==null?(a=parseFloat(r),isNaN(a)&&(a=r)):c.match(/^Boolean$/i)!==null?r==="true"?a=!0:r==="false"?a=!1:a=r:c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null?a=r:c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null?a=new Date(r):c.match(/^UnixTime$/i)!==null?a=Qgt(r):c.match(/^ByteArray$/i)!==null?a=N3(r):c.match(/^Base64Url$/i)!==null?a=_gt(r):c.match(/^Sequence$/i)!==null?a=Vgt(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=zgt(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function ko(t={},e=!1){return new P3(t,e)}i(ko,"createSerializer");function Tgt(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(Tgt,"trimEnd");function Pgt(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=R3(t);return Tgt(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(Pgt,"bufferToBase64Url");function _gt(t){if(t){if(t&&typeof t.valueOf()!="string")throw new Error("Please provide an input of type string for converting to Uint8Array");return t=t.replace(/-/g,"+").replace(/_/g,"/"),N3(t)}}i(_gt,"base64UrlToByteArray");function _3(t){let e=[],r="";if(t){let n=t.split(".");for(let s of n)s.charAt(s.length-1)==="\\"?r+=s.substr(0,s.length-1)+".":(r+=s,e.push(r),r="")}return e}i(_3,"splitSerializeName");function vgt(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(vgt,"dateToUnixTime");function Qgt(t){if(t)return new Date(t*1e3)}i(Qgt,"unixTimeToDate");function Dgt(t,e,r){if(r!=null){if(t.match(/^Number$/i)!==null){if(typeof r!="number")throw new Error(`${e} with value ${r} must be of type number.`)}else if(t.match(/^String$/i)!==null){if(typeof r.valueOf()!="string")throw new Error(`${e} with value "${r}" must be of type string.`)}else if(t.match(/^Uuid$/i)!==null){if(!(typeof r.valueOf()=="string"&&Yge(r)))throw new Error(`${e} with value "${r}" must be of type string and a valid uuid.`)}else if(t.match(/^Boolean$/i)!==null){if(typeof r!="boolean")throw new Error(`${e} with value ${r} must be of type boolean.`)}else if(t.match(/^Stream$/i)!==null){let n=typeof r;if(n!=="string"&&typeof r.pipe!="function"&&typeof r.tee!="function"&&!(r instanceof ArrayBuffer)&&!ArrayBuffer.isView(r)&&!((typeof Blob=="function"||typeof Blob=="object")&&r instanceof Blob)&&n!=="function")throw new Error(`${e} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return r}i(Dgt,"serializeBasicTypes");function kgt(t,e,r){if(!e)throw new Error(`Please provide a set of allowedValues to validate ${t} as an Enum Type.`);if(!e.some(s=>typeof s.valueOf()=="string"?s.toLowerCase()===r.toLowerCase():s===r))throw new Error(`${r} is not a valid value for ${t}. The valid values are: ${JSON.stringify(e)}.`);return r}i(kgt,"serializeEnumType");function Ogt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=R3(e)}return e}i(Ogt,"serializeByteArrayType");function Lgt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=Pgt(e)}return e}i(Lgt,"serializeBase64UrlType");function Mgt(t,e,r){if(e!=null){if(t.match(/^Date$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString().substring(0,10):new Date(e).toISOString().substring(0,10)}else if(t.match(/^DateTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);e=e instanceof Date?e.toISOString():new Date(e).toISOString()}else if(t.match(/^DateTimeRfc1123$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);e=e instanceof Date?e.toUTCString():new Date(e).toUTCString()}else if(t.match(/^UnixTime$/i)!==null){if(!(e instanceof Date||typeof e.valueOf()=="string"&&!isNaN(Date.parse(e))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);e=vgt(e)}else if(t.match(/^TimeSpan$/i)!==null&&!Wge(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(Mgt,"serializeDateTypes");function Fgt(t,e,r,n,s,o){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);let a=e.type.element;if(!a||typeof a!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);a.type.name==="Composite"&&a.type.className&&(a=t.modelMappers[a.type.className]??a);let c=[];for(let l=0;l<r.length;l++){let u=t.serialize(a,r[l],n,o);if(s&&a.xmlNamespace){let d=a.xmlNamespacePrefix?`xmlns:${a.xmlNamespacePrefix}`:"xmlns";a.type.name==="Composite"?(c[l]={...u},c[l]["$"]={[d]:a.xmlNamespace}):(c[l]={},c[l][o.xml.xmlCharKey]=u,c[l]["$"]={[d]:a.xmlNamespace})}else c[l]=u}return c}i(Fgt,"serializeSequenceType");function Ugt(t,e,r,n,s,o){if(typeof r!="object")throw new Error(`${n} must be of type object.`);let a=e.type.value;if(!a||typeof a!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}.`);let c={};for(let l of Object.keys(r)){let u=t.serialize(a,r[l],n,o);c[l]=Xge(a,u,s,o)}if(s&&e.xmlNamespace){let l=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns",u=c;return u["$"]={[l]:e.xmlNamespace},u}return c}i(Ugt,"serializeDictionaryType");function qgt(t,e,r){let n=e.type.additionalProperties;return!n&&e.type.className?jge(t,e,r)?.type.additionalProperties:n}i(qgt,"resolveAdditionalProperties");function jge(t,e,r){let n=e.type.className;if(!n)throw new Error(`Class name for model "${r}" is not provided in the mapper "${JSON.stringify(e,void 0,2)}".`);return t.modelMappers[n]}i(jge,"resolveReferencedMapper");function Kge(t,e,r){let n=e.type.modelProperties;if(!n){let s=jge(t,e,r);if(!s)throw new Error(`mapper() cannot be null or undefined for model "${e.type.className}".`);if(n=s?.type.modelProperties,!n)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(s)}" of type "${e.type.className}" for object "${r}".`)}return n}i(Kge,"resolveModelProperties");function $gt(t,e,r,n,s,o){if(eP(t,e)&&(e=Zge(t,e,r,"clientName")),r!=null){let a={},c=Kge(t,e,n);for(let u of Object.keys(c)){let d=c[u];if(d.readOnly)continue;let p,f=a;if(t.isXML)d.xmlIsWrapped?p=d.xmlName:p=d.xmlElementName||d.xmlName;else{let m=_3(d.serializedName);p=m.pop();for(let h of m){let A=f[h];A==null&&(r[u]!==void 0&&r[u]!==null||d.defaultValue!==void 0)&&(f[h]={}),f=f[h]}}if(f!=null){if(s&&e.xmlNamespace){let E=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";f["$"]={...f["$"],[E]:e.xmlNamespace}}let m=d.serializedName!==""?n+"."+d.serializedName:n,h=r[u],A=eP(t,e);A&&A.clientName===u&&h==null&&(h=e.serializedName);let y=t.serialize(d,h,m,o);if(y!==void 0&&p!==void 0&&p!==null){let E=Xge(d,y,s,o);s&&d.xmlIsAttribute?(f["$"]=f["$"]||{},f["$"][p]=y):s&&d.xmlIsWrapped?f[p]={[d.xmlElementName]:E}:f[p]=E}}}let l=qgt(t,e,n);if(l){let u=Object.keys(c);for(let d in r)u.every(f=>f!==d)&&(a[d]=t.serialize(l,r[d],n+'["'+d+'"]',o))}return a}return r}i($gt,"serializeCompositeType");function Xge(t,e,r,n){if(!r||!t.xmlNamespace)return e;let o={[t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns"]:t.xmlNamespace};if(["Composite"].includes(t.type.name)){if(e["$"])return e;{let c={...e};return c["$"]=o,c}}let a={};return a[n.xml.xmlCharKey]=e,a["$"]=o,a}i(Xge,"getXmlObjectValue");function Ggt(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(Ggt,"isSpecialXmlProperty");function Hgt(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";eP(t,e)&&(e=Zge(t,e,r,"serializedName"));let a=Kge(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],f=_3(a[d].serializedName);l.push(f[0]);let{serializedName:m,xmlName:h,xmlElementName:A}=p,y=n;m!==""&&m!==void 0&&(y=n+"."+m);let E=p.headerCollectionPrefix;if(E){let I={};for(let x of Object.keys(r))x.startsWith(E)&&(I[x.substring(E.length)]=t.deserialize(p.type.value,r[x],y,s)),l.push(x);c[d]=I}else if(t.isXML)if(p.xmlIsAttribute&&r["$"])c[d]=t.deserialize(p,r["$"][h],y,s);else if(p.xmlIsMsText)r[o]!==void 0?c[d]=r[o]:typeof r=="string"&&(c[d]=r);else{let I=A||h||m;if(p.xmlIsWrapped){let b=r[h]?.[A]??[];c[d]=t.deserialize(p,b,y,s),l.push(h)}else{let x=r[I];c[d]=t.deserialize(p,x,y,s),l.push(I)}}else{let I,x=r,b=0;for(let _ of f){if(!x)break;b++,x=x[_]}x===null&&b<f.length&&(x=void 0),I=x;let N=e.type.polymorphicDiscriminator;N&&d===N.clientName&&I==null&&(I=e.serializedName);let v;if(Array.isArray(r[d])&&a[d].serializedName===""){I=r[d];let _=t.deserialize(p,I,y,s);for(let[J,Be]of Object.entries(c))Object.prototype.hasOwnProperty.call(_,J)||(_[J]=Be);c=_}else(I!==void 0||p.defaultValue!==void 0)&&(v=t.deserialize(p,I,y,s),c[d]=v)}}let u=e.type.additionalProperties;if(u){let d=i(p=>{for(let f in a)if(_3(a[f].serializedName)[0]===p)return!1;return!0},"isAdditionalProperty");for(let p in r)d(p)&&(c[p]=t.deserialize(u,r[p],n+'["'+p+'"]',s))}else if(r&&!s.ignoreUnknownProperties)for(let d of Object.keys(r))c[d]===void 0&&!l.includes(d)&&!Ggt(d,s)&&(c[d]=r[d]);return c}i(Hgt,"deserializeCompositeType");function zgt(t,e,r,n,s){let o=e.type.value;if(!o||typeof o!="object")throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){let a={};for(let c of Object.keys(r))a[c]=t.deserialize(o,r[c],n,s);return a}return r}i(zgt,"deserializeDictionaryType");function Vgt(t,e,r,n,s){let o=e.type.element;if(!o||typeof o!="object")throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]),o.type.name==="Composite"&&o.type.className&&(o=t.modelMappers[o.type.className]??o);let a=[];for(let c=0;c<r.length;c++)a[c]=t.deserialize(o,r[c],`${n}[${c}]`,s);return a}return r}i(Vgt,"deserializeSequenceType");function Wgt(t,e,r){let n=[r];for(;n.length;){let s=n.shift(),o=e===s?e:s+"."+e;if(Object.prototype.hasOwnProperty.call(t,o))return t[o];for(let[a,c]of Object.entries(t))a.startsWith(s+".")&&c.type.uberParent===s&&c.type.className&&n.push(c.type.className)}}i(Wgt,"getIndexDiscriminator");function Zge(t,e,r,n){let s=eP(t,e);if(s){let o=s[n];if(o){n==="serializedName"&&(o=o.replace(/\\/gi,""));let a=r[o],c=e.type.uberParent??e.type.className;if(typeof a=="string"&&c){let l=Wgt(t.modelMappers.discriminators,a,c);l&&(e=l)}}}return e}i(Zge,"getPolymorphicMapper");function eP(t,e){return e.type.polymorphicDiscriminator||Jge(t,e.type.uberParent)||Jge(t,e.type.className)}i(eP,"getPolymorphicDiscriminatorRecursively");function Jge(t,e){return e&&t.modelMappers[e]&&t.modelMappers[e].type.polymorphicDiscriminator}i(Jge,"getPolymorphicDiscriminatorSafely");var Sc={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};var tye=R(eye(),1),v3=tye.state;function Ld(t,e,r){let n=e.parameterPath,s=e.mapper,o;if(typeof n=="string"&&(n=[n]),Array.isArray(n)){if(n.length>0)if(s.isConstant)o=s.defaultValue;else{let a=rye(t,n);!a.propertyFound&&r&&(a=rye(r,n));let c=!1;a.propertyFound||(c=s.required||n[0]==="options"&&n.length===2),o=c?s.defaultValue:a.propertyValue}}else{s.required&&(o={});for(let a in n){let c=s.type.modelProperties[a],l=n[a],u=Ld(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(Ld,"getOperationArgumentValueFromParameter");function rye(t,e){let r={propertyFound:!1},n=0;for(;n<e.length;++n){let s=e[n];if(t&&s in t)t=t[s];else break}return n===e.length&&(r.propertyValue=t,r.propertyFound=!0),r}i(rye,"getPropertyFromParameterPath");var nye=Symbol.for("@azure/core-client original request");function Ygt(t){return nye in t}i(Ygt,"hasOriginalRequest");function gu(t){if(Ygt(t))return gu(t[nye]);let e=v3.operationRequestMap.get(t);return e||(e={},v3.operationRequestMap.set(t,e)),e}i(gu,"getOperationRequestInfo");var Jgt=["application/json","text/json"],jgt=["application/xml","application/atom+xml"],sye="deserializationPolicy";function Q3(t={}){let e=t.expectedContentTypes?.json??Jgt,r=t.expectedContentTypes?.xml??jgt,n=t.parseXML,s=t.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}};return{name:sye,async sendRequest(a,c){let l=await c(a);return Zgt(e,r,l,o,n)}}}i(Q3,"deserializationPolicy");function Kgt(t){let e,r=t.request,n=gu(r),s=n?.operationSpec;return s&&(n?.operationResponseGetter?e=n?.operationResponseGetter(s,t):e=s.responses[t.status]),e}i(Kgt,"getOperationResponseMap");function Xgt(t){let e=t.request,n=gu(e)?.shouldDeserialize,s;return n===void 0?s=!0:typeof n=="boolean"?s=n:s=n(t),s}i(Xgt,"shouldDeserializeResponse");async function Zgt(t,e,r,n,s){let o=await ryt(t,e,r,n,s);if(!Xgt(o))return o;let c=gu(o.request)?.operationSpec;if(!c||!c.responses)return o;let l=Kgt(o),{error:u,shouldReturnResponse:d}=tyt(o,c,l,n);if(u)throw u;if(d)return o;if(l){if(l.bodyMapper){let p=o.parsedBody;c.isXML&&l.bodyMapper.type.name===Sc.Sequence&&(p=typeof p=="object"?p[l.bodyMapper.xmlElementName]:[]);try{o.parsedBody=c.serializer.deserialize(l.bodyMapper,p,"operationRes.parsedBody",n)}catch(f){throw new hu(`Error ${f} occurred in deserializing the responseBody - ${o.bodyAsText}`,{statusCode:o.status,request:o.request,response:o})}}else c.httpMethod==="HEAD"&&(o.parsedBody=r.status>=200&&r.status<300);l.headersMapper&&(o.parsedHeaders=c.serializer.deserialize(l.headersMapper,o.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:!0}))}return o}i(Zgt,"deserializeResponseBody");function eyt(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(eyt,"isOperationSpecEmpty");function tyt(t,e,r,n){let s=200<=t.status&&t.status<300;if(eyt(e)?s:!!r)if(r){if(!r.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=r??e.responses.default,c=t.request.streamResponseStatusCodes?.has(t.status)?`Unexpected status code: ${t.status}`:t.bodyAsText,l=new hu(c,{statusCode:t.status,request:t.request,response:t});if(!a&&!(t.parsedBody?.error?.code&&t.parsedBody?.error?.message))throw l;let u=a?.bodyMapper,d=a?.headersMapper;try{if(t.parsedBody){let p=t.parsedBody,f;if(u){let h=p;if(e.isXML&&u.type.name===Sc.Sequence){h=[];let A=u.xmlElementName;typeof p=="object"&&A&&(h=p[A])}f=e.serializer.deserialize(u,h,"error.response.parsedBody",n)}let m=p.error||f||p;l.code=m.code,m.message&&(l.message=m.message),u&&(l.response.parsedBody=f)}t.headers&&d&&(l.response.parsedHeaders=e.serializer.deserialize(d,t.headers.toJSON(),"operationRes.parsedHeaders"))}catch(p){l.message=`Error "${p.message}" occurred in deserializing the responseBody - "${t.bodyAsText}" for the default response.`}return{error:l,shouldReturnResponse:!1}}i(tyt,"handleErrorResponse");async function ryt(t,e,r,n,s){if(!r.request.streamResponseStatusCodes?.has(r.status)&&r.bodyAsText){let o=r.bodyAsText,a=r.headers.get("Content-Type")||"",c=a?a.split(";").map(l=>l.toLowerCase()):[];try{if(c.length===0||c.some(l=>t.indexOf(l)!==-1))return r.parsedBody=JSON.parse(o),r;if(c.some(l=>e.indexOf(l)!==-1)){if(!s)throw new Error("Parsing XML not supported.");let l=await s(o,n.xml);return r.parsedBody=l,r}}catch(l){let u=`Error "${l}" occurred while parsing the response body - ${r.bodyAsText}.`,d=l.code||hu.PARSE_ERROR;throw new hu(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(ryt,"parse");function oye(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===Sc.Stream&&e.add(Number(r))}return e}i(oye,"getStreamingResponseStatusCodes");function wc(t){let{parameterPath:e,mapper:r}=t,n;return typeof e=="string"?n=e:Array.isArray(e)?n=e.join("."):n=r.serializedName,n}i(wc,"getPathStringFromParameter");var iye="serializationPolicy";function rP(t={}){let e=t.stringifyXML;return{name:iye,async sendRequest(r,n){let s=gu(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(nyt(r,a,o),syt(r,a,o,e)),n(r)}}}i(rP,"serializationPolicy");function nyt(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=Ld(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,wc(s));let a=s.mapper.headerCollectionPrefix;if(a)for(let c of Object.keys(o))t.headers.set(a+c,o[c]);else t.headers.set(s.mapper.serializedName||wc(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(nyt,"serializeHeaders");function syt(t,e,r,n=function(){throw new Error("XML serialization unsupported!")}){let s=e.options?.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}},a=o.xml.xmlCharKey;if(r.requestBody&&r.requestBody.mapper){t.body=Ld(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:f,xmlNamespacePrefix:m,nullable:h}=c,A=c.type.name;try{if(t.body!==void 0&&t.body!==null||h&&t.body===null||l){let y=wc(r.requestBody);t.body=r.serializer.serialize(c,t.body,y,o);let E=A===Sc.Stream;if(r.isXML){let I=m?`xmlns:${m}`:"xmlns",x=oyt(f,I,A,t.body,o);A===Sc.Sequence?t.body=n(iyt(x,p||d||u,I,f),{rootName:d||u,xmlCharKey:a}):E||(t.body=n(x,{rootName:d||u,xmlCharKey:a}))}else{if(A===Sc.String&&(r.contentType?.match("text/plain")||r.mediaType==="text"))return;E||(t.body=JSON.stringify(t.body))}}}catch(y){throw new Error(`Error "${y.message}" occurred in serializing the payload - ${JSON.stringify(u,void 0," ")}.`)}}else if(r.formDataParameters&&r.formDataParameters.length>0){t.formData={};for(let c of r.formDataParameters){let l=Ld(e,c);if(l!=null){let u=c.mapper.serializedName||wc(c);t.formData[u]=r.serializer.serialize(c.mapper,l,wc(c),o)}}}}i(syt,"serializeRequestBody");function oyt(t,e,r,n,s){if(t&&!["Composite","Sequence","Dictionary"].includes(r)){let o={};return o[s.xml.xmlCharKey]=n,o["$"]={[e]:t},o}return n}i(oyt,"getXmlValueWithNamespace");function iyt(t,e,r,n){if(Array.isArray(t)||(t=[t]),!r||!n)return{[e]:t};let s={[e]:t};return s["$"]={[r]:n},s}i(iyt,"prepareXMLRootList");function VS(t={}){let e=x3(t??{});return t.credentialOptions&&e.addPolicy(xg({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(rP(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(Q3(t.deserializationOptions),{phase:"Deserialize"}),e}i(VS,"createClientPipeline");var D3;function aye(){return D3||(D3=HS()),D3}i(aye,"getCachedDefaultHttpClient");var ayt={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function lye(t,e,r,n){let s=cyt(e,r,n),o=!1,a=cye(t,s);if(e.path){let u=cye(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),lyt(u)?(a=u,o=!0):a=uyt(a,u)}let{queryParams:c,sequenceParams:l}=dyt(e,r,n);return a=fyt(a,c,l,o),a}i(lye,"getRequestUrl");function cye(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(cye,"replaceAll");function cyt(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=Ld(e,s,r),a=wc(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(cyt,"calculateUrlReplacements");function lyt(t){return t.includes("://")}i(lyt,"isAbsoluteUrl");function uyt(t,e){if(!e)return t;let r=new URL(t),n=r.pathname;n.endsWith("/")||(n=`${n}/`),e.startsWith("/")&&(e=e.substring(1));let s=e.indexOf("?");if(s!==-1){let o=e.substring(0,s),a=e.substring(s+1);n=n+o,a&&(r.search=r.search?`${r.search}&${a}`:a)}else n=n+e;return r.pathname=n,r.toString()}i(uyt,"appendPath");function dyt(t,e,r){let n=new Map,s=new Set;if(t.queryParameters?.length)for(let o of t.queryParameters){o.mapper.type.name==="Sequence"&&o.mapper.serializedName&&s.add(o.mapper.serializedName);let a=Ld(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,wc(o));let c=o.collectionFormat?ayt[o.collectionFormat]:"";if(Array.isArray(a)&&(a=a.map(l=>l??"")),o.collectionFormat==="Multi"&&a.length===0)continue;Array.isArray(a)&&(o.collectionFormat==="SSV"||o.collectionFormat==="TSV")&&(a=a.join(c)),o.skipEncoding||(Array.isArray(a)?a=a.map(l=>encodeURIComponent(l)):a=encodeURIComponent(a)),Array.isArray(a)&&(o.collectionFormat==="CSV"||o.collectionFormat==="Pipes")&&(a=a.join(c)),n.set(o.mapper.serializedName||wc(o),a)}}return{queryParams:n,sequenceParams:s}}i(dyt,"calculateQueryParameters");function pyt(t){let e=new Map;if(!t||t[0]!=="?")return e;t=t.slice(1);let r=t.split("&");for(let n of r){let[s,o]=n.split("=",2),a=e.get(s);a?Array.isArray(a)?a.push(o):e.set(s,[a,o]):e.set(s,o)}return e}i(pyt,"simpleParseQueryParams");function fyt(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=pyt(s.search);for(let[c,l]of e){let u=o.get(c);if(Array.isArray(u))if(Array.isArray(l)){u.push(...l);let d=new Set(u);o.set(c,Array.from(d))}else u.push(l);else u?(Array.isArray(l)?l.unshift(u):r.has(c)&&o.set(c,[u,l]),n||o.set(c,l)):o.set(c,l)}let a=[];for(let[c,l]of o)if(typeof l=="string")a.push(`${c}=${l}`);else if(Array.isArray(l))for(let u of l)a.push(`${c}=${u}`);else a.push(`${c}=${l}`);return s.search=a.length?`?${a.join("&")}`:"",s.toString()}i(fyt,"appendQueryParams");var k3=Cc("core-client");var WS=class{static{i(this,"ServiceClient")}_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&k3.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||aye(),this.pipeline=e.pipeline||myt(e),e.additionalPolicies?.length)for(let{policy:r,position:n}of e.additionalPolicies){let s=n==="perRetry"?"Sign":void 0;this.pipeline.addPolicy(r,{afterPhase:s})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,r){let n=r.baseUrl||this._endpoint;if(!n)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.");let s=lye(n,r,e,this),o=zS({url:s});o.method=r.httpMethod;let a=gu(o);a.operationSpec=r,a.operationArguments=e;let c=r.contentType||this._requestContentType;c&&r.requestBody&&o.headers.set("Content-Type",c);let l=e.options;if(l){let u=l.requestOptions;u&&(u.timeout&&(o.timeout=u.timeout),u.onUploadProgress&&(o.onUploadProgress=u.onUploadProgress),u.onDownloadProgress&&(o.onDownloadProgress=u.onDownloadProgress),u.shouldDeserialize!==void 0&&(a.shouldDeserialize=u.shouldDeserialize),u.allowInsecureConnection&&(o.allowInsecureConnection=!0)),l.abortSignal&&(o.abortSignal=l.abortSignal),l.tracingOptions&&(o.tracingOptions=l.tracingOptions)}this._allowInsecureConnection&&(o.allowInsecureConnection=!0),o.streamResponseStatusCodes===void 0&&(o.streamResponseStatusCodes=oye(r));try{let u=await this.sendRequest(o),d=T3(u,r.responses[u.status]);return l?.onResponse&&l.onResponse(u,d),d}catch(u){if(typeof u=="object"&&u?.response){let d=u.response,p=T3(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function myt(t){let e=hyt(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return VS({...t,credentialOptions:r})}i(myt,"createDefaultPipeline");function hyt(t){if(t.credentialScopes)return t.credentialScopes;if(t.endpoint)return`${t.endpoint}/.default`;if(t.baseUri)return`${t.baseUri}/.default`;if(t.credential&&!t.credentialScopes)throw new Error("When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy")}i(hyt,"getCredentialScopes");var uye={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function Ayt(t){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(t)}i(Ayt,"isUuid");var nP=i(async t=>{let e=Iyt(t.request),r=Eyt(t.response);if(r){let n=Cyt(r),s=yyt(t,n),o=gyt(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(uye.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function gyt(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&Ayt(n))return n}i(gyt,"extractTenantId");function yyt(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=uye.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(yyt,"buildScopes");function Eyt(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(Eyt,"getChallenge");function Cyt(t){return`${t.slice(7).trim()} `.split(" ").filter(s=>s).map(s=>(([o,a])=>({[o]:a}))(s.trim().split("="))).reduce((s,o)=>({...s,...o}),{})}i(Cyt,"parseChallenge");function Iyt(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(Iyt,"requestToOptions");var dye=Symbol("Original PipelineRequest"),Syt=Symbol.for("@azure/core-client original request");function JS(t,e={}){let n=t[dye],s=Au(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=zS({url:t.url,method:t.method,headers:s,withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,disableKeepAlive:!!t.keepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides});return e.originalRequest&&(o[Syt]=e.originalRequest),o}}i(JS,"toPipelineRequest");function um(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:jS(t.headers),withCredentials:t.withCredentials,timeout:t.timeout,requestId:t.headers.get("x-ms-client-request-id")||t.requestId,abortSignal:t.abortSignal,body:t.body,formData:t.formData,keepAlive:!!t.disableKeepAlive,onDownloadProgress:t.onDownloadProgress,onUploadProgress:t.onUploadProgress,proxySettings:t.proxySettings,streamResponseStatusCodes:t.streamResponseStatusCodes,agent:t.agent,requestOverrides:t.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};return e?.createProxy?new Proxy(n,{get(s,o,a){return o===dye?t:o==="clone"?()=>um(JS(n,{originalRequest:r}),{createProxy:!0,originalRequest:r}):Reflect.get(s,o,a)},set(s,o,a,c){return o==="keepAlive"&&(t.disableKeepAlive=!a),typeof o=="string"&&["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"].includes(o)&&(t[o]=a),Reflect.set(s,o,a,c)}}):n}i(um,"toWebResourceLike");function jS(t){return new O3(t.toJSON({preserveCase:!0}))}i(jS,"toHttpHeadersLike");function YS(t){return t.toLowerCase()}i(YS,"getHeaderKey");var O3=class t{static{i(this,"HttpHeaders")}_headersMap;constructor(e){if(this._headersMap={},e)for(let r in e)this.set(r,e[r])}set(e,r){this._headersMap[YS(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[YS(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[YS(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[YS(e)],r}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let r in this._headersMap)e.push(this._headersMap[r]);return e}headerNames(){let e=[],r=this.headersArray();for(let n=0;n<r.length;++n)e.push(r[n].name);return e}headerValues(){let e=[],r=this.headersArray();for(let n=0;n<r.length;++n)e.push(r[n].value);return e}toJson(e={}){let r={};if(e.preserveCase)for(let n in this._headersMap){let s=this._headersMap[n];r[s.name]=s.value}else for(let n in this._headersMap){let s=this._headersMap[n];r[YS(s.name)]=s.value}return r}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){let e={};for(let r in this._headersMap){let n=this._headersMap[r];e[n.name]=n.value}return new t(e)}};var pye=Symbol("Original FullOperationResponse");function sP(t,e){let r=um(t.request),n=jS(t.headers);return e?.createProxy?new Proxy(t,{get(s,o,a){return o==="headers"?n:o==="request"?r:o===pye?t:Reflect.get(s,o,a)},set(s,o,a,c){return o==="headers"?n=a:o==="request"&&(r=a),Reflect.set(s,o,a,c)}}):{...t,request:r,headers:n}}i(sP,"toCompatResponse");function oP(t){let r=t[pye],n=Au(t.headers.toJson({preserveCase:!0}));return r?(r.headers=n,r):{...t,headers:n,request:JS(t.request)}}i(oP,"toPipelineResponse");var KS=class extends WS{static{i(this,"ExtendedServiceClient")}constructor(e){super(e),e.keepAliveOptions?.enable===!1&&!Vge(this.pipeline)&&this.pipeline.addPolicy(zge()),e.redirectOptions?.handleRedirects===!1&&this.pipeline.removePolicy({name:a3})}async sendOperationRequest(e,r){let n=e?.options?.onResponse,s;function o(c,l,u){s=c,n&&n(c,l,u)}i(o,"onResponse"),e.options={...e.options,onResponse:o};let a=await super.sendOperationRequest(e,r);return s&&Object.defineProperty(a,"_response",{value:sP(s)}),a}};var L3;(function(t){t[t.ERROR=1]="ERROR",t[t.INFO=3]="INFO",t[t.OFF=0]="OFF",t[t.WARNING=2]="WARNING"})(L3||(L3={}));var wyt={log(t,e){},shouldLog(t){return!1}},fye="RequestPolicyFactoryPolicy";function M3(t){let e=t.slice().reverse();return{name:fye,async sendRequest(r,n){let s={async sendRequest(c){let l=await n(JS(c));return sP(l,{createProxy:!0})}};for(let c of e)s=c.create(s,wyt);let o=um(r,{createProxy:!0}),a=await s.sendRequest(o);return oP(a)}}}i(M3,"createRequestPolicyFactoryPolicy");function F3(t){return{sendRequest:i(async e=>{let r=await t.sendRequest(um(e,{createProxy:!0}));return oP(r)},"sendRequest")}}i(F3,"convertHttpClient");var mye=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",byt=mye+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Byt="["+mye+"]["+byt+"]*",Ryt=new RegExp("^"+Byt+"$");function hye(t,e){let r=[],n=e.exec(t);for(;n;){let s=[];s.startIndex=e.lastIndex-n[0].length;let o=n.length;for(let a=0;a<o;a++)s.push(n[a]);r.push(s),n=e.exec(t)}return r}i(hye,"getAllMatches");var U3=i(function(t){let e=Ryt.exec(t);return!(e===null||typeof e>"u")},"isName");function Aye(t){return typeof t<"u"}i(Aye,"isExist");var XS=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],iP=["__proto__","constructor","prototype"];var Nyt={allowBooleanAttributes:!1,unpairedTags:[]};function aP(t,e){e=Object.assign({},Nyt,e);let r=[],n=!1,s=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let o=0;o<t.length;o++)if(t[o]==="<"&&t[o+1]==="?"){if(o+=2,o=gye(t,o),o.err)return o}else if(t[o]==="<"){let a=o;if(o++,t[o]==="!"){o=yye(t,o);continue}else{let c=!1;t[o]==="/"&&(c=!0,o++);let l="";for(;o<t.length&&t[o]!==">"&&t[o]!==" "&&t[o]!==" "&&t[o]!==`
|
|
`&&t[o]!=="\r";o++)l+=t[o];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),o--),!Oyt(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Nr("InvalidTag",p,ys(t,o))}let u=_yt(t,o);if(u===!1)return Nr("InvalidAttr","Attributes for '"+l+"' have open quote.",ys(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=Eye(d,e);if(f===!0)n=!0;else return Nr(f.err.code,f.err.msg,ys(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Nr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",ys(t,a));if(r.length===0)return Nr("InvalidTag","Closing tag '"+l+"' has not been opened.",ys(t,a));{let p=r.pop();if(l!==p.tagName){let f=ys(t,p.tagStartPos);return Nr("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",ys(t,a))}r.length==0&&(s=!0)}}else return Nr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",ys(t,o));else{let p=Eye(d,e);if(p!==!0)return Nr(p.err.code,p.err.msg,ys(t,o-d.length+p.err.line));if(s===!0)return Nr("InvalidXml","Multiple possible root nodes found.",ys(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=yye(t,o);continue}else if(t[o+1]==="?"){if(o=gye(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=Dyt(t,o);if(p==-1)return Nr("InvalidChar","char '&' is not expected.",ys(t,o));o=p}else if(s===!0&&!Bg(t[o]))return Nr("InvalidXml","Extra text at the end",ys(t,o));t[o]==="<"&&o--}}else{if(Bg(t[o]))continue;return Nr("InvalidChar","char '"+t[o]+"' is not expected.",ys(t,o))}if(n){if(r.length==1)return Nr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ys(t,r[0].tagStartPos));if(r.length>0)return Nr("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Nr("InvalidXml","Start tag expected.",1);return!0}i(aP,"validate");function Bg(t){return t===" "||t===" "||t===`
|
|
`||t==="\r"}i(Bg,"isWhiteSpace");function gye(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 Nr("InvalidXml","XML declaration allowed only at the start of the document.",ys(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(gye,"readPI");function yye(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(yye,"readCommentAndCDATA");var Tyt='"',Pyt="'";function _yt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Tyt||t[e]===Pyt)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(_yt,"readAttributeStr");function vyt(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&Bg(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n++;continue}let o=t.slice(s,n),a=n;for(;n<r&&!Bg(t[n])&&t[n]!=="=";)n++;let c=t.slice(a,n),l,u=n;for(;u<r&&Bg(t[u]);)u++;u<r&&t[u]==="="&&(l=t.slice(n,u+1),n=u+1);let d,p,f=n;for(;f<r&&Bg(t[f]);)f++;if(f<r&&(t[f]==='"'||t[f]==="'")){let h=f+1,A=t.indexOf(t[f],h);A!==-1&&(d=t[f],p=t.slice(h,A),n=A+1)}let m={startIndex:s};m[1]=o,m[2]=c,m[3]=l,m[4]=d!==void 0?!0:void 0,m[5]=d,m[6]=p,e.push(m)}return e}i(vyt,"scanAttributeTokens");function Eye(t,e){let r=vyt(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Nr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",ZS(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Nr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",ZS(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Nr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",ZS(r[s]));let o=r[s][2];if(!kyt(o))return Nr("InvalidAttr","Attribute '"+o+"' is an invalid name.",ZS(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Nr("InvalidAttr","Attribute '"+o+"' is repeated.",ZS(r[s]))}return!0}i(Eye,"validateAttributeString");function Qyt(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(Qyt,"validateNumberAmpersand");function Dyt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Qyt(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(Dyt,"validateAmpersand");function Nr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Nr,"getErrorObject");function kyt(t){return U3(t)}i(kyt,"validateAttrName");function Oyt(t){return U3(t)}i(Oyt,"validateTagName");function ys(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(ys,"getLineNumberForPosition");function ZS(t){return t.startIndex+t[1].length}i(ZS,"getPositionFromMatch");var q3={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var ew={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},$3={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Rg=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Lyt=new Set("!?\\\\/[]$%{}^&*()<>|+");function Cye(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Lyt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(Cye,"validateEntityName");function tw(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let o=s.val;typeof o=="string"&&(e[n]=o)}}return e}i(tw,"mergeEntityMaps");var dm="external",cP="base",G3="all";function Myt(t){return!t||t===dm?new Set([dm]):t===G3?new Set([G3]):t===cP?new Set([cP]):Array.isArray(t)?new Set(t):new Set([dm])}i(Myt,"parseLimitTiers");var Hs=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Fyt=new Set([9,10,13]);function Uyt(t){if(!t)return{xmlVersion:1,onLevel:Hs.allow,nullLevel:Hs.remove};let e=t.xmlVersion===1.1?1.1:1,r=Hs[t.onNCR]??Hs.allow,n=Hs[t.nullNCR]??Hs.remove,s=Math.max(n,Hs.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i(Uyt,"parseNCRConfig");var Ng=class{static{i(this,"EntityDecoder")}constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=Myt(this._limit.applyLimitsTo??dm),this._numericAllowed=e.numericAllowed??!0,this._baseMap=tw(ew,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let r=Uyt(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel,this._onExternalEntity=typeof e.onExternalEntity=="function"?e.onExternalEntity:null,this._onInputEntity=typeof e.onInputEntity=="function"?e.onInputEntity:null}_applyRegistrationHook(e,r,n,s){if(!e)return!0;let o=e(r,n);if(o===Rg.BLOCK)return!1;if(o===Rg.THROW)throw new Error(`[EntityDecoder] Registration of ${s} entity "&${r};" was rejected by hook`);return!0}setExternalEntities(e){if(e)for(let s of Object.keys(e))Cye(s);if(!this._onExternalEntity){this._externalMap=tw(e);return}let r=tw(e),n=Object.create(null);for(let[s,o]of Object.entries(r))this._applyRegistrationHook(this._onExternalEntity,s,o,"external")&&(n[s]=o);this._externalMap=n}addExternalEntity(e,r){Cye(e),typeof r=="string"&&r.indexOf("&")===-1&&this._applyRegistrationHook(this._onExternalEntity,e,r,"external")&&(this._externalMap[e]=r)}addInputEntities(e){if(this._totalExpansions=0,this._expandedLength=0,!this._onInputEntity){this._inputMap=tw(e);return}let r=tw(e),n=Object.create(null);for(let[s,o]of Object.entries(r))this._applyRegistrationHook(this._onInputEntity,s,o,"input")&&(n[s]=o);this._inputMap=n}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0||e.indexOf("&")===-1)return e;let r=e,n=[],s=e.length,o=0,a=0,c=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,u=c||l;for(;a<s;){if(e.charCodeAt(a)!==38){a++;continue}let p=a+1;for(;p<s&&e.charCodeAt(p)!==59&&p-a<=32;)p++;if(p>=s||e.charCodeAt(p)!==59){a++;continue}let f=e.slice(a+1,p);if(f.length===0){a++;continue}let m,h;if(this._removeSet.has(f))m="",h===void 0&&(h=dm);else if(this._leaveSet.has(f)){a++;continue}else if(f.charCodeAt(0)===35){let A=this._resolveNCR(f);if(A===void 0){a++;continue}m=A,h=cP}else{let A=this._resolveName(f);m=A?.value,h=A?.tier}if(m===void 0){a++;continue}if(a>o&&n.push(e.slice(o,a)),n.push(m),o=p+1,a=o,u&&this._tierCounts(h)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let A=m.length-(f.length+2);if(A>0&&(this._expandedLength+=A,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}o<s&&n.push(e.slice(o));let d=n.length===0?e:n.join("");return this._postCheck(d,r)}_tierCounts(e){return this._limitTiers.has(G3)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:dm};if(e in this._externalMap)return{value:this._externalMap[e],tier:dm};if(e in this._baseMap)return{value:this._baseMap[e],tier:cP}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Fyt.has(e)?Hs.remove:-1}_applyNCRAction(e,r,n){switch(e){case Hs.allow:return String.fromCodePoint(n);case Hs.remove:return"";case Hs.leave:return;case Hs.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let r=e.charCodeAt(1),n;if(r===120||r===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let s=this._classifyNCR(n);if(!this._numericAllowed&&s<Hs.remove)return;let o=s===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,s);return this._applyNCRAction(o,e,n)}};var Iye=i(t=>XS.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),qyt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0,unicode:!1},tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(t,e,r){return t},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Iye};function $yt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(XS.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(iP.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i($yt,"validatePropertyName");function Sye(t,e){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??1e3),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null,appliesTo:t.appliesTo??"all"}:Sye(!0)}i(Sye,"normalizeProcessEntities");var wye=i(function(t){let e=Object.assign({},qyt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&$yt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=Iye),e.processEntities=Sye(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e},"buildOptions");var pm;typeof Symbol!="function"?pm="@@xmlMetadata":pm=Symbol("XML Node Metadata");var zs=class{static{i(this,"XmlNode")}constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),this.addStartIndex(r)}addStartIndex(e){e!==void 0&&(this.child[this.child.length-1][pm]={startIndex:e})}addEndIndex(e){let r=this.child[this.child.length-1];r!==void 0&&r[pm]!==void 0&&r[pm].endIndex===void 0&&(r[pm].endIndex=e)}static getMetaDataSymbol(){return pm}};var bye=":A-Za-z_\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Gyt=bye+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",Bye=":A-Za-z_\xC0-\u02FF\u0370-\u037D\u037F-\u0486\u0488-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",Hyt=Bye+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",zyt="\\x20\\x09\\x0D\\x0A",H3=i((t,e,r="")=>{let n=t.replace(":",""),s=e.replace(":",""),o=`[${n}][${s}]*`;return{name:new RegExp(`^[${t}][${e}]*$`,r),ncName:new RegExp(`^${o}$`,r),qName:new RegExp(`^${o}(?::${o})?$`,r),nmToken:new RegExp(`^[${e}]+$`,r),nmTokens:new RegExp(`^[${e}]+(?:[${zyt}]+[${e}]+)*$`,r)}},"buildRegexes"),Vyt=H3(bye,Gyt),Wyt=H3(Bye,Hyt,"u"),Rye=":A-Za-z_",Yyt=Rye+"\\-\\.\\d",Jyt=H3(Rye,Yyt),Nye=i((t="1.0",e=!1)=>e?Jyt:t==="1.1"?Wyt:Vyt,"getRegexes");var z3=i((t,{xmlVersion:e="1.0",asciiOnly:r=!1}={})=>typeof t=="string"&&Nye(e,r).qName.test(t),"qName");var xye=["name","ncName","qName","nmToken","nmTokens"],jyt=256,lP=i((t,{xmlVersion:e="1.0",asciiOnly:r=!1,maxCacheSize:n=2048}={})=>{if(!xye.includes(t))throw new TypeError(`Unknown production "${t}". Must be one of: ${xye.join(", ")}`);let s=Nye(e,r)[t],o=new Map,a=i(c=>{if(typeof c!="string")return!1;let l=o.get(c);if(l!==void 0)return l;let u=s.test(c);return o.size<n&&c.length<=jyt&&o.set(c,u),u},"validator");return a.reset=()=>{o=new Map},a},"createValidator");var nw=class{static{i(this,"DocTypeReader")}constructor(e,r){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=r||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,r){let n=Object.create(null),s=0;if(e[r+3]==="O"&&e[r+4]==="C"&&e[r+5]==="T"&&e[r+6]==="Y"&&e[r+7]==="P"&&e[r+8]==="E"){r=r+9;let o=1,a=!1,c=!1,l=null,u="";for(;r<e.length;r++){if(l!==null){e[r]===l&&(l=null),u+=e[r];continue}if(!a&&!c&&(e[r]==='"'||e[r]==="'")){l=e[r],u+=e[r];continue}if(e[r]==="<"&&!c){if(a&&fm(e,"!ENTITY",r)){r+=7;let d,p;if([d,p,r]=this.readEntityExp(e,r+1,this.suppressValidationErr),p.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&s>=this.options.maxEntityCount)throw new Error(`Entity count (${s+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[d]=p,s++}}else if(a&&fm(e,"!ELEMENT",r)){r+=8;let{index:d}=this.readElementExp(e,r+1);r=d}else if(a&&fm(e,"!ATTLIST",r))r+=8;else if(a&&fm(e,"!NOTATION",r)){r+=9;let{index:d}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=d}else if(fm(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");o++,u=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,o--):o--,o===0)break}else e[r]==="["?a=!0:u+=e[r]}if(l!==null||o!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:r}}readEntityExp(e,r){r=Vs(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r])&&e[r]!=='"'&&e[r]!=="'";)r++;let s=e.substring(n,r);if(rw(s,{xmlVersion:this.xmlVersion}),r=Vs(e,r),!this.suppressValidationErr){if(e.substring(r,r+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(e[r]==="%")throw new Error("Parameter entities are not supported")}let o="";if([r,o]=this.readIdentifierVal(e,r,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&o.length>this.options.maxEntitySize)throw new Error(`Entity "${s}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return r--,[s,o,r]}readNotationExp(e,r){r=Vs(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);!this.suppressValidationErr&&rw(s,{xmlVersion:this.xmlVersion}),r=Vs(e,r);let o=e.substring(r,r+6).toUpperCase();if(!this.suppressValidationErr&&o!=="SYSTEM"&&o!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${o}"`);r+=o.length,r=Vs(e,r);let a=null,c=null;if(o==="PUBLIC")[r,a]=this.readIdentifierVal(e,r,"publicIdentifier"),r=Vs(e,r),(e[r]==='"'||e[r]==="'")&&([r,c]=this.readIdentifierVal(e,r,"systemIdentifier"));else if(o==="SYSTEM"&&([r,c]=this.readIdentifierVal(e,r,"systemIdentifier"),!this.suppressValidationErr&&!c))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:s,publicIdentifier:a,systemIdentifier:c,index:--r}}readIdentifierVal(e,r,n){let s="",o=e[r];if(o!=='"'&&o!=="'")throw new Error(`Expected quoted string, found "${o}"`);r++;let a=r;for(;r<e.length&&e[r]!==o;)r++;if(s=e.substring(a,r),e[r]!==o)throw new Error(`Unterminated ${n} value`);return r++,[r,s]}readElementExp(e,r){r=Vs(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);if(!this.suppressValidationErr&&!z3(s,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid element name: "${s}"`);r=Vs(e,r);let o="";if(e[r]==="E"&&fm(e,"MPTY",r))r+=4;else if(e[r]==="A"&&fm(e,"NY",r))r+=2;else if(e[r]==="("){r++;let a=r;for(;r<e.length&&e[r]!==")";)r++;if(o=e.substring(a,r),e[r]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[r]}"`);return{elementName:s,contentModel:o.trim(),index:r}}readAttlistExp(e,r){r=Vs(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);for(rw(s,{xmlVersion:this.xmlVersion}),r=Vs(e,r),n=r;r<e.length&&!/\s/.test(e[r]);)r++;let o=e.substring(n,r);if(!rw(o,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid attribute name: "${o}"`);r=Vs(e,r);let a="";if(e.substring(r,r+8).toUpperCase()==="NOTATION"){if(a="NOTATION",r+=8,r=Vs(e,r),e[r]!=="(")throw new Error(`Expected '(', found "${e[r]}"`);r++;let l=[];for(;r<e.length&&e[r]!==")";){let u=r;for(;r<e.length&&e[r]!=="|"&&e[r]!==")";)r++;let d=e.substring(u,r);if(d=d.trim(),!rw(d,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid notation name: "${d}"`);l.push(d),e[r]==="|"&&(r++,r=Vs(e,r))}if(e[r]!==")")throw new Error("Unterminated list of notations");r++,a+=" ("+l.join("|")+")"}else{let l=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;a+=e.substring(l,r);let u=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!u.includes(a.toUpperCase()))throw new Error(`Invalid attribute type: "${a}"`)}r=Vs(e,r);let c="";return e.substring(r,r+8).toUpperCase()==="#REQUIRED"?(c="#REQUIRED",r+=8):e.substring(r,r+7).toUpperCase()==="#IMPLIED"?(c="#IMPLIED",r+=7):[r,c]=this.readIdentifierVal(e,r,"ATTLIST"),{elementName:s,attributeName:o,attributeType:a,defaultValue:c,index:r}}},Vs=i((t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e},"skipWhitespace");function fm(t,e,r){for(let n=0;n<e.length;n++)if(e[n]!==t[r+n+1])return!1;return!0}i(fm,"hasSeq");function rw(t,e){if(z3(t,{xmlVersion:e}))return t;throw new Error(`Invalid entity name ${t}`)}i(rw,"validateEntityName");var Kyt=[48,1632,1776,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,65296,120782,120792,120802,120812,120822,66720,68912,69734,69872,69942,70096,70384,70736,70864,71248,71360,71472,71904,72016,72688,72784,73040,73120,73552,92768,92864,93008,123200,123632,124144,125264,130032],uP=255,dP=new Map,Tye=65535,Pye=1632,Tg=Pye,Xyt=Tye-Pye+1,pP=new Uint8Array(Xyt).fill(uP);for(let t of Kyt)for(let e=0;e<10;e++){let r=t+e;r<=Tye?pP[r-Tg]=e:dP.set(r,e)}var _ye=48,vye=57,Qye=45,fP=new Set([8722,65293,65123]);function Zyt(t){if(typeof t!="string")return t;let e=t.length;if(e===0)return t;let r=-1;for(let s=0;s<e;s++){let o=t.charCodeAt(s);if(!(o>=_ye&&o<=vye||o===Qye)){if(o<Tg){if(fP.has(o)){r=s;break}continue}if(o>=55296&&o<=56319){if(s+1<e){let a=t.charCodeAt(s+1);if(a>=56320&&a<=57343){let c=65536+(o-55296<<10)+(a-56320);if(dP.has(c)){r=s;break}}}continue}if(pP[o-Tg]!==uP||fP.has(o)){r=s;break}}}if(r===-1)return t;let n=[];r>0&&n.push(t.slice(0,r));for(let s=r;s<e;s++){let o=t.charCodeAt(s);if(o>=_ye&&o<=vye||o===Qye){n.push(t[s]);continue}if(o<Tg){n.push(fP.has(o)?"-":t[s]);continue}if(o>=55296&&o<=56319){if(s+1<e){let c=t.charCodeAt(s+1);if(c>=56320&&c<=57343){let l=65536+(o-55296<<10)+(c-56320),u=dP.get(l);if(u!==void 0){n.push(String.fromCharCode(u+48)),s++;continue}}}n.push(t[s]);continue}if(fP.has(o)){n.push("-");continue}let a=pP[o-Tg];n.push(a!==uP?String.fromCharCode(a+48):t[s])}return n.join("")}i(Zyt,"anynum");var Dye=Zyt;var eEt=/^[-+]?0x[a-fA-F0-9]+$/,tEt=/^0b[01]+$/,rEt=/^0o[0-7]+$/,nEt=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,sEt={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original",unicode:!1};function W3(t,e={}){if(e=Object.assign({},sEt,e),!t||typeof t!="string")return t;let r=t.trim();if(r.length===0)return t;if(e.skipLike!==void 0&&e.skipLike.test(r))return t;if(r==="0"||e.unicode&&(r=Dye(r),r==="0"))return 0;if(e.hex&&eEt.test(r))return V3(r,16);if(e.binary&&tEt.test(r))return V3(r,2);if(e.octal&&rEt.test(r))return V3(r,8);if(isFinite(r)){if(r.includes("e")||r.includes("E"))return iEt(t,r,e);{let n=nEt.exec(r);if(n){let s=n[1]||"",o=n[2],a=aEt(n[3]),c=s?r[o.length+1]===".":r[o.length]===".";if(!e.leadingZeros&&(o.length>1||o.length===1&&!c))return t;{let l=Number(r),u=String(l);if(l===0)return l;if(u.search(/[eE]/)!==-1)return e.eNotation?l:t;if(r.indexOf(".")!==-1)return u==="0"||u===a||u===`${s}${a}`?l:t;let d=o?a:r;return o?d===u||s+d===u?l:t:d===u||d===s+u?l:t}}else return t}}else{let n=Number(r);return Number.isNaN(n)?t:cEt(t,n,e)}}i(W3,"toNumber");var oEt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function iEt(t,e,r){if(!r.eNotation)return t;let n=e.match(oEt);if(n){let s=n[1]||"",o=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=s?e[a.length+1]===o:e[a.length]===o;return a.length>1&&c?t:a.length===1&&(n[3].startsWith(`.${o}`)||n[3][0]===o)?Number(e):a.length>0?r.leadingZeros&&!c?Number(e):t:Number(e)}else return t}i(iEt,"resolveEnotation");function aEt(t){if(t&&t.indexOf(".")!==-1){let e=t.length;for(;e>0&&t.charCodeAt(e-1)===48;)e--;return t=t.slice(0,e),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1)),t}return t}i(aEt,"trimZeros");function V3(t,e){let r=t.trim();if((e===2||e===8)&&(t=r.substring(2)),parseInt)return parseInt(t,e);if(Number.parseInt)return Number.parseInt(t,e);if(window&&window.parseInt)return window.parseInt(t,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}i(V3,"parse_int");function cEt(t,e,r){let n=e===1/0;switch(r.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return t}}i(cEt,"handleInfinity");function Y3(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(Y3,"getIgnoreAttributesFn");var Oo=class{static{i(this,"Expression")}constructor(e,r={},n){this.pattern=e,this.separator=r.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(s=>s.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(s=>s.attrName!==void 0),this._hasPositionSelector=this.segments.some(s=>s.position!==void 0)}_parse(e){let r=[],n=0,s="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(s.trim()&&(r.push(this._parseSegment(s.trim())),s=""),r.push({type:"deep-wildcard"}),n+=2):(s.trim()&&r.push(this._parseSegment(s.trim())),s="",n++):(s+=e[n],n++);return s.trim()&&r.push(this._parseSegment(s.trim())),r}_parseSegment(e){let r={type:"tag"},n=null,s=e,o=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(o&&(s=o[1]+o[3],o[2])){let d=o[2].slice(1,-1);d&&(n=d)}let a,c=s;if(s.includes("::")){let d=s.indexOf("::");if(a=s.substring(0,d).trim(),c=s.substring(d+2).trim(),!a)throw new Error(`Invalid namespace in pattern: ${e}`)}let l,u=null;if(c.includes(":")){let d=c.lastIndexOf(":"),p=c.substring(0,d).trim(),f=c.substring(d+1).trim();["first","last","odd","even"].includes(f)||/^nth\(\d+\)$/.test(f)?(l=p,u=f):l=c}else l=c;if(!l)throw new Error(`Invalid segment pattern: ${e}`);if(r.tag=l,a&&(r.namespace=a),n)if(n.includes("=")){let d=n.indexOf("=");r.attrName=n.substring(0,d).trim(),r.attrValue=n.substring(d+1).trim()}else r.attrName=n.trim();if(u){let d=u.match(/^nth\((\d+)\)$/);d?(r.position="nth",r.positionValue=parseInt(d[1],10)):r.position=u}return r}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}};var Pg=class{static{i(this,"ExpressionSet")}constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._deepByTerminalTag=new Map,this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard()){let o=e.segments[e.segments.length-1];if(o&&o.type!=="deep-wildcard"&&o.tag!=="*"){let a=o.tag;this._deepByTerminalTag.has(a)||this._deepByTerminalTag.set(a,[]),this._deepByTerminalTag.get(a).push(e)}else this._deepWildcards.push(e);return this}let r=e.length,s=e.segments[e.segments.length-1]?.tag;if(!s||s==="*")this._wildcardByDepth.has(r)||this._wildcardByDepth.set(r,[]),this._wildcardByDepth.get(r).push(e);else{let o=`${r}:${s}`;this._byDepthAndTag.has(o)||this._byDepthAndTag.set(o,[]),this._byDepthAndTag.get(o).push(e)}return this}addAll(e){for(let r of e)this.add(r);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let r=e.getDepth(),n=e.getCurrentTag(),s=`${r}:${n}`,o=this._byDepthAndTag.get(s);if(o){for(let l=0;l<o.length;l++)if(e.matches(o[l]))return o[l]}let a=this._wildcardByDepth.get(r);if(a){for(let l=0;l<a.length;l++)if(e.matches(a[l]))return a[l]}let c=this._deepByTerminalTag.get(n);if(c){for(let l=0;l<c.length;l++)if(e.matches(c[l]))return c[l]}for(let l=0;l<this._deepWildcards.length;l++)if(e.matches(this._deepWildcards[l]))return this._deepWildcards[l];return null}};var J3=class{static{i(this,"MatcherView")}constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let r=this._matcher.path;if(r.length!==0)return r[r.length-1].values?.[e]}hasAttr(e){let r=this._matcher.path;if(r.length===0)return!1;let n=r[r.length-1];return n.values!==void 0&&e in n.values}getAnyParentAttr(e){return this._matcher.getAnyParentAttr(e)}hasAnyParentAttr(e){return this._matcher.hasAnyParentAttr(e)}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,r=!0){return this._matcher.toString(e,r)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},xc=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new J3(this),this._keptAttrs=[]}push(e,r=null,n=null,s=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let o=this.path.length,a=this.siblingStacks[o];a||(a={counts:new Map,total:0},this.siblingStacks[o]=a);let c=n?`${n}:${e}`:e,l=a.counts.get(c)||0,u=a.total;a.counts.set(c,l+1),a.total++;let d={tag:e,position:u,counter:l};n!=null&&(d.namespace=n),r!=null&&(d.values=r),this.path.push(d);let p=this.path.length,f=s!==null?s.keep:null;if(f!=null&&f.length>0&&r)for(let m=0;m<f.length;m++){let h=f[m];r[h]!==void 0&&this._keptAttrs.push({depth:p,name:h,value:r[h]})}}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1);let r=this.path.length+1;for(;this._keptAttrs.length>0&&this._keptAttrs[this._keptAttrs.length-1].depth>=r;)this._keptAttrs.pop();return e}updateCurrent(e){if(this.path.length>0){let r=this.path[this.path.length-1];e!=null&&(r.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let r=this.path[this.path.length-1];return r.values!==void 0&&e in r.values}getAnyParentAttr(e){let r=this._keptAttrs;for(let n=r.length-1;n>=0;n--)if(r[n].name===e)return r[n].value}hasAnyParentAttr(e){let r=this._keptAttrs;for(let n=r.length-1;n>=0;n--)if(r[n].name===e)return!0;return!1}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,r=!0){let n=e||this.separator;if(n===this.separator&&r===!0){if(this._pathStringCache!==null)return this._pathStringCache;let o=this.path.map(a=>a.namespace?`${a.namespace}:${a.tag}`:a.tag).join(n);return this._pathStringCache=o,o}return this.path.map(o=>r&&o.namespace?`${o.namespace}:${o.tag}`:o.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[],this._keptAttrs=[]}matches(e){let r=e.segments;return r.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(r):this._matchSimple(r)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let r=0;r<e.length;r++)if(!this._matchSegment(e[r],this.path[r],r===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let r=this.path.length-1,n=e.length-1;for(;n>=0&&r>=0;){let s=e[n];if(s.type==="deep-wildcard"){if(n--,n<0)return!0;let o=e[n],a=!1;for(let c=r;c>=0;c--)if(this._matchSegment(o,this.path[c],c===this.path.length-1)){r=c-1,n--,a=!0;break}if(!a)return!1}else{if(!this._matchSegment(s,this.path[r],r===this.path.length-1))return!1;r--,n--}}return n<0}_matchSegment(e,r,n){if(e.tag!=="*"&&e.tag!==r.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==r.namespace||e.attrName!==void 0&&(!n||!r.values||!(e.attrName in r.values)||e.attrValue!==void 0&&String(r.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let s=r.counter??0;if(e.position==="first"&&s!==0)return!1;if(e.position==="odd"&&s%2!==1)return!1;if(e.position==="even"&&s%2!==0)return!1;if(e.position==="nth"&&s!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>e&&{counts:new Map(e.counts),total:e.total}),keptAttrs:this._keptAttrs.map(e=>({...e}))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>r&&{counts:new Map(r.counts),total:r.total}),this._keptAttrs=(e.keptAttrs||[]).map(r=>({...r}))}readOnly(){return this._view}};var lEt=[{id:"html-script-open",description:"<script opening tag",pattern:/<script[\s>/]/i},{id:"html-script-close",description:"</script closing tag",pattern:/<\/script[\s>]/i},{id:"html-javascript-protocol",description:"javascript: URI scheme (with optional whitespace/encoding)",pattern:/j[\t\n\r ]*a[\t\n\r ]*v[\t\n\r ]*a[\t\n\r ]*s[\t\n\r ]*c[\t\n\r ]*r[\t\n\r ]*i[\t\n\r ]*p[\t\n\r ]*t[\t\n\r ]*:/i},{id:"html-vbscript-protocol",description:"vbscript: URI scheme",pattern:/vbscript[\t\n\r ]*:/i},{id:"html-data-html",description:"data:text/html URI \u2014 can execute scripts in browsers",pattern:/data[\t\n\r ]*:[\t\n\r ]*text\/html/i},{id:"html-data-xhtml",description:"data:application/xhtml+xml URI",pattern:/data[\t\n\r ]*:[\t\n\r ]*application\/xhtml/i},{id:"html-data-svg",description:"data:image/svg+xml URI \u2014 can execute scripts",pattern:/data[\t\n\r ]*:[\t\n\r ]*image\/svg\+xml/i},{id:"html-inline-event-handler",description:"Inline event handler attributes: onclick=, onerror=, onload=, etc.",pattern:/\bon\w{1,30}\s*=/i},{id:"html-entity-obfuscated-script",description:"HTML-entity-encoded <script (e.g. <script or <script)",pattern:/(?:�*3[Cc];?|�*60;?|<)\s*script/i},{id:"html-entity-obfuscated-javascript",description:'HTML-entity-encoded javascript: (partial \u2014 catches common j or j for "j")',pattern:/(?:�*6[Aa];?|�*106;?)\s*(?:�*61;?|a)[\s\S]{0,80}script\s*:/i},{id:"html-style-expression",description:"CSS expression() \u2014 IE-era code execution in style attributes",pattern:/style[\s\S]{0,20}expression\s*\(/i},{id:"html-object-embed",description:"<object or <embed tags that can load active content",pattern:/<(?:object|embed)[\s>/]/i},{id:"html-base-tag",description:"<base href= \u2014 can hijack all relative URLs on a page",pattern:/<base[\s>]/i},{id:"html-meta-refresh",description:'<meta http-equiv="refresh" \u2014 can redirect users',pattern:/<meta[\s\S]{0,40}http-equiv[\s\S]{0,20}refresh/i},{id:"html-srcdoc",description:"srcdoc= attribute on iframes \u2014 embeds HTML that can run scripts",pattern:/srcdoc\s*=/i},{id:"html-iframe",description:"<iframe tag",pattern:/<iframe[\s>/]/i},{id:"html-form",description:"<form tag \u2014 can be used for phishing / credential harvesting injection",pattern:/<form[\s>/]/i}],mm=lEt;var uEt=[{id:"xml-cdata-injection",description:"CDATA section injection: <![CDATA[ breaks out of text node context",pattern:/<!\[CDATA\[/i},{id:"xml-cdata-close",description:"CDATA close sequence: ]]> can terminate an enclosing CDATA section",pattern:/\]\]>/},{id:"xml-processing-instruction",description:"XML processing instruction: <?xml-stylesheet or <?php etc.",pattern:/<\?(?:xml[\- ]|php|asp)/i},{id:"xml-doctype-injection",description:"DOCTYPE declaration embedded in content \u2014 can define entities",pattern:/<!DOCTYPE(?:[\s[]|$)/i},{id:"xml-entity-system",description:"SYSTEM keyword \u2014 used in external entity declarations (XXE)",pattern:/\bSYSTEM\s+["']/i},{id:"xml-entity-public",description:"PUBLIC keyword \u2014 used in external entity declarations (XXE)",pattern:/\bPUBLIC\s+["']/i},{id:"xml-entity-declaration",description:"<!ENTITY declaration \u2014 defines entities, potential XXE or entity expansion",pattern:/<!ENTITY[\s%]/i},{id:"xml-billion-laughs",description:"Entity reference chaining / billion laughs: repeated &eX; style references",pattern:/(?:&\w{1,20};){3,}/},{id:"xml-namespace-confusion",description:"xmlns: attribute injection \u2014 can redefine namespaces to confuse parsers",pattern:/\bxmlns(?::\w{1,40})?\s*=/i},{id:"xml-comment-injection",description:"<!-- comment injection \u2014 can hide content from some parsers",pattern:/<!--/},{id:"xml-comment-close",description:"--> closes an enclosing XML comment",pattern:/-->/},{id:"xml-pi-close",description:"?> closes an enclosing processing instruction",pattern:/\?>/}],hm=uEt;var dEt=[{id:"svg-script-element",description:"<script element inside SVG executes JavaScript",pattern:/<script[\s>/]/i},{id:"svg-xlink-href-javascript",description:"xlink:href with javascript: \u2014 classic SVG XSS via <a> or <use>",pattern:/xlink\s*:\s*href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-href-javascript",description:"href= with javascript: in SVG context (<a>, <animate>, etc.)",pattern:/href\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-foreignobject",description:"<foreignObject embeds HTML inside SVG \u2014 can execute scripts",pattern:/<foreignObject[\s>/]/i},{id:"svg-use-external",description:"<use xlink:href or href pointing to external resource (non-fragment URL)",pattern:/<use[\s\S]{0,60}(?:xlink\s*:\s*)?href\s*=\s*(?:["'][^#]|[^"'#\s>])/i},{id:"svg-animate-href",description:'<animate attributeName="href" \u2014 can dynamically change href to javascript:',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*href["']/i},{id:"svg-animate-xlinkhref",description:'<animate attributeName="xlink:href"',pattern:/<animate[\s\S]{0,80}attributeName\s*=\s*["'][\s]*xlink\s*:\s*href["']/i},{id:"svg-set-javascript",description:'<set to="javascript:..." \u2014 sets an attribute to a javascript: URI',pattern:/<set[\s\S]{0,80}to\s*=\s*["']?\s*javascript\s*:/i},{id:"svg-event-handler",description:"SVG-specific event handler attributes: onload=, onerror=, onactivate=, etc.",pattern:/\bon(?:load|error|activate|begin|end|repeat|focus|blur|click|mouse\w{1,20}|key\w{1,20})\s*=/i},{id:"svg-handler-generic",description:"Generic on* handler catch-all for SVG attributes",pattern:/\bon\w{1,30}\s*=/i},{id:"svg-filter-feimage",description:"<feImage href= \u2014 filter primitive that can load external resources",pattern:/<feImage[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=/i},{id:"svg-image-external",description:"<image xlink:href with http/https or javascript protocol",pattern:/<image[\s\S]{0,80}(?:xlink\s*:\s*)?href\s*=\s*["']?\s*(?:https?|javascript)\s*:/i},{id:"svg-style-javascript",description:"style= attribute containing javascript: (e.g. background:url(javascript:...))",pattern:/style\s*=[\s\S]{0,60}javascript\s*:/i}],mP=dEt;var pEt=[{id:"sql-block-comment-open",description:"SQL block comment open: /* ... */ \u2014 unusual in legitimate user text",pattern:/\/\*/},{id:"sql-union-select",description:"UNION SELECT \u2014 most common SQL injection aggregation attack",pattern:/\bUNION\s{1,20}(?:ALL\s{1,20})?SELECT\b/i},{id:"sql-drop-table",description:"DROP TABLE \u2014 destructive DDL injection",pattern:/\bDROP\s{1,20}TABLE\b/i},{id:"sql-drop-database",description:"DROP DATABASE \u2014 destructive DDL injection",pattern:/\bDROP\s{1,20}DATABASE\b/i},{id:"sql-insert-into",description:"INSERT INTO \u2014 data injection",pattern:/\bINSERT\s{1,20}INTO\b/i},{id:"sql-delete-from",description:"DELETE FROM \u2014 data deletion injection",pattern:/\bDELETE\s{1,20}FROM\b/i},{id:"sql-update-set",description:"UPDATE ... SET \u2014 data modification injection",pattern:/\bUPDATE\b[\s\S]{1,60}\bSET\b/i},{id:"sql-exec-xp",description:"EXEC xp_ \u2014 MSSQL extended stored procedure execution",pattern:/\bEXEC(?:UTE)?\s{1,20}xp_/i},{id:"sql-tautology-string",description:`Classic string tautology: ' OR '1'='1 or " OR "1"="1"`,pattern:/'\s{0,10}OR\s{0,10}'[^']{0,20}'\s*=\s*'[^']{0,20}/i},{id:"sql-tautology-numeric",description:"Numeric tautology: OR 1=1",pattern:/\bOR\s{1,10}1\s*=\s*1\b/i},{id:"sql-always-true-zero",description:"Numeric tautology: OR 0=0",pattern:/\bOR\s{1,10}0\s*=\s*0\b/i},{id:"sql-sleep-benchmark",description:"Time-based blind injection: SLEEP() or BENCHMARK()",pattern:/\b(?:SLEEP|BENCHMARK)\s*\(/i},{id:"sql-waitfor-delay",description:"MSSQL time-based blind injection: WAITFOR DELAY",pattern:/\bWAITFOR\s{1,20}DELAY\b/i},{id:"sql-char-function",description:"CHAR() function \u2014 used to obfuscate injected strings",pattern:/\bCHAR\s*\(\s*\d{1,3}/i},{id:"sql-information-schema",description:"INFORMATION_SCHEMA \u2014 reconnaissance query for table/column enumeration",pattern:/\bINFORMATION_SCHEMA\b/i}],sw=pEt;var fEt=[{id:"shell-path-traversal-unix",description:"Unix path traversal: ../ \u2014 climbing the directory tree",pattern:/\.\.\//},{id:"shell-path-traversal-windows",description:"Windows path traversal: ..\\ \u2014 climbing the directory tree",pattern:/\.\.\\/},{id:"shell-path-traversal-encoded",description:"URL-encoded path traversal: %2e%2e or %2f variants",pattern:/%2e%2e|%2f\.\.|\.\.%2f/i},{id:"shell-null-byte",description:"Null byte injection: \\x00 or %00 \u2014 truncates strings in C-backed functions",pattern:/\x00|%00/},{id:"shell-semicolon",description:"Semicolon command separator: cmd1; cmd2",pattern:/;/},{id:"shell-pipe",description:"Pipe operator: cmd1 | cmd2",pattern:/\|/},{id:"shell-and-operator",description:"AND operator: cmd1 && cmd2",pattern:/&&/},{id:"shell-or-operator",description:"OR operator: cmd1 || cmd2",pattern:/\|\|/},{id:"shell-backtick",description:"Backtick command substitution: `cmd`",pattern:/`/},{id:"shell-dollar-paren",description:"Dollar-paren command substitution: $(cmd)",pattern:/\$\(/},{id:"shell-dollar-brace",description:"Dollar-brace variable expansion: ${var} \u2014 can be abused for injection",pattern:/\$\{/},{id:"shell-redirect-out",description:"Output redirection: cmd > file or cmd >> file",pattern:/>{1,2}/},{id:"shell-redirect-in",description:"Input redirection: cmd < file",pattern:/</},{id:"shell-newline-injection",description:"Newline injection: \\n or \\r \u2014 can inject new shell commands",pattern:/[\n\r]/},{id:"shell-glob-star",description:"Glob expansion: * or ? \u2014 can expand to unintended files",pattern:/[/\\][*?]/},{id:"shell-absolute-root",description:"Absolute root path injection: string starting with / or \\ (Windows UNC)",pattern:/^(?:\/|\\\\)/},{id:"shell-windows-drive",description:"Windows drive letter path injection: C:\\ or D:/",pattern:/^[a-zA-Z]:[/\\]/},{id:"shell-curl-wget",description:"curl/wget with URL or flags \u2014 can exfiltrate data or download payloads",pattern:/\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i}],j3=fEt;var mEt=[{id:"redos-nested-quantifier-plus",description:"Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",pattern:/\([^)]*\+[^)]*\)[+*]/},{id:"redos-nested-quantifier-star",description:"Nested * quantifier: (a*)* or (a*)+ \u2014 catastrophic backtracking",pattern:/\([^)]*\*[^)]*\)[*+]/},{id:"redos-nested-groups",description:"Doubly nested quantified groups: ((a+)+) \u2014 guaranteed catastrophic",pattern:/\(\([^)]{0,40}\)[+*]\)[+*]/},{id:"redos-alternation-overlap",description:"Overlapping alternation under quantifier: (a|a)+ \u2014 ambiguous NFA paths",pattern:/\(([^|()]{1,20})\|(?:\1)(?:\|[^|()]{1,20}){0,5}\)[+*?]{1,2}/},{id:"redos-star-plus-concat",description:"(x*x)+ pattern \u2014 triggers super-linear backtracking",pattern:/\([^)]{0,10}\*[^)]{0,10}\)[+*]/},{id:"redos-dot-star-greedy",description:"(.*){n,} or (.+){n,} \u2014 repeated greedy dot quantifiers",pattern:/\(\.[*+]\)\{?\d/},{id:"redos-large-repetition",description:"Very large fixed or range repetition count {1000,} or {1000,n} \u2014 denial of service via backtracking",pattern:/\{\d{4,}(?:,\d*)?\}/},{id:"redos-catastrophic-alternation",description:"Long alternation with many similar branches \u2014 polynomial backtracking risk",pattern:/\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/}],K3=mEt;var Lo=`["'\\s]*:`,hEt=[{id:"nosql-where-operator",description:"$where \u2014 executes arbitrary JavaScript server-side in MongoDB",pattern:new RegExp(`\\$where${Lo}`,"i")},{id:"nosql-ne-operator",description:'$ne \u2014 "not equal" operator used to bypass equality checks',pattern:new RegExp(`\\$ne${Lo}`,"i")},{id:"nosql-gt-operator",description:'$gt \u2014 "greater than" used to bypass password/value checks',pattern:new RegExp(`\\$gte?${Lo}`,"i")},{id:"nosql-lt-operator",description:'$lt / $lte \u2014 "less than" bypass variants',pattern:new RegExp(`\\$lte?${Lo}`,"i")},{id:"nosql-regex-operator",description:"$regex \u2014 can be used to extract data character by character (blind injection)",pattern:new RegExp(`\\$regex${Lo}`,"i")},{id:"nosql-or-operator",description:"$or \u2014 logical OR; used to create always-true conditions",pattern:new RegExp(`\\$or${Lo}\\s*\\[`,"i")},{id:"nosql-and-operator",description:"$and \u2014 logical AND operator injection",pattern:new RegExp(`\\$and${Lo}\\s*\\[`,"i")},{id:"nosql-nor-operator",description:"$nor \u2014 logical NOR operator injection",pattern:new RegExp(`\\$nor${Lo}\\s*\\[`,"i")},{id:"nosql-exists-operator",description:"$exists \u2014 can enumerate fields to determine schema",pattern:new RegExp(`\\$exists${Lo}`,"i")},{id:"nosql-in-operator",description:"$in \u2014 matches any value in a list; can enumerate values",pattern:new RegExp(`\\$in${Lo}\\s*\\[`,"i")},{id:"nosql-expr-operator",description:"$expr \u2014 allows aggregation expressions in queries (MongoDB 3.6+)",pattern:new RegExp(`\\$expr${Lo}`,"i")},{id:"nosql-function-operator",description:"$function \u2014 executes arbitrary JavaScript in MongoDB 4.4+",pattern:new RegExp(`\\$function${Lo}`,"i")},{id:"nosql-accumulator-operator",description:"$accumulator \u2014 custom aggregation with arbitrary JS execution",pattern:new RegExp(`\\$accumulator${Lo}`,"i")},{id:"nosql-proto-pollution",description:"__proto__ \u2014 prototype pollution via object key injection",pattern:/__proto__/},{id:"nosql-constructor-prototype",description:"constructor.prototype \u2014 alternative prototype pollution vector (dot notation or JSON key)",pattern:/constructor[\s"':.,{\[]*prototype/i},{id:"nosql-proto-bracket",description:'["__proto__"] \u2014 bracket-notation prototype pollution',pattern:/\[["']__proto__["']\]/}],X3=hEt;var AEt=[{id:"log-crlf-injection",description:"CRLF injection: literal \\r or \\n embeds fake log lines",pattern:/[\r\n]/},{id:"log-url-encoded-crlf",description:"URL-encoded CRLF: %0d, %0a, %0D, %0A \u2014 decoded by some log parsers",pattern:/%0[dDaA]/},{id:"log-unicode-newline",description:"Unicode newline variants: U+2028 (line separator), U+2029 (paragraph separator)",pattern:/[\u2028\u2029]/},{id:"log-log4shell-jndi",description:"Log4Shell: ${jndi:...} triggers remote code execution in Apache Log4j",pattern:/\$\{jndi\s*:/i},{id:"log-log4shell-obfuscated",description:"Obfuscated Log4Shell: ${::-j}... lookup-bypass prefix used to evade WAF detection",pattern:/\$\{::-/},{id:"log-log4j-lookup",description:"Log4j lookup syntax: ${env:...}, ${sys:...}, ${ctx:...} \u2014 data exfiltration",pattern:/\$\{(?:env|sys|ctx|main|map|sd|web|docker|k8s|spring)\s*:/i},{id:"log-ssti-double-brace",description:"SSTI double-brace: {{expression}} \u2014 Jinja2, Twig, Handlebars, etc.",pattern:/\{\{[\s\S]{0,80}\}\}/},{id:"log-ssti-hash-brace",description:"SSTI hash-brace: #{expression} \u2014 Thymeleaf, Velocity, Ruby ERB",pattern:/#\{[\s\S]{0,80}\}/},{id:"log-ssti-dollar-brace",description:"SSTI/EL injection: ${expression with operators or method calls} \u2014 JSP EL, Freemarker, SpEL",pattern:/\$\{[^}]*(?:\.|\(|\*|\+|\bclass\b|\bruntime\b|\bprocess\b|\bexec\b)[^}]{0,80}\}/i},{id:"log-ssti-percent-tag",description:"SSTI ERB/ASP tag: <%= expression %> \u2014 Ruby ERB, ASP",pattern:/<%=[\s\S]{0,80}%>/},{id:"log-null-byte",description:"Null byte: \\x00 or %00 \u2014 can truncate log entries in C-backed loggers",pattern:/\x00|%00/},{id:"log-ansi-escape",description:"ANSI escape sequence: ESC[ \u2014 can manipulate terminal output when logs are tailed",pattern:/\x1b\[/}],Z3=AEt;var gEt=[{id:"sql-line-comment",description:"SQL line comment: -- followed by whitespace or end of string",pattern:/--(?:\s|$)/},{id:"sql-stacked-query",description:"Stacked queries: semicolon immediately followed by a SQL keyword",pattern:/;\s{0,10}(?:SELECT|INSERT|UPDATE|DELETE|DROP|CREATE|ALTER|EXEC)\b/i},{id:"sql-hex-encoding",description:"Hex-encoded string injection: 0x41414141 style (MySQL)",pattern:/\b0x[0-9a-f]{4,}/i}],yEt=[...sw,...gEt],eV=yEt;var kye=Object.freeze({colon:":",Tab:" ",NewLine:`
|
|
`}),EEt=/&(?:#[xX]0*([0-9a-fA-F]{1,6});?|#0*([0-9]{1,7});?|([a-zA-Z][a-zA-Z0-9]{1,15});)/g;function tV(t){return t.indexOf("&")===-1?t:t.replace(EEt,(e,r,n,s)=>{if(s!==void 0)return Object.prototype.hasOwnProperty.call(kye,s)?kye[s]:e;let o=r!==void 0?parseInt(r,16):parseInt(n,10);return!Number.isFinite(o)||o>1114111?e:String.fromCodePoint(o)})}i(tV,"decodeEntities");mm.label="HTML";hm.label="XML";mP.label="SVG";mm.decodeEntities=!0;hm.decodeEntities=!0;mP.decodeEntities=!0;sw.label="SQL";eV.label="SQL-STRICT";j3.label="SHELL";K3.label="REDOS";X3.label="NOSQL";Z3.label="LOG";var JIr=Object.freeze({HTML:mm,XML:hm,SVG:mP,SQL:sw,"SQL-STRICT":eV,SHELL:j3,REDOS:K3,NOSQL:X3,LOG:Z3});function CEt(t){if(typeof t!="string")throw new TypeError(`is-unsafe: first argument must be a string, got ${typeof t}`)}i(CEt,"assertString");function IEt(t){if(!(t instanceof RegExp)){if(Array.isArray(t)){if(t.length===0)throw new TypeError("is-unsafe: context must not be an empty array");if(Array.isArray(t[0])){for(let e of t)if(!Array.isArray(e)||e.length===0)throw new TypeError("is-unsafe: each context in the array must be a non-empty pattern array (PatternList)")}return}throw new TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof t}`)}}i(IEt,"assertContext");function SEt(t){return t instanceof RegExp?{lists:null,regex:t}:Array.isArray(t[0])?{lists:t,regex:null}:{lists:[t],regex:null}}i(SEt,"normalise");function wEt(t,e){if(!e.decodeEntities)return null;let r=tV(t);return r===t?null:r}i(wEt,"decodedCopy");function xEt(t,e){let r=e.label??"CUSTOM",n=wEt(t,e);for(let s of e)if(s.pattern.test(t)||n!==null&&s.pattern.test(n))return{context:r,id:s.id,description:s.description,pattern:s.pattern};return null}i(xEt,"matchList");function Oye(t,e){CEt(t),IEt(e);let{lists:r,regex:n}=SEt(e);if(n)return n.test(t);for(let s of r)if(xEt(t,s)!==null)return!0;return!1}i(Oye,"isUnsafe");function bEt(t,e){if(!t)return{};let r=e.attributesGroupName?t[e.attributesGroupName]:t;if(!r)return{};let n={};for(let s in r)if(s.startsWith(e.attributeNamePrefix)){let o=s.substring(e.attributeNamePrefix.length);n[o]=r[s]}else n[s]=r[s];return n}i(bEt,"extractRawAttributes");function BEt(t){if(!t||typeof t!="string")return;let e=t.indexOf(":");if(e!==-1&&e>0){let r=t.substring(0,e);if(r!=="xmlns")return r}}i(BEt,"extractNamespace");var ow=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=_Et,this.parseTextData=REt,this.resolveNameSpace=NEt,this.buildAttributesMap=PEt,this.isItStopNode=kEt,this.replaceEntitiesValue=QEt,this.readStopNodeData=MEt,this.saveTextToParentTag=DEt,this.addChild=vEt,this.ignoreAttributesFn=Y3(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let n={...ew};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...$3,...q3}),this.entityDecoder=new Ng({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo},onInputEntity:i((o,a)=>Oye(a,[mm,hm])?Rg.BLOCK:Rg.ALLOW,"onInputEntity")})),this.matcher=new xc,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Pg;let s=this.options.stopNodes;if(s&&s.length>0){for(let o=0;o<s.length;o++){let a=s[o];typeof a=="string"?this.stopNodeExpressionsSet.add(new Oo(a)):a instanceof Oo&&this.stopNodeExpressionsSet.add(a)}this.stopNodeExpressionsSet.seal()}}};function REt(t,e,r,n,s,o,a){let c=this.options;if(t!==void 0&&(c.trimValues&&!n&&(t=t.trim()),t.length>0)){a||(t=this.replaceEntitiesValue(t,e,r));let l=c.jPath?r.toString():r,u=c.tagValueProcessor(e,t,l,s,o);return u==null?t:typeof u!=typeof t||u!==t?u:c.trimValues||t.trim()===t?sV(t,c.parseTagValue,c.numberParseOptions):t}}i(REt,"parseTextData");function NEt(t){if(this.options.removeNSPrefix){let e=t.split(":"),r=t.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(t=r+e[1])}return t}i(NEt,"resolveNameSpace");var TEt=/([^\s=]+)\s*(=\s*(?:"([^"]*)"|'([^']*)'))?/gm;function Lye(t){return t[3]!==void 0?t[3]:t[4]}i(Lye,"attrValue");function PEt(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=hye(t,TEt),a=o.length,c={},l=new Array(a),u=!1,d={};for(let m=0;m<a;m++){let h=this.resolveNameSpace(o[m][1]),A=Lye(o[m]);if(h.length&&A!==void 0){let y=A;s.trimValues&&(y=y.trim()),y=this.replaceEntitiesValue(y,r,this.readonlyMatcher),l[m]=y,d[h]=y,u=!0}}u&&typeof e=="object"&&e.updateCurrent&&e.updateCurrent(d);let p=s.jPath?e.toString():this.readonlyMatcher,f=!1;for(let m=0;m<a;m++){let h=this.resolveNameSpace(o[m][1]);if(this.ignoreAttributesFn(h,p))continue;let A=s.attributeNamePrefix+h;if(h.length)if(s.transformAttributeName&&(A=s.transformAttributeName(A)),A=Mye(A,s),Lye(o[m])!==void 0){let y=l[m],E=s.attributeValueProcessor(h,y,p);E==null?c[A]=y:typeof E!=typeof y||E!==y?c[A]=E:c[A]=sV(y,s.parseAttributeValue,s.numberParseOptions),f=!0}else s.allowBooleanAttributes&&(c[A]=!0,f=!0)}if(!f)return;if(s.attributesGroupName&&!s.preserveOrder){let m={};return m[s.attributesGroupName]=c,m}return c}}i(PEt,"buildAttributesMap");var _Et=i(function(t){let e=this.options,r=e.captureMetaData?[]:void 0;t=t.replace(/\r\n?/g,e.captureMetaData?(l,u)=>(l.length===2&&r.push(u-r.length),`
|
|
`):`
|
|
`);let n=new zs("!xml"),s=n,o="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let a=new nw(e.processEntities),c=t.length;for(let l=0;l<c;l++)if(t[l]==="<"){let d=t.charCodeAt(l+1);if(d===47){let p=_g(t,">",l,"Closing Tag is not closed."),f=t.substring(l+2,p).trim();if(e.removeNSPrefix){let h=f.indexOf(":");h!==-1&&(f=f.substr(h+1))}f=rV(e.transformTagName,f,"",e).tagName,s&&(o=this.saveTextToParentTag(o,s,this.readonlyMatcher));let m=this.matcher.getCurrentTag();if(f&&e.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);m&&e.unpairedTagsSet.has(m)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=this.tagsNodeStack.pop()||n,e.captureMetaData&&s&&s.addEndIndex(Am(p+1,r)),o="",l=p}else if(d===63){let p=nV(t,l,!1,"?>");if(!p)throw new Error("Pi Tag is not closed.");o=this.saveTextToParentTag(o,s,this.readonlyMatcher);let f=this.buildAttributesMap(p.tagExp,this.matcher,p.tagName,!0);if(f){let m=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(m)||1),a.setXmlVersion(Number(m)||1)}if(!(e.ignoreDeclaration&&p.tagName==="?xml"||e.ignorePiTags)){let m=new zs(p.tagName);m.add(e.textNodeName,""),p.tagName!==p.tagExp&&p.attrExpPresent&&e.ignoreAttributes!==!0&&(m[":@"]=f);let h=e.captureMetaData?Am(l,r):l;this.addChild(s,m,this.readonlyMatcher,h),e.captureMetaData&&s.addEndIndex(Am(p.closeIndex+2,r))}l=p.closeIndex+1}else if(d===33&&t.charCodeAt(l+2)===45&&t.charCodeAt(l+3)===45){let p=_g(t,"-->",l+4,"Comment is not closed.");if(e.commentPropName){let f=t.substring(l+4,p-2);o=this.saveTextToParentTag(o,s,this.readonlyMatcher),s.add(e.commentPropName,[{[e.textNodeName]:f}])}l=p}else if(d===33&&t.charCodeAt(l+2)===68){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;let p=a.readDocType(t,l);this.entityDecoder.addInputEntities(p.entities),l=p.i}else if(d===33&&t.charCodeAt(l+2)===91){let p=_g(t,"]]>",l,"CDATA is not closed.")-2,f=t.substring(l+9,p);o=this.saveTextToParentTag(o,s,this.readonlyMatcher);let m=this.parseTextData(f,s.tagname,this.readonlyMatcher,!0,!1,!0,!0);m==null&&(m=""),e.cdataPropName?s.add(e.cdataPropName,[{[e.textNodeName]:f}]):s.add(e.textNodeName,m),l=p+2}else{let p=nV(t,l,e.removeNSPrefix);if(!p){let _=t.substring(Math.max(0,l-50),Math.min(c,l+50));throw new Error(`readTagExp returned undefined at position ${l}. Context: "${_}"`)}let f=p.tagName,m=p.rawTagName,h=p.tagExp,A=p.attrExpPresent,y=p.closeIndex;if({tagName:f,tagExp:h}=rV(e.transformTagName,f,h,e),e.strictReservedNames&&(f===e.commentPropName||f===e.cdataPropName||f===e.textNodeName||f===e.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);s&&o&&s.tagname!=="!xml"&&(o=this.saveTextToParentTag(o,s,this.readonlyMatcher,!1));let E=s;E&&e.unpairedTagsSet.has(E.tagname)&&(s=this.tagsNodeStack.pop(),this.matcher.pop());let I=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(I=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),h=f):h=h.substr(0,h.length-1),A=f!==h);let x=null,b={},N;N=BEt(m),f!==n.tagname&&this.matcher.push(f,{},N),f!==h&&A&&(x=this.buildAttributesMap(h,this.matcher,f),x&&(b=bEt(x,e))),f!==n.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let v=e.captureMetaData?Am(l,r):l;if(this.isCurrentNodeStopNode){let _="";if(I)l=p.closeIndex;else if(e.unpairedTagsSet.has(f))l=p.closeIndex;else{let Be=this.readStopNodeData(t,m,y+1);if(!Be)throw new Error(`Unexpected end of ${m}`);l=Be.i,_=Be.tagContent}let J=new zs(f);x&&(J[":@"]=x),J.add(e.textNodeName,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(s,J,this.readonlyMatcher,v),e.captureMetaData&&s.addEndIndex(Am(l+1,r))}else{if(I){({tagName:f,tagExp:h}=rV(e.transformTagName,f,h,e));let _=new zs(f);x&&(_[":@"]=x),this.addChild(s,_,this.readonlyMatcher,v),e.captureMetaData&&s.addEndIndex(Am(y+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(e.unpairedTagsSet.has(f)){let _=new zs(f);x&&(_[":@"]=x),this.addChild(s,_,this.readonlyMatcher,v),e.captureMetaData&&s.addEndIndex(Am(p.closeIndex+1,r)),this.matcher.pop(),this.isCurrentNodeStopNode=!1,l=p.closeIndex;continue}else{let _=new zs(f);if(this.tagsNodeStack.length>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(s),x&&(_[":@"]=x),this.addChild(s,_,this.readonlyMatcher,v),s=_}o="",l=y}}}else o+=t[l];return n.child},"parseXml");function Am(t,e){let r=0,n=e.length;for(;r<n;){let s=Math.floor((r+n)/2);e[s]<t?r=s+1:n=s}return t+r}i(Am,"getOriginalIndex");function vEt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,o=this.options.updateTag(e.tagname,s,e[":@"]);o===!1||(typeof o=="string"&&(e.tagname=o),t.addChild(e,n))}i(vEt,"addChild");function QEt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}i(QEt,"replaceEntitiesValue");function DEt(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(DEt,"saveTextToParentTag");function kEt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(kEt,"isItStopNode");function OEt(t,e,r=">"){let n=t.length,s=r.charCodeAt(0),o=r.length>1?r.charCodeAt(1):-1,a="",c=e;for(let l=e;l<n;l++){let u=t.charCodeAt(l);if(u===34||u===39){if(l=t.indexOf(t[l],l+1),l===-1)return}else if(u===s)if(o!==-1){if(t.charCodeAt(l+1)===o)return a+=t.substring(c,l),{data:a,index:l}}else return a+=t.substring(c,l),{data:a,index:l};else u===9&&(a+=t.substring(c,l)+" ",c=l+1)}}i(OEt,"tagExpWithClosingIndex");function _g(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}i(_g,"findClosingIndex");function LEt(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s}i(LEt,"findClosingChar");function nV(t,e,r,n=">"){let s=OEt(t,e+1,n);if(!s)return;let o=s.data,a=s.index,c=o.search(/\s/),l=o,u=!0;c!==-1&&(l=o.substring(0,c),o=o.substring(c+1).trimStart());let d=l;if(r){let p=l.indexOf(":");p!==-1&&(l=l.substr(p+1),u=l!==s.data.substr(p+1))}return{tagName:l,tagExp:o,closeIndex:a,attrExpPresent:u,rawTagName:d}}i(nV,"readTagExp");function MEt(t,e,r){let n=r,s=1,o=!1,a=-1,c=t.length;for(;r<c;r++)if(t[r]==="<"){let l=t.charCodeAt(r+1);if(l===47){let u=LEt(t,">",r,`${e} is not closed`);if(t.substring(r+2,u).trim()===e&&(s--,s===0))return{tagContent:t.substring(n,r),i:u};r=u}else if(l===63)r=_g(t,"?>",r+1,"StopNode is not closed.");else if(l===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=_g(t,"-->",r+3,"StopNode is not closed.");else if(l===33&&t.charCodeAt(r+2)===91)r=_g(t,"]]>",r,"StopNode is not closed.")-2;else{let u=o?void 0:nV(t,r,!1);if(u)u.tagName===e&&u.tagExp[u.tagExp.length-1]!=="/"&&s++,r=u.closeIndex;else{if(o=!0,a<r&&(a=t.indexOf(">",r),a===-1))return;let d=t.indexOf("<",r+1);if(d===-1||d>a){let p=t.substring(r+1,a),f=p.search(/\s/);(f===-1?p:p.substring(0,f))===e&&p[p.length-1]!=="/"&&s++,r=a}}}}}i(MEt,"readStopNodeData");function sV(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:W3(t,r)}else return Aye(t)?t:""}i(sV,"parseValue");function rV(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=Mye(e,n),{tagName:e,tagExp:r}}i(rV,"transformTagName");function Mye(t,e){if(iP.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return XS.includes(t)?e.onDangerousProperty(t):t}i(Mye,"sanitizeName");var oV=zs.getMetaDataSymbol();function FEt(t,e){if(!t||typeof t!="object")return{};if(!e)return t;let r={};for(let n in t)if(n.startsWith(e)){let s=n.substring(e.length);r[s]=t[n]}else r[n]=t[n];return r}i(FEt,"stripAttributePrefix");function iV(t,e,r,n){return Fye(t,e,r,n)}i(iV,"prettify");function Fye(t,e,r,n){let s,o={};for(let a=0;a<t.length;a++){let c=t[a],l=UEt(c);if(l!==void 0&&l!==e.textNodeName){let u=FEt(c[":@"]||{},e.attributeNamePrefix);r.push(l,u)}if(l===e.textNodeName)s===void 0?s=c[l]:s+=""+c[l];else{if(l===void 0)continue;if(c[l]){let u=Fye(c[l],e,r,n),d=$Et(u,e);if(Object.keys(u).length===0&&e.alwaysCreateTextNode&&(u[e.textNodeName]=""),c[":@"]?qEt(u,c[":@"],n,e):Object.keys(u).length===1&&u[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?u=u[e.textNodeName]:Object.keys(u).length===0&&(e.alwaysCreateTextNode?u[e.textNodeName]="":u=""),c[oV]!==void 0&&typeof u=="object"&&u!==null&&(u[oV]=c[oV]),o[l]!==void 0&&Object.prototype.hasOwnProperty.call(o,l))Array.isArray(o[l])||(o[l]=[o[l]]),o[l].push(u);else{let p=e.jPath?n.toString():n;e.isArray(l,p,d)?o[l]=[u]:o[l]=u}l!==void 0&&l!==e.textNodeName&&r.pop()}}}return typeof s=="string"?s.length>0&&(o[e.textNodeName]=s):s!==void 0&&(o[e.textNodeName]=s),o}i(Fye,"compress");function UEt(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(n!==":@")return n}}i(UEt,"propName");function qEt(t,e,r,n){if(e){let s=Object.keys(e),o=s.length;for(let a=0;a<o;a++){let c=s[a],l=c.startsWith(n.attributeNamePrefix)?c.substring(n.attributeNamePrefix.length):c,u=n.jPath?r.toString()+"."+l:r;n.isArray(c,u,!0,!0)?t[c]=[e[c]]:t[c]=e[c]}}}i(qEt,"assignAttributes");function $Et(t,e){let{textNodeName:r}=e,n=Object.keys(t).length;return!!(n===0||n===1&&(t[r]||typeof t[r]=="boolean"||t[r]===0))}i($Et,"isLeafTag");var vg=class{static{i(this,"XMLParser")}constructor(e){this.externalEntities={},this.options=wye(e)}parse(e,r){if(typeof e!="string"&&e.toString)e instanceof Uint8Array&&!(typeof Buffer<"u"&&Buffer.isBuffer(e))?e=new TextDecoder("utf-8",{ignoreBOM:!0}).decode(e):e=e.toString();else if(typeof e!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(r){r===!0&&(r={});let o=aP(e,r);if(o!==!0)throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}let n=new ow(this.options,this.externalEntities),s=n.parseXml(e);return this.options.preserveOrder||s===void 0?s:iV(s,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,r){if(r.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(r==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=r}static getMetaDataSymbol(){return zs.getMetaDataSymbol()}};function Tn(t){return typeof t=="number"&&Object.is(t,-0)?"-0":String(t)}i(Tn,"valToStr");function iw(t){return Tn(t).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}i(iw,"safeComment");function hP(t){return Tn(t).replace(/\]\]>/g,"]]]]><![CDATA[>")}i(hP,"safeCdata");function bc(t){return Tn(t).replace(/"/g,""").replace(/'/g,"'")}i(bc,"escapeAttribute");function gm(t,e,r,n,s){if(!r.sanitizeName)return t;let o=!e&&t[0]==="?",a=o?t.slice(1):t;if(s(a))return t;let c=r.sanitizeName(a,{isAttribute:e,matcher:n.readOnly()});if(typeof c!="string"||!s(c))throw new Error(`sanitizeName returned an invalid XML name for "${a}"`);return o?"?"+c:c}i(gm,"resolveName");var GEt=`
|
|
`;function HEt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(lV(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(HEt,"detectXmlVersionFromArray");function cV(t,e){let r="";e.format&&(r=GEt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let c=0;c<e.stopNodes.length;c++){let l=e.stopNodes[c];typeof l=="string"?n.push(new Oo(l)):l instanceof Oo&&n.push(l)}let s=HEt(t,e),o=lP("qName",{xmlVersion:s}),a=new xc;return qye(t,e,r,a,n,o)}i(cV,"toXml");function qye(t,e,r,n,s,o){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=Tn(t);return l=aV(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=lV(u);if(d===void 0)continue;let f=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName?d:gm(d,!1,e,n,o),m=zEt(u[":@"],e);n.push(f,m);let h=WEt(n,s);if(f===e.textNodeName){let x=u[d];h||(x=e.tagValueProcessor(f,x),x=aV(x,e)),x=Tn(x),c&&(a+=r),a+=x,c=!1,n.pop();continue}else if(f===e.cdataPropName){c&&(a+=r);let x=u[d][0][e.textNodeName],b=hP(x);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(f===e.commentPropName){let x=u[d][0][e.textNodeName],b=iw(x);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(f[0]==="?"){let x=Uye(u[":@"],e,h,n,o);a+=(f==="?xml"?"":r)+`<${f}${x}?>`,c=!0,n.pop();continue}let A=r;A!==""&&(A+=e.indentBy);let y=Uye(u[":@"],e,h,n,o),E=r+`<${f}${y}`,I;h?I=$ye(u[d],e,n.getDepth()):I=qye(u[d],e,A,n,s,o),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!I||I.length===0)&&e.suppressEmptyNode?a+=E+"/>":I&&I.endsWith(">")?a+=E+`>${I}${r}</${f}>`:(a+=E+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?a+=r+e.indentBy+I+r:a+=I,a+=`</${f}>`),c=!0,n.pop()}return a}i(qye,"arrToStr");function zEt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[o]=bc(t[s]),n=!0}return n?r:null}i(zEt,"extractAttributeValues");function $ye(t,e,r=0){if(e.maxNestedTags&&r>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t))return t!=null?Tn(t):"";let n="";for(let s=0;s<t.length;s++){let o=t[s],a=lV(o);if(a===e.textNodeName)n+=Tn(o[a]);else if(a===e.cdataPropName)n+=o[a][0][e.textNodeName];else if(a===e.commentPropName)n+=o[a][0][e.textNodeName];else{if(a&&a[0]==="?")continue;if(a){let c=VEt(o[":@"],e),l=$ye(o[a],e,r+1);!l||l.length===0?n+=`<${a}${c}/>`:n+=`<${a}${c}>${l}</${a}>`}}}return n}i($ye,"getRawContent");function VEt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${bc(s)}"`}return r}i(VEt,"attr_to_str_raw");function lV(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(lV,"propName");function Uye(t,e,r,n,s){let o="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:gm(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=aV(u,e)),u===!0&&e.suppressBooleanAttributes?o+=` ${l}`:o+=` ${l}="${bc(u)}"`}return o}i(Uye,"attr_to_str");function WEt(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}i(WEt,"checkStopNode");function aV(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(aV,"replaceEntitiesValue");function uV(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(uV,"getIgnoreAttributesFn");var YEt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Ws(t){if(this.options=Object.assign({},YEt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Oo(r)):r instanceof Oo&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=uV(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=XEt),this.processTextOrObjNode=jEt,this.options.format?(this.indentate=KEt,this.tagEndChar=`>
|
|
`,this.newLine=`
|
|
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Ws,"Builder");function JEt(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(JEt,"detectXmlVersionFromObj");Ws.prototype.build=function(t){if(this.options.preserveOrder)return cV(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new xc,r=JEt(t,this.options),n=lP("qName",{xmlVersion:r});return this.j2x(t,0,e,n).val}};Ws.prototype.j2x=function(t,e,r,n){let s="",o="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)?l:gm(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(o+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?o+="":d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)o+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let p=this.isAttribute(l);if(p&&!this.ignoreAttributesFn(p,a)){let f=gm(p,!0,this.options,r,n);s+=this.buildAttrPairStr(f,Tn(t[l]),c)}else if(!p)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,Tn(t[l]));o+=this.replaceEntitiesValue(f)}else{r.push(d);let f=this.checkStopNode(r);if(r.pop(),f){let m=Tn(t[l]);m===""?o+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:o+=this.indentate(e)+"<"+d+">"+m+"</"+d+this.tagEndChar}else o+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let p=t[l].length,f="",m="";for(let h=0;h<p;h++){let A=t[l][h];if(!(typeof A>"u"))if(A===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof A=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(A,e+1,r,n);r.pop(),f+=y.val,this.options.attributesGroupName&&A.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else f+=this.processTextOrObjNode(A,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,A);y=this.replaceEntitiesValue(y),y=Tn(y),f+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=Tn(A);E===""?f+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:f+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else f+=this.buildTextValNode(A,d,"",e,r)}}this.options.oneListGroup&&(f=this.buildObjectNode(f,d,m,e)),o+=f}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let p=Object.keys(t[l]),f=p.length;for(let m=0;m<f;m++){let h=gm(p[m],!0,this.options,r,n);s+=this.buildAttrPairStr(h,Tn(t[l][p[m]]),c)}}else o+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:o}};Ws.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,Tn(e)),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+bc(e)+'"'};function jEt(t,e,r,n,s){let o=this.extractAttributes(t);if(n.push(e,o),this.checkStopNode(n)){let l=this.buildRawContent(t,n.getDepth()),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(jEt,"processTextOrObjNode");Ws.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let o=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[o]=bc(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=bc(t[n]),r=!0)}return r?e:null};Ws.prototype.buildRawContent=function(t,e=0){if(this.options.maxNestedTags&&e>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let r="";for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||this.isAttribute(n)||this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;let s=t[n];if(n===this.options.textNodeName)r+=s;else if(Array.isArray(s)){for(let o of s)if(typeof o=="string"||typeof o=="number")r+=`<${n}>${o}</${n}>`;else if(typeof o=="object"&&o!==null){let a=this.buildRawContent(o,e+1),c=this.buildAttributesForStopNode(o);a===""?r+=`<${n}${c}/>`:r+=`<${n}${c}>${a}</${n}>`}}else if(typeof s=="object"&&s!==null){let o=this.buildRawContent(s,e+1),a=this.buildAttributesForStopNode(s);o===""?r+=`<${n}${a}/>`:r+=`<${n}${a}>${o}</${n}>`}else r+=`<${n}>${s}</${n}>`}return r};Ws.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,o=r[n];o===!0&&this.options.suppressBooleanAttributes?e+=" "+s:e+=" "+s+'="'+bc(o)+'"'}}else for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=this.isAttribute(r);if(n){let s=t[r];s===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+bc(s)+'"'}}return e};Ws.prototype.buildObjectNode=function(t,e,r,n){if(t==="")return e[0]==="?"?this.indentate(n)+"<"+e+r+"?"+this.tagEndChar:this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let s="</"+e+this.tagEndChar,o="";return e[0]==="?"&&(o="?",s=""),(r||r==="")&&t.indexOf("<")===-1?this.indentate(n)+"<"+e+r+o+">"+t+s:this.options.commentPropName!==!1&&e===this.options.commentPropName&&o.length===0?this.indentate(n)+`<!--${iw(t)}-->`+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+s}};Ws.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};Ws.prototype.checkStopNode=function(t){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(t.matches(this.stopNodeExpressions[e]))return!0;return!1};Ws.prototype.buildTextValNode=function(t,e,r,n,s){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName){let o=hP(t);return this.indentate(n)+`<![CDATA[${o}]]>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let o=iw(t);return this.indentate(n)+`<!--${o}-->`+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+r+"?"+this.tagEndChar;{let o=this.options.tagValueProcessor(e,t);return o=this.replaceEntitiesValue(o),o=Tn(o),o===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"</"+e+this.tagEndChar}}};Ws.prototype.replaceEntitiesValue=function(t){if(t&&t.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let r=this.options.entities[e];t=t.replace(r.regex,r.val)}return t};function KEt(t){return this.options.indentBy.repeat(t)}i(KEt,"indentate");function XEt(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}i(XEt,"isAttribute");var dV=Ws;var Gye={validate:aP};function Vye(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}i(Vye,"getCommonOptions");function ZEt(t={}){var e,r;return Object.assign(Object.assign({},Vye(t)),{attributeNamePrefix:"@_",format:!0,suppressEmptyNode:!0,indentBy:"",rootNodeName:(e=t.rootName)!==null&&e!==void 0?e:"root",cdataPropName:(r=t.cdataPropName)!==null&&r!==void 0?r:"__cdata"})}i(ZEt,"getSerializerOptions");function eCt(t={}){return Object.assign(Object.assign({},Vye(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}i(eCt,"getParserOptions");function AP(t,e={}){let r=ZEt(e),n=new dV(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}i(AP,"stringifyXML");async function pV(t,e={}){if(!t)throw new Error("Document is empty");let r=Gye.validate(t);if(r!==!0)throw r;let s=new vg(eCt(e)).parse(t);if(s["?xml"]&&delete s["?xml"],!e.includeRoot)for(let o of Object.keys(s)){let a=s[o];return typeof a=="object"?Object.assign({},a):a}return s}i(pV,"parseXML");var gP=Cc("storage-blob");var Jye=require("events");var Wye=require("node:stream");var yP=class extends Wye.Readable{static{i(this,"BuffersStream")}buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,r,n){super(n),this.buffers=e,this.byteLength=r,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let s=0;for(let o of this.buffers)s+=o.byteLength;if(s<this.byteLength)throw new Error("Data size shouldn't be larger than the total length of buffers.")}_read(e){this.pushedBytesLength>=this.byteLength&&this.push(null),e||(e=this.readableHighWaterMark);let r=[],n=0;for(;n<e&&this.pushedBytesLength<this.byteLength;){let s=this.byteLength-this.pushedBytesLength,o=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer,a=Math.min(o,s);if(a>e-n){let c=this.byteOffsetInCurrentBuffer+e-n;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=c,n=e;break}else{let c=this.byteOffsetInCurrentBuffer+a;r.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c)),a===o?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=c,this.pushedBytesLength+=a,n+=a}}r.length>1?this.push(Buffer.concat(r)):r.length===1&&this.push(r[0])}};var Yye=R(require("node:buffer"),1);var EP=Yye.default.constants.MAX_LENGTH,CP=class{static{i(this,"PooledBuffer")}buffers=[];capacity;_size;get size(){return this._size}constructor(e,r,n){this.capacity=e,this._size=0;let s=Math.ceil(e/EP);for(let o=0;o<s;o++){let a=o===s-1?e%EP:EP;a===0&&(a=EP),this.buffers.push(Buffer.allocUnsafe(a))}r&&this.fill(r,n)}fill(e,r){this._size=Math.min(this.capacity,r);let n=0,s=0,o=0,a=0,c=0;for(;c<this._size;){let l=e[n],u=this.buffers[s],d=l.copy(u,o,a);c+=d,a+=d,o+=d,a===l.length&&(n++,a=0),o===u.length&&(s++,o=0)}e.splice(0,n),e.length>0&&(e[0]=e[0].slice(a))}getReadableStream(){return new yP(this.buffers,this.size)}};var IP=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Jye.EventEmitter;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,r,n,s,o,a){if(r<=0)throw new RangeError(`bufferSize must be larger than 0, current is ${r}`);if(n<=0)throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(o<=0)throw new RangeError(`concurrency must be larger than 0, current is ${o}`);this.bufferSize=r,this.maxBuffers=n,this.readable=e,this.outgoingHandler=s,this.concurrency=o,this.encoding=a}async do(){return new Promise((e,r)=>{this.readable.on("data",n=>{n=typeof n=="string"?Buffer.from(n,this.encoding):n,this.appendUnresolvedData(n),this.resolveData()||this.readable.pause()}),this.readable.on("error",n=>{this.emitter.emit("error",n)}),this.readable.on("end",()=>{this.isStreamEnd=!0,this.emitter.emit("checkEnd")}),this.emitter.on("error",n=>{this.isError=!0,this.readable.pause(),r(n)}),this.emitter.on("checkEnd",()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){let n=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler(()=>n.getReadableStream(),n.size,this.offset).then(e).catch(r)}else{if(this.unresolvedLength>=this.bufferSize)return;e()}})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new CP(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers<this.maxBuffers)e=this.shiftBufferFromUnresolvedDataArray(),this.numBuffers++;else return!1;this.outgoing.push(e),this.triggerOutgoingHandlers()}return!0}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let r=e.size;this.executingOutgoingHandlers++,this.offset+=r;try{await this.outgoingHandler(()=>e.getReadableStream(),r,this.offset-r)}catch(n){this.emitter.emit("error",n);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};var fV;function mV(){return fV||(fV=HS()),fV}i(mV,"getCachedDefaultHttpClient");var Bc=class{static{i(this,"BaseRequestPolicy")}_nextPolicy;_options;constructor(e,r){this._nextPolicy=e,this._options=r}shouldLog(e){return this._options.shouldLog(e)}log(e,r){this._options.log(e,r)}};var yu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},_e={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};function Md(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Md,"setURLParameter");function SP(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(SP,"setURLHost");function wP(t){try{return new URL(t).pathname}catch{return}}i(wP,"getURLPath");function xP(t){let e=new URL(t).search;if(!e)return{};e=e.trim(),e=e.startsWith("?")?e.substring(1):e;let r=e.split("&");r=r.filter(s=>{let o=s.indexOf("="),a=s.lastIndexOf("=");return o>0&&o===a&&a<s.length-1});let n={};for(let s of r){let o=s.split("="),a=o[0],c=o[1];n[a]=c}return n}i(xP,"getURLQueries");async function bP(t,e,r){return new Promise((n,s)=>{let o,a=i(()=>{o!==void 0&&clearTimeout(o),s(r)},"abortHandler");o=setTimeout(i(()=>{e!==void 0&&e.removeEventListener("abort",a),n()},"resolveHandler"),t),e!==void 0&&e.addEventListener("abort",a)})}i(bP,"delay");var aw=class extends Bc{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return pt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=Md(e.url,yu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(_e.COOKIE),e.headers.remove(_e.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var cw=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new aw(e,r)}};var ym=class extends Bc{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var lw=class extends ym{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var Em=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var Wt=class extends Em{static{i(this,"AnonymousCredential")}create(e,r){return new lw(e,r)}};var jye=require("node:crypto");var tCt=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),rCt=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),nCt=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function BP(t,e){return sCt(t,e)?-1:1}i(BP,"compareHeader");function sCt(t,e){let r=[tCt,rCt,nCt],n=0,s=0,o=0;for(;n<r.length;){if(n===r.length-1&&s!==o)return s>o;let a=s<t.length?r[n][t[s].charCodeAt(0)]:1,c=o<e.length?r[n][e[o].charCodeAt(0)]:1;if(a===1&&c===1)s=0,o=0,++n;else if(a===c)++s,++o;else if(a===0)++s;else if(c===0)++o;else return a<c}return!1}i(sCt,"isLessThan");var uw=class extends ym{static{i(this,"StorageSharedKeyCredentialPolicy")}factory;constructor(e,r,n){super(e,r),this.factory=n}signRequest(e){e.headers.set(_e.X_MS_DATE,new Date().toUTCString()),e.body&&(typeof e.body=="string"||e.body!==void 0)&&e.body.length>0&&e.headers.set(_e.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,_e.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,_e.CONTENT_ENCODING),this.getHeaderValueToSign(e,_e.CONTENT_LENGTH),this.getHeaderValueToSign(e,_e.CONTENT_MD5),this.getHeaderValueToSign(e,_e.CONTENT_TYPE),this.getHeaderValueToSign(e,_e.DATE),this.getHeaderValueToSign(e,_e.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,_e.IF_MATCH),this.getHeaderValueToSign(e,_e.IF_NONE_MATCH),this.getHeaderValueToSign(e,_e.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,_e.RANGE)].join(`
|
|
`)+`
|
|
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(_e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===_e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(_e.PREFIX_FOR_STORAGE));r.sort((s,o)=>BP(s.name.toLowerCase(),o.name.toLowerCase())),r=r.filter((s,o,a)=>!(o>0&&s.name.toLowerCase()===a[o-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
|
|
`}),n}getCanonicalizedResourceString(e){let r=wP(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=xP(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 dr=class extends Em{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new uw(e,r,this)}computeHMACSHA256(e){return(0,jye.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Vr=Cc("storage-common");var Ci;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ci||(Ci={}));var Fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ci.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},oCt=new Qo("The operation was aborted."),dw=class extends Bc{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Fd.maxRetryDelayInMs):Fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Fd.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=SP(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Md(s.url,yu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Vr.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(Vr.error(`RetryPolicy: Caught error, 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 Vr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let o=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of o)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return Vr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Vr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(_e.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')?(Vr.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 Ci.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ci.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${s}ms`),bP(s,n,oCt)}};var pw=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new dw(e,r,this.retryOptions)}};var iCt="storageBrowserPolicy";function Kye(){return{name:iCt,async sendRequest(t,e){return pt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Md(t.url,yu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(_e.COOKIE),t.headers.delete(_e.CONTENT_LENGTH)),e(t)}}}i(Kye,"storageBrowserPolicy");var aCt="StorageCorrectContentLengthPolicy";function Xye(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(_e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:aCt,async sendRequest(e,r){return t(e),r(e)}}}i(Xye,"storageCorrectContentLengthPolicy");var cCt="storageRetryPolicy",Qg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ci.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},lCt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],uCt=new Qo("The operation was aborted.");function Zye(t={}){let e=t.retryPolicyType??Qg.retryPolicyType,r=t.maxTries??Qg.maxTries,n=t.retryDelayInMs??Qg.retryDelayInMs,s=t.maxRetryDelayInMs??Qg.maxRetryDelayInMs,o=t.secondaryHost??Qg.secondaryHost,a=t.tryTimeoutInMs??Qg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:f}){if(d>=r)return Vr.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(f){for(let m of lCt)if(f.name.toUpperCase().includes(m)||f.message.toUpperCase().includes(m)||f.code&&f.code.toString().toUpperCase()===m)return Vr.info(`RetryPolicy: Network error ${m} found, will retry.`),!0;if(f?.code==="PARSE_ERROR"&&f?.message.startsWith('Error "Error: Unclosed root tag'))return Vr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0}if(p||f){let m=p?.status??f?.statusCode??0;if(!u&&m===404)return Vr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(m===503||m===500)return Vr.info(`RetryPolicy: Will retry for status code ${m}.`),!0}if(p&&p?.status>=400){let m=p.headers.get(_e.X_MS_CopySourceErrorCode);if(m!==void 0)switch(m){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return!1}i(c,"shouldRetry");function l(u,d){let p=0;if(u)switch(e){case Ci.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case Ci.FIXED:p=n;break}else p=Math.random()*1e3;return Vr.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:cCt,async sendRequest(u,d){a&&(u.url=Md(u.url,yu.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,f=o?SP(u.url,o):void 0,m=!1,h=1,A=!0,y,E;for(;A;){let I=m||!f||!["GET","HEAD","OPTIONS"].includes(u.method)||h%2===1;u.url=I?p:f,y=void 0,E=void 0;try{Vr.info(`RetryPolicy: =====> Try=${h} ${I?"Primary":"Secondary"}`),y=await d(u),m=m||!I&&y.status===404}catch(x){if(lm(x))Vr.error(`RetryPolicy: Caught error, message: ${x.message}, code: ${x.code}`),E=x;else throw Vr.error(`RetryPolicy: Caught error, message: ${Dd(x)}`),x}A=c({isPrimaryRetry:I,attempt:h,response:y,error:E}),A&&await bP(l(I,h),u.abortSignal,uCt),h++}if(y)return y;throw E??new hu("RetryPolicy failed without known error.")}}}i(Zye,"storageRetryPolicy");var eEe=require("node:crypto");var dCt="storageSharedKeyCredentialPolicy";function hV(t){function e(o){o.headers.set(_e.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(_e.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,_e.CONTENT_LANGUAGE),r(o,_e.CONTENT_ENCODING),r(o,_e.CONTENT_LENGTH),r(o,_e.CONTENT_MD5),r(o,_e.CONTENT_TYPE),r(o,_e.DATE),r(o,_e.IF_MODIFIED_SINCE),r(o,_e.IF_MATCH),r(o,_e.IF_NONE_MATCH),r(o,_e.IF_UNMODIFIED_SINCE),r(o,_e.RANGE)].join(`
|
|
`)+`
|
|
`+n(o)+s(o),c=(0,eEe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(_e.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===_e.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(_e.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>BP(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
|
|
`}),c}i(n,"getCanonicalizedHeadersString");function s(o){let a=wP(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=xP(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+=`
|
|
${p}:${decodeURIComponent(u[p])}`}return c}return i(s,"getCanonicalizedResourceString"),{name:dCt,async sendRequest(o,a){return e(o),a(o)}}}i(hV,"storageSharedKeyCredentialPolicy");var pCt="storageRequestFailureDetailsParserPolicy";function tEe(){return{name:pCt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
|
|
`),r}}}}i(tEe,"storageRequestFailureDetailsParserPolicy");var rEe=require("node:crypto");var RP=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,rEe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var NP="12.31.0",TP="2026-02-06";var PP="https://storage.azure.com/.default",Eu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var fa="",AV="*",fCt=1*1024*1024;var mCt=4*fCt;var nEe="AES256",sEe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",oEe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],iEe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],aEe="BlobUsesCustomerSpecifiedEncryption",cEe="BlobDoesNotUseCustomerSpecifiedEncryption",lEe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Cu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Cu,"isPipelineLike");var fw=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Tr(t,e={}){t||(t=new Wt);let r=new fw([],e);return r._credential=t,r}i(Tr,"newPipeline");function hCt(t){let e=[ACt,uEe,gCt,yCt,ECt,CCt,SCt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>ICt(s));return{wrappedPolicies:M3(r),afterRetry:n}}}}i(hCt,"processDownlevelPipeline");function gV(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?F3(e):mV(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${NP}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=VS({...r,loggingOptions:{additionalAllowedHeaderNames:oEe,additionalAllowedQueryParameters:iEe,logger:gP.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:AP,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:pV,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:m3}),s.addPolicy(Xye()),s.addPolicy(Zye(r.retryOptions),{phase:"Retry"}),s.addPolicy(tEe()),s.addPolicy(Kye());let c=hCt(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=yV(t);Do(l)?s.addPolicy(xg({credential:l,scopes:r.audience??PP,challengeCallbacks:{authorizeRequestOnChallenge:nP}}),{phase:"Sign"}):l instanceof dr&&s.addPolicy(hV({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(gV,"getCoreClientOptions");function yV(t){if(t._credential)return t._credential;let e=new Wt;for(let r of t.factories)if(Do(r.credential))e=r.credential;else if(uEe(r))return r;return e}i(yV,"getCredentialFromPipeline");function uEe(t){return t instanceof dr?!0:t.constructor.name==="StorageSharedKeyCredential"}i(uEe,"isStorageSharedKeyCredential");function ACt(t){return t instanceof Wt?!0:t.constructor.name==="AnonymousCredential"}i(ACt,"isAnonymousCredential");function gCt(t){return Do(t.credential)}i(gCt,"isCoreHttpBearerTokenFactory");function yCt(t){return t instanceof cw?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(yCt,"isStorageBrowserPolicyFactory");function ECt(t){return t instanceof pw?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(ECt,"isStorageRetryPolicyFactory");function CCt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(CCt,"isStorageTelemetryPolicyFactory");function ICt(t){return t.constructor.name==="InjectorPolicyFactory"}i(ICt,"isInjectorPolicyFactory");function SCt(t){let e=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"],r={sendRequest:i(async a=>({request:a,headers:a.headers.clone(),status:500}),"sendRequest")},n={log(a,c){},shouldLog(a){return!1}},o=t.create(r,n).constructor.name;return e.some(a=>o.startsWith(a))}i(SCt,"isCoreHttpPolicyFactory");var dEe;(function(t){t.AES256="AES256"})(dEe||(dEe={}));var pEe;(function(t){t.Backup="backup"})(pEe||(pEe={}));var fEe;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(fEe||(fEe={}));var mEe;(function(t){t.AccountAlreadyExists="AccountAlreadyExists",t.AccountBeingCreated="AccountBeingCreated",t.AccountIsDisabled="AccountIsDisabled",t.AuthenticationFailed="AuthenticationFailed",t.AuthorizationFailure="AuthorizationFailure",t.ConditionHeadersNotSupported="ConditionHeadersNotSupported",t.ConditionNotMet="ConditionNotMet",t.EmptyMetadataKey="EmptyMetadataKey",t.InsufficientAccountPermissions="InsufficientAccountPermissions",t.InternalError="InternalError",t.InvalidAuthenticationInfo="InvalidAuthenticationInfo",t.InvalidHeaderValue="InvalidHeaderValue",t.InvalidHttpVerb="InvalidHttpVerb",t.InvalidInput="InvalidInput",t.InvalidMd5="InvalidMd5",t.InvalidMetadata="InvalidMetadata",t.InvalidQueryParameterValue="InvalidQueryParameterValue",t.InvalidRange="InvalidRange",t.InvalidResourceName="InvalidResourceName",t.InvalidUri="InvalidUri",t.InvalidXmlDocument="InvalidXmlDocument",t.InvalidXmlNodeValue="InvalidXmlNodeValue",t.Md5Mismatch="Md5Mismatch",t.MetadataTooLarge="MetadataTooLarge",t.MissingContentLengthHeader="MissingContentLengthHeader",t.MissingRequiredQueryParameter="MissingRequiredQueryParameter",t.MissingRequiredHeader="MissingRequiredHeader",t.MissingRequiredXmlNode="MissingRequiredXmlNode",t.MultipleConditionHeadersNotSupported="MultipleConditionHeadersNotSupported",t.OperationTimedOut="OperationTimedOut",t.OutOfRangeInput="OutOfRangeInput",t.OutOfRangeQueryParameterValue="OutOfRangeQueryParameterValue",t.RequestBodyTooLarge="RequestBodyTooLarge",t.ResourceTypeMismatch="ResourceTypeMismatch",t.RequestUrlFailedToParse="RequestUrlFailedToParse",t.ResourceAlreadyExists="ResourceAlreadyExists",t.ResourceNotFound="ResourceNotFound",t.ServerBusy="ServerBusy",t.UnsupportedHeader="UnsupportedHeader",t.UnsupportedXmlNode="UnsupportedXmlNode",t.UnsupportedQueryParameter="UnsupportedQueryParameter",t.UnsupportedHttpVerb="UnsupportedHttpVerb",t.AppendPositionConditionNotMet="AppendPositionConditionNotMet",t.BlobAlreadyExists="BlobAlreadyExists",t.BlobImmutableDueToPolicy="BlobImmutableDueToPolicy",t.BlobNotFound="BlobNotFound",t.BlobOverwritten="BlobOverwritten",t.BlobTierInadequateForContentLength="BlobTierInadequateForContentLength",t.BlobUsesCustomerSpecifiedEncryption="BlobUsesCustomerSpecifiedEncryption",t.BlockCountExceedsLimit="BlockCountExceedsLimit",t.BlockListTooLong="BlockListTooLong",t.CannotChangeToLowerTier="CannotChangeToLowerTier",t.CannotVerifyCopySource="CannotVerifyCopySource",t.ContainerAlreadyExists="ContainerAlreadyExists",t.ContainerBeingDeleted="ContainerBeingDeleted",t.ContainerDisabled="ContainerDisabled",t.ContainerNotFound="ContainerNotFound",t.ContentLengthLargerThanTierLimit="ContentLengthLargerThanTierLimit",t.CopyAcrossAccountsNotSupported="CopyAcrossAccountsNotSupported",t.CopyIdMismatch="CopyIdMismatch",t.FeatureVersionMismatch="FeatureVersionMismatch",t.IncrementalCopyBlobMismatch="IncrementalCopyBlobMismatch",t.IncrementalCopyOfEarlierVersionSnapshotNotAllowed="IncrementalCopyOfEarlierVersionSnapshotNotAllowed",t.IncrementalCopySourceMustBeSnapshot="IncrementalCopySourceMustBeSnapshot",t.InfiniteLeaseDurationRequired="InfiniteLeaseDurationRequired",t.InvalidBlobOrBlock="InvalidBlobOrBlock",t.InvalidBlobTier="InvalidBlobTier",t.InvalidBlobType="InvalidBlobType",t.InvalidBlockId="InvalidBlockId",t.InvalidBlockList="InvalidBlockList",t.InvalidOperation="InvalidOperation",t.InvalidPageRange="InvalidPageRange",t.InvalidSourceBlobType="InvalidSourceBlobType",t.InvalidSourceBlobUrl="InvalidSourceBlobUrl",t.InvalidVersionForPageBlobOperation="InvalidVersionForPageBlobOperation",t.LeaseAlreadyPresent="LeaseAlreadyPresent",t.LeaseAlreadyBroken="LeaseAlreadyBroken",t.LeaseIdMismatchWithBlobOperation="LeaseIdMismatchWithBlobOperation",t.LeaseIdMismatchWithContainerOperation="LeaseIdMismatchWithContainerOperation",t.LeaseIdMismatchWithLeaseOperation="LeaseIdMismatchWithLeaseOperation",t.LeaseIdMissing="LeaseIdMissing",t.LeaseIsBreakingAndCannotBeAcquired="LeaseIsBreakingAndCannotBeAcquired",t.LeaseIsBreakingAndCannotBeChanged="LeaseIsBreakingAndCannotBeChanged",t.LeaseIsBrokenAndCannotBeRenewed="LeaseIsBrokenAndCannotBeRenewed",t.LeaseLost="LeaseLost",t.LeaseNotPresentWithBlobOperation="LeaseNotPresentWithBlobOperation",t.LeaseNotPresentWithContainerOperation="LeaseNotPresentWithContainerOperation",t.LeaseNotPresentWithLeaseOperation="LeaseNotPresentWithLeaseOperation",t.MaxBlobSizeConditionNotMet="MaxBlobSizeConditionNotMet",t.NoAuthenticationInformation="NoAuthenticationInformation",t.NoPendingCopyOperation="NoPendingCopyOperation",t.OperationNotAllowedOnIncrementalCopyBlob="OperationNotAllowedOnIncrementalCopyBlob",t.PendingCopyOperation="PendingCopyOperation",t.PreviousSnapshotCannotBeNewer="PreviousSnapshotCannotBeNewer",t.PreviousSnapshotNotFound="PreviousSnapshotNotFound",t.PreviousSnapshotOperationNotSupported="PreviousSnapshotOperationNotSupported",t.SequenceNumberConditionNotMet="SequenceNumberConditionNotMet",t.SequenceNumberIncrementTooLarge="SequenceNumberIncrementTooLarge",t.SnapshotCountExceeded="SnapshotCountExceeded",t.SnapshotOperationRateExceeded="SnapshotOperationRateExceeded",t.SnapshotsPresent="SnapshotsPresent",t.SourceConditionNotMet="SourceConditionNotMet",t.SystemInUse="SystemInUse",t.TargetConditionNotMet="TargetConditionNotMet",t.UnauthorizedBlobOverwrite="UnauthorizedBlobOverwrite",t.BlobBeingRehydrated="BlobBeingRehydrated",t.BlobArchived="BlobArchived",t.BlobNotArchived="BlobNotArchived",t.AuthorizationSourceIPMismatch="AuthorizationSourceIPMismatch",t.AuthorizationProtocolMismatch="AuthorizationProtocolMismatch",t.AuthorizationPermissionMismatch="AuthorizationPermissionMismatch",t.AuthorizationServiceMismatch="AuthorizationServiceMismatch",t.AuthorizationResourceTypeMismatch="AuthorizationResourceTypeMismatch",t.BlobAccessTierNotSupportedForAccountType="BlobAccessTierNotSupportedForAccountType"})(mEe||(mEe={}));var Mo={};cr(Mo,{AccessPolicy:()=>DCt,AppendBlobAppendBlockExceptionHeaders:()=>MW,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>UW,AppendBlobAppendBlockFromUrlHeaders:()=>FW,AppendBlobAppendBlockHeaders:()=>LW,AppendBlobCreateExceptionHeaders:()=>OW,AppendBlobCreateHeaders:()=>kW,AppendBlobSealExceptionHeaders:()=>$W,AppendBlobSealHeaders:()=>qW,ArrowConfiguration:()=>YCt,ArrowField:()=>JCt,BlobAbortCopyFromURLExceptionHeaders:()=>cW,BlobAbortCopyFromURLHeaders:()=>aW,BlobAcquireLeaseExceptionHeaders:()=>V4,BlobAcquireLeaseHeaders:()=>z4,BlobBreakLeaseExceptionHeaders:()=>eW,BlobBreakLeaseHeaders:()=>Z4,BlobChangeLeaseExceptionHeaders:()=>X4,BlobChangeLeaseHeaders:()=>K4,BlobCopyFromURLExceptionHeaders:()=>iW,BlobCopyFromURLHeaders:()=>oW,BlobCreateSnapshotExceptionHeaders:()=>rW,BlobCreateSnapshotHeaders:()=>tW,BlobDeleteExceptionHeaders:()=>P4,BlobDeleteHeaders:()=>T4,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>U4,BlobDeleteImmutabilityPolicyHeaders:()=>F4,BlobDownloadExceptionHeaders:()=>B4,BlobDownloadHeaders:()=>vP,BlobFlatListSegment:()=>kCt,BlobGetAccountInfoExceptionHeaders:()=>dW,BlobGetAccountInfoHeaders:()=>uW,BlobGetPropertiesExceptionHeaders:()=>N4,BlobGetPropertiesHeaders:()=>R4,BlobGetTagsExceptionHeaders:()=>mW,BlobGetTagsHeaders:()=>fW,BlobHierarchyListSegment:()=>FCt,BlobItemInternal:()=>OCt,BlobName:()=>LCt,BlobPrefix:()=>UCt,BlobPropertiesInternal:()=>MCt,BlobQueryExceptionHeaders:()=>pW,BlobQueryHeaders:()=>DP,BlobReleaseLeaseExceptionHeaders:()=>Y4,BlobReleaseLeaseHeaders:()=>W4,BlobRenewLeaseExceptionHeaders:()=>j4,BlobRenewLeaseHeaders:()=>J4,BlobServiceProperties:()=>mw,BlobServiceStatistics:()=>EV,BlobSetExpiryExceptionHeaders:()=>D4,BlobSetExpiryHeaders:()=>Q4,BlobSetHttpHeadersExceptionHeaders:()=>O4,BlobSetHttpHeadersHeaders:()=>k4,BlobSetImmutabilityPolicyExceptionHeaders:()=>M4,BlobSetImmutabilityPolicyHeaders:()=>L4,BlobSetLegalHoldExceptionHeaders:()=>$4,BlobSetLegalHoldHeaders:()=>q4,BlobSetMetadataExceptionHeaders:()=>H4,BlobSetMetadataHeaders:()=>G4,BlobSetTagsExceptionHeaders:()=>AW,BlobSetTagsHeaders:()=>hW,BlobSetTierExceptionHeaders:()=>lW,BlobSetTierHeaders:()=>QP,BlobStartCopyFromURLExceptionHeaders:()=>sW,BlobStartCopyFromURLHeaders:()=>nW,BlobTag:()=>vCt,BlobTags:()=>Aw,BlobUndeleteExceptionHeaders:()=>v4,BlobUndeleteHeaders:()=>_4,Block:()=>qCt,BlockBlobCommitBlockListExceptionHeaders:()=>XW,BlockBlobCommitBlockListHeaders:()=>KW,BlockBlobGetBlockListExceptionHeaders:()=>e8,BlockBlobGetBlockListHeaders:()=>ZW,BlockBlobPutBlobFromUrlExceptionHeaders:()=>VW,BlockBlobPutBlobFromUrlHeaders:()=>zW,BlockBlobStageBlockExceptionHeaders:()=>YW,BlockBlobStageBlockFromURLExceptionHeaders:()=>jW,BlockBlobStageBlockFromURLHeaders:()=>JW,BlockBlobStageBlockHeaders:()=>WW,BlockBlobUploadExceptionHeaders:()=>HW,BlockBlobUploadHeaders:()=>GW,BlockList:()=>BV,BlockLookupList:()=>bV,ClearRange:()=>GCt,ContainerAcquireLeaseExceptionHeaders:()=>d4,ContainerAcquireLeaseHeaders:()=>u4,ContainerBreakLeaseExceptionHeaders:()=>g4,ContainerBreakLeaseHeaders:()=>A4,ContainerChangeLeaseExceptionHeaders:()=>E4,ContainerChangeLeaseHeaders:()=>y4,ContainerCreateExceptionHeaders:()=>zV,ContainerCreateHeaders:()=>HV,ContainerDeleteExceptionHeaders:()=>JV,ContainerDeleteHeaders:()=>YV,ContainerFilterBlobsExceptionHeaders:()=>l4,ContainerFilterBlobsHeaders:()=>c4,ContainerGetAccessPolicyExceptionHeaders:()=>ZV,ContainerGetAccessPolicyHeaders:()=>XV,ContainerGetAccountInfoExceptionHeaders:()=>b4,ContainerGetAccountInfoHeaders:()=>x4,ContainerGetPropertiesExceptionHeaders:()=>WV,ContainerGetPropertiesHeaders:()=>VV,ContainerItem:()=>TCt,ContainerListBlobFlatSegmentExceptionHeaders:()=>I4,ContainerListBlobFlatSegmentHeaders:()=>C4,ContainerListBlobHierarchySegmentExceptionHeaders:()=>w4,ContainerListBlobHierarchySegmentHeaders:()=>S4,ContainerProperties:()=>PCt,ContainerReleaseLeaseExceptionHeaders:()=>f4,ContainerReleaseLeaseHeaders:()=>p4,ContainerRenameExceptionHeaders:()=>o4,ContainerRenameHeaders:()=>s4,ContainerRenewLeaseExceptionHeaders:()=>h4,ContainerRenewLeaseHeaders:()=>m4,ContainerRestoreExceptionHeaders:()=>n4,ContainerRestoreHeaders:()=>r4,ContainerSetAccessPolicyExceptionHeaders:()=>t4,ContainerSetAccessPolicyHeaders:()=>e4,ContainerSetMetadataExceptionHeaders:()=>KV,ContainerSetMetadataHeaders:()=>jV,ContainerSubmitBatchExceptionHeaders:()=>a4,ContainerSubmitBatchHeaders:()=>i4,CorsRule:()=>BCt,DelimitedTextConfiguration:()=>VCt,FilterBlobItem:()=>_Ct,FilterBlobSegment:()=>hw,GeoReplication:()=>NCt,JsonTextConfiguration:()=>WCt,KeyInfo:()=>IV,ListBlobsFlatSegmentResponse:()=>wV,ListBlobsHierarchySegmentResponse:()=>xV,ListContainersSegmentResponse:()=>CV,Logging:()=>wCt,Metrics:()=>bCt,PageBlobClearPagesExceptionHeaders:()=>SW,PageBlobClearPagesHeaders:()=>IW,PageBlobCopyIncrementalExceptionHeaders:()=>DW,PageBlobCopyIncrementalHeaders:()=>QW,PageBlobCreateExceptionHeaders:()=>yW,PageBlobCreateHeaders:()=>gW,PageBlobGetPageRangesDiffExceptionHeaders:()=>NW,PageBlobGetPageRangesDiffHeaders:()=>RW,PageBlobGetPageRangesExceptionHeaders:()=>BW,PageBlobGetPageRangesHeaders:()=>bW,PageBlobResizeExceptionHeaders:()=>PW,PageBlobResizeHeaders:()=>TW,PageBlobUpdateSequenceNumberExceptionHeaders:()=>vW,PageBlobUpdateSequenceNumberHeaders:()=>_W,PageBlobUploadPagesExceptionHeaders:()=>CW,PageBlobUploadPagesFromURLExceptionHeaders:()=>xW,PageBlobUploadPagesFromURLHeaders:()=>wW,PageBlobUploadPagesHeaders:()=>EW,PageList:()=>_P,PageRange:()=>$Ct,QueryFormat:()=>zCt,QueryRequest:()=>RV,QuerySerialization:()=>HCt,RetentionPolicy:()=>xCt,ServiceFilterBlobsExceptionHeaders:()=>GV,ServiceFilterBlobsHeaders:()=>$V,ServiceGetAccountInfoExceptionHeaders:()=>FV,ServiceGetAccountInfoHeaders:()=>MV,ServiceGetPropertiesExceptionHeaders:()=>_V,ServiceGetPropertiesHeaders:()=>PV,ServiceGetStatisticsExceptionHeaders:()=>QV,ServiceGetStatisticsHeaders:()=>vV,ServiceGetUserDelegationKeyExceptionHeaders:()=>LV,ServiceGetUserDelegationKeyHeaders:()=>OV,ServiceListContainersSegmentExceptionHeaders:()=>kV,ServiceListContainersSegmentHeaders:()=>DV,ServiceSetPropertiesExceptionHeaders:()=>TV,ServiceSetPropertiesHeaders:()=>NV,ServiceSubmitBatchExceptionHeaders:()=>qV,ServiceSubmitBatchHeaders:()=>UV,SignedIdentifier:()=>QCt,StaticWebsite:()=>RCt,StorageError:()=>M,UserDelegationKey:()=>SV});var mw={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:!0,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}},wCt={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},xCt={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},bCt={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},BCt={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},RCt={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}},M={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}},EV={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},NCt={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},CV={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},TCt={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}},PCt={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}},IV={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},SV={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},hw={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},_Ct={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},Aw={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},vCt={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},QCt={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},DCt={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}},wV={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},kCt={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},OCt={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}},LCt={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},MCt={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}},xV={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},FCt={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},UCt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},bV={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},BV={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},qCt={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},_P={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},$Ct={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},GCt={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},RV={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}},HCt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},zCt={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}},VCt={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}},WCt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},YCt={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},JCt={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}},NV={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TV={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PV={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_V={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vV={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QV={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DV={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kV={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OV={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LV={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MV={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FV={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UV={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qV={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$V={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GV={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HV={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zV={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VV={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WV={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YV={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JV={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jV={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KV={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XV={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZV={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e4={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t4={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},r4={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n4={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},s4={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},o4={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i4={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}},a4={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},c4={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},l4={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},u4={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},d4={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},p4={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},f4={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m4={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},h4={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A4={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},g4={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},y4={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},E4={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C4={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},I4={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S4={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},w4={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x4={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},b4={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vP={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},B4={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},R4={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N4={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},T4={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},P4={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_4={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v4={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Q4={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},D4={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},k4={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O4={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},L4={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}},M4={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},F4={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},U4={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q4={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}},$4={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G4={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},H4={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},z4={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},V4={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},W4={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},Y4={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},J4={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},j4={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},K4={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},X4={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Z4={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}},eW={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},tW={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rW={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},nW={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sW={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},oW={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:!0,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iW={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},aW={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},cW={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QP={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lW={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uW={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}},dW={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DP={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}},pW={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fW={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},mW={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},hW={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},AW={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},gW={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yW={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},EW={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CW={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IW={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SW={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wW={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xW={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},bW={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BW={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RW={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},NW={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TW={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PW={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_W={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},vW={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QW={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DW={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kW={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OW={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LW={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},MW={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FW={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},UW={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},qW={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}},$W={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GW={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HW={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zW={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},VW={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},WW={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},YW={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JW={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jW={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}},KW={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},XW={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZW={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},e8={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Rc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},hEe={parameterPath:"blobServiceProperties",mapper:mw},Ii={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},F={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},gw={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Si={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},U={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},q={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},$={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},j={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},AEe={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},yw={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ew={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},Nc={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},Tc={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},gEe={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},yEe={parameterPath:"keyInfo",mapper:IV},EEe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Dg={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},kP={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},OP={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},an={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},LP={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},MP={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},FP={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},cn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Vn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},t8={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},CEe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},IEe={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},Ge={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Me={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Fe={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},UP={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},r8={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},SEe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},qP={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},wEe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},xEe={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},bEe={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},BEe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},REe={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},wi={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$P={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},GP={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},HP={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},zP={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Ud={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},VP={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},WP={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},YP={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},JP={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},jP={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},n8={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"},s8={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},NEe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},Es={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Pc={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},Cm={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},TEe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},PEe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},pr={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},fr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},mr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},st={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},ot={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},Xe={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},_Ee={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},vEe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},QEe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},DEe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},kEe={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},_c={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},vc={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},Qc={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},Dc={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},kc={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},Oc={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},o8={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ma={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},ha={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},OEe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},LEe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Mr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},MEe={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Iu={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},i8={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},Lc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},Mc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Fc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Uc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},KP={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Im={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},Aa={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},FEe={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},qc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},UEe={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},Su={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},wu={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},XP={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},xu={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},qEe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$Ee={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},GEe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},HEe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zEe={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}},VEe={parameterPath:["options","queryRequest"],mapper:RV},WEe={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},a8={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},c8={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},l8={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},u8={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},d8={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},YEe={parameterPath:["options","tags"],mapper:Aw},xi={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},$c={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},JEe={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},p8={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},f8={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Sm={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},wm={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},xm={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},ZP={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},m8={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},e_={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},t_={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},r_={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},jEe={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},kg={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},KEe={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},Og={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},XEe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},h8={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ZEe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},eCe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},tCe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},rCe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},nCe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},A8={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},g8={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},n_={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},s_={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},sCe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},y8={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},oCe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},E8={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},C8={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},iCe={parameterPath:"blocks",mapper:bV},I8={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},aCe={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var o_=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},jCt)}getProperties(e){return this.client.sendOperationRequest({options:e},KCt)}getStatistics(e){return this.client.sendOperationRequest({options:e},XCt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},ZCt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},eIt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},tIt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},rIt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},nIt)}},qd=ko(Mo,!0),jCt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:NV},default:{bodyMapper:M,headersMapper:TV}},requestBody:hEe,queryParameters:[gw,Si,U],urlParameters:[F],headerParameters:[Rc,Ii,q,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qd},KCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:mw,headersMapper:PV},default:{bodyMapper:M,headersMapper:_V}},queryParameters:[gw,Si,U],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:qd},XCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:EV,headersMapper:vV},default:{bodyMapper:M,headersMapper:QV}},queryParameters:[gw,U,AEe],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:qd},ZCt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:CV,headersMapper:DV},default:{bodyMapper:M,headersMapper:kV}},queryParameters:[U,yw,Ew,Nc,Tc,gEe],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:qd},eIt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:SV,headersMapper:OV},default:{bodyMapper:M,headersMapper:LV}},requestBody:yEe,queryParameters:[gw,U,EEe],urlParameters:[F],headerParameters:[Rc,Ii,q,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qd},tIt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:MV},default:{bodyMapper:M,headersMapper:FV}},queryParameters:[Si,U,Dg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:qd},rIt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:UV},default:{bodyMapper:M,headersMapper:qV}},requestBody:kP,queryParameters:[U,OP],urlParameters:[F],headerParameters:[Ii,q,$,an,LP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:qd},nIt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:hw,headersMapper:$V},default:{bodyMapper:M,headersMapper:GV}},queryParameters:[U,Nc,Tc,MP,FP],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:qd};var i_=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},sIt)}getProperties(e){return this.client.sendOperationRequest({options:e},oIt)}delete(e){return this.client.sendOperationRequest({options:e},iIt)}setMetadata(e){return this.client.sendOperationRequest({options:e},aIt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},cIt)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},lIt)}restore(e){return this.client.sendOperationRequest({options:e},uIt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},dIt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},pIt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},fIt)}acquireLease(e){return this.client.sendOperationRequest({options:e},mIt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},hIt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},AIt)}breakLease(e){return this.client.sendOperationRequest({options:e},gIt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},yIt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},EIt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},CIt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},IIt)}},ln=ko(Mo,!0),sIt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:HV},default:{bodyMapper:M,headersMapper:zV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Vn,t8,CEe,IEe],isXML:!0,serializer:ln},oIt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:VV},default:{bodyMapper:M,headersMapper:WV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Ge],isXML:!0,serializer:ln},iIt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:YV},default:{bodyMapper:M,headersMapper:JV}},queryParameters:[U,cn],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe],isXML:!0,serializer:ln},aIt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:jV},default:{bodyMapper:M,headersMapper:KV}},queryParameters:[U,cn,UP],urlParameters:[F],headerParameters:[q,$,j,Vn,Ge,Me],isXML:!0,serializer:ln},cIt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:XV},default:{bodyMapper:M,headersMapper:ZV}},queryParameters:[U,cn,r8],urlParameters:[F],headerParameters:[q,$,j,Ge],isXML:!0,serializer:ln},lIt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:e4},default:{bodyMapper:M,headersMapper:t4}},requestBody:SEe,queryParameters:[U,cn,r8],urlParameters:[F],headerParameters:[Rc,Ii,q,$,t8,Ge,Me,Fe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ln},uIt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:r4},default:{bodyMapper:M,headersMapper:n4}},queryParameters:[U,cn,qP],urlParameters:[F],headerParameters:[q,$,j,wEe,xEe],isXML:!0,serializer:ln},dIt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:s4},default:{bodyMapper:M,headersMapper:o4}},queryParameters:[U,cn,bEe],urlParameters:[F],headerParameters:[q,$,j,BEe,REe],isXML:!0,serializer:ln},pIt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:i4},default:{bodyMapper:M,headersMapper:a4}},requestBody:kP,queryParameters:[U,OP,cn],urlParameters:[F],headerParameters:[Ii,q,$,an,LP],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:ln},fIt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:hw,headersMapper:c4},default:{bodyMapper:M,headersMapper:l4}},queryParameters:[U,Nc,Tc,MP,FP,cn],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},mIt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:u4},default:{bodyMapper:M,headersMapper:d4}},queryParameters:[U,cn,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,$P,GP,HP],isXML:!0,serializer:ln},hIt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:p4},default:{bodyMapper:M,headersMapper:f4}},queryParameters:[U,cn,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,zP,Ud],isXML:!0,serializer:ln},AIt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:m4},default:{bodyMapper:M,headersMapper:h4}},queryParameters:[U,cn,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Ud,VP],isXML:!0,serializer:ln},gIt={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:A4},default:{bodyMapper:M,headersMapper:g4}},queryParameters:[U,cn,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,WP,YP],isXML:!0,serializer:ln},yIt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:y4},default:{bodyMapper:M,headersMapper:E4}},queryParameters:[U,cn,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Ud,JP,jP],isXML:!0,serializer:ln},EIt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:wV,headersMapper:C4},default:{bodyMapper:M,headersMapper:I4}},queryParameters:[U,yw,Ew,Nc,Tc,cn,n8,s8],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},CIt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:xV,headersMapper:S4},default:{bodyMapper:M,headersMapper:w4}},queryParameters:[U,yw,Ew,Nc,Tc,cn,n8,s8,NEe],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln},IIt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:x4},default:{bodyMapper:M,headersMapper:b4}},queryParameters:[Si,U,Dg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:ln};var a_=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},SIt)}getProperties(e){return this.client.sendOperationRequest({options:e},wIt)}delete(e){return this.client.sendOperationRequest({options:e},xIt)}undelete(e){return this.client.sendOperationRequest({options:e},bIt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},BIt)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},RIt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},NIt)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},TIt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},PIt)}setMetadata(e){return this.client.sendOperationRequest({options:e},_It)}acquireLease(e){return this.client.sendOperationRequest({options:e},vIt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},QIt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},DIt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},kIt)}breakLease(e){return this.client.sendOperationRequest({options:e},OIt)}createSnapshot(e){return this.client.sendOperationRequest({options:e},LIt)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},MIt)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},FIt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},UIt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},qIt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},$It)}query(e){return this.client.sendOperationRequest({options:e},GIt)}getTags(e){return this.client.sendOperationRequest({options:e},HIt)}setTags(e){return this.client.sendOperationRequest({options:e},zIt)}},Yt=ko(Mo,!0),SIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:vP},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:vP},default:{bodyMapper:M,headersMapper:B4}},queryParameters:[U,Es,Pc],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,Cm,TEe,PEe,pr,fr,mr,st,ot,Xe],isXML:!0,serializer:Yt},wIt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:R4},default:{bodyMapper:M,headersMapper:N4}},queryParameters:[U,Es,Pc],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,pr,fr,mr,st,ot,Xe],isXML:!0,serializer:Yt},xIt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:T4},default:{bodyMapper:M,headersMapper:P4}},queryParameters:[U,Es,Pc,vEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,_Ee],isXML:!0,serializer:Yt},bIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_4},default:{bodyMapper:M,headersMapper:v4}},queryParameters:[U,qP],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Yt},BIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Q4},default:{bodyMapper:M,headersMapper:D4}},queryParameters:[U,QEe],urlParameters:[F],headerParameters:[q,$,j,DEe,kEe],isXML:!0,serializer:Yt},RIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:k4},default:{bodyMapper:M,headersMapper:O4}},queryParameters:[Si,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,_c,vc,Qc,Dc,kc,Oc],isXML:!0,serializer:Yt},NIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:L4},default:{bodyMapper:M,headersMapper:M4}},queryParameters:[U,Es,Pc,o8],urlParameters:[F],headerParameters:[q,$,j,Fe,ma,ha],isXML:!0,serializer:Yt},TIt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:F4},default:{bodyMapper:M,headersMapper:U4}},queryParameters:[U,Es,Pc,o8],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Yt},PIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:q4},default:{bodyMapper:M,headersMapper:$4}},queryParameters:[U,Es,Pc,OEe],urlParameters:[F],headerParameters:[q,$,j,LEe],isXML:!0,serializer:Yt},_It={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:G4},default:{bodyMapper:M,headersMapper:H4}},queryParameters:[U,UP],urlParameters:[F],headerParameters:[q,$,j,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr],isXML:!0,serializer:Yt},vIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:z4},default:{bodyMapper:M,headersMapper:V4}},queryParameters:[U,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,$P,GP,HP,st,ot,Xe],isXML:!0,serializer:Yt},QIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:W4},default:{bodyMapper:M,headersMapper:Y4}},queryParameters:[U,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,zP,Ud,st,ot,Xe],isXML:!0,serializer:Yt},DIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:J4},default:{bodyMapper:M,headersMapper:j4}},queryParameters:[U,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Ud,VP,st,ot,Xe],isXML:!0,serializer:Yt},kIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:K4},default:{bodyMapper:M,headersMapper:X4}},queryParameters:[U,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,Ud,JP,jP,st,ot,Xe],isXML:!0,serializer:Yt},OIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Z4},default:{bodyMapper:M,headersMapper:eW}},queryParameters:[U,wi],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,WP,YP,st,ot,Xe],isXML:!0,serializer:Yt},LIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:tW},default:{bodyMapper:M,headersMapper:rW}},queryParameters:[U,MEe],urlParameters:[F],headerParameters:[q,$,j,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr],isXML:!0,serializer:Yt},MIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:nW},default:{bodyMapper:M,headersMapper:sW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,Vn,Ge,Me,Fe,st,ot,Xe,ma,ha,Iu,i8,Lc,Mc,Fc,Uc,KP,Im,Aa,FEe,qc],isXML:!0,serializer:Yt},FIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:oW},default:{bodyMapper:M,headersMapper:iW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,Vn,Ge,Me,Fe,st,ot,Xe,ma,ha,Mr,Iu,Lc,Mc,Fc,Uc,Im,Aa,qc,UEe,Su,wu,XP,xu],isXML:!0,serializer:Yt},UIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:aW},default:{bodyMapper:M,headersMapper:cW}},queryParameters:[U,qEe,GEe],urlParameters:[F],headerParameters:[q,$,j,Ge,$Ee],isXML:!0,serializer:Yt},qIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:QP},202:{headersMapper:QP},default:{bodyMapper:M,headersMapper:lW}},queryParameters:[U,Es,Pc,HEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe,i8,zEe],isXML:!0,serializer:Yt},$It={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:uW},default:{bodyMapper:M,headersMapper:dW}},queryParameters:[Si,U,Dg],urlParameters:[F],headerParameters:[q,$,j],isXML:!0,serializer:Yt},GIt={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:DP},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:DP},default:{bodyMapper:M,headersMapper:pW}},requestBody:VEe,queryParameters:[U,Es,WEe],urlParameters:[F],headerParameters:[Rc,Ii,q,$,Ge,Me,Fe,pr,fr,mr,st,ot,Xe],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Yt},HIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Aw,headersMapper:fW},default:{bodyMapper:M,headersMapper:mW}},queryParameters:[U,Es,Pc,a8],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe,c8,l8,u8,d8],isXML:!0,serializer:Yt},zIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:hW},default:{bodyMapper:M,headersMapper:AW}},requestBody:YEe,queryParameters:[U,Pc,a8],urlParameters:[F],headerParameters:[Rc,Ii,q,$,Ge,Xe,c8,l8,u8,d8,xi,$c],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Yt};var c_=class{static{i(this,"PageBlobImpl")}client;constructor(e){this.client=e}create(e,r,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:r,options:n},VIt)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},WIt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},YIt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},JIt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},jIt)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},KIt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},XIt)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},ZIt)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},eSt)}},bu=ko(Mo,!0),VIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:gW},default:{bodyMapper:M,headersMapper:yW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,_c,vc,Qc,Dc,kc,Oc,ma,ha,Mr,Iu,Aa,qc,JEe,p8,f8],isXML:!0,serializer:bu},WIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:EW},default:{bodyMapper:M,headersMapper:CW}},requestBody:wm,queryParameters:[U,ZP],urlParameters:[F],headerParameters:[q,$,an,Ge,Me,Fe,Cm,pr,fr,mr,st,ot,Xe,Mr,xi,$c,Sm,xm,m8,e_,t_,r_],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:bu},YIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:IW},default:{bodyMapper:M,headersMapper:SW}},queryParameters:[U,ZP],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,Cm,pr,fr,mr,st,ot,Xe,Mr,e_,t_,r_,jEe],isXML:!0,serializer:bu},JIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:wW},default:{bodyMapper:M,headersMapper:xW}},queryParameters:[U,ZP],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Lc,Mc,Fc,Uc,Su,wu,xu,m8,e_,t_,r_,kg,KEe,Og,XEe],isXML:!0,serializer:bu},jIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:_P,headersMapper:bW},default:{bodyMapper:M,headersMapper:BW}},queryParameters:[U,Nc,Tc,Es,h8],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,Cm,st,ot,Xe],isXML:!0,serializer:bu},KIt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:_P,headersMapper:RW},default:{bodyMapper:M,headersMapper:NW}},queryParameters:[U,Nc,Tc,Es,h8,ZEe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,Cm,st,ot,Xe,eCe],isXML:!0,serializer:bu},XIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:TW},default:{bodyMapper:M,headersMapper:PW}},queryParameters:[Si,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,p8],isXML:!0,serializer:bu},ZIt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_W},default:{bodyMapper:M,headersMapper:vW}},queryParameters:[Si,U],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,Xe,f8,tCe],isXML:!0,serializer:bu},eSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:QW},default:{bodyMapper:M,headersMapper:DW}},queryParameters:[U,rCe],urlParameters:[F],headerParameters:[q,$,j,Me,Fe,st,ot,Xe,Im],isXML:!0,serializer:bu};var l_=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},tSt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},rSt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},nSt)}seal(e){return this.client.sendOperationRequest({options:e},sSt)}},u_=ko(Mo,!0),tSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:kW},default:{bodyMapper:M,headersMapper:OW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,_c,vc,Qc,Dc,kc,Oc,ma,ha,Mr,Aa,qc,nCe],isXML:!0,serializer:u_},rSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:LW},default:{bodyMapper:M,headersMapper:MW}},requestBody:wm,queryParameters:[U,A8],urlParameters:[F],headerParameters:[q,$,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,xi,$c,Sm,xm,g8,n_],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:u_},nSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:FW},default:{bodyMapper:M,headersMapper:UW}},queryParameters:[U,A8],urlParameters:[F],headerParameters:[q,$,j,an,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,Mr,Lc,Mc,Fc,Uc,Su,wu,xu,xi,kg,Og,g8,n_,s_],isXML:!0,serializer:u_},sSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:qW},default:{bodyMapper:M,headersMapper:$W}},queryParameters:[U,sCe],urlParameters:[F],headerParameters:[q,$,j,Ge,Me,Fe,st,ot,n_],isXML:!0,serializer:u_};var d_=class{static{i(this,"BlockBlobImpl")}client;constructor(e){this.client=e}upload(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},oSt)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},iSt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},aSt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},cSt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},lSt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},uSt)}},Mg=ko(Mo,!0),oSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:GW},default:{bodyMapper:M,headersMapper:HW}},requestBody:wm,queryParameters:[U],urlParameters:[F],headerParameters:[q,$,an,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,_c,vc,Qc,Dc,kc,Oc,ma,ha,Mr,Iu,Aa,qc,xi,$c,Sm,xm,y8],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Mg},iSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:zW},default:{bodyMapper:M,headersMapper:VW}},queryParameters:[U],urlParameters:[F],headerParameters:[q,$,j,an,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,_c,vc,Qc,Dc,kc,Oc,Mr,Iu,Lc,Mc,Fc,Uc,KP,Im,Aa,Su,wu,XP,xu,xi,y8,oCe],isXML:!0,serializer:Mg},aSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:WW},default:{bodyMapper:M,headersMapper:YW}},requestBody:wm,queryParameters:[U,E8,C8],urlParameters:[F],headerParameters:[q,$,an,Ge,pr,fr,mr,Mr,xi,$c,Sm,xm],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Mg},cSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:JW},default:{bodyMapper:M,headersMapper:jW}},queryParameters:[U,E8,C8],urlParameters:[F],headerParameters:[q,$,j,an,Ge,pr,fr,mr,Mr,Lc,Mc,Fc,Uc,Su,wu,xu,kg,Og,s_],isXML:!0,serializer:Mg},lSt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:KW},default:{bodyMapper:M,headersMapper:XW}},requestBody:iCe,queryParameters:[U,I8],urlParameters:[F],headerParameters:[Rc,Ii,q,$,Vn,Ge,Me,Fe,pr,fr,mr,st,ot,Xe,_c,vc,Qc,Dc,kc,Oc,ma,ha,Mr,Iu,Aa,qc,xi,$c],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Mg},uSt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:BV,headersMapper:ZW},default:{bodyMapper:M,headersMapper:e8}},queryParameters:[U,Es,I8,aCe],urlParameters:[F],headerParameters:[q,$,j,Ge,Xe],isXML:!0,serializer:Mg};var Cw=class extends KS{static{i(this,"StorageClient")}url;version;constructor(e,r){if(e===void 0)throw new Error("'url' cannot be null");r||(r={});let n={requestContentType:"application/json; charset=utf-8"},s="azsdk-js-azure-storage-blob/12.30.0",o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`,a={...n,...r,userAgentOptions:{userAgentPrefix:o},endpoint:r.endpoint??r.baseUri??"{url}"};super(a),this.url=e,this.version=r.version||"2026-02-06",this.service=new o_(this),this.container=new i_(this),this.blob=new a_(this),this.pageBlob=new c_(this),this.appendBlob=new l_(this),this.blockBlob=new d_(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var Iw=class extends Cw{static{i(this,"StorageContextClient")}async sendOperationRequest(e,r){let n={...r};return(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}")&&(n.path=""),super.sendOperationRequest(e,n)}};function lCe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=pSt(r),e.pathname=r,e.toString()}i(lCe,"escapeURLPath");function dSt(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let r=t.split(";");for(let n of r)n.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=n.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}i(dSt,"getProxyUriFromDevConnString");function bm(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(bm,"getValueInConnString");function Bm(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=dSt(t),t=sEe);let r=bm(t,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let n="",s="",o=Buffer.from("accountKey","base64"),a="";if(s=bm(t,"AccountName"),o=Buffer.from(bm(t,"AccountKey"),"base64"),!r){n=bm(t,"DefaultEndpointsProtocol");let c=n.toLowerCase();if(c!=="https"&&c!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(a=bm(t,"EndpointSuffix"),!a)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${s}.blob.${a}`}if(s){if(o.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else throw new Error("Invalid AccountName in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:s,accountKey:o,proxyUri:e}}else{let n=bm(t,"SharedAccessSignature"),s=bm(t,"AccountName");if(s||(s=b8(r)),r){if(!n)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}else throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");return n.startsWith("?")&&(n=n.substring(1)),{kind:"SASConnString",url:r,accountName:s,accountSas:n}}}i(Bm,"extractConnectionStringParts");function pSt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(pSt,"escape");function Wr(t,e){let r=new URL(t),n=r.pathname;return n=n?n.endsWith("/")?`${n}${e}`:`${n}/${e}`:e,r.pathname=n,r.toString()}i(Wr,"appendToURLPath");function Fg(t,e,r){let n=new URL(t),s=encodeURIComponent(e),o=r?encodeURIComponent(r):void 0,a=n.search===""?"?":n.search,c=[];for(let l of a.slice(1).split("&"))if(l){let[u]=l.split("=",2);u!==s&&c.push(l)}return o&&c.push(`${s}=${o}`),n.search=c.length?`?${c.join("&")}`:"",n.toString()}i(Fg,"setURLParameter");function S8(t,e){return new URL(t).searchParams.get(e)??void 0}i(S8,"getURLParameter");function uCe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(uCe,"getURLScheme");function Sw(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(Sw,"appendToURLQuery");function ft(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(ft,"truncatedISO8061Date");function fSt(t){return pt?Buffer.from(t).toString("base64"):btoa(t)}i(fSt,"base64encode");function w8(t,e){t.length>42&&(t=t.slice(0,42));let o=t+mSt(e.toString(),48-t.length,"0");return fSt(o)}i(w8,"generateBlockID");function mSt(t,e,r=" "){return String.prototype.padStart?t.padStart(e,r):(r=r||" ",t.length>e?t:(e=e-t.length,e>r.length&&(r+=r.repeat(e/r.length)),r.slice(0,e)+t))}i(mSt,"padStart");function x8(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(x8,"iEqual");function b8(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:p_(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(b8,"getAccountNameFromUrl");function p_(t){let e=t.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(e)||!!t.port&&lEe.includes(t.port)}i(p_,"isIpEndpointStyle");function $d(t){if(t===void 0)return;let e=[];for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return e.join("&")}i($d,"toBlobTagsString");function dCe(t){if(t===void 0)return;let e={blobTagSet:[]};for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let n=t[r];e.blobTagSet.push({key:r,value:n})}return e}i(dCe,"toBlobTags");function f_(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(f_,"toTags");function B8(t){if(t!==void 0)switch(t.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:t.columnSeparator||",",fieldQuote:t.fieldQuote||"",recordSeparator:t.recordSeparator,escapeChar:t.escapeCharacter||"",headersPresent:t.hasHeaders||!1}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:t.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:t.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}i(B8,"toQuerySerialization");function m_(t){if(!t||"policy-id"in t)return;let e=[];for(let r in t){let n=r.split("_"),s="or-";n[0].startsWith(s)&&(n[0]=n[0].substring(s.length));let o={ruleId:n[1],replicationStatus:t[r]},a=e.findIndex(c=>c.policyId===n[0]);a>-1?e[a].rules.push(o):e.push({policyId:n[0],rules:[o]})}return e}i(m_,"parseObjectReplicationRecord");function Ug(t){return t?t.scheme+" "+t.value:void 0}i(Ug,"httpAuthorizationToString");function*R8(t){let e=[],r=[];t.pageRange&&(e=t.pageRange),t.clearRange&&(r=t.clearRange);let n=0,s=0;for(;n<e.length&&s<r.length;)e[n].start<r[s].start?(yield{start:e[n].start,end:e[n].end,isClear:!1},++n):(yield{start:r[s].start,end:r[s].end,isClear:!0},++s);for(;n<e.length;++n)yield{start:e[n].start,end:e[n].end,isClear:!1};for(;s<r.length;++s)yield{start:r[s].start,end:r[s].end,isClear:!0}}i(R8,"ExtractPageRangeInfoItems");function de(t){if("_response"in t)return t;throw new TypeError(`Unexpected response object ${t}`)}i(de,"assertResponse");var qg=class{static{i(this,"StorageClient")}url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,r){this.url=lCe(e),this.accountName=b8(e),this.pipeline=r,this.storageClientContext=new Iw(this.url,gV(r)),this.isHttps=x8(uCe(this.url)||"","https"),this.credential=yV(r);let n=this.storageClientContext;n.requestContentType=void 0}};var ee=GS({packageName:"@azure/storage-blob",packageVersion:NP,namespace:"Microsoft.Storage"});var Gc=class t{static{i(this,"BlobSASPermissions")}static parse(e){let r=new t;for(let n of e)switch(n){case"r":r.read=!0;break;case"a":r.add=!0;break;case"c":r.create=!0;break;case"w":r.write=!0;break;case"d":r.delete=!0;break;case"x":r.deleteVersion=!0;break;case"t":r.tag=!0;break;case"m":r.move=!0;break;case"e":r.execute=!0;break;case"i":r.setImmutabilityPolicy=!0;break;case"y":r.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${n}`)}return r}static from(e){let r=new t;return e.read&&(r.read=!0),e.add&&(r.add=!0),e.create&&(r.create=!0),e.write&&(r.write=!0),e.delete&&(r.delete=!0),e.deleteVersion&&(r.deleteVersion=!0),e.tag&&(r.tag=!0),e.move&&(r.move=!0),e.execute&&(r.execute=!0),e.setImmutabilityPolicy&&(r.setImmutabilityPolicy=!0),e.permanentDelete&&(r.permanentDelete=!0),r}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}};var Hc=class t{static{i(this,"ContainerSASPermissions")}static parse(e){let r=new t;for(let n of e)switch(n){case"r":r.read=!0;break;case"a":r.add=!0;break;case"c":r.create=!0;break;case"w":r.write=!0;break;case"d":r.delete=!0;break;case"l":r.list=!0;break;case"t":r.tag=!0;break;case"x":r.deleteVersion=!0;break;case"m":r.move=!0;break;case"e":r.execute=!0;break;case"i":r.setImmutabilityPolicy=!0;break;case"y":r.permanentDelete=!0;break;case"f":r.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${n}`)}return r}static from(e){let r=new t;return e.read&&(r.read=!0),e.add&&(r.add=!0),e.create&&(r.create=!0),e.write&&(r.write=!0),e.delete&&(r.delete=!0),e.list&&(r.list=!0),e.deleteVersion&&(r.deleteVersion=!0),e.tag&&(r.tag=!0),e.move&&(r.move=!0),e.execute&&(r.execute=!0),e.setImmutabilityPolicy&&(r.setImmutabilityPolicy=!0),e.permanentDelete&&(r.permanentDelete=!0),e.filterByTags&&(r.filterByTags=!0),r}read=!1;add=!1;create=!1;write=!1;delete=!1;deleteVersion=!1;list=!1;tag=!1;move=!1;execute=!1;setImmutabilityPolicy=!1;permanentDelete=!1;filterByTags=!1;toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}};function ga(t){return t.end?`${t.start}-${t.end}`:t.start}i(ga,"ipRangeToString");var pCe;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(pCe||(pCe={}));var ya=class{static{i(this,"SASQueryParameters")}version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}constructor(e,r,n,s,o,a,c,l,u,d,p,f,m,h,A,y,E,I,x,b,N){this.version=e,this.signature=r,n!==void 0&&typeof n!="string"?(this.permissions=n.permissions,this.services=n.services,this.resourceTypes=n.resourceTypes,this.protocol=n.protocol,this.startsOn=n.startsOn,this.expiresOn=n.expiresOn,this.ipRangeInner=n.ipRange,this.identifier=n.identifier,this.delegatedUserObjectId=n.delegatedUserObjectId,this.encryptionScope=n.encryptionScope,this.resource=n.resource,this.cacheControl=n.cacheControl,this.contentDisposition=n.contentDisposition,this.contentEncoding=n.contentEncoding,this.contentLanguage=n.contentLanguage,this.contentType=n.contentType,n.userDelegationKey&&(this.signedOid=n.userDelegationKey.signedObjectId,this.signedTenantId=n.userDelegationKey.signedTenantId,this.signedStartsOn=n.userDelegationKey.signedStartsOn,this.signedExpiresOn=n.userDelegationKey.signedExpiresOn,this.signedService=n.userDelegationKey.signedService,this.signedVersion=n.userDelegationKey.signedVersion,this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId,this.correlationId=n.correlationId)):(this.services=s,this.resourceTypes=o,this.expiresOn=l,this.permissions=n,this.protocol=a,this.startsOn=c,this.ipRangeInner=u,this.delegatedUserObjectId=N,this.encryptionScope=b,this.identifier=d,this.resource=p,this.cacheControl=f,this.contentDisposition=m,this.contentEncoding=h,this.contentLanguage=A,this.contentType=y,E&&(this.signedOid=E.signedObjectId,this.signedTenantId=E.signedTenantId,this.signedStartsOn=E.signedStartsOn,this.signedExpiresOn=E.signedExpiresOn,this.signedService=E.signedService,this.signedVersion=E.signedVersion,this.preauthorizedAgentObjectId=I,this.correlationId=x))}toString(){let e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"],r=[];for(let n of e)switch(n){case"sv":this.tryAppendQueryParameter(r,n,this.version);break;case"ss":this.tryAppendQueryParameter(r,n,this.services);break;case"srt":this.tryAppendQueryParameter(r,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(r,n,this.protocol);break;case"st":this.tryAppendQueryParameter(r,n,this.startsOn?ft(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(r,n,this.expiresOn?ft(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(r,n,this.ipRange?ga(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(r,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(r,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(r,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(r,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(r,n,this.signedStartsOn?ft(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(r,n,this.signedExpiresOn?ft(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(r,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(r,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(r,n,this.resource);break;case"sp":this.tryAppendQueryParameter(r,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(r,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(r,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(r,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(r,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(r,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(r,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(r,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(r,n,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(r,n,this.delegatedUserObjectId);break}return r.join("&")}tryAppendQueryParameter(e,r,n){n&&(r=encodeURIComponent(r),n=encodeURIComponent(n),r.length>0&&n.length>0&&e.push(`${r}=${n}`))}};function ww(t,e,r){return xw(t,e,r).sasQueryParameters}i(ww,"generateBlobSASQueryParameters");function xw(t,e,r){let n=t.version?t.version:TP,s=e instanceof dr?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new RP(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?gSt(t,s):n>="2025-07-05"?ISt(t,o):CSt(t,o);if(n>="2018-11-09")return s!==void 0?ASt(t,s):n>="2020-02-10"?ESt(t,o):ySt(t,o);if(n>="2015-04-05"){if(s!==void 0)return hSt(t,s);throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}throw new RangeError("'version' must be >= '2015-04-05'.")}i(xw,"generateBlobSASQueryParametersInternal");function hSt(t,e){if(t=Nm(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";t.blobName&&(r="b");let n;t.permissions&&(t.blobName?n=Gc.parse(t.permissions.toString()).toString():n=Hc.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ga(t.ipRange):"",t.protocol?t.protocol:"",t.version,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
|
|
`),o=e.computeHMACSHA256(s);return{sasQueryParameters:new ya(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(hSt,"generateBlobSASQueryParameters20150405");function ASt(t,e){if(t=Nm(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=Gc.parse(t.permissions.toString()).toString():s=Hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ga(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 ya(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(ASt,"generateBlobSASQueryParameters20181109");function gSt(t,e){if(t=Nm(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=Gc.parse(t.permissions.toString()).toString():s=Hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ga(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 ya(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(gSt,"generateBlobSASQueryParameters20201206");function ySt(t,e){if(t=Nm(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=Gc.parse(t.permissions.toString()).toString():s=Hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ga(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 ya(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(ySt,"generateBlobSASQueryParametersUDK20181109");function ESt(t,e){if(t=Nm(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=Gc.parse(t.permissions.toString()).toString():s=Hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ga(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 ya(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(ESt,"generateBlobSASQueryParametersUDK20200210");function CSt(t,e){if(t=Nm(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=Gc.parse(t.permissions.toString()).toString():s=Hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ga(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 ya(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(CSt,"generateBlobSASQueryParametersUDK20201206");function ISt(t,e){if(t=Nm(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=Gc.parse(t.permissions.toString()).toString():s=Hc.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?ft(t.startsOn,!1):"",t.expiresOn?ft(t.expiresOn,!1):"",Rm(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ft(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ft(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ga(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 ya(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(ISt,"generateBlobSASQueryParametersUDK20250705");function Rm(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Rm,"getCanonicalName");function Nm(t){let e=t.version?t.version:TP;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(Nm,"SASSignatureValuesSanityCheckAndAutofill");var bw=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=Sg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fa||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=>de(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!==fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fa||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=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==fa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==fa||e.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-releaseLease",e,async r=>de(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==fa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==fa||e.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-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions}))}async breakLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==fa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fa||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-breakLease",r,async n=>{let s={abortSignal:r.abortSignal,breakPeriod:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions};return de(await this._containerOrBlobOperation.breakLease(s))})}};var fCe=require("node:stream");var h_=class extends fCe.Readable{static{i(this,"RetriableReadableStream")}start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,r,n,s,o={}){super({highWaterMark:o.highWaterMark}),this.getter=r,this.source=e,this.start=n,this.offset=n,this.end=n+s-1,this.maxRetryRequests=o.maxRetryRequests&&o.maxRetryRequests>=0?o.maxRetryRequests:0,this.onProgress=o.onProgress,this.options=o,this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler),this.source.on("end",this.sourceErrorOrEndHandler),this.source.on("error",this.sourceErrorOrEndHandler),this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler),this.source.removeListener("end",this.sourceErrorOrEndHandler),this.source.removeListener("error",this.sourceErrorOrEndHandler),this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=i(e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()},"sourceDataHandler");sourceAbortedHandler=i(()=>{let e=new Qo("The operation was aborted.");this.destroy(e)},"sourceAbortedHandler");sourceErrorOrEndHandler=i(e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries<this.maxRetryRequests?(this.retries+=1,this.getter(this.offset).then(r=>{this.source=r,this.setSourceEventHandlers()}).catch(r=>{this.destroy(r)})):this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`)):this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))},"sourceErrorOrEndHandler");_destroy(e,r){this.removeSourceEventHandlers(),this.source.destroy(),r(e===null?void 0:e)}};var A_=class{static{i(this,"BlobDownloadResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return pt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new h_(this.originalResponse.readableStreamBody,r,n,s,o)}};var ECe=require("node:stream");var N8=new Uint8Array([79,98,106,1]),mCe="avro.codec",hCe="avro.schema";var tr=class t{static{i(this,"AvroParser")}static async readFixedBytes(e,r,n={}){let s=await e.read(r,{abortSignal:n.abortSignal});if(s.length!==r)throw new Error("Hit stream end.");return s}static async readByte(e,r={}){return(await t.readFixedBytes(e,1,r))[0]}static async readZigZagLong(e,r={}){let n=0,s=0,o,a,c;do o=await t.readByte(e,r),a=o&128,n|=(o&127)<<s,s+=7;while(a&&s<28);if(a){n=n,c=268435456;do o=await t.readByte(e,r),n+=(o&127)*c,c*=128;while(o&128);let l=(n%2?-(n+1):n)/2;if(l<Number.MIN_SAFE_INTEGER||l>Number.MAX_SAFE_INTEGER)throw new Error("Integer overflow.");return l}return n>>1^-(n&1)}static async readLong(e,r={}){return t.readZigZagLong(e,r)}static async readInt(e,r={}){return t.readZigZagLong(e,r)}static async readNull(){return null}static async readBoolean(e,r={}){let n=await t.readByte(e,r);if(n===1)return!0;if(n===0)return!1;throw new Error("Byte was not a boolean.")}static async readFloat(e,r={}){let n=await t.readFixedBytes(e,4,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat32(0,!0)}static async readDouble(e,r={}){let n=await t.readFixedBytes(e,8,r);return new DataView(n.buffer,n.byteOffset,n.byteLength).getFloat64(0,!0)}static async readBytes(e,r={}){let n=await t.readLong(e,r);if(n<0)throw new Error("Bytes size was negative.");return e.read(n,{abortSignal:r.abortSignal})}static async readString(e,r={}){let n=await t.readBytes(e,r);return new TextDecoder().decode(n)}static async readMapPair(e,r,n={}){let s=await t.readString(e,n),o=await r(e,n);return{key:s,value:o}}static async readMap(e,r,n={}){let s=i((c,l={})=>t.readMapPair(c,r,l),"readPairMethod"),o=await t.readArray(e,s,n),a={};for(let c of o)a[c.key]=c.value;return a}static async readArray(e,r,n={}){let s=[];for(let o=await t.readLong(e,n);o!==0;o=await t.readLong(e,n))for(o<0&&(await t.readLong(e,n),o=-o);o--;){let a=await r(e,n);s.push(a)}return s}},Tm;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Tm||(Tm={}));var un;(function(t){t.NULL="null",t.BOOLEAN="boolean",t.INT="int",t.LONG="long",t.FLOAT="float",t.DOUBLE="double",t.BYTES="bytes",t.STRING="string"})(un||(un={}));var Bu=class t{static{i(this,"AvroType")}static fromSchema(e){return typeof e=="string"?t.fromStringSchema(e):Array.isArray(e)?t.fromArraySchema(e):t.fromObjectSchema(e)}static fromStringSchema(e){switch(e){case un.NULL:case un.BOOLEAN:case un.INT:case un.LONG:case un.FLOAT:case un.DOUBLE:case un.BYTES:case un.STRING:return new T8(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new _8(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Tm.RECORD:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.name)throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`);let n={};if(!e.fields)throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`);for(let s of e.fields)n[s.name]=t.fromSchema(s.type);return new Q8(n,e.name);case Tm.ENUM:if(e.aliases)throw new Error(`aliases currently is not supported, schema: ${e}`);if(!e.symbols)throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`);return new P8(e.symbols);case Tm.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new v8(t.fromSchema(e.values));case Tm.ARRAY:case Tm.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},T8=class extends Bu{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case un.NULL:return tr.readNull();case un.BOOLEAN:return tr.readBoolean(e,r);case un.INT:return tr.readInt(e,r);case un.LONG:return tr.readLong(e,r);case un.FLOAT:return tr.readFloat(e,r);case un.DOUBLE:return tr.readDouble(e,r);case un.BYTES:return tr.readBytes(e,r);case un.STRING:return tr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},P8=class extends Bu{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await tr.readInt(e,r);return this._symbols[n]}},_8=class extends Bu{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await tr.readInt(e,r);return this._types[n].read(e,r)}},v8=class extends Bu{static{i(this,"AvroMapType")}_itemType;constructor(e){super(),this._itemType=e}read(e,r={}){let n=i((s,o)=>this._itemType.read(s,o),"readItemMethod");return tr.readMap(e,n,r)}},Q8=class extends Bu{static{i(this,"AvroRecordType")}_name;_fields;constructor(e,r){super(),this._fields=e,this._name=r}async read(e,r={}){let n={};n.$schema=this._name;for(let s in this._fields)Object.prototype.hasOwnProperty.call(this._fields,s)&&(n[s]=await this._fields[s].read(e,r));return n}};function D8(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r])return!1;return!0}i(D8,"arraysEqual");var Bw=class{static{i(this,"AvroReader")}_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,r,n,s){this._dataStream=e,this._headerStream=r||e,this._initialized=!1,this._blockOffset=n||0,this._objectIndex=s||0,this._initialBlockOffset=n||0}async initialize(e={}){let r=await tr.readFixedBytes(this._headerStream,N8.length,{abortSignal:e.abortSignal});if(!D8(r,N8))throw new Error("Stream is not an Avro file.");this._metadata=await tr.readMap(this._headerStream,tr.readString,{abortSignal:e.abortSignal});let n=this._metadata[mCe];if(!(n==null||n==="null"))throw new Error("Codecs are not supported");this._syncMarker=await tr.readFixedBytes(this._headerStream,16,{abortSignal:e.abortSignal});let s=JSON.parse(this._metadata[hCe]);if(this._itemType=Bu.fromSchema(s),this._blockOffset===0&&(this._blockOffset=this._initialBlockOffset+this._dataStream.position),this._itemsRemainingInBlock=await tr.readLong(this._dataStream,{abortSignal:e.abortSignal}),await tr.readLong(this._dataStream,{abortSignal:e.abortSignal}),this._initialized=!0,this._objectIndex&&this._objectIndex>0)for(let o=0;o<this._objectIndex;o++)await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal}),this._itemsRemainingInBlock--}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let r=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let n=await tr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!D8(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await tr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await tr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var Rw=class{static{i(this,"AvroReadable")}};var yCe=require("buffer");var gCe=new Qo("Reading from the avro stream was aborted."),Nw=class extends Rw{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?yCe.Buffer.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,r={}){if(r.abortSignal?.aborted)throw gCe;if(e<0)throw new Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw new Error("Stream no longer readable.");let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((s,o)=>{let a=i(()=>{this._readable.removeListener("readable",c),this._readable.removeListener("error",l),this._readable.removeListener("end",l),this._readable.removeListener("close",l),r.abortSignal&&r.abortSignal.removeEventListener("abort",u)},"cleanUp"),c=i(()=>{let d=this._readable.read(e);d&&(this._position+=d.length,a(),s(this.toUint8Array(d)))},"readableCallback"),l=i(()=>{a(),o()},"rejectCallback"),u=i(()=>{a(),o(gCe)},"abortHandler");this._readable.on("readable",c),this._readable.once("error",l),this._readable.once("end",l),this._readable.once("close",l),r.abortSignal&&r.abortSignal.addEventListener("abort",u)})}};var g_=class extends ECe.Readable{static{i(this,"BlobQuickQueryStream")}source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,r={}){super(),this.source=e,this.onProgress=r.onProgress,this.onError=r.onError,this.avroReader=new Bw(new Nw(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:r.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit("error",e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let r=e.value,n=r.$schema;if(typeof n!="string")throw Error("Missing schema in avro record.");switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{let s=r.data;if(!(s instanceof Uint8Array))throw Error("Invalid data in avro result record.");this.push(Buffer.from(s))||(this.avroPaused=!0)}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{let s=r.bytesScanned;if(typeof s!="number")throw Error("Invalid bytesScanned in avro progress record.");this.onProgress&&this.onProgress({loadedBytes:s})}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){let s=r.totalBytes;if(typeof s!="number")throw Error("Invalid totalBytes in avro end record.");this.onProgress({loadedBytes:s})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){let s=r.fatal;if(typeof s!="boolean")throw Error("Invalid fatal in avro error record.");let o=r.name;if(typeof o!="string")throw Error("Invalid name in avro error record.");let a=r.description;if(typeof a!="string")throw Error("Invalid description in avro error record.");let c=r.position;if(typeof c!="number")throw Error("Invalid position in avro error record.");this.onError({position:c,name:o,isFatal:s,description:a})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}};var y_=class{static{i(this,"BlobQueryResponse")}get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){}get readableStreamBody(){return pt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new g_(this.originalResponse.readableStreamBody,r)}};var k8;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(k8||(k8={}));var O8;(function(t){t.P4="P4",t.P6="P6",t.P10="P10",t.P15="P15",t.P20="P20",t.P30="P30",t.P40="P40",t.P50="P50",t.P60="P60",t.P70="P70",t.P80="P80"})(O8||(O8={}));function Gd(t){if(t!==void 0)return t}i(Gd,"toAccessTier");function Yr(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=nEe)}i(Yr,"ensureCpkIfSpecified");var L8;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(L8||(L8={}));function E_(t){let e=(t._response.parsedBody.pageRange||[]).map(n=>({offset:n.start,count:n.end-n.start})),r=(t._response.parsedBody.clearRange||[]).map(n=>({offset:n.start,count:n.end-n.start}));return{...t,pageRange:e,clearRange:r,_response:{...t._response,parsedBody:{pageRange:e,clearRange:r}}}}i(E_,"rangeResponseFromModel");var sIe=R(nIe(),1);var T_=class extends sIe.Poller{static{i(this,"BlobBeginCopyFromUrlPoller")}intervalInMs;constructor(e){let{blobClient:r,copySource:n,intervalInMs:s=15e3,onProgress:o,resumeFrom:a,startCopyFromURLOptions:c}=e,l;a&&(l=JSON.parse(a).state);let u=vw({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return qS(this.intervalInMs)}},owt=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?vw(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,vw(r)):(r.isCancelled=!0,vw(r))},"cancel"),iwt=i(async function(e={}){let r=this.state,{blobClient:n,copySource:s,startCopyFromURLOptions:o}=r;if(r.isStarted){if(!r.isCompleted)try{let a=await r.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:c,copyProgress:l}=a,u=r.copyProgress;l&&(r.copyProgress=l),c==="pending"&&l!==u&&typeof e.fireProgress=="function"?e.fireProgress(r):c==="success"?(r.result=a,r.isCompleted=!0):c==="failed"&&(r.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`),r.isCompleted=!0)}catch(a){r.error=a,r.isCompleted=!0}}else{r.isStarted=!0;let a=await n.startCopyFromURL(s,o);r.copyId=a.copyId,a.copyStatus==="success"&&(r.result=a,r.isCompleted=!0)}return vw(r)},"update"),awt=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function vw(t){return{state:{...t},cancel:owt,toString:awt,update:iwt}}i(vw,"makeBlobBeginCopyFromURLPollOperation");function Ys(t){if(t.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(t.count&&t.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return t.count?`bytes=${t.offset}-${t.offset+t.count-1}`:`bytes=${t.offset}-`}i(Ys,"rangeToString");var oIe=require("events");var Qw;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(Qw||(Qw={}));var Dw=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=Qw.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new oIe.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(r){this.emitter.emit("error",r)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,r)=>{this.emitter.on("finish",e),this.emitter.on("error",n=>{this.state=Qw.Error,r(n)})}))}nextOperation(){return this.offset<this.operations.length?this.operations[this.offset++]:null}parallelExecute(){if(this.state!==Qw.Error){if(this.completed>=this.operations.length){this.emitter.emit("finish");return}for(;this.actives<this.concurrency;){let e=this.nextOperation();if(e)e();else return}}}};var P_=R(require("node:fs"),1),iIe=R(require("node:util"),1);async function aIe(t,e,r,n,s){let o=0,a=n-r;return new Promise((c,l)=>{let u=setTimeout(()=>l(new Error("The operation cannot be completed in timeout.")),1e5);t.on("readable",()=>{if(o>=a){clearTimeout(u),c();return}let d=t.read();if(!d)return;typeof d=="string"&&(d=Buffer.from(d,s));let p=o+d.length>a?a-o:d.length;e.fill(d.slice(0,p),r+o,r+o+p),o+=p}),t.on("end",()=>{clearTimeout(u),o<a&&l(new Error(`Stream drains before getting enough data needed. Data read: ${o}, data need: ${a}`)),c()}),t.on("error",d=>{clearTimeout(u),l(d)})})}i(aIe,"streamToBuffer");async function cIe(t,e){return new Promise((r,n)=>{let s=P_.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(cIe,"readStreamToLocalFile");var lIe=iIe.default.promisify(P_.default.stat),uIe=P_.default.createReadStream;var Ru=class t extends qg{static{i(this,"BlobClient")}blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,r,n,s){s=s||{};let o,a;if(Cu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Do(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Bm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=kd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=S8(this.url,Eu.Parameters.SNAPSHOT),this._versionId=S8(this.url,Eu.Parameters.VERSIONID)}withSnapshot(e){return new t(Fg(this.url,Eu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(Fg(this.url,Eu.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new v_(this.url,this.pipeline)}getBlockBlobClient(){return new Hg(this.url,this.pipeline)}getPageBlobClient(){return new Q_(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},Yr(n.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-download",n,async s=>{let o=de(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:pt?void 0:n.onProgress},range:e===0&&!r?void 0:Ys({offset:e,count:r}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions})),a={...o,_response:o._response,objectReplicationDestinationPolicyId:o.objectReplicationPolicyId,objectReplicationSourceProperties:m_(o.objectReplicationRules)};if(!pt)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),o.contentLength===void 0)throw new RangeError("File download response doesn't contain valid content length header");if(!o.etag)throw new RangeError("File download response doesn't contain valid etag header");return new A_(a,async c=>{let l={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||o.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:Ys({count:e+o.contentLength-c,offset:c}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...l})).readableStreamBody},e,o.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return ee.withSpan("BlobClient-exists",e,async r=>{try{return Yr(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0}catch(n){if(n.statusCode===404)return!1;if(n.statusCode===409&&(n.details.errorCode===aEe||n.details.errorCode===cEe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},Yr(e.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-getProperties",e,async r=>{let n=de(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:m_(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ee.withSpan("BlobClient-delete",e,async r=>de(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async deleteIfExists(e={}){return ee.withSpan("BlobClient-deleteIfExists",e,async r=>{try{let n=de(await this.delete(r));return{succeeded:!0,...n,_response:n._response}}catch(n){if(n.details?.errorCode==="BlobNotFound")return{succeeded:!1,...n.response?.parsedHeaders,_response:n.response};throw n}})}async undelete(e={}){return ee.withSpan("BlobClient-undelete",e,async r=>de(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},Yr(r.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-setHTTPHeaders",r,async n=>de(await this.blobContext.setHttpHeaders({abortSignal:r.abortSignal,blobHttpHeaders:e,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,r={}){return r.conditions=r.conditions||{},Yr(r.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-setMetadata",r,async n=>de(await this.blobContext.setMetadata({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,r={}){return ee.withSpan("BlobClient-setTags",r,async n=>de(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:dCe(e)})))}async getTags(e={}){return ee.withSpan("BlobClient-getTags",e,async r=>{let n=de(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:r.tracingOptions}));return{...n,_response:n._response,tags:f_({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new bw(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},Yr(e.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-createSnapshot",e,async r=>de(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:r.tracingOptions})))}async beginCopyFromURL(e,r={}){let n={abortCopyFromURL:i((...o)=>this.abortCopyFromURL(...o),"abortCopyFromURL"),getProperties:i((...o)=>this.getProperties(...o),"getProperties"),startCopyFromURL:i((...o)=>this.startCopyFromURL(...o),"startCopyFromURL")},s=new T_({blobClient:n,copySource:e,intervalInMs:r.intervalInMs,onProgress:r.onProgress,resumeFrom:r.resumeFrom,startCopyFromURLOptions:r});return await s.poll(),s}async abortCopyFromURL(e,r={}){return ee.withSpan("BlobClient-abortCopyFromURL",r,async n=>de(await this.blobContext.abortCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},ee.withSpan("BlobClient-syncCopyFromURL",r,async n=>de(await this.blobContext.copyFromURL(e,{abortSignal:r.abortSignal,metadata:r.metadata,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:r.sourceContentMD5,copySourceAuthorization:Ug(r.sourceAuthorization),tier:Gd(r.tier),blobTagsString:$d(r.tags),immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,encryptionScope:r.encryptionScope,copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,r={}){return ee.withSpan("BlobClient-setAccessTier",r,async n=>de(await this.blobContext.setTier(Gd(e),{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},rehydratePriority:r.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,r,n,s={}){let o,a=0,c=0,l=s;e instanceof Buffer?(o=e,a=r||0,c=typeof n=="number"?n:0):(a=typeof e=="number"?e:0,c=typeof r=="number"?r:0,l=n||{});let u=l.blockSize??0;if(u<0)throw new RangeError("blockSize option must be >= 0");if(u===0&&(u=4194304),a<0)throw new RangeError("offset option must be >= 0");if(c&&c<=0)throw new RangeError("count option must be greater than 0");return l.conditions||(l.conditions={}),ee.withSpan("BlobClient-downloadToBuffer",l,async d=>{if(!c){let m=await this.getProperties({...l,tracingOptions:d.tracingOptions});if(c=m.contentLength-a,c<0)throw new RangeError(`offset ${a} shouldn't be larger than blob size ${m.contentLength}`)}if(!o)try{o=Buffer.alloc(c)}catch(m){throw new Error(`Unable to allocate the buffer of size: ${c}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile". ${m.message}`)}if(o.length<c)throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${c}`);let p=0,f=new Dw(l.concurrency);for(let m=a;m<a+c;m=m+u)f.addOperation(async()=>{let h=a+c;m+u<h&&(h=m+u);let y=(await this.download(m,h-m,{abortSignal:l.abortSignal,conditions:l.conditions,maxRetryRequests:l.maxRetryRequestsPerBlock,customerProvidedKey:l.customerProvidedKey,tracingOptions:d.tracingOptions})).readableStreamBody;await aIe(y,o,m-a,h-a),p+=h-m,l.onProgress&&l.onProgress({loadedBytes:p})});return await f.do(),o})}async downloadToFile(e,r=0,n,s={}){return ee.withSpan("BlobClient-downloadToFile",s,async o=>{let a=await this.download(r,n,{...s,tracingOptions:o.tracingOptions});return a.readableStreamBody&&await cIe(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,r;try{let n=new URL(this.url);if(n.host.split(".")[1]==="blob"){let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}else if(p_(n)){let s=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=s[2],r=s[4]}else{let s=n.pathname.match("/([^/]*)(/(.*))?");e=s[1],r=s[3]}if(e=decodeURIComponent(e),r=decodeURIComponent(r),r=r.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:r,containerName:e}}catch{throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,r={}){return ee.withSpan("BlobClient-startCopyFromURL",r,async n=>(r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},de(await this.blobContext.startCopyFromURL(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions.ifMatch,sourceIfModifiedSince:r.sourceConditions.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions.ifUnmodifiedSince,sourceIfTags:r.sourceConditions.tagConditions},immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,rehydratePriority:r.rehydratePriority,tier:Gd(r.tier),blobTagsString:$d(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof dr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=ww({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(Sw(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof dr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return xw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,r){return new Promise(n=>{let s=ww({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(Sw(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return xw({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return ee.withSpan("BlobClient-deleteImmutabilityPolicy",e,async r=>de(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ee.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>de(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:n.tracingOptions})))}async setLegalHold(e,r={}){return ee.withSpan("BlobClient-setLegalHold",r,async n=>de(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ee.withSpan("BlobClient-getAccountInfo",e,async r=>de(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},v_=class t extends Ru{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Cu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Do(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Bm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=kd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new t(Fg(this.url,Eu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},Yr(e.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-create",e,async r=>de(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:$d(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:AV};return ee.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let s=de(await this.create({...n,conditions:r}));return{succeeded:!0,...s,_response:s._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async seal(e={}){return e.conditions=e.conditions||{},ee.withSpan("AppendBlobClient-seal",e,async r=>de(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async appendBlock(e,r,n={}){return n.conditions=n.conditions||{},Yr(n.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlock",n,async s=>de(await this.appendBlobContext.appendBlock(r,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions})))}async appendBlockFromURL(e,r,n,s={}){return s.conditions=s.conditions||{},s.sourceConditions=s.sourceConditions||{},Yr(s.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>de(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:Ys({offset:r,count:n}),sourceContentMD5:s.sourceContentMD5,sourceContentCrc64:s.sourceContentCrc64,leaseAccessConditions:s.conditions,appendPositionAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:s.sourceConditions?.ifMatch,sourceIfModifiedSince:s.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:s.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:s.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:Ug(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},Hg=class t extends Ru{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Cu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Do(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Bm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=kd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new t(Fg(this.url,Eu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(Yr(r.customerProvidedKey,this.isHttps),!pt)throw new Error("This operation currently is only supported in Node.js.");return ee.withSpan("BlockBlobClient-query",r,async n=>{let s=de(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:B8(r.inputTextConfiguration),outputSerialization:B8(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new y_(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},Yr(n.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-upload",n,async s=>de(await this.blockBlobContext.upload(r,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:Gd(n.tier),blobTagsString:$d(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},Yr(r.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>de(await this.blockBlobContext.putBlobFromUrl(0,e,{...r,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince,sourceIfTags:r.sourceConditions?.tagConditions},cpkInfo:r.customerProvidedKey,copySourceAuthorization:Ug(r.sourceAuthorization),tier:Gd(r.tier),blobTagsString:$d(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return Yr(s.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-stageBlock",s,async o=>de(await this.blockBlobContext.stageBlock(e,n,r,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async stageBlockFromURL(e,r,n=0,s,o={}){return Yr(o.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-stageBlockFromURL",o,async a=>de(await this.blockBlobContext.stageBlockFromURL(e,0,r,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,sourceRange:n===0&&!s?void 0:Ys({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:Ug(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},Yr(r.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-commitBlockList",r,async n=>de(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:Gd(r.tier),blobTagsString:$d(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ee.withSpan("BlockBlobClient-getBlockList",r,async n=>{let s=de(await this.blockBlobContext.getBlockList(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return s.committedBlocks||(s.committedBlocks=[]),s.uncommittedBlocks||(s.uncommittedBlocks=[]),s})}async uploadData(e,r={}){return ee.withSpan("BlockBlobClient-uploadData",r,async n=>{if(pt){let s;return e instanceof Buffer?s=e:e instanceof ArrayBuffer?s=Buffer.from(e):(e=e,s=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.byteLength,n)}else{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)}})}async uploadBrowserData(e,r={}){return ee.withSpan("BlockBlobClient-uploadBrowserData",r,async n=>{let s=new Blob([e]);return this.uploadSeekableInternal((o,a)=>s.slice(o,o+a),s.size,n)})}async uploadSeekableInternal(e,r,n={}){let s=n.blockSize??0;if(s<0||s>4194304e3)throw new RangeError(`blockSize option must be >= 0 and <= ${4194304e3}`);let o=n.maxSingleShotSize??268435456;if(o<0||o>268435456)throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${268435456}`);if(s===0){if(r>4194304e3*5e4)throw new RangeError(`${r} is too larger to upload to a block blob.`);r>o&&(s=Math.ceil(r/5e4),s<4194304&&(s=4194304))}return n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={}),ee.withSpan("BlockBlobClient-uploadSeekableInternal",n,async a=>{if(r<=o)return de(await this.upload(e(0,r),r,a));let c=Math.floor((r-1)/s)+1;if(c>5e4)throw new RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${5e4}`);let l=[],u=Sg(),d=0,p=new Dw(n.concurrency);for(let f=0;f<c;f++)p.addOperation(async()=>{let m=w8(u,f),h=s*f,y=(f===c-1?r:h+s)-h;l.push(m),await this.stageBlock(m,e(h,y),y,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),d+=y,n.onProgress&&n.onProgress({loadedBytes:d})});return await p.do(),this.commitBlockList(l,a)})}async uploadFile(e,r={}){return ee.withSpan("BlockBlobClient-uploadFile",r,async n=>{let s=(await lIe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>uIe(e,{autoClose:!0,end:a?o+a-1:1/0,start:o}),s,{...r,tracingOptions:n.tracingOptions})})}async uploadStream(e,r=8388608,n=5,s={}){return s.blobHTTPHeaders||(s.blobHTTPHeaders={}),s.conditions||(s.conditions={}),ee.withSpan("BlockBlobClient-uploadStream",s,async o=>{let a=0,c=Sg(),l=0,u=[];return await new IP(e,r,n,async(p,f)=>{let m=w8(c,a);u.push(m),a++,await this.stageBlock(m,p,f,{customerProvidedKey:s.customerProvidedKey,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions}),l+=f,s.onProgress&&s.onProgress({loadedBytes:l})},Math.ceil(n/4*3)).do(),de(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},Q_=class t extends Ru{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},Cu(r))a=e,o=r;else if(pt&&r instanceof dr||r instanceof Wt||Do(r))a=e,s=n,o=Tr(r,s);else if(!r&&typeof r!="string")a=e,o=Tr(new Wt,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=Bm(e);if(u.kind==="AccountConnString")if(pt){let d=new dr(u.accountName,u.accountKey);a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=kd(u.proxyUri)),o=Tr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=Wr(Wr(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Tr(new Wt,s);else throw new Error("Connection string must be either an Account connection string or a SAS connection string")}else throw new Error("Expecting non-empty strings for containerName and blobName parameters");super(a,o),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new t(Fg(this.url,Eu.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},Yr(r.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-create",r,async n=>de(await this.pageBlobContext.create(0,e,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,blobSequenceNumber:r.blobSequenceNumber,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,tier:Gd(r.tier),blobTagsString:$d(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ee.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:AV},o=de(await this.create(e,{...r,conditions:s,tracingOptions:n.tracingOptions}));return{succeeded:!0,...o,_response:o._response}}catch(s){if(s.details?.errorCode==="BlobAlreadyExists")return{succeeded:!1,...s.response?.parsedHeaders,_response:s.response};throw s}})}async uploadPages(e,r,n,s={}){return s.conditions=s.conditions||{},Yr(s.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPages",s,async o=>de(await this.pageBlobContext.uploadPages(n,e,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},range:Ys({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:o.tracingOptions})))}async uploadPagesFromURL(e,r,n,s,o={}){return o.conditions=o.conditions||{},o.sourceConditions=o.sourceConditions||{},Yr(o.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>de(await this.pageBlobContext.uploadPagesFromURL(e,Ys({offset:r,count:s}),0,Ys({offset:n,count:s}),{abortSignal:o.abortSignal,sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,sequenceNumberAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:Ug(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,r,n={}){return n.conditions=n.conditions||{},ee.withSpan("PageBlobClient-clearPages",n,async s=>de(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Ys({offset:e,count:r}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions})))}async getPageRanges(e=0,r,n={}){return n.conditions=n.conditions||{},ee.withSpan("PageBlobClient-getPageRanges",n,async s=>{let o=de(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:Ys({offset:e,count:r}),tracingOptions:s.tracingOptions}));return E_(o)})}async listPageRangesSegment(e=0,r,n,s={}){return ee.withSpan("PageBlobClient-getPageRangesSegment",s,async o=>de(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:Ys({offset:e,count:r}),marker:n,maxPageSize:s.maxPageSize,tracingOptions:o.tracingOptions})))}async*listPageRangeItemSegments(e=0,r,n,s={}){let o;if(n||n===void 0)do o=await this.listPageRangesSegment(e,r,n,s),n=o.continuationToken,yield await o;while(n)}async*listPageRangeItems(e=0,r,n={}){let s;for await(let o of this.listPageRangeItemSegments(e,r,s,n))yield*R8(o)}listPageRanges(e=0,r,n={}){n.conditions=n.conditions||{};let s=this.listPageRangeItems(e,r,n);return{next(){return s.next()},[Symbol.asyncIterator](){return this},byPage:i((o={})=>this.listPageRangeItemSegments(e,r,o.continuationToken,{maxPageSize:o.maxPageSize,...n}),"byPage")}}async getPageRangesDiff(e,r,n,s={}){return s.conditions=s.conditions||{},ee.withSpan("PageBlobClient-getPageRangesDiff",s,async o=>{let a=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:Ys({offset:e,count:r}),tracingOptions:o.tracingOptions}));return E_(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return ee.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async a=>de(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:Ys({offset:e,count:r}),marker:s,maxPageSize:o?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,r,n,s,o){let a;if(s||s===void 0)do a=await this.listPageRangesDiffSegment(e,r,n,s,o),s=a.continuationToken,yield await a;while(s)}async*listPageRangeDiffItems(e,r,n,s){let o;for await(let a of this.listPageRangeDiffItemSegments(e,r,n,o,s))yield*R8(a)}listPageRangesDiff(e,r,n,s={}){s.conditions=s.conditions||{};let o=this.listPageRangeDiffItems(e,r,n,{...s});return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:i((a={})=>this.listPageRangeDiffItemSegments(e,r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s}),"byPage")}}async getPageRangesDiffForManagedDisks(e,r,n,s={}){return s.conditions=s.conditions||{},ee.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",s,async o=>{let a=de(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:Ys({offset:e,count:r}),tracingOptions:o.tracingOptions}));return E_(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ee.withSpan("PageBlobClient-resize",r,async n=>de(await this.pageBlobContext.resize(e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,r,n={}){return n.conditions=n.conditions||{},ee.withSpan("PageBlobClient-updateSequenceNumber",n,async s=>de(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions})))}async startCopyIncremental(e,r={}){return ee.withSpan("PageBlobClient-startCopyIncremental",r,async n=>de(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var dIe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(dIe||(dIe={}));var pIe;(function(t){t.AES256="AES256"})(pIe||(pIe={}));var D_=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var zg=class extends Error{static{i(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
|
|
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};zg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var vm=class extends Error{static{i(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
|
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};vm.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var kw=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var ywt=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())})},sY=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);ae(`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 fIe(t,e,r){return ywt(this,void 0,void 0,function*(){var n;let s=new Ru(t),o=s.getBlockBlobClient(),a=new sY((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 D_(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ur(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(fIe,"uploadCacheArchiveSDK");var hIe=R(require("buffer"),1),zc=R(require("fs"),1),AIe=R(require("stream"),1),gIe=R(require("util"),1);var k_=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 O_(t){return t?t>=200&&t<300:!1}i(O_,"isSuccessStatusCode");function Ewt(t){return t?t>=500:!0}i(Ewt,"isServerErrorStatusCode");function Cwt(t){return t?[At.BadGateway,At.ServiceUnavailable,At.GatewayTimeout].includes(t):!1}i(Cwt,"isRetryableStatusCode");function Iwt(t){return k_(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(Iwt,"sleep");function mIe(t,e,r){return k_(this,arguments,void 0,function*(n,s,o,a=sT,c=oT,l=void 0){let u="",d=1;for(;d<=a;){let p,f,m=!1;try{p=yield s()}catch(h){l&&(p=l(h)),m=!0,u=h.message}if(p&&(f=o(p),!Ewt(f)))return p;if(f&&(m=Cwt(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 Iwt(c),d++}throw Error(`${n} failed: ${u}`)})}i(mIe,"retry");function Ow(t,e){return k_(this,arguments,void 0,function*(r,n,s=sT,o=oT){return yield mIe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Ac)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(Ow,"retryTypedResponse");function Vg(t,e){return k_(this,arguments,void 0,function*(r,n,s=sT,o=oT){return yield mIe(r,n,a=>a.message.statusCode,s,o)})}i(Vg,"retryHttpClientResponse");var bi=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 Swt(t,e){return bi(this,void 0,void 0,function*(){yield gIe.promisify(AIe.pipeline)(t.message,e)})}i(Swt,"pipeResponseToStream");var L_=class{static{i(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,T(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ae(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(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 M_(t,e){return bi(this,void 0,void 0,function*(){let r=zc.createWriteStream(e),n=new No("actions/cache"),s=yield Vg("downloadCache",()=>bi(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(xz,()=>{s.message.destroy(),T(`Aborting download, socket timed out after ${xz} ms`)}),yield Swt(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=hc(e);if(c!==a)throw new Error(`Incomplete download. Expected file size: ${a}, actual file size: ${c}`)}else T("Unable to validate download, no Content-Length header")})}i(M_,"downloadCacheHttpClient");function yIe(t,e,r){return bi(this,void 0,void 0,function*(){var n;let s=yield zc.promises.open(e,"w"),o=new No("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield Vg("downloadCacheMetadata",()=>bi(this,void 0,void 0,function*(){return yield o.request("HEAD",t,null,{})}))).message.headers["content-length"];if(c==null)throw new Error("Content-Length not found on blob response");let l=parseInt(c);if(Number.isNaN(l))throw new Error(`Could not interpret Content-Length: ${l}`);let u=[],d=4*1024*1024;for(let I=0;I<l;I+=d){let x=Math.min(d,l-I);u.push({offset:I,promiseGetter:i(()=>bi(this,void 0,void 0,function*(){return yield wwt(o,t,I,x)}),"promiseGetter")})}u.reverse();let p=0,f=0,m=new L_(l);m.startDisplayTimer();let h=m.onProgress(),A=[],y,E=i(()=>bi(this,void 0,void 0,function*(){let I=yield Promise.race(Object.values(A));yield s.write(I.buffer,0,I.count,I.offset),p--,delete A[I.offset],f+=I.count,h({loadedBytes:f})}),"waitAndWrite");for(;y=u.pop();)A[y.offset]=y.promiseGetter(),p++,p>=((n=r.downloadConcurrency)!==null&&n!==void 0?n:10)&&(yield E());for(;p>0;)yield E()}finally{o.dispose(),yield s.close()}})}i(yIe,"downloadCacheHttpClientConcurrent");function wwt(t,e,r,n){return bi(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield CIe(3e4,xwt(t,e,r,n));if(typeof c=="string")throw new Error("downloadSegmentRetry failed due to timeout");return c}catch(a){if(o>=5)throw a;o++}})}i(wwt,"downloadSegmentRetry");function xwt(t,e,r,n){return bi(this,void 0,void 0,function*(){let s=yield Vg("downloadCachePart",()=>bi(this,void 0,void 0,function*(){return yield t.get(e,{Range:`bytes=${r}-${r+n-1}`})}));if(!s.readBodyBuffer)throw new Error("Expected HttpClientResponse to implement readBodyBuffer");return{offset:r,count:n,buffer:yield s.readBodyBuffer()}})}i(xwt,"downloadSegment");function EIe(t,e,r){return bi(this,void 0,void 0,function*(){var n;let s=new Hg(t,void 0,{retryOptions:{tryTimeoutInMs:r.timeoutInMs}}),a=(n=(yield s.getProperties()).contentLength)!==null&&n!==void 0?n:-1;if(a<0)T("Unable to determine content length, downloading file with http-client..."),yield M_(t,e);else{let c=Math.min(134217728,hIe.constants.MAX_LENGTH),l=new L_(a),u=zc.openSync(e,"w");try{l.startDisplayTimer();let d=new AbortController,p=d.signal;for(;!l.isDone();){let f=l.segmentOffset+l.segmentSize,m=Math.min(c,a-f);l.nextSegment(m);let h=yield CIe(r.segmentTimeoutInMs||36e5,s.downloadToBuffer(f,m,{abortSignal:p,concurrency:r.downloadConcurrency,onProgress:l.onProgress()}));if(h==="timeout")throw d.abort(),new Error("Aborting cache download as the download time exceeded the timeout.");Buffer.isBuffer(h)&&zc.writeFileSync(u,h)}}finally{l.stopDisplayTimer(),zc.closeSync(u)}}})}i(EIe,"downloadCacheStorageSDK");var CIe=i((t,e)=>bi(void 0,void 0,void 0,function*(){let r,n=new Promise(s=>{r=setTimeout(()=>s("timeout"),t)});return Promise.race([e,n]).then(s=>(clearTimeout(r),s))}),"promiseWithTimeout");function oY(t){let e={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:33554432};return t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.uploadConcurrency=="number"&&(e.uploadConcurrency=t.uploadConcurrency),typeof t.uploadChunkSize=="number"&&(e.uploadChunkSize=t.uploadChunkSize)),e.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?e.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),e.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?e.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),T(`Use Azure SDK: ${e.useAzureSdk}`),T(`Upload concurrency: ${e.uploadConcurrency}`),T(`Upload chunk size: ${e.uploadChunkSize}`),e}i(oY,"getUploadOptions");function IIe(t){let e={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};t&&(typeof t.useAzureSdk=="boolean"&&(e.useAzureSdk=t.useAzureSdk),typeof t.concurrentBlobDownloads=="boolean"&&(e.concurrentBlobDownloads=t.concurrentBlobDownloads),typeof t.downloadConcurrency=="number"&&(e.downloadConcurrency=t.downloadConcurrency),typeof t.timeoutInMs=="number"&&(e.timeoutInMs=t.timeoutInMs),typeof t.segmentTimeoutInMs=="number"&&(e.segmentTimeoutInMs=t.segmentTimeoutInMs),typeof t.lookupOnly=="boolean"&&(e.lookupOnly=t.lookupOnly));let r=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return r&&!isNaN(Number(r))&&isFinite(Number(r))&&(e.segmentTimeoutInMs=Number(r)*60*1e3),T(`Use Azure SDK: ${e.useAzureSdk}`),T(`Download concurrency: ${e.downloadConcurrency}`),T(`Request timeout (ms): ${e.timeoutInMs}`),T(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),T(`Segment download timeout (ms): ${e.segmentTimeoutInMs}`),T(`Lookup only: ${e.lookupOnly}`),e}i(IIe,"getDownloadOptions");function iY(){let e=new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.trimEnd().toUpperCase(),r=e==="GITHUB.COM",n=e.endsWith(".GHE.COM"),s=e.endsWith(".LOCALHOST");return!r&&!n&&!s}i(iY,"isGhes");function Lw(){return iY()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(Lw,"getCacheServiceVersion");var SIe=["none","read","write","write-only"];function aY(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}i(aY,"getCacheMode");function wIe(t){return SIe.includes(t)?t==="read"||t==="write":!0}i(wIe,"isCacheReadable");function xIe(t){return SIe.includes(t)?t==="write"||t==="write-only":!0}i(xIe,"isCacheWritable");function F_(){let t=Lw();switch(t){case"v1":return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||"";case"v2":return process.env.ACTIONS_RESULTS_URL||"";default:throw new Error(`Unsupported cache service version: ${t}`)}}i(F_,"getCacheServiceURL");var NIe=R(RIe(),1);function U_(){return`@actions/cache-${NIe.version}`}i(U_,"getUserAgentString");var Js=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 Mw(t){let e=F_();if(!e)throw new Error("Cache Service Url not found, unable to restore cache.");let r=`${e}_apis/artifactcache/${t}`;return T(`Resource Url: ${r}`),r}i(Mw,"getCacheApiUrl");function Rwt(t,e){return`${t};api-version=${e}`}i(Rwt,"createAcceptHeader");function Nwt(){return{headers:{Accept:Rwt("application/json","6.0-preview.1")}}}i(Nwt,"getRequestOptions");function cY(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new mg(t);return new No(U_(),[e],Nwt())}i(cY,"createHttpClient");function _Ie(t,e,r){return Js(this,void 0,void 0,function*(){var n;let s=cY(),o=fg(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${o}`,c=yield Ow("getCacheEntry",()=>Js(this,void 0,void 0,function*(){return s.getJson(Mw(a))}));if(c.statusCode===204)return Yf()&&(yield Twt(t[0],s,o)),null;if(!O_(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(iT)?new Error(d):new Error(`Cache service responded with ${c.statusCode}`)}let l=c.result,u=l?.archiveLocation;if(!u)throw new Error("Cache not found.");return $n(u),T("Cache Result:"),T(JSON.stringify(l)),l})}i(_Ie,"getCacheEntry");function Twt(t,e,r){return Js(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield Ow("listCache",()=>Js(this,void 0,void 0,function*(){return e.getJson(Mw(n))}));if(s.statusCode===200){let o=s.result,a=o?.totalCount;if(a&&a>0){T(`No matching cache found for cache key '${t}', version '${r} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
|
|
Other caches with similar key:`);for(let c of o?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(Twt,"printCachesListForDiagnostics");function lY(t,e,r){return Js(this,void 0,void 0,function*(){let n=new PIe.URL(t),s=IIe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield EIe(t,e,s):s.concurrentBlobDownloads?yield yIe(t,e,s):yield M_(t,e):yield M_(t,e)})}i(lY,"downloadCache");function vIe(t,e,r){return Js(this,void 0,void 0,function*(){let n=cY(),s=fg(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield Ow("reserveCache",()=>Js(this,void 0,void 0,function*(){return n.postJson(Mw("caches"),o)}))})}i(vIe,"reserveCache");function TIe(t,e){return`bytes ${t}-${e}/*`}i(TIe,"getContentRange");function Pwt(t,e,r,n,s){return Js(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${TIe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":TIe(n,s)},a=yield Vg(`uploadChunk (start: ${n}, end: ${s})`,()=>Js(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!O_(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(Pwt,"uploadChunk");function _wt(t,e,r,n){return Js(this,void 0,void 0,function*(){let s=hc(r),o=Mw(`caches/${e.toString()}`),a=Wg.openSync(r,"r"),c=oY(n),l=Nz("uploadConcurrency",c.uploadConcurrency),u=Nz("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>Js(this,void 0,void 0,function*(){for(;p<s;){let f=Math.min(s-p,u),m=p,h=p+f-1;p+=u,yield Pwt(t,o,()=>Wg.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",A=>{throw new Error(`Cache upload failed because file read failed with ${A.message}`)}),m,h)}})))}finally{Wg.closeSync(a)}})}i(_wt,"uploadFile");function vwt(t,e,r){return Js(this,void 0,void 0,function*(){let n={size:r};return yield Ow("commitCache",()=>Js(this,void 0,void 0,function*(){return t.postJson(Mw(`caches/${e.toString()}`),n)}))})}i(vwt,"commitCache");function uY(t,e,r,n){return Js(this,void 0,void 0,function*(){if(oY(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield fIe(r,e,n)}else{let o=cY();T("Upload cache"),yield _wt(o,t,e,n),T("Commiting cache");let a=hc(e);ae(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield vwt(o,t,a);if(!O_(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ae("Cache saved successfully")}})}i(uY,"saveCache");var BSe=R(ESe(),1),vr=R(_r(),1),Uo=R(_r(),1),Lm=R(_r(),1),Mm=R(_r(),1),Fm=R(_r(),1);var sJ=R(_r(),1),oJ=R(_r(),1),wSe=R(_r(),1),xSe=R(_r(),1),bSe=R(_r(),1);var tJ=R(_r(),1),rJ=R(_r(),1),CSe=R(_r(),1),ISe=R(_r(),1),SSe=R(_r(),1);var nJ=class extends SSe.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,ISe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,CSe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let o=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:o.scope=e.string();break;case 2:o.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?rJ.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,tJ.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tJ.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?rJ.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},bv=new nJ;var iJ=class extends bSe.MessageType{static{i(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:i(()=>bv,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,xSe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,wSe.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.repositoryId=e.int64().toString();break;case 2:o.scope.push(bv.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?oJ.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,sJ.WireType.Varint).int64(e.repositoryId);for(let o=0;o<e.scope.length;o++)bv.internalBinaryWrite(e.scope[o],r.tag(2,sJ.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?oJ.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},jc=new iJ;var aJ=class extends Fm.MessageType{static{i(this,"CreateCacheEntryRequest$Type")}constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:i(()=>jc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",version:""};return globalThis.Object.defineProperty(r,Mm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lm.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.metadata=jc.internalBinaryRead(e,e.uint32(),n,o.metadata);break;case 2:o.key=e.string();break;case 3:o.version=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Uo.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.metadata&&jc.internalBinaryWrite(e.metadata,r.tag(1,vr.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,vr.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,vr.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Uo.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},fJ=new aJ,cJ=class extends Fm.MessageType{static{i(this,"CreateCacheEntryResponse$Type")}constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedUploadUrl:"",message:""};return globalThis.Object.defineProperty(r,Mm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lm.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.ok=e.bool();break;case 2:o.signedUploadUrl=e.string();break;case 3:o.message=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Uo.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,vr.WireType.Varint).bool(e.ok),e.signedUploadUrl!==""&&r.tag(2,vr.WireType.LengthDelimited).string(e.signedUploadUrl),e.message!==""&&r.tag(3,vr.WireType.LengthDelimited).string(e.message);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Uo.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},mJ=new cJ,lJ=class extends Fm.MessageType{static{i(this,"FinalizeCacheEntryUploadRequest$Type")}constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest",[{no:1,name:"metadata",kind:"message",T:i(()=>jc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",sizeBytes:"0",version:""};return globalThis.Object.defineProperty(r,Mm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lm.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.metadata=jc.internalBinaryRead(e,e.uint32(),n,o.metadata);break;case 2:o.key=e.string();break;case 3:o.sizeBytes=e.int64().toString();break;case 4:o.version=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Uo.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.metadata&&jc.internalBinaryWrite(e.metadata,r.tag(1,vr.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,vr.WireType.LengthDelimited).string(e.key),e.sizeBytes!=="0"&&r.tag(3,vr.WireType.Varint).int64(e.sizeBytes),e.version!==""&&r.tag(4,vr.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Uo.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},hJ=new lJ,uJ=class extends Fm.MessageType{static{i(this,"FinalizeCacheEntryUploadResponse$Type")}constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"entry_id",kind:"scalar",T:3},{no:3,name:"message",kind:"scalar",T:9}])}create(e){let r={ok:!1,entryId:"0",message:""};return globalThis.Object.defineProperty(r,Mm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lm.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.ok=e.bool();break;case 2:o.entryId=e.int64().toString();break;case 3:o.message=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Uo.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,vr.WireType.Varint).bool(e.ok),e.entryId!=="0"&&r.tag(2,vr.WireType.Varint).int64(e.entryId),e.message!==""&&r.tag(3,vr.WireType.LengthDelimited).string(e.message);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Uo.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},AJ=new uJ,dJ=class extends Fm.MessageType{static{i(this,"GetCacheEntryDownloadURLRequest$Type")}constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest",[{no:1,name:"metadata",kind:"message",T:i(()=>jc,"T")},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){let r={key:"",restoreKeys:[],version:""};return globalThis.Object.defineProperty(r,Mm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lm.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.metadata=jc.internalBinaryRead(e,e.uint32(),n,o.metadata);break;case 2:o.key=e.string();break;case 3:o.restoreKeys.push(e.string());break;case 4:o.version=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Uo.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.metadata&&jc.internalBinaryWrite(e.metadata,r.tag(1,vr.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,vr.WireType.LengthDelimited).string(e.key);for(let o=0;o<e.restoreKeys.length;o++)r.tag(3,vr.WireType.LengthDelimited).string(e.restoreKeys[o]);e.version!==""&&r.tag(4,vr.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Uo.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},gJ=new dJ,pJ=class extends Fm.MessageType{static{i(this,"GetCacheEntryDownloadURLResponse$Type")}constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_download_url",kind:"scalar",T:9},{no:3,name:"matched_key",kind:"scalar",T:9}])}create(e){let r={ok:!1,signedDownloadUrl:"",matchedKey:""};return globalThis.Object.defineProperty(r,Mm.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Lm.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.ok=e.bool();break;case 2:o.signedDownloadUrl=e.string();break;case 3:o.matchedKey=e.string();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Uo.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,vr.WireType.Varint).bool(e.ok),e.signedDownloadUrl!==""&&r.tag(2,vr.WireType.LengthDelimited).string(e.signedDownloadUrl),e.matchedKey!==""&&r.tag(3,vr.WireType.LengthDelimited).string(e.matchedKey);let s=n.writeUnknownFields;return s!==!1&&(s==!0?Uo.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},yJ=new pJ,$_r=new BSe.ServiceType("github.actions.results.api.v1.CacheService",[{name:"CreateCacheEntry",options:{},I:fJ,O:mJ},{name:"FinalizeCacheEntryUpload",options:{},I:hJ,O:AJ},{name:"GetCacheEntryDownloadURL",options:{},I:gJ,O:yJ}]);var Bv=class{static{i(this,"CacheServiceClientJSON")}constructor(e){this.rpc=e,this.CreateCacheEntry.bind(this),this.FinalizeCacheEntryUpload.bind(this),this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){let r=fJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",r).then(s=>mJ.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=hJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>AJ.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=gJ.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>yJ.fromJson(s,{ignoreUnknownFields:!0}))}};function RSe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&($n(r),$n(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(RSe,"maskSigUrl");function NSe(t){if(typeof t!="object"||t===null){T("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&RSe(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&RSe(t.signed_download_url)}i(NSe,"maskSecretUrls");var Rv=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())})},EJ=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=eAe();this.baseUrl=F_(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new No(e,[new mg(o)])}request(e,r,n,s){return Rv(this,void 0,void 0,function*(){let o=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;T(`[Request] ${r} ${o}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>Rv(this,void 0,void 0,function*(){return this.httpClient.post(o,JSON.stringify(s),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return Rv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let o=!1;try{let c=yield e(),l=c.message.statusCode;s=yield c.readBody(),T(`[Response] - ${c.message.statusCode}`),T(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let u=JSON.parse(s);if(NSe(u),T(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(l))return{response:c,body:u};if(o=this.isRetryableHttpStatusCode(l),n=`Failed request: (${l}) ${c.message.statusMessage}`,u.msg){if(vm.isUsageErrorMessage(u.msg))throw new vm;n=`${n}: ${u.msg}`}if(l===At.TooManyRequests){let d=c.message.headers["retry-after"];if(d){let p=parseInt(d,10);!isNaN(p)&&p>0&&ur(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new kw(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&T(`Raw Body: ${s}`),c instanceof vm||c instanceof kw)throw c;if(zg.isNetworkErrorCode(c?.code))throw new zg(c?.code);o=!0,n=c.message}if(!o)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);ae(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[At.BadGateway,At.GatewayTimeout,At.InternalServerError,At.ServiceUnavailable].includes(e):!1}sleep(e){return Rv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function CJ(t){let e=new EJ(U_(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Bv(e)}i(CJ,"internalCacheTwirpClient");var Nv=require("fs"),Xs=R(require("path"),1);var Kc=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())})},Wd=process.platform==="win32";function $bt(){return Kc(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield Zhe(),e=Jhe;if(t)return{path:t,type:Ro.GNU};if((0,Nv.existsSync)(e))return{path:e,type:Ro.BSD};break}case"darwin":{let t=yield Ms("gtar",!1);return t?{path:t,type:Ro.GNU}:{path:yield Ms("tar",!0),type:Ro.BSD}}default:break}return{path:yield Ms("tar",!0),type:Ro.GNU}})}i($bt,"getTarPath");function Gbt(t,e,r){return Kc(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=_d(s),u="cache.tar",d=PSe(),p=n.type===Ro.BSD&&s!==hs.Gzip&&Wd;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),"--files-from",Bz);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),"-P","-C",p?IJ(d):d.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),"-P");break}if(n.type===Ro.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(Gbt,"getTarArgs");function TSe(t,e){return Kc(this,arguments,void 0,function*(r,n,s=""){let o,a=yield $bt(),c=yield Gbt(a,r,n,s),l=n!=="create"?yield Hbt(a,r,s):yield zbt(a,r),u=a.type===Ro.BSD&&r!==hs.Gzip&&Wd;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],{commands:u?o:[o.join(" ")],requiresTempDirectory:u&&n!=="create"}})}i(TSe,"getCommands");function PSe(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(PSe,"getWorkingDirectory");function IJ(t){return`"${Xs.resolve(t).replace(new RegExp(`\\${Xs.sep}`,"g"),"/")}"`}i(IJ,"quoteAbsolutePath");function Hbt(t,e,r){return Kc(this,void 0,void 0,function*(){let n=t.type===Ro.BSD&&e!==hs.Gzip&&Wd;switch(e){case hs.Zstd:return n?["zstd -d --long=30 --force -o",_S,IJ(r)]:["--use-compress-program",Wd?'"zstd -d --long=30"':"unzstd --long=30"];case hs.ZstdWithoutLong:return n?["zstd -d --force -o",_S,IJ(r)]:["--use-compress-program",Wd?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(Hbt,"getDecompressionProgram");function zbt(t,e){return Kc(this,void 0,void 0,function*(){let r=_d(e),n=t.type===Ro.BSD&&e!==hs.Gzip&&Wd;switch(e){case hs.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),_S]:["--use-compress-program",Wd?'"zstd -T0 --long=30"':"zstdmt --long=30"];case hs.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${Xs.sep}`,"g"),"/"),_S]:["--use-compress-program",Wd?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(zbt,"getCompressionProgram");function _Se(t,e){return Kc(this,void 0,void 0,function*(){for(let r of t)try{yield Sd(r,void 0,{cwd:e,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(n){throw new Error(`${r.split(" ")[0]} failed with error: ${n?.message}`)}})}i(_Se,"execCommands");function vSe(t,e,r){return Kc(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:s}=yield TSe(e,r,t),o=s?yield tm():void 0;try{yield _Se(n,o)}finally{if(o)try{yield rS(o)}catch(a){T(`Failed to delete temporary tar directory: ${a}`)}}})}i(vSe,"execReadCommands");function Zw(t,e){return Kc(this,void 0,void 0,function*(){yield vSe(t,e,"list")})}i(Zw,"listTar");function SJ(t,e){return Kc(this,void 0,void 0,function*(){let r=PSe();yield Wf(r),yield vSe(t,e,"extract")})}i(SJ,"extractTar");function wJ(t,e,r){return Kc(this,void 0,void 0,function*(){(0,Nv.writeFileSync)(Xs.join(t,Bz),e.join(`
|
|
`));let{commands:n}=yield TSe(r,"create");yield _Se(n,t)})}i(wJ,"createTar");var ly=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())})},Ia=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Um=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},xJ="cache write denied:",Tv=class t extends Um{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},QSe=iT,Pv=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},_v=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function DSe(t){if(!t||t.length===0)throw new Ia("Path Validation Error: At least one directory or file path is required")}i(DSe,"checkPaths");function bJ(t){if(t.length>512)throw new Ia(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ia(`Key Validation Error: ${t} cannot contain commas.`)}i(bJ,"checkKey");function BJ(){return Lw()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(BJ,"isFeatureAvailable");function kSe(t,e,r,n){return ly(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=Lw();T(`Cache service version: ${u}`),DSe(s);let d=aY();if(!wIe(d)){ae(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),T(`Skipped restore for paths [${s.join(", ")}] with primary key '${o}'.`);return}return u==="v2"?yield Wbt(s,o,a,c,l):yield Vbt(s,o,a,c,l)})}i(kSe,"restoreCache");function Vbt(t,e,r,n){return ly(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 Ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)bJ(m);let p=yield QS(),f="";try{let m;try{m=yield _Ie(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(A){let y=(u=A?.message)!==null&&u!==void 0?u:"";throw y.includes(QSe)?new Pv(y):A}if(!m?.archiveLocation)return;if(c?.lookupOnly)return ae("Lookup only - skipping download"),m.cacheKey;f=ex.join(yield tm(),_d(p)),T(`Archive Path: ${f}`),yield lY(m.archiveLocation,f,c),Yf()&&(yield Zw(f,p));let h=hc(f);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield SJ(f,p),ae("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Ia.name)throw m;h instanceof Ac&&typeof h.statusCode=="number"&&h.statusCode>=500?ng(`Failed to restore: ${m.message}`):ur(`Failed to restore: ${m.message}`)}finally{try{yield vS(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(Vbt,"restoreCacheV1");function Wbt(t,e,r,n){return ly(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 Ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)bJ(f);let p="";try{let f=CJ(),m=yield QS(),h={key:o,restoreKeys:a,version:fg(s,m,l)},A;try{A=yield f.GetCacheEntryDownloadURL(h)}catch(I){let x=(u=I?.message)!==null&&u!==void 0?u:"";throw x.includes(QSe)?new Pv(x):I}if(!A.ok){T(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==A.matchedKey?ae(`Cache hit for restore-key: ${A.matchedKey}`):ae(`Cache hit for: ${A.matchedKey}`),c?.lookupOnly)return ae("Lookup only - skipping download"),A.matchedKey;p=ex.join(yield tm(),_d(m)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield lY(A.signedDownloadUrl,p,c);let E=hc(p);return ae(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Yf()&&(yield Zw(p,m)),yield SJ(p,m),ae("Cache restored successfully"),A.matchedKey}catch(f){let m=f;if(m.name===Ia.name)throw f;m instanceof Ac&&typeof m.statusCode=="number"&&m.statusCode>=500?ng(`Failed to restore: ${f.message}`):ur(`Failed to restore: ${f.message}`)}finally{try{p&&(yield vS(p))}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(Wbt,"restoreCacheV2");function RJ(t,e,r){return ly(this,arguments,void 0,function*(n,s,o,a=!1){let c=Lw();T(`Cache service version: ${c}`),DSe(n),bJ(s);let l=aY();return xIe(l)?c==="v2"?yield Jbt(n,s,o,a):yield Ybt(n,s,o,a):(ae(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),T(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}i(RJ,"saveCache");function Ybt(t,e,r){return ly(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p,f;let m=yield QS(),h=-1,A=yield Rz(n);if(T("Cache Paths:"),T(`${JSON.stringify(A)}`),A.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let y=yield tm(),E=ex.join(y,_d(m));T(`Archive Path: ${E}`);try{yield wJ(y,A,m),Yf()&&(yield Zw(E,m));let I=10*1024*1024*1024,x=hc(E);if(T(`File Size: ${x}`),x>I&&!iY())throw new Error(`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let b=yield vIe(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:x});if(!((c=b?.result)===null||c===void 0)&&c.cacheId)h=(l=b?.result)===null||l===void 0?void 0:l.cacheId;else{if(b?.statusCode===400)throw new Error((d=(u=b?.error)===null||u===void 0?void 0:u.message)!==null&&d!==void 0?d:`Cache size of ~${Math.round(x/(1024*1024))} MB (${x} B) is over the data cap limit, not saving cache.`);{let N=(p=b?.error)===null||p===void 0?void 0:p.message;throw N?.startsWith(xJ)?new Tv(`Unable to reserve cache with key ${s}. More details: ${N}`):new Um(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(f=b?.error)===null||f===void 0?void 0:f.message}`)}}T(`Saving Cache (ID: ${h})`),yield uY(h,E,"",o)}catch(I){let x=I;if(x.name===Ia.name)throw I;x.name===Um.name?ae(`Failed to save: ${x.message}`):x instanceof Ac&&typeof x.statusCode=="number"&&x.statusCode>=500?ng(`Failed to save: ${x.message}`):ur(`Failed to save: ${x.message}`)}finally{try{yield vS(E)}catch(I){T(`Failed to delete archive: ${I}`)}}return h})}i(Ybt,"saveCacheV1");function Jbt(t,e,r){return ly(this,arguments,void 0,function*(n,s,o,a=!1){var c;o=Object.assign(Object.assign({},o),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let l=yield QS(),u=CJ(),d=-1,p=yield Rz(n);if(T("Cache Paths:"),T(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let f=yield tm(),m=ex.join(f,_d(l));T(`Archive Path: ${m}`);try{yield wJ(f,p,l),Yf()&&(yield Zw(m,l));let h=hc(m);T(`File Size: ${h}`),o.archiveSizeBytes=h,T("Reserving Cache");let A=fg(n,l,a),y={key:s,version:A},E;try{let b=yield u.CreateCacheEntry(y);if(!b.ok)throw b.message&&!b.message.startsWith(xJ)&&ur(`Cache reservation failed: ${b.message}`),new Error(b.message||"Response was not ok");E=b.signedUploadUrl}catch(b){T(`Failed to reserve cache: ${b}`);let N=(c=b?.message)!==null&&c!==void 0?c:"";throw N.startsWith(xJ)?new Tv(`Unable to reserve cache with key ${s}. More details: ${N}`):new Um(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}T(`Attempting to upload cache located at: ${m}`),yield uY(d,m,E,o);let I={key:s,version:A,sizeBytes:`${h}`},x=yield u.FinalizeCacheEntryUpload(I);if(T(`FinalizeCacheEntryUploadResponse: ${x.ok}`),!x.ok)throw x.message?new _v(x.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);d=parseInt(x.entryId)}catch(h){let A=h;if(A.name===Ia.name)throw h;A.name===Um.name?ae(`Failed to save: ${A.message}`):A.name===_v.name?ur(A.message):A instanceof Ac&&typeof A.statusCode=="number"&&A.statusCode>=500?ng(`Failed to save: ${A.message}`):ur(`Failed to save: ${A.message}`)}finally{try{yield vS(m)}catch(h){T(`Failed to delete archive: ${h}`)}}return d})}i(Jbt,"saveCacheV2");var OSe=R(require("util"),1);var uy=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=OSe.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=TJ.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=TJ.default.join(this.cacheDir,this.opts.cacheFile),tx.default.existsSync(this.cacheDir)||tx.default.mkdirSync(this.cacheDir,{recursive:!0})}async save(e,r){T(`Cache.save ${e}`);let n=this.copyToCache(e),s=await this.cacheToHostedToolCache();if(s&&T(`Cache.save cached to hosted tool cache ${s}`),!this.ghaNoCache&&BJ())if(r)try{T(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await RJ([this.cacheDir],this.ghaCacheKey)}catch(o){ur(`Failed to save cache: ${o}`)}else T(`Cache.save sending ${this.ghaCacheKey} to post state`),Jf(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=bfe(this.opts.htcName,this.opts.htcVersion,this.platform());if(e)return ae(`Restored from hosted tool cache ${e}`),this.copyToCache(`${e}/${this.opts.cacheFile}`);if(!this.ghaNoCache&&BJ()){if(T("GitHub Actions cache feature available"),await kSe([this.cacheDir],this.ghaCacheKey)){if(ae(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!tx.default.existsSync(this.cachePath))return ur(`Cache file ${this.cachePath} does not exist`),"";let r=await this.cacheToHostedToolCache();return r&&ae(`Cached to hosted tool cache ${r}`),this.cachePath}}else this.ghaNoCache?ae("GitHub Actions cache disabled"):ae("GitHub Actions cache feature not available")}catch(e){ur(`Failed to restore cache: ${e}`)}return""}static async post(){let e=wde(t.POST_CACHE_KEY);if(!e)return ae("State not set"),Promise.resolve(void 0);let r;try{r=JSON.parse(e)}catch(n){throw new Error(`Failed to parse cache post state: ${n}`)}if(!r.dir||!r.key)throw new Error(`Invalid cache post state: ${e}`);try{ae(`Caching ${r.key} to GitHub Actions cache`),await RJ([r.dir],r.key)}catch(n){ur(`Failed to save cache: ${n}`)}return r}copyToCache(e){return ae(`Copying ${e} to ${this.cachePath}`),tx.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await xfe(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform())}catch(e){ae(`Failed to cache to hosted tool cache: ${e}`)}return""}platform(){let e=process.config.variables.arm_version;return`${NJ.default.platform()}-${NJ.default.arch()}${e?"v"+e:""}`}};var LSe=!!process.env.STATE_isPost;LSe||Jf("isPost","true");async function MSe(t,e){if(LSe)e&&await e(),await iS("Post cache",async()=>{await uy.post()});else try{await t()}catch(r){Sde(r.message)}}i(MSe,"run");var rh=R(require("path"),1);var ct=Symbol("NOT_RESOLVED");function Yn(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}i(Yn,"defineScalarTag");function $J(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}i($J,"defineSequenceTag");function kv(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}i(kv,"defineMappingTag");var Xbt=Yn("tag:yaml.org,2002:str",{resolve:i(t=>t,"resolve"),identify:i(t=>typeof t=="string","identify")}),Zbt=["","~","null","Null","NULL"],e0t=Yn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>Zbt.indexOf(t)!==-1?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),t0t=Yn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:i((t,e)=>t==="null"||e&&t===""?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),r0t=["","~","null","Null","NULL"],n0t=Yn("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>r0t.indexOf(t)!==-1?null:ct,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),s0t=["true","True","TRUE"],o0t=["false","False","FALSE"],i0t=Yn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:i(t=>s0t.indexOf(t)!==-1?!0:o0t.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),a0t=["true"],c0t=["false"],l0t=Yn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:i(t=>a0t.indexOf(t)!==-1?!0:c0t.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),u0t=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],d0t=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],p0t=Yn("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:i(t=>u0t.indexOf(t)!==-1?!0:d0t.indexOf(t)!==-1?!1:ct,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),f0t=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),m0t=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function h0t(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}i(h0t,"parseYamlInteger$2");function A0t(t,e){if(e){if(!m0t.test(t))return ct}else if(!f0t.test(t))return ct;let r=h0t(t);return Number.isFinite(r)?r:ct}i(A0t,"resolveYamlInteger$2");var ZSe=Yn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:A0t,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),g0t=new RegExp("^-?(?:0|[1-9][0-9]*)$"),y0t=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function E0t(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}i(E0t,"parseYamlInteger$1");function C0t(t,e){if(e){if(!y0t.test(t))return ct}else if(!g0t.test(t))return ct;let r=E0t(t);return Number.isFinite(r)?r:ct}i(C0t,"resolveYamlInteger$1");var I0t=Yn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:C0t,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),S0t=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function w0t(t){let e=t.replace(/_/g,""),r=1;if((e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b"))return r*parseInt(e.slice(2),2);if(e.startsWith("0x"))return r*parseInt(e.slice(2),16);if(e.includes(":")){let n=0;for(let s of e.split(":"))n=n*60+Number(s);return r*n}return e!=="0"&&e[0]==="0"?r*parseInt(e,8):r*parseInt(e,10)}i(w0t,"parseYamlInteger");function x0t(t){if(!S0t.test(t))return ct;let e=w0t(t);return Number.isFinite(e)?e:ct}i(x0t,"resolveYamlInteger");var OJ=Yn("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:x0t,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),b0t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),B0t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function R0t(t){if(!b0t.test(t))return ct;let e=t.toLowerCase(),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=r*parseFloat(e);return Number.isFinite(n)||B0t.test(t)?n:ct}i(R0t,"resolveYamlFloat$2");function N0t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(N0t,"representYamlFloat$2");var ewe=Yn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:R0t,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:N0t}),T0t=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),P0t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _0t(t,e){if(e){if(!P0t.test(t))return ct;let n=t.toLowerCase(),s=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let o=s*parseFloat(n);return Number.isFinite(o)?o:ct}if(!T0t.test(t))return ct;let r=Number(t);return Number.isFinite(r)?r:ct}i(_0t,"resolveYamlFloat$1");function v0t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(v0t,"representYamlFloat$1");var Q0t=Yn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:_0t,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:v0t}),D0t=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),k0t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function O0t(t){if(!D0t.test(t))return ct;let e=t.toLowerCase().replace(/_/g,""),r=e[0]==="-"?-1:1;if("+-".includes(e[0])&&(e=e.slice(1)),e===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(e===".nan")return NaN;let n=0;if(e.includes(":")){for(let s of e.split(":"))n=n*60+Number(s);n*=r}else n=r*parseFloat(e);return Number.isFinite(n)||k0t.test(t)?n:ct}i(O0t,"resolveYamlFloat");function L0t(t){if(isNaN(t))return".nan";if(t===Number.POSITIVE_INFINITY)return".inf";if(t===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(t,-0))return"-0.0";let e=t.toString(10);return/^[-+]?[0-9]+e/.test(e)?e.replace("e",".e"):e}i(L0t,"representYamlFloat");var LJ=Yn("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:O0t,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:L0t}),M0t=Yn("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:i((t,e)=>t==="<<"||e&&t===""?"<<":ct,"resolve"),identify:i(()=>!1,"identify")}),F0t=/^[A-Za-z0-9+/]*={0,2}$/;function U0t(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!F0t.test(e))return ct;let r=atob(e),n=new Uint8Array(r.length);for(let s=0;s<r.length;s++)n[s]=r.charCodeAt(s);return n}i(U0t,"resolveYamlBinary");function q0t(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}i(q0t,"representYamlBinary");var $0t=Yn("tag:yaml.org,2002:binary",{resolve:U0t,identify:i(t=>Object.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:q0t}),G0t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),H0t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function FSe(t,e,r,n=0,s=0,o=0,a=0){let c=new Date(Date.UTC(t,e,r,n,s,o,a));return c.setUTCFullYear(t,e,r),c}i(FSe,"makeUtcDate");function z0t(t){let e=G0t.exec(t);if(e===null&&(e=H0t.exec(t)),e===null)return ct;let r=+e[1],n=+e[2]-1,s=+e[3];if(!e[4]){let d=FSe(r,n,s);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==s?ct:d}let o=+e[4],a=+e[5],c=+e[6],l=0;if(o>23||a>59||c>59)return ct;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=FSe(r,n,s,o,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==s)return ct;if(e[9]){let d=+e[10],p=+(e[11]||0);if(d>23||p>59)return ct;let f=(d*60+p)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-f:f))}return u}i(z0t,"resolveYamlTimestamp");var V0t=Yn("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:z0t,identify:i(t=>t instanceof Date,"identify"),represent:i(t=>t.toISOString(),"represent")}),W0t=$J("tag:yaml.org,2002:seq",{create:i(()=>[],"create"),addItem:i((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function Ov(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}i(Ov,"isPlainObject");function USe(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}i(USe,"pick");var Y0t=$J("tag:yaml.org,2002:omap",{create:i(()=>({list:[],seen:new Set}),"create"),addItem:i((t,e)=>{let r;if(e instanceof Map){if(e.size!==1)return"cannot resolve an ordered map item";r=e.keys().next().value}else if(Ov(e)){let n=Object.keys(e);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return t.seen.has(r)?"duplicate key in ordered map":(t.seen.add(r),t.list.push(e),"")},"addItem"),finalize:i(t=>t.list,"finalize"),identify:i(()=>!1,"identify")}),J0t=$J("tag:yaml.org,2002:pairs",{create:i(()=>[],"create"),addItem:i((t,e)=>{if(e instanceof Map)return e.size!==1?"cannot resolve a pairs item":(t.push(e.entries().next().value),"");if(Object.prototype.toString.call(e)!=="[object Object]")return"cannot resolve a pairs item";let r=e,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(t.push([n[0],r[n[0]]]),"")},"addItem"),identify:i(()=>!1,"identify")}),j0t=kv("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:Ov,represent:i(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:i((t,e,r)=>{if(e!==null&&typeof e=="object")return"object-based map does not support complex keys";let n=String(e);return n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,""},"addPair"),has:i((t,e)=>e!==null&&typeof e=="object"?!1:Object.prototype.hasOwnProperty.call(t,String(e)),"has"),keys:i(t=>Object.keys(t),"keys"),get:i((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),K0t=kv("tag:yaml.org,2002:set",{create:i(()=>new Set,"create"),identify:i(t=>t instanceof Set,"identify"),represent:i(t=>{let e=new Map;for(let r of t)e.set(r,null);return e},"represent"),addPair:i((t,e,r)=>r!==null?"cannot resolve a set item":(t.add(e),""),"addPair"),has:i((t,e)=>t.has(e),"has"),keys:i(t=>t.keys(),"keys"),get:i(()=>null,"get")});function X0t(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}i(X0t,"createTagDefinitionMap");function Z0t(){return{scalar:[],sequence:[],mapping:[]}}i(Z0t,"createTagDefinitionListMap");function eBt(t){let e=[];for(let r of t){let n=e.length;for(let s=0;s<e.length;s++){let o=e[s];if(o.nodeKind===r.nodeKind&&o.tagName===r.tagName&&o.matchByTagPrefix===r.matchByTagPrefix){n=s;break}}e[n]=r}return e}i(eBt,"compileTags");var Lv=class twe{static{i(this,"Schema")}tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let r=eBt(e),n=[],s=X0t(),o=Z0t();for(let d of r){if(d.nodeKind==="scalar"&&d.implicit){if(d.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(d)}switch(d.nodeKind){case"scalar":d.matchByTagPrefix?o.scalar.push(d):s.scalar[d.tagName]=d;break;case"sequence":d.matchByTagPrefix?o.sequence.push(d):s.sequence[d.tagName]=d;break;case"mapping":d.matchByTagPrefix?o.mapping.push(d):s.mapping[d.tagName]=d}}let a=n.filter(d=>d.implicitFirstChars===null),c=new Set;for(let d of n)if(d.implicitFirstChars!==null)for(let p of d.implicitFirstChars)c.add(p);let l=new Map;for(let d of c)l.set(d,n.filter(p=>p.implicitFirstChars===null||p.implicitFirstChars.indexOf(d)!==-1));let u=s.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=s.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=s.mapping["tag:yaml.org,2002:map"],this.exact=s,this.prefix=o}lookupScalarTag(e){let r=this.exact.scalar[e];if(r)return r;for(let n of this.prefix.scalar)if(e.startsWith(n.tagName))return n}lookupSequenceTag(e){let r=this.exact.sequence[e];if(r)return r;for(let n of this.prefix.sequence)if(e.startsWith(n.tagName))return n}lookupMappingTag(e){let r=this.exact.mapping[e];if(r)return r;for(let n of this.prefix.mapping)if(e.startsWith(n.tagName))return n}resolveImplicitScalarTag(e){let r=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let s of r){let o=s.resolve(e,!1,s.tagName);if(o!==ct)return{value:o,tag:s}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...e){let r=[];for(let n of e)r=r.concat(n);return new twe([...this.tags,...r])}},GJ=new Lv([Xbt,W0t,j0t]),Cvr=new Lv([...GJ.tags,t0t,l0t,I0t,Q0t]),tBt=new Lv([...GJ.tags,e0t,i0t,ZSe,ewe]),rBt=new Lv([...GJ.tags,n0t,p0t,OJ,LJ,V0t,M0t,$0t,Y0t,J0t,K0t]),nBt=rBt.withTags({...OJ,resolve:i((t,e,r)=>{let n=OJ.resolve(t,e,r);return n===ct?ZSe.resolve(t,e,r):n},"resolve")},{...LJ,resolve:i((t,e,r)=>{let n=LJ.resolve(t,e,r);return n===ct?ewe.resolve(t,e,r):n},"resolve")}),Ivr=kv("tag:yaml.org,2002:map",{create:i(()=>new Map,"create"),addPair:i((t,e,r)=>(t.set(e,r),""),"addPair"),has:i((t,e)=>t.has(e),"has"),keys:i(t=>t.keys(),"keys"),get:i((t,e)=>t.get(e),"get"),identify:i(t=>t instanceof Map||Ov(t),"identify"),represent:i(t=>{if(t instanceof Map)return t;let e=new Map,r=t;for(let n of Object.keys(r))e.set(n,r[n]);return e},"represent")});function qSe(t){if(Array.isArray(t)){let e=Array.prototype.slice.call(t);for(let r=0;r<e.length;r++){if(Array.isArray(e[r]))return null;typeof e[r]=="object"&&Object.prototype.toString.call(e[r])==="[object Object]"&&(e[r]="[object Object]")}return String(e)}return typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"?"[object Object]":String(t)}i(qSe,"normalizeKey");var Svr=kv("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:Ov,represent:i(t=>{let e=new Map;for(let r of Object.keys(t))e.set(r,t[r]);return e},"represent"),addPair:i((t,e,r)=>{let n=qSe(e);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,"")},"addPair"),has:i((t,e)=>{let r=qSe(e);return r!==null&&Object.prototype.hasOwnProperty.call(t,r)},"has"),keys:i(t=>Object.keys(t),"keys"),get:i((t,e)=>{let r=String(e);return Object.prototype.hasOwnProperty.call(t,r)?t[r]:null},"get")}),sBt={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function PJ(t,e,r,n,s){let o="",a="",c=Math.floor(s/2)-1;return n-e>c&&(o=" ... ",e=n-c+o.length),r-n>c&&(a=" ...",r=n+c-a.length),{str:o+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:n-e+o.length}}i(PJ,"getLine");function _J(t,e){return" ".repeat(Math.max(e-t.length,0))+t}i(_J,"padStart");function oBt(t,e){if(!t.buffer)return null;let r={...sBt,...e},n=/\r?\n|\r|\0/g,s=[0],o=[],a,c=-1;for(;a=n.exec(t.buffer);)o.push(a.index),s.push(a.index+a[0].length),t.position<=a.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let l="",u=Math.min(t.line+r.linesAfter,o.length).toString().length,d=r.maxLength-(r.indent+u+3);for(let f=1;f<=r.linesBefore&&!(c-f<0);f++){let m=PJ(t.buffer,s[c-f],o[c-f],t.position-(s[c]-s[c-f]),d);l=`${" ".repeat(r.indent)}${_J((t.line-f+1).toString(),u)} | ${m.str}
|
|
${l}`}let p=PJ(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${_J((t.line+1).toString(),u)} | ${p.str}
|
|
`,l+=`${"-".repeat(r.indent+u+3+p.pos)}^
|
|
`;for(let f=1;f<=r.linesAfter&&!(c+f>=o.length);f++){let m=PJ(t.buffer,s[c+f],o[c+f],t.position-(s[c]-s[c+f]),d);l+=`${" ".repeat(r.indent)}${_J((t.line+f+1).toString(),u)} | ${m.str}
|
|
`}return l.replace(/\n$/,"")}i(oBt,"makeSnippet");function $Se(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
|
|
|
|
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}i($Se,"formatError");var qm=class rwe extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=$Se(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${$Se(this,e)}`}static throwAt(e,r,n,s=""){let o=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(o++,a=l+1):u===13&&(o++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:o,column:r-a};throw c.snippet=oBt(c),new rwe(n,c)}},rr={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Ze={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},Yd={BLOCK:1,FLOW:2},qo={CLIP:1,STRIP:2,KEEP:3},iBt=-1;function GSe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(GSe,"simpleEscapeSequence");var nwe=new Array(256),swe=new Array(256);for(let t=0;t<256;t++)nwe[t]=GSe(t)?1:0,swe[t]=GSe(t);function aBt(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(aBt,"charFromCodepoint");function cBt(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i(cBt,"fromHexCode$1");function lBt(t){return t===120?2:t===117?4:8}i(lBt,"escapedHexLen$1");function vv(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}i(vv,"skipFoldedBreaks");function HJ(t){return t===1?" ":`
|
|
`.repeat(t-1)}i(HJ,"foldedBreaks");function uBt(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(o,a);let l=vv(t,s,r);n+=HJ(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,a)}i(uBt,"getPlainValue");function dBt(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(o,s)+"'",s+=2,o=a=s;else if(c===10||c===13){n+=t.slice(o,a);let l=vv(t,s,r);n+=HJ(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(dBt,"getSingleQuotedValue");function pBt(t,e,r){let n="",s=e,o=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(o,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=vv(t,s,r).position;else if(l<256&&nwe[l])n+=swe[l],s++;else{let u=lBt(l),d=0;for(;u>0;u--){s++;let p=cBt(t.charCodeAt(s));d=(d<<4)+p}n+=aBt(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=vv(t,s,r);n+=HJ(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(pBt,"getDoubleQuotedValue");function HSe(t,e,r,n,s,o){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
|
|
`),l=c===""?[]:(c.endsWith(`
|
|
`)?c.slice(0,-1):c).split(`
|
|
`),u="",d=!1,p=0,f=!1;for(let m of l){let h=0;for(;h<a&&m.charCodeAt(h)===32;)h++;if(n<0||h>=m.length){p++;continue}let A=m.slice(a),y=A.charCodeAt(0);o?y===32||y===9?(f=!0,u+=`
|
|
`.repeat(d?1+p:p)):f?(f=!1,u+=`
|
|
`.repeat(p+1)):p===0?d&&(u+=" "):u+=`
|
|
`.repeat(p):u+=`
|
|
`.repeat(d?1+p:p),u+=A,d=!0,p=0}return s===qo.KEEP?u+=`
|
|
`.repeat(d?1+p:p):s!==qo.STRIP&&d&&(u+=`
|
|
`),u}i(HSe,"getBlockValue");function fBt(t,e){if(e.valueStart===iBt)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case Ze.SINGLE_QUOTED:return dBt(t,r,n);case Ze.DOUBLE_QUOTED:return pBt(t,r,n);case Ze.LITERAL_BLOCK:return HSe(t,r,n,e.indent,e.chomping,!1);case Ze.FOLDED_BLOCK:return HSe(t,r,n,e.indent,e.chomping,!0);default:return uBt(t,r,n)}}i(fBt,"getScalarValue");var mBt=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),hBt="-#;/?:@&=+$_.~*'()",wvr=hBt+"!,[]";function vJ(t){let e="",r=0;for(;r<t.length;){if(t.charCodeAt(r)!==37){e+=t[r++];continue}let n=parseInt(t.slice(r+1,r+3),16);if(r+=3,n>=192){let s=n<224?1:n<240?2:3;for(n&=(1<<6-s)-1;s-- >0;)n=n<<6|parseInt(t.slice(r+1,r+3),16)&63,r+=3}n<65536?e+=String.fromCharCode(n):(n-=65536,e+=String.fromCharCode(55296|n>>10,56320|n&1023))}return e}i(vJ,"tagPercentDecode");function owe(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return vJ(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return vJ(e?.[n]??mBt[n]??n)+vJ(t.slice(n.length))}i(owe,"tagNameFull");var dy=-1,ABt="tag:yaml.org,2002:merge",zJ={filename:"",schema:tBt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function gBt(t){return"tagStart"in t&&t.tagStart!==dy?t.tagStart:"anchorStart"in t&&t.anchorStart!==dy?t.anchorStart:"valueStart"in t&&t.valueStart!==dy?t.valueStart:"start"in t?t.start:0}i(gBt,"eventPosition$1");function Pn(t,e){qm.throwAt(t.source,t.position,e,t.filename)}i(Pn,"throwError$1");function iwe(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof qm)throw s;qm.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(iwe,"finalizeCollection");function yBt(t,e){let r=fBt(t.source,e),n=e.tagStart===dy?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=owe(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===ct&&Pn(t,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(o)??t.schema.lookupSequenceTag(o);if(c){r!==""&&Pn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:iwe(t,t.position,c,l),tag:c}}Pn(t,`unknown scalar tag !<${o}>`)}return e.style===Ze.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(yBt,"constructScalar");function zSe(t,e,r){let n=e.tagStart===dy?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:owe(n,t.tagHandlers)}i(zSe,"collectionTagName");function awe(t){return t.nodeKind==="mapping"}i(awe,"isMappingTag");function VSe(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Pn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(VSe,"chargeMergeWork");function WSe(t,e,r,n){VSe(t);for(let s of n.keys(r)){if(VSe(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&Pn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(WSe,"mergeKeys");function EBt(t,e,r,n){if(t.position=e.keyPosition,awe(n))WSe(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Pn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||Pn(t,"cannot merge mappings; the provided source object is unacceptable"),WSe(t,e,s,o)}}else Pn(t,"cannot merge mappings; the provided source object is unacceptable")}i(EBt,"mergeSource");function CBt(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){EBt(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Pn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&Pn(t,o),e.overridable?.delete(r)}i(CBt,"addMappingValue");function QJ(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){awe(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Pn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,CBt(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===ABt}i(QJ,"addValue");function DJ(t,e,r,n,s){if(e.anchorStart!==dy){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(DJ,"storeAnchor");function IBt(t,e){let r={...zJ,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=gBt(n),n.type){case rr.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case rr.SCALAR:{let{value:s,tag:o}=yBt(r,n);DJ(r,n,s,o,!0),QJ(r,s,o);break}case rr.SEQUENCE:{let s=zSe(r,n,"tag:yaml.org,2002:seq"),o=r.schema.lookupSequenceTag(s);o||Pn(r,`unknown sequence tag !<${s}>`);let a=o.create(s),c=DJ(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:o,anchor:c,index:0});break}case rr.MAPPING:{let s=zSe(r,n,"tag:yaml.org,2002:map"),o=r.schema.lookupMappingTag(s);o||Pn(r,`unknown mapping tag !<${s}>`);let a=o.create(s),c=DJ(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:a,tag:o,anchor:c,key:void 0,keyPosition:r.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case rr.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&Pn(r,`aliases exceeded maxAliases (${r.maxAliases})`);let s=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(s);o||Pn(r,`unidentified alias "${s}"`),o.isValueFinal||Pn(r,`recursive alias "${s}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),QJ(r,o.value,o.tag);break}case rr.POP:{let s=r.frames.pop();if(s.kind==="mapping"&&s.hasKey&&(r.position=s.keyPosition,Pn(r,"incomplete mapping pair in event stream")),s.kind==="document")r.documents.push(s.value);else{let o=s.tag.carrierIsResult?s.value:iwe(r,s.position,s.tag,s.value);s.anchor&&(s.anchor.value=o,s.anchor.isValueFinal=!0),QJ(r,o,s.tag)}break}}}return r.documents}i(IBt,"constructFromEvents");var lt=-1,cwe=Object.prototype.hasOwnProperty,hy=1,lwe=2,uwe=3,Qv=4,SBt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,wBt=/[,\[\]{}]/,dwe=/^(?:!|!!|![0-9A-Za-z-]+!)$/,MJ=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,pwe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,xBt=new RegExp(`^(?:${MJ})*$`),bBt=new RegExp(`^(?:${pwe})+$`),BBt=new RegExp(`^(?:!(?:${MJ})*|${pwe}(?:${MJ})*)$`),VJ={filename:"",maxDepth:100};function RBt(t,e,r){t.events.push({type:rr.DOCUMENT,explicitStart:e,explicitEnd:r,directives:t.directives})}i(RBt,"addDocumentEvent");function fwe(t,e,r,n,s,o,a){t.events.push({type:rr.SEQUENCE,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(fwe,"addSequenceEvent");function mwe(t,e,r,n,s,o,a){t.events.push({type:rr.MAPPING,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(mwe,"addMappingEvent");function YSe(t,e){t.events.splice(e.eventsLength,0,{type:rr.MAPPING,start:e.position,anchorStart:lt,anchorEnd:lt,tagStart:lt,tagEnd:lt,style:Yd.FLOW})}i(YSe,"insertFlowPairMappingEvent");function yy(t,e,r,n,s,o,a,c,l=qo.CLIP,u=-1,d=!1){t.events.push({type:rr.SCALAR,valueStart:e,valueEnd:r,anchorStart:n,anchorEnd:s,tagStart:o,tagEnd:a,style:c,chomping:l,indent:u,fast:d})}i(yy,"addScalarEvent");function NBt(t,e,r){t.events.push({type:rr.ALIAS,anchorStart:e,anchorEnd:r})}i(NBt,"addAliasEvent");function py(t){t.events.push({type:rr.POP})}i(py,"addPopEvent");function Ss(t){yy(t,lt,lt,lt,lt,lt,lt,Ze.PLAIN)}i(Ss,"addEmptyScalarEvent");function JSe(){return{anchorStart:lt,anchorEnd:lt,tagStart:lt,tagEnd:lt}}i(JSe,"emptyProperties");function fy(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}i(fy,"snapshotState");function my(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.events.length=e.eventsLength}i(my,"restoreState");function pe(t,e){qm.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}i(pe,"throwError");function pn(t){return t===10||t===13}i(pn,"isEol");function Ey(t){return t===9||t===32}i(Ey,"isWhiteSpace");function Sa(t){return Ey(t)||pn(t)}i(Sa,"isWsOrEol");function Tu(t){return t===0||Sa(t)}i(Tu,"isWsOrEolOrEnd");function $m(t){return t===44||t===91||t===93||t===123||t===125}i($m,"isFlowIndicator");function TBt(t){return t>=48&&t<=57?t-48:-1}i(TBt,"fromDecimalCode");function PBt(t){if(t>=48&&t<=57)return t-48;let e=t|32;return e>=97&&e<=102?e-97+10:-1}i(PBt,"fromHexCode");function _Bt(t){return t===120?2:t===117?4:t===85?8:0}i(_Bt,"escapedHexLen");function vBt(t){return t===48||t===97||t===98||t===116||t===9||t===110||t===118||t===102||t===114||t===101||t===32||t===34||t===47||t===92||t===78||t===95||t===76||t===80}i(vBt,"isSimpleEscape");function Dv(t){t.input.charCodeAt(t.position)===10?t.position++:(t.position++,t.input.charCodeAt(t.position)===10&&t.position++),t.line++,t.lineStart=t.position,t.lineIndent=0,t.firstTabInLine=-1}i(Dv,"consumeLineBreak");function Wn(t,e){let r=0,n=t.input.charCodeAt(t.position),s=t.position===t.lineStart||Sa(t.input.charCodeAt(t.position-1));for(;n!==0;){for(;Ey(n);)s=!0,n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&s&&n===35)do n=t.input.charCodeAt(++t.position);while(!pn(n)&&n!==0);if(!pn(n))break;for(Dv(t),r++,s=!0,n=t.input.charCodeAt(t.position);n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return r}i(Wn,"skipSeparationSpace");function Ay(t,e=t.position){let r=t.input.charCodeAt(e);if((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)){let n=t.input.charCodeAt(e+3);return n===0||Sa(n)}return!1}i(Ay,"testDocumentSeparator");function hwe(t){t.position===t.lineStart&&t.input.charCodeAt(t.position)===65279&&(t.position++,t.lineStart=t.position)}i(hwe,"skipByteOrderMark");function WJ(t){if(t.position!==t.lineStart)return!1;if(Ay(t))return!0;if(t.input.charCodeAt(t.position)!==65279)return!1;let e=fy(t);hwe(t),Wn(t,!0);let r=t.input.charCodeAt(t.position),n=t.position===t.lineStart&&(r===37||r===45&&Ay(t));return my(t,e),n}i(WJ,"testDocumentBoundary");function jSe(t){let e=t.input.charCodeAt(t.position);for(;e!==0&&!pn(e);)e=t.input.charCodeAt(++t.position)}i(jSe,"skipUntilLineEnd");function Awe(t,e,r){let n=SBt.exec(t.input.slice(e,r));n!==null&&(t.position=e+n.index+n[0].length-1,pe(t,"the stream contains non-printable characters"))}i(Awe,"checkPrintable");function QBt(t,e,r){if(t.input.charCodeAt(t.position)!==33)return!1;e.tagStart!==lt&&pe(t,"duplication of a tag property");let n=t.position,s=!1,o=!1,a="!",c=t.input.charCodeAt(++t.position);c===60?(s=!0,c=t.input.charCodeAt(++t.position)):c===33&&(o=!0,a="!!",c=t.input.charCodeAt(++t.position));let l=t.position,u;if(s){for(;c!==0&&c!==62;)c=t.input.charCodeAt(++t.position);c!==62&&pe(t,"unexpected end of the stream within a verbatim tag"),u=t.input.slice(l,t.position),t.position++}else{for(;c!==0&&!Sa(c)&&!(r&&$m(c));)c===33&&(o?pe(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),dwe.test(a)||pe(t,"named tag handle cannot contain such characters"),o=!0,l=t.position+1)),c=t.input.charCodeAt(++t.position);u=t.input.slice(l,t.position),wBt.test(u)&&pe(t,"tag suffix cannot contain flow indicator characters")}return u&&!(s?xBt.test(u):bBt.test(u))&&pe(t,`tag name cannot contain such characters: ${u}`),!s&&a!=="!"&&a!=="!!"&&!cwe.call(t.tagHandlers,a)&&pe(t,`undeclared tag handle "${a}"`),e.tagStart=n,e.tagEnd=t.position,!0}i(QBt,"readTagProperty");function DBt(t,e){if(t.input.charCodeAt(t.position)!==38)return!1;e.anchorStart!==lt&&pe(t,"duplication of an anchor property"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Sa(t.input.charCodeAt(t.position))&&!$m(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&pe(t,"name of an anchor node must contain at least one character"),e.anchorStart=r,e.anchorEnd=t.position,!0}i(DBt,"readAnchorProperty");function kBt(t,e){if(t.input.charCodeAt(t.position)!==42)return!1;(e.anchorStart!==lt||e.tagStart!==lt)&&pe(t,"alias node should not have any properties"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Sa(t.input.charCodeAt(t.position))&&!$m(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&pe(t,"name of an alias node must contain at least one character"),NBt(t,r,t.position),!0}i(kBt,"readAlias");function FJ(t,e){Wn(t,!1),t.lineIndent<e&&pe(t,"deficient indentation")}i(FJ,"readFlowScalarBreak");function OBt(t,e,r){if(t.input.charCodeAt(t.position)!==39)return!1;t.position++;let n=t.position,s=!0;for(;t.input.charCodeAt(t.position)!==0;){let o=t.input.charCodeAt(t.position);if(o===39){if(t.input.charCodeAt(t.position+1)===39){s=!1,t.position+=2;continue}let a=t.position;return t.position++,yy(t,n,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Ze.SINGLE_QUOTED,qo.CLIP,-1,s),!0}pn(o)?(s=!1,FJ(t,e)):t.position===t.lineStart&&Ay(t)?pe(t,"unexpected end of the document within a single quoted scalar"):o!==9&&o<32?pe(t,"expected valid JSON character"):t.position++}pe(t,"unexpected end of the stream within a single quoted scalar")}i(OBt,"readSingleQuotedScalar");function LBt(t,e,r){if(t.input.charCodeAt(t.position)!==34)return!1;t.position++;let n=t.position,s=!0;for(;t.input.charCodeAt(t.position)!==0;){let o=t.input.charCodeAt(t.position);if(o===34){let a=t.position;return t.position++,yy(t,n,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Ze.DOUBLE_QUOTED,qo.CLIP,-1,s),!0}if(o===92){s=!1;let a=t.input.charCodeAt(++t.position);if(pn(a))FJ(t,e);else if(vBt(a))t.position++;else{let c=_Bt(a);for(c===0&&pe(t,"unknown escape sequence");c-- >0;)t.position++,PBt(t.input.charCodeAt(t.position))<0&&pe(t,"expected hexadecimal character");t.position++}}else pn(o)?(s=!1,FJ(t,e)):t.position===t.lineStart&&Ay(t)?pe(t,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?pe(t,"expected valid JSON character"):t.position++}pe(t,"unexpected end of the stream within a double quoted scalar")}i(LBt,"readDoubleQuotedScalar");function MBt(t,e,r){let n=t.input.charCodeAt(t.position),s=qo.CLIP,o=-1,a=!1;if(n!==124&&n!==62)return!1;let c=n===124?Ze.LITERAL_BLOCK:Ze.FOLDED_BLOCK;for(t.position++;t.input.charCodeAt(t.position)!==0;){let m=t.input.charCodeAt(t.position),h=TBt(m);if(m===43||m===45)s!==qo.CLIP&&pe(t,"repeat of a chomping mode identifier"),s=m===43?qo.KEEP:qo.STRIP,t.position++;else if(h>=0)h===0&&pe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"),a&&pe(t,"repeat of an indentation width identifier"),o=e+h-1,a=!0,t.position++;else break}let l=!1;for(;Ey(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&t.input.charCodeAt(t.position)===35&&jSe(t),pn(t.input.charCodeAt(t.position))?Dv(t):t.input.charCodeAt(t.position)!==0&&pe(t,"a line break is expected");let u=a?o:-1,d=0,p=t.position,f=t.position;for(;t.input.charCodeAt(t.position)!==0;){let m=t.position,h=0;for(;t.input.charCodeAt(m+h)===32;)h++;let A=t.input.charCodeAt(m+h);if(A===0){u>=0?h>u&&(f=m+h):h>0&&(f=m+h);break}if(WJ(t))break;if(!a&&u===-1&&pn(A)&&(d=Math.max(d,h)),!a&&u===-1&&!pn(A)&&(A===9&&h<e&&(t.position=m+h,pe(t,"tab characters must not be used in indentation")),h>=e&&h<d&&(t.position=m+h,pe(t,"bad indentation of a mapping entry"))),u===-1&&A!==0&&!pn(A)&&h<e){t.lineIndent=h,t.position=m+h;break}!a&&A!==0&&!pn(A)&&u===-1&&(u=h);let y=u===-1?e+1:u;if(A!==0&&!pn(A)&&h<y){t.lineIndent=h,t.position=m+h;break}jSe(t),f=t.position,pn(t.input.charCodeAt(t.position))&&(Dv(t),f=t.position)}return Awe(t,p,f),yy(t,p,f,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,c,s,u),!0}i(MBt,"readBlockScalar");function FBt(t,e){let r=t.input.charCodeAt(t.position),n=e===hy;if(r===0||Sa(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||$m(r))return!1;if(r===63||r===45){let s=t.input.charCodeAt(t.position+1);if(Tu(s)||n&&$m(s))return!1}return!0}i(FBt,"canStartPlainScalar");function UBt(t,e,r,n){if(!FBt(t,r))return!1;let s=t.position,o=t.position,a=t.input.charCodeAt(t.position),c=r===hy,l=!1;for(;a!==0&&!WJ(t);){if(a===58){let u=t.input.charCodeAt(t.position+1);if(Tu(u)||c&&$m(u))break}else if(a===35){if(Sa(t.input.charCodeAt(t.position-1)))break}else{if(c&&$m(a))break;if(pn(a)){let u=t.position,d=t.line,p=t.lineStart,f=t.lineIndent;if(Wn(t,!1),t.lineIndent>=e){l=!0,a=t.input.charCodeAt(t.position);continue}t.position=u,t.line=d,t.lineStart=p,t.lineIndent=f;break}}Ey(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o===s?!1:(Awe(t,s,o),yy(t,s,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Ze.PLAIN,qo.CLIP,-1,!l),!0)}i(UBt,"readPlainScalar");function rx(t,e){let r=t.line;Wn(t,!0),(t.line>r&&t.lineIndent<e||t.firstTabInLine!==-1&&t.lineIndent<e)&&pe(t,"deficient indentation")}i(rx,"skipFlowSeparationSpace");function qBt(t,e,r){let n=t.input.charCodeAt(t.position),s=n===123,o=t.position,a=!0;if(n!==91&&n!==123)return!1;let c=s?125:93;for(s?mwe(t,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Yd.FLOW):fwe(t,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Yd.FLOW),t.position++;t.input.charCodeAt(t.position)!==0;){rx(t,e);let l=t.input.charCodeAt(t.position);if(l===c)return t.position++,py(t),!0;a?l===44&&pe(t,"expected the node content, but found ','"):pe(t,"missed comma between flow collection entries");let u=!1,d=!1;l===63&&Sa(t.input.charCodeAt(t.position+1))&&(u=d=!0,t.position+=1,rx(t,e));let p=t.line,f=fy(t),m=gy(t,e,hy,!1,!0);rx(t,e),l=t.input.charCodeAt(t.position),(s||d||t.line===p)&&l===58?(u=!0,t.position++,rx(t,e),s||YSe(t,f),m||Ss(t),gy(t,e,hy,!1,!0)||Ss(t),rx(t,e),s||py(t)):s&&u?(m||Ss(t),Ss(t)):s?Ss(t):u&&(YSe(t,f),m||Ss(t),Ss(t),py(t)),l=t.input.charCodeAt(t.position),l===44?(a=!0,t.position++):a=!1}pe(t,"unexpected end of the stream within a flow collection")}i(qBt,"readFlowCollection");function KSe(t,e,r){if(t.firstTabInLine!==-1||t.input.charCodeAt(t.position)!==45||!Tu(t.input.charCodeAt(t.position+1)))return!1;for(fwe(t,t.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Yd.BLOCK);t.input.charCodeAt(t.position)===45&&Tu(t.input.charCodeAt(t.position+1));){t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation"));let n=t.line;t.position++;let s=Wn(t,!0)>0;if(t.firstTabInLine!==-1&&t.input.charCodeAt(t.position)===45&&Tu(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry"),s&&t.lineIndent<=e?Ss(t):gy(t,e,uwe,!1,!0),Wn(t,!0),t.lineIndent<e||t.position>=t.length)break;t.lineIndent>e&&pe(t,"bad indentation of a sequence entry"),t.line===n&&t.input.charCodeAt(t.position)===45&&Tu(t.input.charCodeAt(t.position+1))&&pe(t,"bad indentation of a sequence entry")}return py(t),!0}i(KSe,"readBlockSequence");function kJ(t,e,r,n){let s=!1,o=!1,a=!1,c=!1;if(t.firstTabInLine!==-1)return!1;let l=t.input.charCodeAt(t.position);for(;l!==0;){!s&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,pe(t,"tab characters must not be used in indentation"));let u=t.input.charCodeAt(t.position+1),d=t.line;if((l===63||l===58)&&Tu(u))a||(mwe(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Yd.BLOCK),a=!0),l===63?(s&&Ss(t),o=!0,s=!0):(s||(Ss(t),o=!0),s=!1),t.position+=1,c=!0;else{s&&(Ss(t),s=!1);let p=fy(t);if(!gy(t,r,lwe,!1,!0))break;if(t.line===d){for(l=t.input.charCodeAt(t.position);Ey(l);)l=t.input.charCodeAt(++t.position);if(l===58)l=t.input.charCodeAt(++t.position),Tu(l)||pe(t,"a whitespace character is expected after the key-value separator within a block mapping"),a||(t.events.splice(p.eventsLength,0,{type:rr.MAPPING,start:p.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:Yd.BLOCK}),a=!0),o=!0,s=!1,c=!1;else if(o)pe(t,"expected ':' after a mapping key");else return n.anchorStart!==lt||n.tagStart!==lt?(my(t,p),!1):!0}else if(o)pe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==lt||n.tagStart!==lt?(my(t,p),!1):!0}if(gy(t,e,Qv,!0,c)&&(c=!1),s||c&&(Ss(t),c=!1),Wn(t,!0),l=t.input.charCodeAt(t.position),(t.line===d||t.lineIndent>e)&&l!==0)pe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return o?(s&&Ss(t),a&&py(t),!0):!1}i(kJ,"readBlockMapping");function gy(t,e,r,n,s,o=!0){t.depth>=t.maxDepth&&pe(t,`nesting exceeded maxDepth (${t.maxDepth})`),t.depth++;let a=1,c=!1,l=!1,u=null,d=JSe(),p=r===Qv||r===uwe,f=p,m=p;if(n&&Wn(t,!0)&&(c=!0,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1),a===1)for(;;){let h=t.input.charCodeAt(t.position),A=fy(t);if(c&&a!==1&&(h===33||h===38))break;if(c&&m&&(d.tagStart!==lt||d.anchorStart!==lt)&&(h===33||h===38)){let y=fy(t),E=e+1;if(kJ(t,t.position-t.lineStart,E,d)&&t.events[y.eventsLength]?.type===rr.MAPPING)return t.depth--,!0;my(t,y)}if(c&&(h===33&&d.tagStart!==lt||h===38&&d.anchorStart!==lt)||!QBt(t,d,r===hy)&&!DBt(t,d))break;u===null&&(u=A),Wn(t,!0)?(c=!0,f=m,t.lineIndent>e?a=1:t.lineIndent===e?a=0:a=-1):f=!1}if(f&&(f=c||s),a===1||r===Qv){let h=r===hy||r===lwe?e:e+1,A=t.position-t.lineStart;if(a===1)if(f&&(KSe(t,A,d)||kJ(t,A,h,d))||qBt(t,h,d))l=!0;else{let y=t.input.charCodeAt(t.position);if(u!==null&&o&&m&&!f&&y!==124&&y!==62){let E=fy(t),I=u.position-u.lineStart;my(t,u),kJ(t,I,h,JSe())&&t.events[E.eventsLength]?.type===rr.MAPPING?l=!0:my(t,E)}!l&&(p&&MBt(t,h,d)||OBt(t,h,d)||LBt(t,h,d)||kBt(t,d)||UBt(t,h,r,d))&&(l=!0)}else a===0&&(l=f&&KSe(t,A,d))}return p=p&&!l,!l&&(d.anchorStart!==lt||d.tagStart!==lt||p)&&(yy(t,lt,lt,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,Ze.PLAIN),l=!0),t.depth--,l||d.anchorStart!==lt||d.tagStart!==lt}i(gy,"parseNode");function $Bt(t){if(t.lineIndent>0||t.input.charCodeAt(t.position)!==37)return!1;t.position++;let e=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Sa(t.input.charCodeAt(t.position));)t.position++;let r=t.input.slice(e,t.position),n=[];for(r.length===0&&pe(t,"directive name must not be less than one character in length");t.input.charCodeAt(t.position)!==0&&!pn(t.input.charCodeAt(t.position));){for(;Ey(t.input.charCodeAt(t.position));)t.position++;if(t.input.charCodeAt(t.position)===35||pn(t.input.charCodeAt(t.position))||t.input.charCodeAt(t.position)===0)break;let s=t.position;for(;t.input.charCodeAt(t.position)!==0&&!Sa(t.input.charCodeAt(t.position));)t.position++;n.push(t.input.slice(s,t.position))}if(pn(t.input.charCodeAt(t.position))&&Dv(t),r==="YAML"){t.directives.some(o=>o.kind==="yaml")&&pe(t,"duplication of %YAML directive"),n.length!==1&&pe(t,"YAML directive accepts exactly one argument");let s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);s===null&&pe(t,"ill-formed argument of the YAML directive"),parseInt(s[1],10)!==1&&pe(t,"unacceptable YAML version of the document"),t.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&pe(t,"TAG directive accepts exactly two arguments");let[s,o]=n;dwe.test(s)||pe(t,"ill-formed tag handle (first argument) of the TAG directive"),cwe.call(t.tagHandlers,s)&&pe(t,`there is a previously declared suffix for "${s}" tag handle`),BBt.test(o)||pe(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagHandlers[s]=o,t.directives.push({kind:"tag",handle:s,prefix:o})}return!0}i($Bt,"readDirective");function GBt(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(Wn(t,!0);$Bt(t);)e=!0,Wn(t,!0);let r=!1,n=!1,s=!0;if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45&&Tu(t.input.charCodeAt(t.position+3))){r=!0;let c=t.line;t.position+=3,Wn(t,!0),s=t.line>c}else e&&pe(t,"directives end mark is expected");let o=t.events.length;if(!r&&t.position===t.lineStart&&t.input.charCodeAt(t.position)===46&&Ay(t)){t.position+=3,Wn(t,!0);return}if(RBt(t,r,!1),gy(t,t.lineIndent-1,Qv,!1,s,s)||Ss(t),Wn(t,!0),t.position===t.lineStart&&Ay(t)&&(n=t.input.charCodeAt(t.position)===46,n)){let c=t.line;t.position+=3,Wn(t,!0),t.line===c&&t.position<t.length&&pe(t,"end of the stream or a document separator is expected")}let a=t.events[o];a?.type===rr.DOCUMENT&&(a.explicitEnd=n),py(t),!n&&t.position<t.length&&!WJ(t)&&pe(t,"end of the stream or a document separator is expected")}i(GBt,"readDocument");function HBt(t,e){let r=t.length,n={...VJ,...e,input:`${t}\0`,length:r,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},s=t.indexOf("\0");for(s!==-1&&qm.throwAt(t,s,"null byte is not allowed in input",n.filename);n.position<n.length&&(hwe(n),Wn(n,!0),!(n.position>=n.length));){let o=n.position;GBt(n),n.position===o&&pe(n,"can not read a document")}return n.events}i(HBt,"parseEvents");var zBt={...VJ,...zJ};function VBt(t,e={}){let r={...zBt,...e},n=String(t),s=Object.keys(VJ),o=Object.keys(zJ);return IBt(HBt(n,USe(r,s)),{...USe(r,o),source:n})}i(VBt,"loadDocuments");function gwe(t,e){let r=VBt(t,e);if(r.length===0)throw new qm("expected a document, but the input is empty");if(r.length===1)return r[0];throw new qm("expected a single document in the stream, but found more")}i(gwe,"load");function Mv(t,e){return(t&1<<e)!==0}i(Mv,"hasBit");var XSe={applyQuoteFlowKeysOption:WBt,doubleQuoteForInvisibles:YBt,doubleQuoteWhitespaceOnly:JBt,applyForceQuotesOption:jBt,tryLongOrMultilineAsBlock:KBt,quoteInvalidPlain:XBt,fallbackToDoubleQuoted:ZBt};function ywe(t){return t.presenterOptions.quoteStyle==="single"&&Mv(t.allowedStylesMask,Ze.SINGLE_QUOTED)?Ze.SINGLE_QUOTED:Ze.DOUBLE_QUOTED}i(ywe,"_preferredQuotedStyle");function WBt(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==Ze.PLAIN||(t.style=Ze.DOUBLE_QUOTED))}i(WBt,"applyQuoteFlowKeysOption");function YBt(t){t.style===Ze.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=Ze.DOUBLE_QUOTED)}i(YBt,"doubleQuoteForInvisibles");function JBt(t){t.style===Ze.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=Ze.DOUBLE_QUOTED)}i(JBt,"doubleQuoteWhitespaceOnly");function jBt(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==Ze.PLAIN||t.node.tag===t.presenterOptions.schema.defaultScalarTag.tagName&&(t.style=t.node.value.includes(`
|
|
`)?Ze.DOUBLE_QUOTED:ywe(t)))}i(jBt,"applyForceQuotesOption");function KBt(t){if(t.style!==Ze.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
|
|
`)!==-1;if(!Mv(t.allowedStylesMask,Ze.LITERAL_BLOCK)){r&&(t.style=Ze.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=Ze.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),o=0,a=!1;for(;o<=e.length;){let c=e.length,l=e.indexOf(`
|
|
`,o);l!==-1&&(c=l);let u=e.slice(o,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;o=l+1}a?t.style=Ze.FOLDED_BLOCK:r&&(t.style=Ze.LITERAL_BLOCK)}i(KBt,"tryLongOrMultilineAsBlock");function XBt(t){t.style===Ze.PLAIN&&!Mv(t.allowedStylesMask,Ze.PLAIN)&&(t.style=ywe(t))}i(XBt,"quoteInvalidPlain");function ZBt(t){Mv(t.allowedStylesMask,t.style)||(t.style=Ze.DOUBLE_QUOTED)}i(ZBt,"fallbackToDoubleQuoted");var eRt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",tRt="[\\n\\r]",rRt="\\uFEFF",YJ="[ \\t]",Ewe=`(?:(?!(?:${tRt}|${rRt}))${eRt})`,Fv=`(?:(?!${YJ})${Ewe})`,Cwe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",Iwe="[-?:,\\[\\]{}#&*!|>'\"%@`]",nRt="[,\\[\\]{}]",UJ=Fv,qJ=`(?:(?!${nRt})${Fv})`,sRt=`(?:(?:(?!${Iwe})${Fv})|[?:-](?=${UJ}))`,oRt=`(?:(?:(?!${Iwe})${Fv})|[?:-](?=${qJ}))`,Swe=`(?:(?:(?![:#])${UJ})|:(?=${UJ}))#*`,wwe=`(?:(?:(?![:#])${qJ})|:(?=${qJ}))#*`,xwe=`(?:${YJ}*${Swe})*`,bwe=`(?:${YJ}*${wwe})*`,Bwe=`${sRt}#*${xwe}`,Rwe=`${oRt}#*${bwe}`,iRt=Bwe,aRt=Rwe,cRt=`\\n+${Swe}${xwe}`,lRt=`\\n+${wwe}${bwe}`,uRt=`${Bwe}(?:${cRt})*`,dRt=`${Rwe}(?:${lRt})*`,xvr=new RegExp(`^(?:${uRt})$`,"u"),bvr=new RegExp(`^(?:${dRt})$`,"u"),Bvr=new RegExp(`^(?:${iRt})$`,"u"),Rvr=new RegExp(`^(?:${aRt})$`,"u"),Nvr=new RegExp(`^(?:${Cwe})*$`,"u"),Tvr=new RegExp(`^(?:${Cwe}|\\n)*$`,"u"),Pvr=new RegExp(`^(?:${Ewe}|\\n)*$`,"u");var pRt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(XSe).map(t=>Reflect.get(XSe,t)),tagBeforeAnchor:!1};var _vr={...pRt,schema:nBt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var vvr=rr.DOCUMENT,Qvr=rr.SEQUENCE,Dvr=rr.MAPPING,kvr=rr.SCALAR,Ovr=rr.ALIAS,Lvr=rr.POP,Mvr=Ze.PLAIN,Fvr=Ze.SINGLE_QUOTED,Uvr=Ze.DOUBLE_QUOTED,qvr=Ze.LITERAL_BLOCK,$vr=Ze.FOLDED_BLOCK,Gvr=Yd.BLOCK,Hvr=Yd.FLOW,zvr=qo.CLIP,Vvr=qo.STRIP,Wvr=qo.KEEP;var Oi=R(require("fs"),1),to=R(require("path"),1),cNe=require("util");var lNe=R(Pbe(),1);var Xv=class t{static{i(this,"Git")}static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){let r=e.match(t.protoRegexp);if(r&&r.length>0){let n=r[0].toLowerCase();if(n=n.slice(0,n.lastIndexOf("://")),!(n in t.supportedProtos))throw new Error(`Invalid protocol: ${n}`);return t.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){let r=new URL(e.toString());r.hash="";let n;return(e.username||e.password)&&(n={username:e.username,password:e.password,passwordSet:e.password!==""}),{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:t.splitGitFragment(e.hash),remote:r.toString()}}static splitGitFragment(e){if(e==="")return;let[r,n]=e.slice(1).split(":");return{ref:r,subdir:n}}static parseRef(e){let r={},n;if(e.startsWith("./")||e.startsWith("../"))throw new Error("Invalid argument");if(e.startsWith("github.com/"))r.indistinguishableFromLocal=!0,n=t.fromURL(new URL("https://"+e));else if(n=t.parseURL(e),["http","git"].includes(n.scheme)&&(r.unencryptedTCP=!0),["http","https"].includes(n.scheme)&&!n.path.endsWith(".git"))throw new Error("Invalid argument");r.remote=n.remote,r.indistinguishableFromLocal&&(r.remote=r.remote.split("://")[1]),n.fragment&&(r.commit=n.fragment.ref,r.subDir=n.fragment.subdir);let s=r.remote.split("/");return r.shortName=s[s.length-1].replace(".git",""),r}};var x5=R(require("fs"),1),iRe=R(require("os"),1),Cx=R(require("path"),1),aRe=require("util"),cRe=R(Lbe(),1);var bj=R(require("fs"),1),r0e=R(require("os"),1),n0e=R(require("path"),1),s0e=R(t0e(),1);var tQ=class t{static{i(this,"Context")}static _tmpDir=bj.default.mkdtempSync(n0e.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||r0e.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return bj.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return s0e.tmpNameSync(e)}};var _u=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),Sd(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),sS(e,r,n)}};var w5=R(require("crypto"),1),sRe=R(require("fs"),1),Ex=R(require("path"),1),oRe=R(XBe(),1);var et=class t extends Error{static{i(this,"CsvError")}constructor(e,r,n,...s){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let o of s)for(let a in o){let c=o[a];this[a]=Buffer.isBuffer(c)?c.toString(n.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var yx=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var UQ=i(function(t){let e=[];for(let r=0,n=t.length;r<n;r++){let s=t[r];if(s==null||s===!1)e[r]={disabled:!0};else if(typeof s=="string"||typeof s=="number")e[r]={name:`${s}`};else if(yx(s)){if(typeof s.name!="string")throw new et("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=s}else throw new et("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${r}`])}return e},"normalize_columns_array");var I5=class{static{i(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let n=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.toString(e,0,this.length):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},S5=I5;var ZBe=i(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((n,s)=>{let o=Buffer.from(String.fromCharCode(s),t.encoding);return s!==63&&o.length===1&&o[0]===63||n.push(o),n},[]),r=new Uint8Array(256);for(let n of e)r[n[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new S5(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(n=>n.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(n=>n.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new S5(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(n=>n.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var eRe=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var ky=i(function(t){let e={};for(let n in t)e[eRe(n)]=t[n];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding===null||e.encoding===!1)e.encoding=null;else if(typeof e.encoding!="string"&&e.encoding!==null)throw new et("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(e.encoding)}`],e);if(e.bom===void 0||e.bom===null||e.bom===!1)e.bom=!1;else if(e.bom!==!0)throw new et("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(e.bom)}`],e);if(e.cast_function=null,e.cast===void 0||e.cast===null||e.cast===!1||e.cast==="")e.cast=void 0;else if(typeof e.cast=="function")e.cast_function=e.cast,e.cast=!0;else if(e.cast!==!0)throw new et("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(e.cast)}`],e);if(e.cast_date===void 0||e.cast_date===null||e.cast_date===!1||e.cast_date==="")e.cast_date=!1;else if(e.cast_date===!0)e.cast_date=function(n){let s=Date.parse(n);return isNaN(s)?n:new Date(s)};else if(typeof e.cast_date!="function")throw new et("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(e.cast_date)}`],e);if(e.cast_first_line_to_header=void 0,e.columns===!0)e.cast_first_line_to_header=void 0;else if(typeof e.columns=="function")e.cast_first_line_to_header=e.columns,e.columns=!0;else if(Array.isArray(e.columns))e.columns=UQ(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new et("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(e.columns)}`],e);if(e.group_columns_by_name===void 0||e.group_columns_by_name===null||e.group_columns_by_name===!1)e.group_columns_by_name=!1;else{if(e.group_columns_by_name!==!0)throw new et("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(e.group_columns_by_name)}`],e);if(e.columns===!1)throw new et("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],e)}if(e.comment===void 0||e.comment===null||e.comment===!1||e.comment==="")e.comment=null;else if(typeof e.comment=="string"&&(e.comment=Buffer.from(e.comment,e.encoding)),!Buffer.isBuffer(e.comment))throw new et("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(e.comment)}`],e);if(e.comment_no_infix===void 0||e.comment_no_infix===null||e.comment_no_infix===!1)e.comment_no_infix=!1;else if(e.comment_no_infix!==!0)throw new et("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(e.comment_no_infix)}`],e);if(e.delimiter_auto===void 0||e.delimiter_auto===null||e.delimiter_auto===!1)e.delimiter_auto=!1;else if(e.delimiter_auto===!0)e.delimiter_auto={};else if(!yx(e.delimiter_auto))throw new et("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","delimiter_auto must be a boolean or a configuration object,",`got ${JSON.stringify(e.delimiter_auto)}`],e);if(e.delimiter_auto){if(e.delimiter_auto.preferred===void 0)e.delimiter_auto.preferred={44:1.8,9:1.8,59:1.6,32:1.6,58:1.5,46:1.4,47:1.4};else if(!yx(e.delimiter_auto.preferred))throw new et("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","preferred must be an object,",`got ${JSON.stringify(e.delimiter_auto.preferred)}`],e);if(e.delimiter_auto.score===void 0)e.delimiter_auto.score=(n,s)=>(n.total-n.std)*(s.preferred[n.char_code]||1);else if(typeof e.delimiter_auto.score!="function")throw new et("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","score must be a function,",`got ${JSON.stringify(e.delimiter_auto.score)}`],e);if(e.delimiter_auto.size===void 0)e.delimiter_auto.size=2048;else if(typeof e.delimiter_auto.size!="number")throw new et("CSV_INVALID_OPTION_DELIMITER_AUTO",["Invalid option delimiter_auto:","size must be a number,",`got ${JSON.stringify(e.delimiter_auto.size)}`],e)}let r=JSON.stringify(e.delimiter);if(e.delimiter_auto!==!1&&(e.delimiter=[]),Array.isArray(e.delimiter)||((e.delimiter===void 0||e.delimiter===null||e.delimiter===!1)&&(e.delimiter=Buffer.from(",",e.encoding)),e.delimiter=[e.delimiter]),e.delimiter=e.delimiter.map(function(n){if(typeof n=="string"&&(n=Buffer.from(n,e.encoding)),!Buffer.isBuffer(n)||n.length===0)throw new et("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${r}`],e);return n}),e.escape===void 0||e.escape===!0?e.escape=Buffer.from('"',e.encoding):typeof e.escape=="string"?e.escape=Buffer.from(e.escape,e.encoding):(e.escape===null||e.escape===!1)&&(e.escape=null),e.escape!==null&&!Buffer.isBuffer(e.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(e.escape)}`);if(e.from===void 0||e.from===null)e.from=1;else if(typeof e.from=="string"&&/\d+/.test(e.from)&&(e.from=parseInt(e.from)),Number.isInteger(e.from)){if(e.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(t.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(e.from)}`);if(e.from_line===void 0||e.from_line===null)e.from_line=1;else if(typeof e.from_line=="string"&&/\d+/.test(e.from_line)&&(e.from_line=parseInt(e.from_line)),Number.isInteger(e.from_line)){if(e.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(t.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(t.from_line)}`);if(e.ignore_last_delimiters===void 0||e.ignore_last_delimiters===null)e.ignore_last_delimiters=!1;else if(typeof e.ignore_last_delimiters=="number")e.ignore_last_delimiters=Math.floor(e.ignore_last_delimiters),e.ignore_last_delimiters===0&&(e.ignore_last_delimiters=!1);else if(typeof e.ignore_last_delimiters!="boolean")throw new et("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(e.ignore_last_delimiters)}`],e);if(e.ignore_last_delimiters===!0&&e.columns===!1)throw new et("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],e);if(e.info===void 0||e.info===null||e.info===!1)e.info=!1;else if(e.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(e.info)}`);if(e.max_record_size===void 0||e.max_record_size===null||e.max_record_size===!1)e.max_record_size=0;else if(!(Number.isInteger(e.max_record_size)&&e.max_record_size>=0))if(typeof e.max_record_size=="string"&&/\d+/.test(e.max_record_size))e.max_record_size=parseInt(e.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(e.max_record_size)}`);if(e.objname===void 0||e.objname===null||e.objname===!1)e.objname=void 0;else if(Buffer.isBuffer(e.objname)){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");e.encoding===null||(e.objname=e.objname.toString(e.encoding))}else if(typeof e.objname=="string"){if(e.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof e.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${e.objname}`);if(e.objname!==void 0){if(typeof e.objname=="number"){if(e.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(e.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(e.on_record===void 0||e.on_record===null)e.on_record=void 0;else if(typeof e.on_record!="function")throw new et("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(e.on_record)}`],e);if(e.on_skip!==void 0&&e.on_skip!==null&&typeof e.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(e.on_skip)}`);if(e.quote===null||e.quote===!1||e.quote==="")e.quote=null;else if(e.quote===void 0||e.quote===!0?e.quote=Buffer.from('"',e.encoding):typeof e.quote=="string"&&(e.quote=Buffer.from(e.quote,e.encoding)),!Buffer.isBuffer(e.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(e.quote)}`);if(e.raw===void 0||e.raw===null||e.raw===!1)e.raw=!1;else if(e.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(e.raw)}`);if(e.record_delimiter===void 0)e.record_delimiter=[];else if(typeof e.record_delimiter=="string"||Buffer.isBuffer(e.record_delimiter)){if(e.record_delimiter.length===0)throw new et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);e.record_delimiter=[e.record_delimiter]}else if(!Array.isArray(e.record_delimiter))throw new et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(e.record_delimiter)}`],e);if(e.record_delimiter=e.record_delimiter.map(function(n,s){if(typeof n!="string"&&!Buffer.isBuffer(n))throw new et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);if(n.length===0)throw new et("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`got ${JSON.stringify(n)}`],e);return typeof n=="string"&&(n=Buffer.from(n,e.encoding)),n}),typeof e.relax_column_count!="boolean")if(e.relax_column_count===void 0||e.relax_column_count===null)e.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(e.relax_column_count)}`);if(typeof e.relax_column_count_less!="boolean")if(e.relax_column_count_less===void 0||e.relax_column_count_less===null)e.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(e.relax_column_count_less)}`);if(typeof e.relax_column_count_more!="boolean")if(e.relax_column_count_more===void 0||e.relax_column_count_more===null)e.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(e.relax_column_count_more)}`);if(typeof e.relax_quotes!="boolean")if(e.relax_quotes===void 0||e.relax_quotes===null)e.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(e.relax_quotes)}`);if(typeof e.skip_empty_lines!="boolean")if(e.skip_empty_lines===void 0||e.skip_empty_lines===null)e.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(e.skip_empty_lines)}`);if(typeof e.skip_records_with_empty_values!="boolean")if(e.skip_records_with_empty_values===void 0||e.skip_records_with_empty_values===null)e.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(e.skip_records_with_empty_values)}`);if(typeof e.skip_records_with_error!="boolean")if(e.skip_records_with_error===void 0||e.skip_records_with_error===null)e.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(e.skip_records_with_error)}`);if(e.rtrim===void 0||e.rtrim===null||e.rtrim===!1)e.rtrim=!1;else if(e.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(e.rtrim)}`);if(e.ltrim===void 0||e.ltrim===null||e.ltrim===!1)e.ltrim=!1;else if(e.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(e.ltrim)}`);if(e.trim===void 0||e.trim===null||e.trim===!1)e.trim=!1;else if(e.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(e.trim)}`);if(e.trim===!0&&t.ltrim!==!1?e.ltrim=!0:e.ltrim!==!0&&(e.ltrim=!1),e.trim===!0&&t.rtrim!==!1?e.rtrim=!0:e.rtrim!==!0&&(e.rtrim=!1),e.to===void 0||e.to===null)e.to=-1;else if(e.to!==-1)if(typeof e.to=="string"&&/\d+/.test(e.to)&&(e.to=parseInt(e.to)),Number.isInteger(e.to)){if(e.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(t.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(t.to)}`);if(e.to_line===void 0||e.to_line===null)e.to_line=-1;else if(e.to_line!==-1)if(typeof e.to_line=="string"&&/\d+/.test(e.to_line)&&(e.to_line=parseInt(e.to_line)),Number.isInteger(e.to_line)){if(e.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(t.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(t.to_line)}`);return e},"normalize_options");var tRe=i(function(t,e){e||({delimiter_auto:e}=ky({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(s=>{let o=[],a=qQ({delimiter:[]}),c=i(d=>o.push(d),"push"),l=i(()=>{},"close"),u=a.parse(s,!0,c,l);if(u!==void 0)throw u;return o})(t));let r=Array(127).fill().map(()=>({lines:[]}));t.map(([s],o)=>{for(let a=0,c=s.length;a<c;a++){let l=s.charCodeAt(a);r[l].lines[o]===void 0&&(r[l].lines[o]=0),r[l].lines[o]++}}),r.map((s,o)=>{s.char_code=o,s.std=JQt(s.lines),s.total=s.lines.reduce((a,c)=>a+c,0),s.preferred=!!e.preferred[o],s.score=e.score(s,e)});let n=r.reduce((s,o)=>s.score>o.score?s:o,{});return String.fromCharCode(n.char_code)},"delimiter_discover"),JQt=i(function(t){let e=t.length;if(e===0)return 0;let r=t.reduce((n,s)=>n+s)/e;return Math.sqrt(t.map(n=>Math.pow(n-r,2)).reduce((n,s)=>n+s)/e)},"std");var rRe=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),jQt=13,KQt=10,Oy={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},qQ=i(function(t={}){let e={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},r=ky(t);return{info:e,original_options:t,options:r,state:ZBe(r),__needMoreData:i(function(n,s,o){if(o)return!1;let{encoding:a,escape:c,quote:l}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:p}=this.state,f=s-n-1,m=Math.max(d,p===0?Buffer.from(`\r
|
|
`,a).length:p,u?(c===null?0:c.length)+l.length:0,u?l.length+p:0);return f<m},"__needMoreData"),parse:i(function(n,s,o,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:p,ltrim:f,max_record_size:m,raw:h,relax_quotes:A,rtrim:y,skip_empty_lines:E,to:I,to_line:x}=this.options,{comment:b,escape:N,quote:v,record_delimiter:_}=this.options,{bomSkipped:J,delimiterDiscovered:Be,delimiterBufPrevious:ke,rawBuffer:De,escapeIsQuote:ce}=this.state;if(!Be&&u){let Ve;if(ke===void 0?Ve=n:ke!==void 0&&n===void 0?Ve=ke:Ve=Buffer.concat([ke,n]),n=void 0,s||Ve.length>u.size)this.options.delimiter=[Buffer.from(tRe(Ve,this.options.delimiter_auto))],this.state.previousBuf=Ve,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ve;return}}let{previousBuf:Tt}=this.state,Re;if(Tt===void 0)if(n===void 0){a();return}else Re=n;else Tt!==void 0&&n===void 0?Re=Tt:Re=Buffer.concat([Tt,n]);if(J===!1)if(c===!1)this.state.bomSkipped=!0;else if(Re.length<3){if(s===!1){this.state.previousBuf=Re;return}}else{for(let Ve in Oy)if(Oy[Ve].compare(Re,0,Oy[Ve].length)===0){let Xa=Oy[Ve].length;this.state.bufBytesStart+=Xa,Re=Re.slice(Xa);let yB=ky({...this.original_options,encoding:Ve});for(let Gr in yB)this.options[Gr]=yB[Gr];({comment:b,escape:N,quote:v}=this.options);break}this.state.bomSkipped=!0}let oe=Re.length,Q;for(Q=0;Q<oe&&!this.__needMoreData(Q,oe,s);Q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),x!==-1&&this.info.lines>x){this.state.stop=!0,a();return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(Re,Q)&&(_=this.options.record_delimiter);let Ve=Re[Q];if(h===!0&&De.append(Ve),(Ve===jQt||Ve===KQt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(Re,Q,Ve)&&Q+N.length<oe)if(ce){if(this.__isQuote(Re,Q+N.length)){this.state.escaping=!0,Q+=N.length-1;continue}}else{this.state.escaping=!0,Q+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Re,Q))if(this.state.quoting===!0){let Gr=Re[Q+v.length],ff=y&&this.__isCharTrimable(Re,Q+v.length),Kl=b!==null&&this.__compareBytes(b,Re,Q+v.length,Gr),mf=this.__isDelimiter(Re,Q+v.length,Gr),EB=_.length===0?this.__autoDiscoverRecordDelimiter(Re,Q+v.length):this.__isRecordDelimiter(Gr,Re,Q+v.length);if(N!==null&&this.__isEscape(Re,Q,Ve)&&this.__isQuote(Re,Q+N.length))Q+=N.length-1;else if(!Gr||mf||EB||Kl||ff){this.state.quoting=!1,this.state.wasQuoting=!0,Q+=v.length-1;continue}else if(A===!1){let Are=this.__error(new et("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Gr)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Are!==void 0)return Are}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(v),Q+=v.length-1}else if(this.state.field.length!==0){if(A===!1){let Gr=this.__infoField(),ff=Object.keys(Oy).map(mf=>Oy[mf].equals(this.state.field.toString())?mf:!1).filter(Boolean)[0],Kl=this.__error(new et("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Gr.column)} at line ${Gr.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,ff?`(${ff} bom)`:void 0],this.options,Gr,{field:this.state.field}));if(Kl!==void 0)return Kl}}else{this.state.quoting=!0,Q+=v.length-1;continue}if(this.state.quoting===!1){let Gr=this.__isRecordDelimiter(Ve,Re,Q);if(Gr!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=p){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Q+=Gr-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Q+=Gr-1;continue}this.info.bytes=this.state.bufBytesStart+Q;let mf=this.__onField();if(mf!==void 0)return mf;this.info.bytes=this.state.bufBytesStart+Q+Gr;let EB=this.__onRecord(o);if(EB!==void 0)return EB;if(I!==-1&&this.info.records>=I){this.state.stop=!0,a();return}}this.state.commenting=!1,Q+=Gr-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,Re,Q,Ve)!==0){this.state.commenting=!0;continue}let ff=this.__isDelimiter(Re,Q,Ve);if(ff!==0){this.info.bytes=this.state.bufBytesStart+Q;let Kl=this.__onField();if(Kl!==void 0)return Kl;Q+=ff-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new et("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Xa=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(Re,Q),yB=y===!1||this.state.wasQuoting===!1;if(Xa===!0&&yB===!0)this.state.field.append(Ve);else{if(y===!0&&!this.__isCharTrimable(Re,Q))return this.__error(new et("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));Xa===!1&&(Q+=this.__isCharTrimable(Re,Q)-1);continue}}if(s===!0)if(this.state.quoting===!0){let Ve=this.__error(new et("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(Ve!==void 0)return Ve}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+Q;let Ve=this.__onField();if(Ve!==void 0)return Ve;let Xa=this.__onRecord(o);if(Xa!==void 0)return Xa}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=Q,this.state.previousBuf=Re.slice(Q);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},"parse"),__onRecord:i(function(n){let{columns:s,group_columns_by_name:o,encoding:a,info:c,from:l,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:p,raw:f,skip_records_with_empty_values:m}=this.options,{enabled:h,record:A}=this.state;if(h===!1)return this.__resetRecord();let y=A.length;if(s===!0){if(m===!0&&rRe(A)){this.__resetRecord();return}return this.__firstLineToColumns(A)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=y),y!==this.state.expectedRecordLength){let E=s===!1?new et("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A}):new et("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:A});if(u===!0||d===!0&&y<this.state.expectedRecordLength||p===!0&&y>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=E;else{let I=this.__error(E);if(I)return I}}if(m===!0&&rRe(A)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,l===1||this.info.records>=l){let{objname:E}=this.options;if(s!==!1){let I={};for(let x=0,b=A.length;x<b;x++)s[x]===void 0||s[x].disabled||(o===!0&&Object.hasOwn(I,s[x].name)?Array.isArray(I[s[x].name])?I[s[x].name]=I[s[x].name].concat(A[x]):I[s[x].name]=[I[s[x].name],A[x]]:Object.defineProperty(I,s[x].name,{value:A[x],enumerable:!0,writable:!0,configurable:!0}));if(f===!0||c===!0){let x=Object.assign({record:I},f===!0?{raw:this.state.rawBuffer.toString(a)}:{},c===!0?{info:this.__infoRecord()}:{}),b=this.__push(E===void 0?x:[I[E],x],n);if(b)return b}else{let x=this.__push(E===void 0?I:[I[E],I],n);if(x)return x}}else if(f===!0||c===!0){let I=Object.assign({record:A},f===!0?{raw:this.state.rawBuffer.toString(a)}:{},c===!0?{info:this.__infoRecord()}:{}),x=this.__push(E===void 0?I:[A[E],I],n);if(x)return x}else{let I=this.__push(E===void 0?A:[A[E],A],n);if(I)return I}}this.__resetRecord()},"__onRecord"),__firstLineToColumns:i(function(n){let{firstLineToHeaders:s}=this.state;try{let o=s===void 0?n:s.call(null,n);if(!Array.isArray(o))return this.__error(new et("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(o)}`],this.options,this.__infoField(),{headers:o}));let a=UQ(o);this.state.expectedRecordLength=a.length,this.options.columns=a,this.__resetRecord();return}catch(o){return o}},"__firstLineToColumns"),__resetRecord:i(function(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},"__resetRecord"),__onField:i(function(){let{cast:n,encoding:s,rtrim:o,max_record_size:a}=this.options,{enabled:c,wasQuoting:l}=this.state;if(c===!1)return this.__resetField();let u=this.state.field.toString(s);if(o===!0&&l===!1&&(u=u.trimRight()),n===!0){let[d,p]=this.__cast(u);if(d!==void 0)return d;u=p}this.state.record.push(u),a!==0&&typeof u=="string"&&(this.state.record_length+=u.length),this.__resetField()},"__onField"),__resetField:i(function(){this.state.field.reset(),this.state.wasQuoting=!1},"__resetField"),__push:i(function(n,s){let{on_record:o}=this.options;if(o!==void 0){let a=this.__infoRecord();try{n=o.call(null,n,a)}catch(c){return c}if(n==null)return}this.info.bytes_records+=this.info.bytes,s(n)},"__push"),__cast:i(function(n){let{columns:s,relax_column_count:o}=this.options;if(Array.isArray(s)===!0&&o&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{let c=this.__infoField();return[void 0,this.state.castField.call(null,n,c)]}catch(c){return[c]}if(this.__isFloat(n))return[void 0,parseFloat(n)];if(this.options.cast_date!==!1){let c=this.__infoField();return[void 0,this.options.cast_date.call(null,n,c)]}return[void 0,n]},"__cast"),__compareBytes:i(function(n,s,o,a){if(n[0]!==a)return 0;let c=n.length;for(let l=1;l<c;l++)if(n[l]!==s[o+l])return 0;return c},"__compareBytes"),__isCharTrimable:i(function(n,s){let{timchars:o,timcharFirstBytes:a}=this.state,c=n[s];if(c===void 0||a[c]===0)return 0;e:for(let l=0;l<o.length;l++){let u=o[l];for(let d=0;d<u.length;d++)if(u[d]!==n[s+d])continue e;return u.length}return 0},"__isCharTrimable"),__isDelimiter:i(function(n,s,o){let{delimiter:a,ignore_last_delimiters:c}=this.options;if(c===!0&&this.state.record.length===this.options.columns.length-1)return 0;if(c!==!1&&typeof c=="number"&&this.state.record.length===c-1)return 0;e:for(let l=0;l<a.length;l++){let u=a[l];if(u[0]===o){for(let d=1;d<u.length;d++)if(u[d]!==n[s+d])continue e;return u.length}}return 0},"__isDelimiter"),__isEscape:i(function(n,s,o){let{escape:a}=this.options;if(a===null)return!1;let c=a.length;if(a[0]===o){for(let l=0;l<c;l++)if(a[l]!==n[s+l])return!1;return!0}return!1},"__isEscape"),__isFloat:i(function(n){return n-parseFloat(n)+1>=0},"__isFloat"),__isQuote:i(function(n,s){let{quote:o}=this.options;if(o===null)return!1;let a=o.length;for(let c=0;c<a;c++)if(o[c]!==n[s+c])return!1;return!0},"__isQuote"),__isRecordDelimiter:i(function(n,s,o){let{record_delimiter:a}=this.options,c=a.length;e:for(let l=0;l<c;l++){let u=a[l],d=u.length;if(u[0]===n){for(let p=1;p<d;p++)if(u[p]!==s[o+p])continue e;return u.length}}return 0},"__isRecordDelimiter"),__autoDiscoverRecordDelimiter:i(function(n,s){let{encoding:o}=this.options,a=[Buffer.from(`\r
|
|
`,o),Buffer.from(`
|
|
`,o),Buffer.from("\r",o)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:s,raw:o,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,o?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:s,encoding:o}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(o):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,s=Array.isArray(n),o=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:o,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var nRe=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=qQ(e),s=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),o=i(()=>{},"close"),a=n.parse(t,!0,s,o);if(a!==void 0)throw a;return r},"parse");var Zd=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(la(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=nRe(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let o of s)o.length==1?r?.ignoreComma?n.push(o[0]):n.push(...o[0].split(",")):r?.ignoreComma?n.push(o.join(",")):n.push(...o);return n.filter(o=>o).map(o=>r?.trimWhitespace===!1?o:o.trim())}static getInputNumber(e){let r=la(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Ms("powershell",!0),s=e.replace(/'/g,"''"),o=[];if(r)for(let a in r)o.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${o.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return sRe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return w5.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return w5.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return oRe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Ex.default.resolve(e);return Ex.default.resolve(r).startsWith(n.endsWith(Ex.default.sep)?n:`${n}${Ex.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),o=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(o||a.length===0)&&a.push(`${o}s`),a.join("")}};var ep=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Cx.default.join(iRe.default.homedir(),".docker")}static configFile(){let e=Cx.default.join(t.configDir,"config.json");if(x5.default.existsSync(e))return JSON.parse(x5.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ms("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return _u.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return _u.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,aRe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let s=r[n].trim();if(s)return s}return"unknown error"}static execOptions(e){return e||(e={}),e.env?e.env.DOCKER_CONTENT_TRUST="false":e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"}),e}static async context(e){let r=["context","inspect","--format","{{.Name}}"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async contextInspect(e){let r=["context","inspect","--format=json"];return e&&r.push(e),await t.getExecOutput(r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return JSON.parse(n.stdout.trim())[0]})}static async printVersion(){await t.exec(["version"])}static async printInfo(){await t.exec(["info"])}static parseRepoTag(e){let r,n=e.indexOf("@"),s=e.lastIndexOf(":");if(n>=0)r=n;else if(s>=0)r=s;else return{repository:e,tag:"latest"};let o=e.slice(r+1);return o.indexOf("/")===-1?{repository:e.slice(0,r),tag:o}:{repository:e,tag:"latest"}}static async pull(e,r,n){let s=[];if(n)try{await t.contextInspect(n),s.push("--context",n)}catch{s.push("--host",n)}let o=t.parseRepoTag(e),a=o.repository.replace(/[^a-zA-Z0-9.]+/g,"--"),c=o.tag.replace(/[^a-zA-Z0-9.]+/g,"--"),l=new uy({htcName:a,htcVersion:c,baseCacheDir:Cx.default.join(t.configDir,".cache","images",a),cacheFile:"image.tar"}),u;r&&(u=await l.find(),u&&(ae(`Image found from cache in ${u}`),await t.getExecOutput([...s,"load","-i",u],{ignoreReturnCode:!0}).then(p=>{p.stderr.length>0&&p.exitCode!=0&&ur(`Failed to load image from cache: ${t.getErrorMessage(p.stderr)}`)})));let d=!0;try{await t.pullWithRetry(e,s)}catch(p){if(d=!1,u)ur(`Failed to pull image, using one from cache: ${p.message}`);else throw p}if(r&&d){let p=Cx.default.join(tQ.tmpDir(),`${Zd.hash(e)}.tar`);await t.getExecOutput([...s,"save","-o",p,e],{ignoreReturnCode:!0}).then(async f=>{if(f.stderr.length>0&&f.exitCode!=0)ur(`Failed to save image: ${t.getErrorMessage(f.stderr)}`);else{let m=await l.save(p);ae(`Image cached to ${m}`)}})}}static async pullWithRetry(e,r){await(0,cRe.default)(async s=>{let o=await t.getExecOutput([...r,"pull",e],{ignoreReturnCode:!0});if(o.stderr.length>0&&o.exitCode!=0){let a=t.getErrorMessage(o.stderr);if(!t.isPullTransientError(a)){s(new Error(a));return}throw new Error(a)}},{retries:4,minTimeout:1e3,factor:2,onRetry:i((s,o)=>{T(`Docker pull failed, retrying (${o}/5)...
|
|
${s}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var iNe=R(require("crypto"),1);var $Q=require("fs"),lRe=require("os");var Ly=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,$Q.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,$Q.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${lRe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var N5=R(mRe(),1),hRe=R(Hf(),1);var uDt=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 ARe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}i(ARe,"getAuthString");function gRe(t){return new N5.HttpClient().getAgent(t)}i(gRe,"getProxyAgent");function dDt(t){return new N5.HttpClient().getAgentDispatcher(t)}i(dDt,"getProxyAgentDispatcher");function yRe(t){let e=dDt(t);return i((n,s)=>uDt(this,void 0,void 0,function*(){return(0,hRe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(yRe,"getProxyFetch");function ERe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(ERe,"getApiBaseUrl");function T5(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}i(T5,"getUserAgentWithOrchestrationId");function tp(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}i(tp,"getUserAgent");function JQ(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,o)=>JQ.bind(null,t,o,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,o)=>o.hook.bind(null,s,n),r)():r(n))}i(JQ,"register");function CRe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=i((o,a)=>Promise.resolve().then(s.bind(null,a)).then(o.bind(null,a)),"hook")),e==="after"&&(n=i((o,a)=>{let c;return Promise.resolve().then(o.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=i((o,a)=>Promise.resolve().then(o.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}i(CRe,"addHook");function IRe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}i(IRe,"removeHook");var SRe=Function.bind,wRe=SRe.bind(SRe);function xRe(t,e,r){let n=wRe(IRe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let o=r?[e,s,r]:[e,s];t[s]=t.api[s]=wRe(CRe,null).apply(null,o)})}i(xRe,"bindApi");function fDt(){let t=Symbol("Singular"),e={registry:{}},r=JQ.bind(null,e,t);return xRe(r,e,t),r}i(fDt,"Singular");function mDt(){let t={registry:{}},e=JQ.bind(null,t);return xRe(e,t),e}i(mDt,"Collection");var bRe={Singular:fDt,Collection:mDt};var hDt="0.0.0-development",ADt=`octokit-endpoint.js/${hDt} ${tp()}`,gDt={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":ADt},mediaType:{format:""}};function yDt(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(yDt,"lowercaseKeys");function EDt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}i(EDt,"isPlainObject");function NRe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{EDt(e[n])?n in t?r[n]=NRe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(NRe,"mergeDeep");function BRe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(BRe,"removeUndefinedProperties");function _5(t,e,r){if(typeof e=="string"){let[s,o]=e.split(" ");r=Object.assign(o?{method:s,url:o}:{url:s},r)}else r=Object.assign({},e);r.headers=yDt(r.headers),BRe(r),BRe(r.headers);let n=NRe(t||{},r);return r.url==="/graphql"&&(t&&t.mediaType.previews?.length&&(n.mediaType.previews=t.mediaType.previews.filter(s=>!n.mediaType.previews.includes(s)).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map(s=>s.replace(/-preview/,""))),n}i(_5,"merge");function CDt(t,e){let r=/\?/.test(t)?"&":"?",n=Object.keys(e);return n.length===0?t:t+r+n.map(s=>s==="q"?"q="+e.q.split("+").map(encodeURIComponent).join("+"):`${s}=${encodeURIComponent(e[s])}`).join("&")}i(CDt,"addQueryParameters");var IDt=/\{[^{}}]+\}/g;function SDt(t){return t.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}i(SDt,"removeNonChars");function wDt(t){let e=t.match(IDt);return e?e.map(SDt).reduce((r,n)=>r.concat(n),[]):[]}i(wDt,"extractUrlVariableNames");function RRe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(RRe,"omit");function TRe(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e}).join("")}i(TRe,"encodeReserved");function Fy(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(Fy,"encodeUnreserved");function Sx(t,e,r){return e=t==="+"||t==="#"?TRe(e):Fy(e),r?Fy(r)+"="+e:e}i(Sx,"encodeValue");function My(t){return t!=null}i(My,"isDefined");function P5(t){return t===";"||t==="&"||t==="?"}i(P5,"isKeyOperator");function xDt(t,e,r,n){var s=t[r],o=[];if(My(s)&&s!=="")if(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||typeof s=="boolean")s=s.toString(),n&&n!=="*"&&(s=s.substring(0,parseInt(n,10))),o.push(Sx(e,s,P5(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(My).forEach(function(a){o.push(Sx(e,a,P5(e)?r:""))}):Object.keys(s).forEach(function(a){My(s[a])&&o.push(Sx(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(My).forEach(function(c){a.push(Sx(e,c))}):Object.keys(s).forEach(function(c){My(s[c])&&(a.push(Fy(c)),a.push(Sx(e,s[c].toString())))}),P5(e)?o.push(Fy(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?My(s)&&o.push(Fy(r)):s===""&&(e==="&"||e==="?")?o.push(Fy(r)+"="):s===""&&o.push("");return o}i(xDt,"getValues");function bDt(t){return{expand:BDt.bind(null,t)}}i(bDt,"parseUrl");function BDt(t,e){var r=["+","#",".","/",";","?","&"];return t=t.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(n,s,o){if(s){let c="",l=[];if(r.indexOf(s.charAt(0))!==-1&&(c=s.charAt(0),s=s.substr(1)),s.split(/,/g).forEach(function(u){var d=/([^:\*]*)(?::(\d+)|(\*))?/.exec(u);l.push(xDt(e,c,d[1],d[2]||d[3]))}),c&&c!=="+"){var a=",";return c==="?"?a="&":c!=="#"&&(a=c),(l.length!==0?c:"")+l.join(a)}else return l.join(",")}else return TRe(o)}),t==="/"?t:t.replace(/\/$/,"")}i(BDt,"expand");function PRe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=RRe(t,["method","baseUrl","url","headers","request","mediaType"]),a=wDt(r);r=bDt(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=RRe(o,c);if(!/application\/octet-stream/i.test(n.accept)&&(t.mediaType.format&&(n.accept=n.accept.split(/,/).map(d=>d.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${t.mediaType.format}`)).join(",")),r.endsWith("/graphql")&&t.mediaType.previews?.length)){let d=n.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];n.accept=d.concat(t.mediaType.previews).map(p=>{let f=t.mediaType.format?`.${t.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${f}`}).join(",")}return["GET","HEAD"].includes(e)?r=CDt(r,l):"data"in l?s=l.data:Object.keys(l).length&&(s=l),!n["content-type"]&&typeof s<"u"&&(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(e)&&typeof s>"u"&&(s=""),Object.assign({method:e,url:r,headers:n},typeof s<"u"?{body:s}:null,t.request?{request:t.request}:null)}i(PRe,"parse");function RDt(t,e,r){return PRe(_5(t,e,r))}i(RDt,"endpointWithDefaults");function _Re(t,e){let r=_5(t,e),n=RDt.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:_Re.bind(null,r),merge:_5.bind(null,r),parse:PRe})}i(_Re,"withDefaults");var vRe=_Re(null,gDt);var zRe=R(ORe(),1);var NDt=/^-?\d+$/,FRe=/^-?\d+n+$/,v5=JSON.stringify,LRe=JSON.parse,TDt=/^-?\d+n$/,PDt=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,_Dt=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,URe=i((t,e,r)=>"rawJSON"in JSON?v5(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?v5(t,(a,c)=>typeof c=="string"&&!!c.match(FRe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(PDt,"$1$2$3").replace(_Dt,"$1$2$3"):v5(t,e,r),"JSONStringify"),vDt=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),QDt=i((t,e,r,n)=>typeof e=="string"&&e.match(TDt)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(FRe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),DDt=i((t,e)=>JSON.parse(t,(r,n,s)=>{let o=typeof n=="number"&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER),a=s&&NDt.test(s.source);return o&&a?BigInt(s.source):typeof e!="function"?n:e(r,n,s)}),"JSONParseV2"),qRe=Number.MAX_SAFE_INTEGER.toString(),MRe=qRe.length,kDt=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,ODt=/^"-?\d+n+"$/,$Re=i((t,e)=>{if(!t)return LRe(t,e);if(vDt())return DDt(t,e);let r=t.replace(kDt,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(ODt))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.length<MRe||s.length===MRe&&s<=qRe);return c||u||d?n:'"'+n+'n"'});return LRe(r,(n,s,o)=>QDt(n,s,o,e))},"JSONParse");var Zm=class extends Error{static{i(this,"RequestError")}name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var LDt="10.0.8",MDt={headers:{"user-agent":`octokit-request.js/${LDt} ${tp()}`}};function FDt(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}i(FDt,"isPlainObject");var GRe=i(()=>"","noop");async function HRe(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=FDt(t.body)||Array.isArray(t.body)?URe(t.body):t.body,o=Object.fromEntries(Object.entries(t.headers).map(([p,f])=>[p,String(f)])),a;try{a=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:o,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(p){let f="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;f=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?f=p.cause.message:typeof p.cause=="string"&&(f=p.cause))}let m=new Zm(f,500,{request:t});throw m.cause=p,m}let c=a.status,l=a.url,u={};for(let[p,f]of a.headers)u[p]=f;let d={url:l,status:c,headers:u,data:""};if("deprecation"in u){let p=u.link&&u.link.match(/<([^<>]+)>; rel="deprecation"/),f=p&&p.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${u.sunset}${f?`. See ${f}`:""}`)}if(c===204||c===205)return d;if(t.method==="HEAD"){if(c<400)return d;throw new Zm(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await Q5(a),new Zm("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await Q5(a),new Zm(qDt(d.data),c,{response:d,request:t});return d.data=n?await Q5(a):a.body,d}i(HRe,"fetchWrapper");async function Q5(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(GRe);let r=(0,zRe.safeParse)(e);if(UDt(r)){let n="";try{return n=await t.text(),$Re(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(GRe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(Q5,"getResponseData");function UDt(t){return t.type==="application/json"||t.type==="application/scim+json"}i(UDt,"isJSONResponse");function qDt(t){if(typeof t=="string")return t;if(t instanceof ArrayBuffer)return"Unknown error";if("message"in t){let e="documentation_url"in t?` - ${t.documentation_url}`:"";return Array.isArray(t.errors)?`${t.message}: ${t.errors.map(r=>JSON.stringify(r)).join(", ")}${e}`:`${t.message}${e}`}return`Unknown error: ${JSON.stringify(t)}`}i(qDt,"toErrorMessage");function D5(t,e){let r=t.defaults(e);return Object.assign(i(function(s,o){let a=r.merge(s,o);if(!a.request||!a.request.hook)return HRe(r.parse(a));let c=i((l,u)=>HRe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:D5.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:D5.bind(null,r)})}i(D5,"withDefaults");var xx=D5(vRe,MDt);var $Dt="0.0.0-development";function GDt(t){return`Request failed due to following response errors:
|
|
`+t.errors.map(e=>` - ${e.message}`).join(`
|
|
`)}i(GDt,"_buildMessageForResponseErrors");var HDt=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(GDt(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},zDt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],VDt=["query","method","url"],VRe=/\/api\/v3\/?$/;function WDt(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(VDt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>zDt.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 VRe.test(o)&&(s.url=o.replace(VRe,"/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 HDt(s,c,a.data)}return a.data.data})}i(WDt,"graphql");function k5(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>WDt(r,s,o),"newApi"),{defaults:k5.bind(null,r),endpoint:r.endpoint})}i(k5,"withDefaults");var BLr=k5(xx,{headers:{"user-agent":`octokit-graphql.js/${$Dt} ${tp()}`},method:"POST",url:"/graphql"});function WRe(t){return k5(t,{method:"POST",url:"/graphql"})}i(WRe,"withCustomRequest");var O5="(?:[a-zA-Z0-9_-]+)",YRe="\\.",JRe=new RegExp(`^${O5}${YRe}${O5}${YRe}${O5}$`),YDt=JRe.test.bind(JRe);async function JDt(t){let e=YDt(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(JDt,"auth");function jDt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(jDt,"withAuthorizationPrefix");async function KDt(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=jDt(t),e(s)}i(KDt,"hook");var jRe=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(JDt.bind(null,e),{hook:KDt.bind(null,e)})},"createTokenAuth2");var L5="7.0.6";var KRe=i(()=>{},"noop"),XDt=console.warn.bind(console),ZDt=console.error.bind(console);function ekt(t={}){return typeof t.debug!="function"&&(t.debug=KRe),typeof t.info!="function"&&(t.info=KRe),typeof t.warn!="function"&&(t.warn=XDt),typeof t.error!="function"&&(t.error=ZDt),t}i(ekt,"createLogger");var XRe=`octokit-core.js/${L5} ${tp()}`,ZQ=class{static{i(this,"Octokit")}static VERSION=L5;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 bRe.Collection,n={baseUrl:xx.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${XRe}`:XRe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=xx.defaults(n),this.graphql=WRe(this.request).defaults(n),this.log=ekt(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=jRe(e.auth);r.wrap("request",o.hook),this.auth=o}let s=this.constructor;for(let o=0;o<s.plugins.length;++o)Object.assign(this,s.plugins[o](this,e))}request;graphql;log;hook;auth};var M5="17.0.0";var tkt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteCustomImageFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],deleteCustomImageVersionFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomImageForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],getCustomImageVersionForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listCustomImageVersionsForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"],listCustomImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingPremiumRequestUsageReportOrg:["GET /organizations/{org}/settings/billing/premium_request/usage"],getGithubBillingPremiumRequestUsageReportUser:["GET /users/{username}/settings/billing/premium_request/usage"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},enterpriseTeamMemberships:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"],get:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],list:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],remove:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"]},enterpriseTeamOrganizations:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"],delete:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignment:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignments:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"]},enterpriseTeams:{create:["POST /enterprises/{enterprise}/teams"],delete:["DELETE /enterprises/{enterprise}/teams/{team_slug}"],get:["GET /enterprises/{enterprise}/teams/{team_slug}"],list:["GET /enterprises/{enterprise}/teams"],update:["PATCH /enterprises/{enterprise}/teams/{team_slug}"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createWebhook:["POST /orgs/{org}/hooks"],customPropertiesForOrgsCreateOrUpdateOrganizationValues:["PATCH /organizations/{org}/org-properties/values"],customPropertiesForOrgsGetOrganizationValues:["GET /organizations/{org}/org-properties/values"],customPropertiesForReposCreateOrUpdateOrganizationDefinition:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:["PATCH /orgs/{org}/properties/schema"],customPropertiesForReposCreateOrUpdateOrganizationValues:["PATCH /orgs/{org}/properties/values"],customPropertiesForReposDeleteOrganizationDefinition:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinition:["GET /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinitions:["GET /orgs/{org}/properties/schema"],customPropertiesForReposGetOrganizationValues:["GET /orgs/{org}/properties/values"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],disableSelectedRepositoryImmutableReleasesOrganization:["DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],enableSelectedRepositoryImmutableReleasesOrganization:["PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],get:["GET /orgs/{org}"],getImmutableReleasesSettings:["GET /orgs/{org}/settings/immutable-releases"],getImmutableReleasesSettingsRepositories:["GET /orgs/{org}/settings/immutable-releases/repositories"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestationRepositories:["GET /orgs/{org}/attestations/repositories"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setImmutableReleasesSettings:["PUT /orgs/{org}/settings/immutable-releases"],setImmutableReleasesSettingsRepositories:["PUT /orgs/{org}/settings/immutable-releases/repositories"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{username}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{username}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{username}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{username}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{username}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkImmutableReleases:["GET /repos/{owner}/{repo}/immutable-releases"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],customPropertiesForReposCreateOrUpdateRepositoryValues:["PATCH /repos/{owner}/{repo}/properties/values"],customPropertiesForReposGetRepositoryValues:["GET /repos/{owner}/{repo}/properties/values"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableImmutableReleases:["DELETE /repos/{owner}/{repo}/immutable-releases"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableImmutableReleases:["PUT /repos/{owner}/{repo}/immutable-releases"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},ZRe=tkt;var eh=new Map;for(let[t,e]of Object.entries(ZRe))for(let[r,n]of Object.entries(e)){let[s,o,a]=n,[c,l]=s.split(/ /),u=Object.assign({method:c,url:l},o);eh.has(t)||eh.set(t,new Map),eh.get(t).set(r,{scope:t,methodName:r,endpointDefaults:u,decorations:a})}var rkt={has({scope:t},e){return eh.get(t).has(e)},getOwnPropertyDescriptor(t,e){return{value:this.get(t,e),configurable:!0,writable:!0,enumerable:!0}},defineProperty(t,e,r){return Object.defineProperty(t.cache,e,r),!0},deleteProperty(t,e){return delete t.cache[e],!0},ownKeys({scope:t}){return[...eh.get(t).keys()]},set(t,e,r){return t.cache[e]=r},get({octokit:t,scope:e,cache:r},n){if(r[n])return r[n];let s=eh.get(e).get(n);if(!s)return;let{endpointDefaults:o,decorations:a}=s;return a?r[n]=nkt(t,e,n,o,a):r[n]=t.request.defaults(o),r[n]}};function F5(t){let e={};for(let r of eh.keys())e[r]=new Proxy({octokit:t,scope:r,cache:{}},rkt);return e}i(F5,"endpointsToMethods");function nkt(t,e,r,n,s){let o=t.request.defaults(n);function a(...c){let l=o.endpoint.merge(...c);if(s.mapToData)return l=Object.assign({},l,{data:l[s.mapToData],[s.mapToData]:void 0}),o(l);if(s.renamed){let[u,d]=s.renamed;t.log.warn(`octokit.${e}.${r}() has been renamed to octokit.${u}.${d}()`)}if(s.deprecated&&t.log.warn(s.deprecated),s.renamedParameters){let u=o.endpoint.merge(...c);for(let[d,p]of Object.entries(s.renamedParameters))d in u&&(t.log.warn(`"${d}" parameter is deprecated for "octokit.${e}.${r}()". Use "${p}" instead`),p in u||(u[p]=u[d]),delete u[d]);return o(u)}return o(...c)}return i(a,"withDecorations"),Object.assign(a,o)}i(nkt,"decorate");function U5(t){return{rest:F5(t)}}i(U5,"restEndpointMethods");U5.VERSION=M5;function skt(t){let e=F5(t);return{...e,rest:e}}i(skt,"legacyRestEndpointMethods");skt.VERSION=M5;var okt="0.0.0-development";function ikt(t){if(!t.data)return{...t,data:[]};if(!(("total_count"in t.data||"total_commits"in t.data)&&!("url"in t.data)))return t;let r=t.data.incomplete_results,n=t.data.repository_selection,s=t.data.total_count,o=t.data.total_commits;delete t.data.incomplete_results,delete t.data.repository_selection,delete t.data.total_count,delete t.data.total_commits;let a=Object.keys(t.data)[0],c=t.data[a];return t.data=c,typeof r<"u"&&(t.data.incomplete_results=r),typeof n<"u"&&(t.data.repository_selection=n),t.data.total_count=s,t.data.total_commits=o,t}i(ikt,"normalizePaginatedListResponse");function q5(t,e,r){let n=typeof e=="function"?e.endpoint(r):t.request.endpoint(e,r),s=typeof e=="function"?e:t.request,o=n.method,a=n.headers,c=n.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!c)return{done:!0};try{let l=await s({method:o,url:c,headers:a}),u=ikt(l);if(c=((u.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!c&&"total_commits"in u.data){let d=new URL(u.url),p=d.searchParams,f=parseInt(p.get("page")||"1",10),m=parseInt(p.get("per_page")||"250",10);f*m<u.data.total_commits&&(p.set("page",String(f+1)),c=d.toString())}return{value:u}}catch(l){if(l.status!==409)throw l;return c="",{value:{status:200,headers:{},data:[]}}}}})}}i(q5,"iterator");function eNe(t,e,r,n){return typeof r=="function"&&(n=r,r=void 0),tNe(t,[],q5(t,e,r)[Symbol.asyncIterator](),n)}i(eNe,"paginate");function tNe(t,e,r,n){return r.next().then(s=>{if(s.done)return e;let o=!1;function a(){o=!0}return i(a,"done"),e=e.concat(n?n(s.value,a):s.value.data),o?e:tNe(t,e,r,n)})}i(tNe,"gather");var XLr=Object.assign(eNe,{iterator:q5});function $5(t){return{paginate:Object.assign(eNe.bind(null,t),{iterator:q5.bind(null,t)})}}i($5,"paginateRest");$5.VERSION=okt;var sMr=new Ly,G5=ERe(),akt={baseUrl:G5,request:{agent:gRe(G5),fetch:yRe(G5)}},rNe=ZQ.plugin(U5,$5).defaults(akt);function nNe(t,e){let r=Object.assign({},e||{}),n=ARe(t,r);n&&(r.auth=n);let s=T5(r.userAgent);return s&&(r.userAgent=s),r}i(nNe,"getOctokitOptions");var Uy=new Ly;function sNe(t,e,...r){let n=rNe.plugin(...r);return new n(nNe(t,e))}i(sNe,"getOctokit");var aNe=require("stream/consumers");var th=class extends Error{static{i(this,"InvalidTokenError")}};th.prototype.name="InvalidTokenError";function lkt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}i(lkt,"b64DecodeUnicode");function ukt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return lkt(e)}catch{return atob(e)}}i(ukt,"base64UrlDecode");function oNe(t,e){if(typeof t!="string")throw new th("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new th(`Invalid token specified: missing part #${r+1}`);let s;try{s=ukt(n)}catch(o){throw new th(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new th(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(oNe,"jwtDecode");var eD=[1e3,3e3],dkt=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),qy=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=sNe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...Uy.repo}).then(e=>e.data)}async releases(e,r){let n;try{n=await this.releasesRaw(e,r)}catch(s){if(!this.githubToken)throw s;n=await this.releasesRaw(e,r,this.githubToken)}return n}async releasesRaw(e,r,n){let s=`https://raw.githubusercontent.com/${r.owner}/${r.repo}/${r.ref}/${r.path}`,o=n?{Authorization:`token ${n}`}:void 0,a;for(let c=0;c<=eD.length;c++)try{let u=await new No("docker-actions-toolkit").get(s,o),d=await(0,aNe.text)(u.message),p=u.message.statusCode||500;if(p>=400){let f=new Error(`Failed to get ${e} releases from ${s} with status code ${p}: ${d}`);throw f.statusCode=p,f}return JSON.parse(d)}catch(l){if(a=l instanceof Error?l:new Error(`${l}`),!t.isRetryableReleaseError(a)||c===eD.length)throw a;ae(`${a.message}. Retrying (${c+1}/${eD.length})...`),await new Promise(u=>setTimeout(u,eD[c]))}throw a||new Error(`Failed to get ${e} releases from ${s}`)}static isRetryableReleaseError(e){let r=e.statusCode;if(r)return r===408||r===429||r>=500;let n=e.code,s=e.message.toLowerCase();return n&&dkt.has(n)||s.includes("socket hang up")||s.includes("read econnreset")}static get context(){return Uy}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){let r=new URL(t.serverURL).hostname.trimEnd().toUpperCase(),n=r==="GITHUB.COM",s=r.endsWith(".GHE.COM"),o=r.endsWith(".LOCALHOST");return!n&&!s&&!o}static get repository(){return`${Uy.repo.owner}/${Uy.repo.repo}`}static get workspace(){return process.env.GITHUB_WORKSPACE||process.cwd()}static get runId(){return process.env.GITHUB_RUN_ID?+process.env.GITHUB_RUN_ID:Uy.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${t.serverURL}/${t.repository}/actions/runs/${t.runId}${e?`/attempts/${t.runAttempt}`:""}`}static get actionsRuntimeToken(){let e=process.env.ACTIONS_RUNTIME_TOKEN||"";return e?oNe(e):void 0}static printUntrusted(e){let r=iNe.randomUUID();ae(`::stop-commands::${r}`);try{ae(e)}finally{ae(`::${r}::`)}}static async printActionsRuntimeTokenACs(){let e;try{e=t.actionsRuntimeToken}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${r.message}`)}if(!e)throw new Error("ACTIONS_RUNTIME_TOKEN not set");try{JSON.parse(`${e.ac}`).forEach(r=>{let n;switch(r.Permission){case 1:n="read";break;case 2:n="write";break;case 3:n="read/write";break;default:n=`unimplemented (${r.Permission})`}ae(`${r.Scope}: ${n}`)})}catch(r){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${r.message}`)}}};var tD=class t{static{i(this,"Buildx")}_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}static get configDir(){return process.env.BUILDX_CONFIG||to.default.join(ep.configDir,"buildx")}static get refsDir(){return to.default.join(t.configDir,"refs")}static get refsGroupDir(){return to.default.join(t.refsDir,"__group__")}static get certsDir(){return to.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await ep.isAvailable();return T(`Buildx.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"buildx":"docker",args:r?e:["buildx",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await _u.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(T(`Buildx.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(T(`Buildx.isAvailable error: ${n}`),!1));return T(`Buildx.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await _u.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await _u.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse buildx version");return r[1]}static getErrorMessage(e){let r=(0,cNe.stripVTControlCharacters)(e).split(/[\r\n]/),n="";for(let s=r.length-1;s>=0;s--){let o=r[s].trim();if(o.startsWith("ERROR:"))return o.slice(6).trim()||"unknown error";n||=o}return n||"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return T("Buildx.versionSatisfies false: undefined version"),!1;let s=lNe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return T(`Buildx.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static resolveCertsDriverOpts(e,r,n){let s;try{s=new URL(r)}catch{return[]}if(s.protocol!="tcp:")return[];let o=[];if(Object.keys(n).length==0)return o;let a=s.hostname;if(s.port.length>0&&(a+=`-${s.port}`),n.cacert!==void 0){let c=to.default.join(t.certsDir,`cacert_${a}.pem`);Oi.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=to.default.join(t.certsDir,`cert_${a}.pem`);Oi.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=to.default.join(t.certsDir,`key_${a}.pem`);Oi.default.writeFileSync(c,n.key),o.push(`key=${c}`)}return e!="remote"?[]:o}static localState(e,r){let[n,s,o]=e.split("/");if(!n||!s||!o)throw new Error(`Invalid build reference: ${e}`);let a=to.default.join(r||t.refsDir,n,s,o);if(!Oi.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(Oi.default.readFileSync(a,"utf8")))}static fixLocalState(e){let r=i(function(a){let c=a.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(c&&c.length==3){let l=c[1],u=c[2];return u.startsWith("https:/")&&!u.startsWith("https://")&&(u=u.replace("https:/","https://")),u.startsWith("http:/")&&!u.startsWith("http://")&&(u=u.replace("http:/","http://")),u.startsWith("ssh:/")&&!u.startsWith("ssh://")&&(u=u.replace("ssh:/","ssh://")),u.startsWith("git:/")&&!u.startsWith("git://")&&(u=u.replace("git:/","git://")),[u,l,!0]}return[a,"",!1]},"fnTrimToValidContext"),[n,s,o]=r(e.LocalPath);return o&&(e.LocalPath=n,e.DockerfilePath.indexOf(s)===0&&(e.DockerfilePath=e.DockerfilePath.substring(s.length))),e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath,e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath,e}static refs(e,r={}){let{dir:n,builderName:s,nodeName:o,since:a}=e,c=to.default.resolve(n);if(e.builderName&&(c=to.default.join(c,e.builderName)),e.nodeName&&(c=to.default.join(c,e.nodeName)),!Oi.default.existsSync(c))return r;let l=Oi.default.readdirSync(c);for(let u of l){let d=to.default.join(c,u),p=Oi.default.statSync(d);if(p.isDirectory()){let f={...e};if(s)o||(f.nodeName=u);else{if(u==="__group__")continue;f.builderName=u}t.refs(f,r)}else{if(a&&p.mtime<a)continue;let f=t.fixLocalState(JSON.parse(Oi.default.readFileSync(d,"utf8"))),m=`${s}/${o}/${u}`;r[m]=f}}return r}static async convertWarningsToGitHubAnnotations(e,r,n){if(e.length===0)return;let s=i(function(l){try{return Xv.parseURL(l)}catch{}},"fnGitURL"),o=i(function(l){try{return t.localState(l,n)}catch(u){T(`Buildx.convertWarningsToGitHubAnnotations(${l}): local state not found: ${u.message}`)}},"fnLocalState"),a=[];for(let l of r){let u=o(l);if(!u)continue;if(u.DockerfilePath=="-"){T(`Buildx.convertWarningsToGitHubAnnotations(${l}): skipping stdin Dockerfile`);continue}else u.DockerfilePath==""&&(u.DockerfilePath="Dockerfile");let d=s(u.LocalPath);if(d){T(`Buildx.convertWarningsToGitHubAnnotations(${l}): git context detected: ${u.LocalPath}`);let f=d.host.replace(/:.*/,"");if(f!=="github.com"&&!f.endsWith(".ghe.com")){T(`Buildx.convertWarningsToGitHubAnnotations(${l}): not a GitHub repo: ${f}`);continue}let m=d.path.replace(/^\//,"").replace(/\.git$/,"");if(m!==qy.repository){T(`Buildx.convertWarningsToGitHubAnnotations(${l}): not same GitHub repo: ${m} != ${qy.repository}`);continue}a.push({path:u.DockerfilePath,remote:!0});continue}if(!Oi.default.existsSync(u.DockerfilePath)){T(`Buildx.convertWarningsToGitHubAnnotations: Dockerfile not found from localstate ref ${l}: ${u.DockerfilePath}`);continue}let p=qy.workspace;Zd.isPathRelativeTo(p,u.DockerfilePath)?a.push({path:to.default.relative(p,u.DockerfilePath),content:Buffer.from(Oi.default.readFileSync(u.DockerfilePath,{encoding:"utf-8"}),"utf-8").toString("base64")}):T(`Buildx.convertWarningsToGitHubAnnotations: skipping Dockerfile outside of workspace: ${u.DockerfilePath}`)}if(a.length===0){T("Buildx.convertWarningsToGitHubAnnotations: no Dockerfiles found");return}T(`Buildx.convertWarningsToGitHubAnnotations: found ${a.length} Dockerfiles: ${JSON.stringify(a,null,2)}`);let c=[];for(let l of e){if(!l.detail||!l.short){T("Buildx.convertWarningsToGitHubAnnotations: skipping warning without detail or short");continue}let u=l.sourceInfo?.filename,d=l.sourceInfo?.data;if(!u||!d){T("Buildx.convertWarningsToGitHubAnnotations: skipping warning without source info filename or data");continue}let p=l.detail.map(A=>atob(A)).join(" "),f=atob(l.short).replace(/\s\(line \d+\)$/,"");l.url&&(f+=`
|
|
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let A of a)if(A.remote||A.path.endsWith(u)&&A.content===d){c.push({title:p,message:f,file:A.path,startLine:m}),h=!0;break}h||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function dNe(){return{registry:la("registry"),username:la("username"),password:la("password"),scope:la("scope"),ecr:la("ecr"),logout:Ide("logout"),registryAuth:la("registry-auth")}}i(dNe,"getInputs");function pNe(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=gwe(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:String(r.ecr??"")||"auto",configDir:rD(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:rD(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(pNe,"getAuthList");function rD(t,e){if(pkt()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=rh.default.resolve(tD.configDir,"config"),o=rh.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!uNe(s,o))throw new Error(`Invalid registry '${t}': resolved config path escapes the Buildx config directory`);let a=e.split("@");if(a.length>2)throw new Error(`Invalid scope '${e}': scope can contain at most one @ separator`);let[c,l]=a;if(l!==void 0&&!/^[a-z]+(,[a-z]+)*$/.test(l))throw new Error(`Invalid scope '${e}': scope actions must be lowercase names separated by commas`);let u=l===void 0?"":`@${l}`;if(c==="")return`${o}${u}`;let d=rh.default.resolve(o,c);if(!uNe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(rD,"scopeToConfigDir");function uNe(t,e){let r=rh.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${rh.default.sep}`)&&!rh.default.isAbsolute(r)}i(uNe,"isChildPath");function pkt(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?Zd.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(pkt,"scopeDisabled");var Fje=R(z8e(),1),Uje=R(wje(),1),pre=R(Ju(),1);var Rje=R(require("net"),1),Nje=R(require("tls"),1),Tje=R(cm(),1),Pje=require("events");var xje=R(require("net"),1),bje=R(require("http"),1),Bje=require("https");var Yl=Symbol("AgentBaseInternalState"),y2=class extends bje.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Yl]={}}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 xje.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)?Bje.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[Yl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Yl].currentSocket;if(this[Yl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Yl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Yl]&&(this[Yl].defaultPort=e)}get protocol(){return this[Yl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Yl]&&(this[Yl].protocol=e)}};var lre=require("url");function E2(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${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(E2,"createNegotiateAuth");var WC=(0,Tje.default)("http-proxy-agent"),hB=class extends y2{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new lre.URL(e):e,this.proxyHeaders=r?.headers??{},WC("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=E2():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?QXt(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 lre.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;WC("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(WC("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
|
\r
|
|
`)+4,e.outputData[0].data=e._header+n.substring(s),WC("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(WC("Creating `tls.Socket`: %o",this.connectOpts),o=Nje.connect(this.connectOpts)):(WC("Creating `net.Socket`: %o",this.connectOpts),o=Rje.connect(this.connectOpts)),await(0,Pje.once)(o,"connect");let a={socket:o};return e.emit("proxyConnect",a),this.emit("proxyConnect",a,e),e.emit("proxy",{proxy:this.proxy.href,socket:o}),o}};hB.protocols=["http","https"];function QXt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(QXt,"omit");var jl=R(require("net"),1),AB=R(require("tls"),1),Oje=R(require("assert"),1),Lje=R(cm(),1);var _je=R(require("net"),1),vje=R(require("http"),1),Qje=require("https");var Jl=Symbol("AgentBaseInternalState"),C2=class extends vje.Agent{static{i(this,"Agent")}constructor(e){super(e),this[Jl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
|
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new _je.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)?Qje.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[Jl].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[Jl].currentSocket;if(this[Jl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Jl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Jl]&&(this[Jl].defaultPort=e)}get protocol(){return this[Jl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Jl]&&(this[Jl].protocol=e)}};var Mje=require("url");var Dje=R(cm(),1);var I2=(0,Dje.default)("https-proxy-agent:parse-proxy-response");function ure(t){return new Promise((e,r)=>{let n=0,s=[];function o(){let d=t.read();d?u(d):t.once("readable",o)}i(o,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",o)}i(a,"cleanup");function c(){a(),I2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),I2("onerror %o",d),r(d)}i(l,"onerror");function u(d){s.push(d),n+=d.length;let p=Buffer.concat(s,n),f=p.indexOf(`\r
|
|
\r
|
|
`);if(f===-1){I2("have not received end of HTTP headers yet..."),o();return}let m=p.slice(0,f).toString("ascii").split(`\r
|
|
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=h.split(" "),y=+A[1],E=A.slice(2).join(" "),I={};for(let x of m){if(!x)continue;let b=x.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${x}"`));let N=x.slice(0,b).toLowerCase(),v=x.slice(b+1).trimStart(),_=I[N];typeof _=="string"?I[N]=[_,v]:Array.isArray(_)?_.push(v):I[N]=v}I2("got proxy server response: %o %o",h,I),a(),e({connect:{statusCode:y,statusText:E,headers:I},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(ure,"parseProxyResponse");var nA=(0,Lje.default)("https-proxy-agent"),S2=i(t=>t.servername===void 0&&t.host&&!jl.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),gB=class extends C2{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Mje.URL(e):e,this.proxyHeaders=r?.headers??{},nA("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=E2():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?dre(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:"?(nA("Creating `tls.Socket`: %o",this.connectOpts),s=AB.connect(S2(this.connectOpts))):(nA("Creating `net.Socket`: %o",this.connectOpts),s=jl.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=jl.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
|
|
`;let l=ure(s);s.write(`${c}\r
|
|
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),e.emit("proxy",{proxy:this.proxy.href,socket:s}),u.statusCode===200)return e.once("socket",kje),r.secureEndpoint?(nA("Upgrading socket connection to TLS"),AB.connect({...dre(S2(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){nA("Got 407 response, invoking onProxyAuth callback"),s.destroy();let f=u.headers["proxy-authenticate"]||"",m=Array.isArray(f)?f[0].split(/\s/)[0]:f.split(/\s/)[0],h=await this.onProxyAuth({response:u,scheme:m});return this._connectWithAuth(e,r,h.headers)}s.destroy();let p=new jl.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{nA("Replaying proxy buffer for failed request"),(0,Oje.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}async _connectWithAuth(e,r,n){let{proxy:s}=this,o;s.protocol==="https:"?o=AB.connect(S2(this.connectOpts)):o=jl.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=jl.isIPv6(r.host)?`[${r.host}]`:r.host,l=`CONNECT ${c}:${r.port} HTTP/1.1\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 u=ure(o);o.write(`${l}\r
|
|
`);let{connect:d}=await u;if(e.emit("proxyConnect",d),this.emit("proxyConnect",d,e),d.statusCode===200)return e.once("socket",kje),r.secureEndpoint?(nA("Upgrading socket connection to TLS"),AB.connect({...dre(S2(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};gB.protocols=["http","https"];function kje(t){setImmediate(()=>{t.resume()})}i(kje,"resume");function dre(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(dre,"omit");var fre=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,DXt=/public\.ecr\.aws|ecr-public\.aws\.com/,qje=i(t=>fre.test(t)||w2(t),"isECR"),w2=i(t=>DXt.test(t),"isPubECR"),kXt=i(t=>{if(w2(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(fre);return e?e[4]:""},"getRegion"),OXt=i(t=>{if(w2(t))return[];let e=t.match(fre);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"),$je=i(async(t,e,r)=>{let n=kXt(t),s=OXt(t),o={};s.length>0&&(T(`Requesting AWS ECR auth token for ${s.join(", ")}`),o.registryIds=s);let a,c=process.env.http_proxy||process.env.HTTP_PROXY||"";c&&(T(`Using http proxy ${c}`),a=new hB(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new gB(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(w2(t)){ae(`AWS Public ECR detected with ${n} region`);let f=await new Uje.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new pre.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 h=Buffer.from(f.authorizationData.authorizationToken,"base64").toString("utf-8").split(":",2);return $n(h[0]),$n(h[1]),[{registry:"public.ecr.aws",username:h[0],password:h[1]}]}else{ae(`AWS ECR detected with ${n} region`);let f=await new Fje.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new pre.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 h of f.authorizationData){let y=Buffer.from(h.authorizationToken||"","base64").toString("utf-8").split(":",2);$n(y[0]),$n(y[1]),m.push({registry:h.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var Gje=/^(?:[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 MXt(t){return typeof t=="string"&&Gje.test(t)}i(MXt,"validate");var mre=MXt;var FXt=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),UXt=3600,Hje=300,zje=21600,Vje=5,Wje=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&FXt.has(t),"isDockerHubOIDC"),Yje=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(!mre(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=qXt(),s=t==="registry-1-stage.docker.io"?"identity-stage.docker.com":"identity.docker.com",o=`https://${s}`;ae(`Docker Hub OIDC detected for ${t||"docker.io"}`),T(`Docker Hub OIDC token audience: ${o}`),T(`Docker Hub OIDC token expiration: ${n}s`),ae("Retrieving GitHub OIDC token for Docker Hub");let a=await xde(o),c=new No("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()),ae("Exchanging GitHub OIDC token for Docker Hub token");let u=await $Xt(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await HXt(u));return $n(d.access_token),ae("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),qXt=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||UXt.toString(),e=Number(t);if(isNaN(e)||e<Hje||e>zje)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${Hje} and ${zje}`);return e},"getExpiresIn"),$Xt=i(async(t,e,r)=>{T(`Sending Docker Hub OIDC token request to ${e}`);let n=await t.post(e,r);T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||At.InternalServerError}`);for(let s=0;(n.message.statusCode||At.InternalServerError)===At.TooManyRequests&&s<Vje;s++){let o=GXt(n.message.headers["retry-after"]);if(o===null){T("Docker Hub OIDC token request rate limited without retry-after header");break}await n.readBody(),ae(`Docker Hub OIDC token request rate limited, retrying in ${o}ms (attempt ${s+1}/${Vje})`),await new Promise(a=>setTimeout(a,o)),n=await t.post(e,r),T(`Docker Hub OIDC token request returned status code ${n.message.statusCode||At.InternalServerError}`)}return n},"postWithRetry"),GXt=i(t=>{if(t===void 0)return null;Array.isArray(t)&&(t=t[0]);let e=Number(t);return isNaN(e)?null:Math.max(0,e*1e3)},"parseRetryAfter"),HXt=i(async t=>{let e=await t.readBody(),r=t.message.statusCode||At.InternalServerError;if(T(`Docker Hub OIDC token response status code: ${r}`),r<At.OK||r>=At.MultipleChoices)throw zXt(r,e);return e},"handleResponse"),zXt=i((t,e)=>{if(e){let r;try{r=JSON.parse(e)}catch{r=void 0}if(r!==void 0)throw new Error(`Docker Hub API: bad status code ${t}: ${JSON.stringify(r)}`)}throw t===401?new Error("Docker Hub API: operation not permitted"):new Error(`Docker Hub API: bad status code ${t}`)},"parseError");async function hre(t){if(/true/i.test(t.ecr)||t.ecr=="auto"&&qje(t.registry))await YXt(t.registry,t.username,t.password,t.scope);else{let e=t.username,r=t.password;if(Wje(t.registry,r)){let n=await Yje(t.registry,e);e=n.username,r=n.token}await WXt(t.registry,e,r,t.scope)}}i(hre,"login");async function Jje(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),ae(`Alternative config dir: ${e}`)),await ep.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&ur(n.stderr.trim())})}i(Jje,"logout");async function WXt(t,e,r,n){if(!e&&!r)throw new Error("Username and password required");if(!e)throw new Error("Username required");if(!r)throw new Error("Password required");await jje(t,e,r,n)}i(WXt,"loginStandard");async function YXt(t,e,r,n){ae("Retrieving registries data through AWS SDK...");let s=await $je(t,e,r);for(let o of s)await jje(o.registry,o.username,o.password,n)}i(YXt,"loginECR");async function jje(t,e,r,n){let s,o=rD(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),ae(`Logging into ${t} (scope ${n})...`)):ae(`Logging into ${t}...`),await ep.getExecOutput(["login","--password-stdin","--username",e,t],{ignoreReturnCode:!0,silent:!0,input:Buffer.from(r),env:s}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());ae("Login Succeeded!")})}i(jje,"loginExec");var Kje=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],Xje=/true/i.test(process.env.STATE_logout||"");function Zje(t){Jf("registries",JSON.stringify(t))}i(Zje,"setRegistries");function e5e(t){Jf("logout",t)}i(e5e,"setLogout");async function t5e(){let t=dNe();e5e(t.logout);let e=pNe(t);if(Zje(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await hre(e[0]);return}for(let r of e)await iS(`Login to ${r.registry}`,async()=>{await hre(r)})}i(t5e,"main");async function KXt(){if(Xje)for(let t of Kje)await iS(`Logout from ${t.registry}`,async()=>{await Jje(t.registry,t.configDir)})}i(KXt,"post");MSe(t5e,KXt);0&&(module.exports={main});
|
|
/*! Bundled license information:
|
|
|
|
undici/lib/web/fetch/body.js:
|
|
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
|
|
undici/lib/web/websocket/frame.js:
|
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
|
|
tmp/lib/tmp.js:
|
|
(*!
|
|
* Tmp
|
|
*
|
|
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
*
|
|
* MIT Licensed
|
|
*)
|
|
|
|
js-yaml/dist/js-yaml.mjs:
|
|
(*! js-yaml 5.5.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
|
|
@octokit/request-error/dist-src/index.js:
|
|
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
|
|
|
|
@octokit/request/dist-bundle/index.js:
|
|
(* v8 ignore next -- @preserve *)
|
|
(* v8 ignore else -- @preserve *)
|
|
*/
|
|
//# sourceMappingURL=index.cjs.map
|