Files
login-action/dist/index.cjs
2026-10-26 06:04:01 +00:00

286 lines
2.4 MiB
Generated

var sut=Object.create;var ex=Object.defineProperty;var out=Object.getOwnPropertyDescriptor;var iut=Object.getOwnPropertyNames;var aut=Object.getPrototypeOf,cut=Object.prototype.hasOwnProperty;var i=(t,e)=>ex(t,"name",{value:e,configurable:!0});var A=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),St=(t,e)=>{for(var r in e)ex(t,r,{get:e[r],enumerable:!0})},Ide=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of iut(e))!cut.call(t,s)&&s!==r&&ex(t,s,{get:()=>e[s],enumerable:!(n=out(e,s))||n.enumerable});return t};var R=(t,e,r)=>(r=t!=null?sut(aut(t)):{},Ide(e||!t||!t.__esModule?ex(r,"default",{value:t,enumerable:!0}):r,t)),Z=t=>Ide(ex({},"__esModule",{value:!0}),t);var _de=w(Vg=>{"use strict";var QAr=require("net"),mut=require("tls"),N3=require("http"),Rde=require("https"),hut=require("events"),DAr=require("assert"),Aut=require("util");Vg.httpOverHttp=gut;Vg.httpsOverHttp=yut;Vg.httpOverHttps=Eut;Vg.httpsOverHttps=Cut;function gut(t){var e=new zu(t);return e.request=N3.request,e}i(gut,"httpOverHttp");function yut(t){var e=new zu(t);return e.request=N3.request,e.createSocket=Nde,e.defaultPort=443,e}i(yut,"httpsOverHttp");function Eut(t){var e=new zu(t);return e.request=Rde.request,e}i(Eut,"httpOverHttps");function Cut(t){var e=new zu(t);return e.request=Rde.request,e.createSocket=Nde,e.defaultPort=443,e}i(Cut,"httpsOverHttps");function zu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||N3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,s,o,a){for(var c=Tde(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(zu,"TunnelingAgent");Aut.inherits(zu,hut.EventEmitter);zu.prototype.addRequest=i(function(e,r,n,s){var o=this,a=T3({request:e},o.options,Tde(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");zu.prototype.createSocket=i(function(e,r){var n=this,s={};n.sockets.push(s);var o=T3({},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")),sp("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){sp("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){sp("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 sp("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=f,r(f)}i(u,"onConnect");function d(p){a.removeAllListeners(),sp(`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");zu.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 Nde(t,e){var r=this;zu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),o=T3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=mut.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(Nde,"createSecureSocket");function Tde(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(Tde,"toOptions");function T3(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(T3,"mergeOptions");var sp;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?sp=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"):sp=i(function(){},"debug");Vg.debug=sp});var Wg=w((LAr,Pde)=>{Pde.exports=_de()});var er=w((MAr,vde)=>{vde.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 pt=w((FAr,npe)=>{"use strict";var Qde=Symbol.for("undici.error.UND_ERR"),tr=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[Qde]===!0}[Qde]=!0},Dde=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),_3=class extends tr{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[Dde]===!0}[Dde]=!0},kde=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),P3=class extends tr{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[kde]===!0}[kde]=!0},Ode=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),v3=class extends tr{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[Ode]===!0}[Ode]=!0},Lde=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Q3=class extends tr{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[Lde]===!0}[Lde]=!0},Mde=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),D3=class extends tr{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[Mde]===!0}[Mde]=!0},Fde=Symbol.for("undici.error.UND_ERR_INVALID_ARG"),k3=class extends tr{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[Fde]===!0}[Fde]=!0},Ude=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE"),O3=class extends tr{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[Ude]===!0}[Ude]=!0},$de=Symbol.for("undici.error.UND_ERR_ABORT"),r_=class extends tr{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[$de]===!0}[$de]=!0},qde=Symbol.for("undici.error.UND_ERR_ABORTED"),L3=class extends r_{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[qde]===!0}[qde]=!0},Hde=Symbol.for("undici.error.UND_ERR_INFO"),M3=class extends tr{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[Hde]===!0}[Hde]=!0},Gde=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"),F3=class extends tr{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[Gde]===!0}[Gde]=!0},zde=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH"),U3=class extends tr{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[zde]===!0}[zde]=!0},Vde=Symbol.for("undici.error.UND_ERR_DESTROYED"),$3=class extends tr{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[Vde]===!0}[Vde]=!0},Wde=Symbol.for("undici.error.UND_ERR_CLOSED"),q3=class extends tr{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[Wde]===!0}[Wde]=!0},jde=Symbol.for("undici.error.UND_ERR_SOCKET"),H3=class extends tr{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[jde]===!0}[jde]=!0},Jde=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED"),G3=class extends tr{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[Jde]===!0}[Jde]=!0},Yde=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM"),z3=class extends tr{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[Yde]===!0}[Yde]=!0},Kde=Symbol.for("undici.error.UND_ERR_HTTP_PARSER"),V3=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[Kde]===!0}[Kde]=!0},Xde=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE"),W3=class extends tr{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[Xde]===!0}[Xde]=!0},Zde=Symbol.for("undici.error.UND_ERR_REQ_RETRY"),j3=class extends tr{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[Zde]===!0}[Zde]=!0},epe=Symbol.for("undici.error.UND_ERR_RESPONSE"),J3=class extends tr{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[epe]===!0}[epe]=!0},tpe=Symbol.for("undici.error.UND_ERR_PRX_TLS"),Y3=class extends tr{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[tpe]===!0}[tpe]=!0},rpe=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"),K3=class extends tr{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[rpe]===!0}get[rpe](){return!0}};npe.exports={AbortError:r_,HTTPParserError:V3,UndiciError:tr,HeadersTimeoutError:P3,HeadersOverflowError:v3,BodyTimeoutError:Q3,RequestContentLengthMismatchError:F3,ConnectTimeoutError:_3,ResponseStatusCodeError:D3,InvalidArgumentError:k3,InvalidReturnValueError:O3,RequestAbortedError:L3,ClientDestroyedError:$3,ClientClosedError:q3,InformationalError:M3,SocketError:H3,NotSupportedError:G3,ResponseContentLengthMismatchError:U3,BalancedPoolMissingUpstreamError:z3,ResponseExceededMaxSizeError:W3,RequestRetryError:j3,ResponseError:J3,SecureProxyConnectionError:Y3,MessageSizeExceededError:K3}});var s_=w(($Ar,spe)=>{"use strict";var n_={},X3=["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<X3.length;++t){let e=X3[t],r=e.toLowerCase();n_[e]=n_[r]=r}Object.setPrototypeOf(n_,null);spe.exports={wellknownHeaderNames:X3,headerNameLowerCasedRecord:n_}});var cpe=w((qAr,ape)=>{"use strict";var{wellknownHeaderNames:ope,headerNameLowerCasedRecord:Iut}=s_(),Z3=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}},o_=class{static{i(this,"TernarySearchTree")}node=null;insert(e,r){this.node===null?this.node=new Z3(e,r,0):this.node.add(e,r)}lookup(e){return this.node?.search(e)?.value??null}},ipe=new o_;for(let t=0;t<ope.length;++t){let e=Iut[ope[t]];ipe.insert(e,e)}ape.exports={TernarySearchTree:o_,tree:ipe}});var Ye=w((GAr,xpe)=>{"use strict";var tx=require("node:assert"),{kDestroyed:upe,kBodyUsed:jg,kListeners:eV,kBody:lpe}=er(),{IncomingMessage:Sut}=require("node:http"),c_=require("node:stream"),wut=require("node:net"),{Blob:xut}=require("node:buffer"),but=require("node:util"),{stringify:But}=require("node:querystring"),{EventEmitter:Rut}=require("node:events"),{InvalidArgumentError:yn}=pt(),{headerNameLowerCasedRecord:Nut}=s_(),{tree:dpe}=cpe(),[Tut,_ut]=process.versions.node.split(".").map(t=>Number(t)),a_=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[lpe]=e,this[jg]=!1}async*[Symbol.asyncIterator](){tx(!this[jg],"disturbed"),this[jg]=!0,yield*this[lpe]}};function Put(t){return l_(t)?(Ape(t)===0&&t.on("data",function(){tx(!1)}),typeof t.readableDidRead!="boolean"&&(t[jg]=!1,Rut.prototype.on.call(t,"data",function(){this[jg]=!0})),t):t&&typeof t.pipeTo=="function"?new a_(t):t&&typeof t!="string"&&!ArrayBuffer.isView(t)&&hpe(t)?new a_(t):t}i(Put,"wrapRequestBody");function vut(){}i(vut,"nop");function l_(t){return t&&typeof t=="object"&&typeof t.pipe=="function"&&typeof t.on=="function"}i(l_,"isStream");function ppe(t){if(t===null)return!1;if(t instanceof xut)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(ppe,"isBlobLike");function Qut(t,e){if(t.includes("?")||t.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');let r=But(e);return r&&(t+="?"+r),t}i(Qut,"buildURL");function fpe(t){let e=parseInt(t,10);return e===Number(t)&&e>=0&&e<=65535}i(fpe,"isValidPort");function i_(t){return t!=null&&t[0]==="h"&&t[1]==="t"&&t[2]==="t"&&t[3]==="p"&&(t[4]===":"||t[4]==="s"&&t[5]===":")}i(i_,"isHttpOrHttpsPrefixed");function mpe(t){if(typeof t=="string"){if(t=new URL(t),!i_(t.origin||t.protocol))throw new yn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}if(!t||typeof t!="object")throw new yn("Invalid URL: The URL argument must be a non-null object.");if(!(t instanceof URL)){if(t.port!=null&&t.port!==""&&fpe(t.port)===!1)throw new yn("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 yn("Invalid URL path: the path must be a string or null/undefined.");if(t.pathname!=null&&typeof t.pathname!="string")throw new yn("Invalid URL pathname: the pathname must be a string or null/undefined.");if(t.hostname!=null&&typeof t.hostname!="string")throw new yn("Invalid URL hostname: the hostname must be a string or null/undefined.");if(t.origin!=null&&typeof t.origin!="string")throw new yn("Invalid URL origin: the origin must be a string or null/undefined.");if(!i_(t.origin||t.protocol))throw new yn("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(!i_(t.origin||t.protocol))throw new yn("Invalid URL protocol: the URL must start with `http:` or `https:`.");return t}i(mpe,"parseURL");function Dut(t){if(t=mpe(t),t.pathname!=="/"||t.search||t.hash)throw new yn("invalid url");return t}i(Dut,"parseOrigin");function kut(t){if(t[0]==="["){let r=t.indexOf("]");return tx(r!==-1),t.substring(1,r)}let e=t.indexOf(":");return e===-1?t:t.substring(0,e)}i(kut,"getHostname");function Out(t){if(!t)return null;tx(typeof t=="string");let e=kut(t);return wut.isIP(e)?"":e}i(Out,"getServerName");function Lut(t){return JSON.parse(JSON.stringify(t))}i(Lut,"deepClone");function Mut(t){return t!=null&&typeof t[Symbol.asyncIterator]=="function"}i(Mut,"isAsyncIterable");function hpe(t){return t!=null&&(typeof t[Symbol.iterator]=="function"||typeof t[Symbol.asyncIterator]=="function")}i(hpe,"isIterable");function Ape(t){if(t==null)return 0;if(l_(t)){let e=t._readableState;return e&&e.objectMode===!1&&e.ended===!0&&Number.isFinite(e.length)?e.length:null}else{if(ppe(t))return t.size!=null?t.size:null;if(Epe(t))return t.byteLength}return null}i(Ape,"bodyLength");function gpe(t){return t&&!!(t.destroyed||t[upe]||c_.isDestroyed?.(t))}i(gpe,"isDestroyed");function Fut(t,e){t==null||!l_(t)||gpe(t)||(typeof t.destroy=="function"?(Object.getPrototypeOf(t).constructor===Sut&&(t.socket=null),t.destroy(e)):e&&queueMicrotask(()=>{t.emit("error",e)}),t.destroyed!==!0&&(t[upe]=!0))}i(Fut,"destroy");var Uut=/timeout=(\d+)/;function $ut(t){let e=t.toString().match(Uut);return e?parseInt(e[1],10)*1e3:null}i($ut,"parseKeepAliveTimeout");function ype(t){return typeof t=="string"?Nut[t]??t.toLowerCase():dpe.lookup(t)??t.toString("latin1").toLowerCase()}i(ype,"headerNameToString");function qut(t){return dpe.lookup(t)??t.toString("latin1").toLowerCase()}i(qut,"bufferToLowerCasedHeaderName");function Hut(t,e){e===void 0&&(e={});for(let r=0;r<t.length;r+=2){let n=ype(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(Hut,"parseHeaders");function Gut(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(Gut,"parseRawHeaders");function Epe(t){return t instanceof Uint8Array||Buffer.isBuffer(t)}i(Epe,"isBuffer");function zut(t,e,r){if(!t||typeof t!="object")throw new yn("handler must be an object");if(typeof t.onConnect!="function")throw new yn("invalid onConnect method");if(typeof t.onError!="function")throw new yn("invalid onError method");if(typeof t.onBodySent!="function"&&t.onBodySent!==void 0)throw new yn("invalid onBodySent method");if(r||e==="CONNECT"){if(typeof t.onUpgrade!="function")throw new yn("invalid onUpgrade method")}else{if(typeof t.onHeaders!="function")throw new yn("invalid onHeaders method");if(typeof t.onData!="function")throw new yn("invalid onData method");if(typeof t.onComplete!="function")throw new yn("invalid onComplete method")}}i(zut,"validateHandler");function Vut(t){return!!(t&&(c_.isDisturbed(t)||t[jg]))}i(Vut,"isDisturbed");function Wut(t){return!!(t&&c_.isErrored(t))}i(Wut,"isErrored");function jut(t){return!!(t&&c_.isReadable(t))}i(jut,"isReadable");function Jut(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(Jut,"getSocketInfo");function Yut(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(Yut,"ReadableStreamFrom");function Kut(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(Kut,"isFormDataLike");function Xut(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(Xut,"addAbortListener");var Zut=typeof String.prototype.toWellFormed=="function",edt=typeof String.prototype.isWellFormed=="function";function Cpe(t){return Zut?`${t}`.toWellFormed():but.toUSVString(t)}i(Cpe,"toUSVString");function tdt(t){return edt?`${t}`.isWellFormed():Cpe(t)===`${t}`}i(tdt,"isUSVString");function Ipe(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(Ipe,"isTokenCharCode");function rdt(t){if(t.length===0)return!1;for(let e=0;e<t.length;++e)if(!Ipe(t.charCodeAt(e)))return!1;return!0}i(rdt,"isValidHTTPToken");var ndt=/[^\t\x20-\x7e\x80-\xff]/;function sdt(t){return!ndt.test(t)}i(sdt,"isValidHeaderValue");function odt(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(odt,"parseRangeHeader");function idt(t,e,r){return(t[eV]??=[]).push([e,r]),t.on(e,r),t}i(idt,"addListener");function adt(t){for(let[e,r]of t[eV]??[])t.removeListener(e,r);t[eV]=null}i(adt,"removeAllListeners");function cdt(t,e,r){try{e.onError(r),tx(e.aborted)}catch(n){t.emit("error",n)}}i(cdt,"errorRequest");var Spe=Object.create(null);Spe.enumerable=!0;var tV={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"},wpe={...tV,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(tV,null);Object.setPrototypeOf(wpe,null);xpe.exports={kEnumerableProperty:Spe,nop:vut,isDisturbed:Vut,isErrored:Wut,isReadable:jut,toUSVString:Cpe,isUSVString:tdt,isBlobLike:ppe,parseOrigin:Dut,parseURL:mpe,getServerName:Out,isStream:l_,isIterable:hpe,isAsyncIterable:Mut,isDestroyed:gpe,headerNameToString:ype,bufferToLowerCasedHeaderName:qut,addListener:idt,removeAllListeners:adt,errorRequest:cdt,parseRawHeaders:Gut,parseHeaders:Hut,parseKeepAliveTimeout:$ut,destroy:Fut,bodyLength:Ape,deepClone:Lut,ReadableStreamFrom:Yut,isBuffer:Epe,validateHandler:zut,getSocketInfo:Jut,isFormDataLike:Kut,buildURL:Qut,addAbortListener:Xut,isValidHTTPToken:rdt,isValidHeaderValue:sdt,isTokenCharCode:Ipe,parseRangeHeader:odt,normalizedMethodRecordsBase:tV,normalizedMethodRecords:wpe,isValidPort:fpe,isHttpOrHttpsPrefixed:i_,nodeMajor:Tut,nodeMinor:_ut,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:Put}});var Jg=w((VAr,Bpe)=>{"use strict";var Ct=require("node:diagnostics_channel"),nV=require("node:util"),u_=nV.debuglog("undici"),rV=nV.debuglog("fetch"),qm=nV.debuglog("websocket"),bpe=!1,ldt={beforeConnect:Ct.channel("undici:client:beforeConnect"),connected:Ct.channel("undici:client:connected"),connectError:Ct.channel("undici:client:connectError"),sendHeaders:Ct.channel("undici:client:sendHeaders"),create:Ct.channel("undici:request:create"),bodySent:Ct.channel("undici:request:bodySent"),headers:Ct.channel("undici:request:headers"),trailers:Ct.channel("undici:request:trailers"),error:Ct.channel("undici:request:error"),open:Ct.channel("undici:websocket:open"),close:Ct.channel("undici:websocket:close"),socketError:Ct.channel("undici:websocket:socket_error"),ping:Ct.channel("undici:websocket:ping"),pong:Ct.channel("undici:websocket:pong")};if(u_.enabled||rV.enabled){let t=rV.enabled?rV:u_;Ct.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)}),Ct.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)}),Ct.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)}),Ct.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)}),Ct.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)}),Ct.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)}),Ct.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)}),bpe=!0}if(qm.enabled){if(!bpe){let t=u_.enabled?u_:qm;Ct.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)}),Ct.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)}),Ct.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)}),Ct.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)})}Ct.channel("undici:websocket:open").subscribe(t=>{let{address:{address:e,port:r}}=t;qm("connection opened %s%s",e,r?`:${r}`:"")}),Ct.channel("undici:websocket:close").subscribe(t=>{let{websocket:e,code:r,reason:n}=t;qm("closed connection to %s - %s %s",e.url,r,n)}),Ct.channel("undici:websocket:socket_error").subscribe(t=>{qm("connection errored - %s",t.message)}),Ct.channel("undici:websocket:ping").subscribe(t=>{qm("ping received")}),Ct.channel("undici:websocket:pong").subscribe(t=>{qm("pong received")})}Bpe.exports={channels:ldt}});var _pe=w((WAr,Tpe)=>{"use strict";var{InvalidArgumentError:_t,NotSupportedError:udt}=pt(),qo=require("node:assert"),{isValidHTTPToken:Npe,isValidHeaderValue:rx,isStream:ddt,destroy:pdt,isBuffer:fdt,isFormDataLike:mdt,isIterable:hdt,isBlobLike:Adt,buildURL:gdt,validateHandler:ydt,getServerName:Edt,normalizedMethodRecords:Cdt}=Ye(),{channels:Mn}=Jg(),{headerNameLowerCasedRecord:Rpe}=s_(),Idt=/[^\u0021-\u00ff]/,_i=Symbol("handler"),sV=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:g},y){if(typeof r!="string")throw new _t("path must be a string");if(r[0]!=="/"&&!(r.startsWith("http://")||r.startsWith("https://"))&&n!=="CONNECT")throw new _t("path must be an absolute URL or start with a slash");if(Idt.test(r))throw new _t("invalid request path");if(typeof n!="string")throw new _t("method must be a string");if(Cdt[n]===void 0&&!Npe(n))throw new _t("invalid request method");if(u&&typeof u!="string")throw new _t("upgrade must be a string");if(u&&!rx(u))throw new _t("invalid upgrade header");if(d!=null&&(!Number.isFinite(d)||d<0))throw new _t("invalid headersTimeout");if(p!=null&&(!Number.isFinite(p)||p<0))throw new _t("invalid bodyTimeout");if(f!=null&&typeof f!="boolean")throw new _t("invalid reset");if(h!=null&&typeof h!="boolean")throw new _t("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(ddt(s)){this.body=s;let E=this.body._readableState;(!E||!E.autoDestroy)&&(this.endHandler=i(function(){pdt(this)},"autoDestroy"),this.body.on("end",this.endHandler)),this.errorHandler=C=>{this.abort?this.abort(C):this.error=C},this.body.on("error",this.errorHandler)}else if(fdt(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(mdt(s)||hdt(s)||Adt(s))this.body=s;else throw new _t("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?gdt(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 _t("headers array must be even");for(let E=0;E<o.length;E+=2)d_(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 _t("headers must be in key-value pair format");d_(this,E[0],E[1])}else{let E=Object.keys(o);for(let C=0;C<E.length;++C)d_(this,E[C],o[E[C]])}else if(o!=null)throw new _t("headers must be an object or an array");ydt(y,n,u),this.servername=g||Edt(this.host),this[_i]=y,Mn.create.hasSubscribers&&Mn.create.publish({request:this})}onBodySent(e){if(this[_i].onBodySent)try{return this[_i].onBodySent(e)}catch(r){this.abort(r)}}onRequestSent(){if(Mn.bodySent.hasSubscribers&&Mn.bodySent.publish({request:this}),this[_i].onRequestSent)try{return this[_i].onRequestSent()}catch(e){this.abort(e)}}onConnect(e){if(qo(!this.aborted),qo(!this.completed),this.error)e(this.error);else return this.abort=e,this[_i].onConnect(e)}onResponseStarted(){return this[_i].onResponseStarted?.()}onHeaders(e,r,n,s){qo(!this.aborted),qo(!this.completed),Mn.headers.hasSubscribers&&Mn.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:s}});try{return this[_i].onHeaders(e,r,n,s)}catch(o){this.abort(o)}}onData(e){qo(!this.aborted),qo(!this.completed);try{return this[_i].onData(e)}catch(r){return this.abort(r),!1}}onUpgrade(e,r,n,s=""){this.onFinally(),qo(!this.aborted),qo(!this.completed),e!==null&&this.#e(e,r,s);let o=this[_i].onUpgrade(e,r,n);return this.aborted||(this.completed=!0,e!==null&&this.#t()),o}onUpgradeResponse(e,r,n,s=""){qo(!this.aborted),qo(this.completed),Mn.headers.hasSubscribers&&this.#e(e,n(r),s),this.#t()}onUpgradeError(e){qo(!this.aborted),qo(this.completed),Mn.error.hasSubscribers&&Mn.error.publish({request:this,error:e})}#e(e,r,n){Mn.headers.hasSubscribers&&Mn.headers.publish({request:this,response:{statusCode:e,headers:r,statusText:n}})}#t(){Mn.trailers.hasSubscribers&&Mn.trailers.publish({request:this,trailers:[]})}onComplete(e){this.onFinally(),qo(!this.aborted),this.completed=!0,Mn.trailers.hasSubscribers&&Mn.trailers.publish({request:this,trailers:e});try{return this[_i].onComplete(e)}catch(r){this.onError(r)}}onError(e){if(this.onFinally(),Mn.error.hasSubscribers&&Mn.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[_i].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 d_(this,e,r),this}};function d_(t,e,r){if(r&&typeof r=="object"&&!Array.isArray(r))throw new _t(`invalid ${e} header`);if(r===void 0)return;let n=Rpe[e];if(n===void 0&&(n=e.toLowerCase(),Rpe[n]===void 0&&!Npe(n)))throw new _t("invalid header key");if(Array.isArray(r)){let s=[];for(let o=0;o<r.length;o++)if(typeof r[o]=="string"){if(!rx(r[o]))throw new _t(`invalid ${e} header`);s.push(r[o])}else if(r[o]===null)s.push("");else{if(typeof r[o]=="object")throw new _t(`invalid ${e} header`);{let a=`${r[o]}`;if(!rx(a))throw new _t(`invalid ${e} header`);s.push(a)}}r=s}else if(typeof r=="string"){if(!rx(r))throw new _t(`invalid ${e} header`)}else if(r===null)r="";else if(r=`${r}`,!rx(r))throw new _t(`invalid ${e} header`);if(n==="host"){if(t.host!==null)throw new _t("duplicate host header");if(typeof r!="string")throw new _t("invalid host header");t.host=r}else if(n==="content-length"){if(t.contentLength!==null)throw new _t("duplicate content-length header");if(t.contentLength=parseInt(r,10),!Number.isFinite(t.contentLength))throw new _t("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 _t(`invalid ${n} header`);if(n==="connection"){let s=typeof r=="string"?r.toLowerCase():null;if(s!=="close"&&s!=="keep-alive")throw new _t("invalid connection header");s==="close"&&(t.reset=!0)}else{if(n==="expect")throw new udt("expect header not supported");t.headers.push(e,r)}}}i(d_,"processHeader");Tpe.exports=sV});var nx=w((JAr,Ppe)=>{"use strict";var Sdt=require("node:events"),p_=class extends Sdt{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 oV(this,n)}},oV=class extends p_{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)}};Ppe.exports=p_});var Zg=w((KAr,Qpe)=>{"use strict";var wdt=require("node:buffer"),xdt=nx(),{ClientDestroyedError:iV,ClientClosedError:bdt,InvalidArgumentError:Yg}=pt(),{kDestroy:Bdt,kClose:Rdt,kClosed:sx,kDestroyed:Kg,kDispatch:aV,kInterceptors:Hm}=er(),Vu=Symbol("onDestroyed"),Xg=Symbol("onClosed"),f_=Symbol("Intercepted Dispatch"),cV=Symbol("webSocketOptions"),vpe=Symbol("eventSourceOptions"),lV=class extends xdt{static{i(this,"DispatcherBase")}constructor(e){super(),this[Kg]=!1,this[Vu]=null,this[sx]=!1,this[Xg]=[],this[cV]=e?.webSocket??{},this[vpe]=e?.eventSource??{}}get webSocketOptions(){return{maxFragments:this[cV].maxFragments??131072,maxPayloadSize:this[cV].maxPayloadSize??128*1024*1024}}get eventSourceOptions(){return{maxEventSize:this[vpe].maxEventSize??wdt.kStringMaxLength}}get destroyed(){return this[Kg]}get closed(){return this[sx]}get interceptors(){return this[Hm]}set interceptors(e){if(e){for(let r=e.length-1;r>=0;r--)if(typeof this[Hm][r]!="function")throw new Yg("interceptor must be an function")}this[Hm]=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 Yg("invalid callback");if(this[Kg]){queueMicrotask(()=>e(new iV,null));return}if(this[sx]){this[Xg]?this[Xg].push(e):queueMicrotask(()=>e(null,null));return}this[sx]=!0,this[Xg].push(e);let r=i(()=>{let n=this[Xg];this[Xg]=null;for(let s=0;s<n.length;s++)n[s](null,null)},"onClosed");this[Rdt]().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 Yg("invalid callback");if(this[Kg]){this[Vu]?this[Vu].push(r):queueMicrotask(()=>r(null,null));return}e||(e=new iV),this[Kg]=!0,this[Vu]=this[Vu]||[],this[Vu].push(r);let n=i(()=>{let s=this[Vu];this[Vu]=null;for(let o=0;o<s.length;o++)s[o](null,null)},"onDestroyed");this[Bdt](e).then(()=>{queueMicrotask(n)})}[f_](e,r){if(!this[Hm]||this[Hm].length===0)return this[f_]=this[aV],this[aV](e,r);let n=this[aV].bind(this);for(let s=this[Hm].length-1;s>=0;s--)n=this[Hm][s](n);return this[f_]=n,n(e,r)}dispatch(e,r){if(!r||typeof r!="object")throw new Yg("handler must be an object");try{if(!e||typeof e!="object")throw new Yg("opts must be an object.");if(this[Kg]||this[Vu])throw new iV;if(this[sx])throw new bdt;return this[f_](e,r)}catch(n){if(typeof r.onError!="function")throw new Yg("invalid onError method");return r.onError(n),!1}}};Qpe.exports=lV});var AV=w((ZAr,Lpe)=>{"use strict";var ey=0,uV=1e3,dV=(uV>>1)-1,Wu,pV=Symbol("kFastTimer"),ju=[],fV=-2,mV=-1,kpe=0,Dpe=1;function hV(){ey+=dV;let t=0,e=ju.length;for(;t<e;){let r=ju[t];r._state===kpe?(r._idleStart=ey-dV,r._state=Dpe):r._state===Dpe&&ey>=r._idleStart+r._idleTimeout&&(r._state=mV,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===mV?(r._state=fV,--e!==0&&(ju[t]=ju[e])):++t}ju.length=e,ju.length!==0&&Ope()}i(hV,"onTick");function Ope(){Wu?Wu.refresh():(clearTimeout(Wu),Wu=setTimeout(hV,dV),Wu.unref&&Wu.unref())}i(Ope,"refreshTimeout");var m_=class{static{i(this,"FastTimer")}[pV]=!0;_state=fV;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,r,n){this._onTimeout=e,this._idleTimeout=r,this._timerArg=n,this.refresh()}refresh(){this._state===fV&&ju.push(this),(!Wu||ju.length===1)&&Ope(),this._state=kpe}clear(){this._state=mV,this._idleStart=-1}};Lpe.exports={setTimeout(t,e,r){return e<=uV?setTimeout(t,e,r):new m_(t,e,r)},clearTimeout(t){t[pV]?t.clear():clearTimeout(t)},setFastTimeout(t,e,r){return new m_(t,e,r)},clearFastTimeout(t){t.clear()},now(){return ey},tick(t=0){ey+=t-uV+1,hV(),hV()},reset(){ey=0,ju.length=0,clearTimeout(Wu),Wu=null},kFastTimer:pV}});var ox=w((ngr,qpe)=>{"use strict";var Ndt=require("node:net"),Mpe=require("node:assert"),$pe=Ye(),{InvalidArgumentError:Tdt,ConnectTimeoutError:_dt}=pt(),h_=AV();function Fpe(){}i(Fpe,"noop");var gV,yV;global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?yV=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))}}:yV=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 Pdt({allowH2:t,maxCachedSessions:e,socketPath:r,timeout:n,session:s,...o}){if(e!=null&&(!Number.isInteger(e)||e<0))throw new Tdt("maxCachedSessions must be a positive integer or zero");let a={path:r,...o},c=new yV(e??100);return n=n??1e4,t=t??!1,i(function({hostname:u,host:d,protocol:p,port:f,servername:m,localAddress:h,httpSocket:g},y){let E;if(p==="https:"){gV||(gV=require("node:tls")),m=m||a.servername||$pe.getServerName(d)||null;let S=m||u;Mpe(S);let b=s||c.get(S)||null;f=f||443,E=gV.connect({highWaterMark:16384,...a,servername:m,session:b,localAddress:h,ALPNProtocols:t?["http/1.1","h2"]:["http/1.1"],socket:g,port:f,host:u}),E.on("session",function(N){c.set(S,N)})}else Mpe(!g,"httpSocket can only be sent on TLS update"),f=f||80,E=Ndt.connect({highWaterMark:64*1024,...a,localAddress:h,port:f,host:u});if(a.keepAlive==null||a.keepAlive){let S=a.keepAliveInitialDelay===void 0?6e4:a.keepAliveInitialDelay;E.setKeepAlive(!0,S)}let C=vdt(new WeakRef(E),{timeout:n,hostname:u,port:f});return E.setNoDelay(!0).once(p==="https:"?"secureConnect":"connect",function(){if(queueMicrotask(C),y){let S=y;y=null,S(null,this)}}).on("error",function(S){if(queueMicrotask(C),y){let b=y;y=null,b(S)}}),E},"connect")}i(Pdt,"buildConnector");var vdt=process.platform==="win32"?(t,e)=>{if(!e.timeout)return Fpe;let r=null,n=null,s=h_.setFastTimeout(()=>{r=setImmediate(()=>{n=setImmediate(()=>Upe(t.deref(),e))})},e.timeout);return()=>{h_.clearFastTimeout(s),clearImmediate(r),clearImmediate(n)}}:(t,e)=>{if(!e.timeout)return Fpe;let r=null,n=h_.setFastTimeout(()=>{r=setImmediate(()=>{Upe(t.deref(),e)})},e.timeout);return()=>{h_.clearFastTimeout(n),clearImmediate(r)}};function Upe(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)`,$pe.destroy(t,new _dt(r))}i(Upe,"onConnectTimeout");qpe.exports=Pdt});var Hpe=w(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.enumToMap=void 0;function Qdt(t){let e={};return Object.keys(t).forEach(r=>{let n=t[r];typeof n=="number"&&(e[r]=n)}),e}i(Qdt,"enumToMap");A_.enumToMap=Qdt});var Gpe=w(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 Ddt=Hpe(),kdt;(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"})(kdt=k.ERROR||(k.ERROR={}));var Odt;(function(t){t[t.BOTH=0]="BOTH",t[t.REQUEST=1]="REQUEST",t[t.RESPONSE=2]="RESPONSE"})(Odt=k.TYPE||(k.TYPE={}));var Ldt;(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"})(Ldt=k.FLAGS||(k.FLAGS={}));var Mdt;(function(t){t[t.HEADERS=1]="HEADERS",t[t.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",t[t.KEEP_ALIVE=4]="KEEP_ALIVE"})(Mdt=k.LENIENT_FLAGS||(k.LENIENT_FLAGS={}));var me;(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"})(me=k.METHODS||(k.METHODS={}));k.METHODS_HTTP=[me.DELETE,me.GET,me.HEAD,me.POST,me.PUT,me.CONNECT,me.OPTIONS,me.TRACE,me.COPY,me.LOCK,me.MKCOL,me.MOVE,me.PROPFIND,me.PROPPATCH,me.SEARCH,me.UNLOCK,me.BIND,me.REBIND,me.UNBIND,me.ACL,me.REPORT,me.MKACTIVITY,me.CHECKOUT,me.MERGE,me["M-SEARCH"],me.NOTIFY,me.SUBSCRIBE,me.UNSUBSCRIBE,me.PATCH,me.PURGE,me.MKCALENDAR,me.LINK,me.UNLINK,me.PRI,me.SOURCE];k.METHODS_ICE=[me.SOURCE];k.METHODS_RTSP=[me.OPTIONS,me.DESCRIBE,me.ANNOUNCE,me.SETUP,me.PLAY,me.PAUSE,me.TEARDOWN,me.GET_PARAMETER,me.SET_PARAMETER,me.REDIRECT,me.RECORD,me.FLUSH,me.GET,me.POST];k.METHOD_MAP=Ddt.enumToMap(me);k.H_METHOD_MAP={};Object.keys(k.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(k.H_METHOD_MAP[t]=k.METHOD_MAP[t])});var Fdt;(function(t){t[t.SAFE=0]="SAFE",t[t.SAFE_WITH_CB=1]="SAFE_WITH_CB",t[t.UNSAFE=2]="UNSAFE"})(Fdt=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 ty;(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"})(ty=k.HEADER_STATE||(k.HEADER_STATE={}));k.SPECIAL_HEADERS={connection:ty.CONNECTION,"content-length":ty.CONTENT_LENGTH,"proxy-connection":ty.CONNECTION,"transfer-encoding":ty.TRANSFER_ENCODING,upgrade:ty.UPGRADE}});var EV=w((cgr,zpe)=>{"use strict";var{Buffer:Udt}=require("node:buffer");zpe.exports=Udt.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0cF9yZXN1bWVfYWZ0ZXJfdXBncmFkZQAZEGxsaHR0cF9nZXRfZXJybm8AGhdsbGh0dHBfZ2V0X2Vycm9yX3JlYXNvbgAbF2xsaHR0cF9zZXRfZXJyb3JfcmVhc29uABwUbGxodHRwX2dldF9lcnJvcl9wb3MAHRFsbGh0dHBfZXJybm9fbmFtZQAeEmxsaHR0cF9tZXRob2RfbmFtZQAfEmxsaHR0cF9zdGF0dXNfbmFtZQAgGmxsaHR0cF9zZXRfbGVuaWVudF9oZWFkZXJzACEhbGxodHRwX3NldF9sZW5pZW50X2NodW5rZWRfbGVuZ3RoACIdbGxodHRwX3NldF9sZW5pZW50X2tlZXBfYWxpdmUAIyRsbGh0dHBfc2V0X2xlbmllbnRfdHJhbnNmZXJfZW5jb2RpbmcAJBhsbGh0dHBfbWVzc2FnZV9uZWVkc19lb2YALgkXAQBBAQsRAQIDBAUKBgcrLSwqKSglJyYK07MCLBYAQYjQACgCAARAAAtBiNAAQQE2AgALFAAgABAwIAAgAjYCOCAAIAE6ACgLFAAgACAALwEyIAAtAC4gABAvEAALHgEBf0HAABAyIgEQMCABQYAINgI4IAEgADoAKCABC48MAQd/AkAgAEUNACAAQQhrIgEgAEEEaygCACIAQXhxIgRqIQUCQCAAQQFxDQAgAEEDcUUNASABIAEoAgAiAGsiAUGc0AAoAgBJDQEgACAEaiEEAkACQEGg0AAoAgAgAUcEQCAAQf8BTQRAIABBA3YhAyABKAIIIgAgASgCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBQsgAiAANgIIIAAgAjYCDAwECyABKAIYIQYgASABKAIMIgBHBEAgACABKAIIIgI2AgggAiAANgIMDAMLIAFBFGoiAygCACICRQRAIAEoAhAiAkUNAiABQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFKAIEIgBBA3FBA0cNAiAFIABBfnE2AgRBlNAAIAQ2AgAgBSAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCABKAIcIgJBAnRBvNIAaiIDKAIAIAFGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgAUYbaiAANgIAIABFDQELIAAgBjYCGCABKAIQIgIEQCAAIAI2AhAgAiAANgIYCyABQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAFTw0AIAUoAgQiAEEBcUUNAAJAAkACQAJAIABBAnFFBEBBpNAAKAIAIAVGBEBBpNAAIAE2AgBBmNAAQZjQACgCACAEaiIANgIAIAEgAEEBcjYCBCABQaDQACgCAEcNBkGU0ABBADYCAEGg0ABBADYCAAwGC0Gg0AAoAgAgBUYEQEGg0AAgATYCAEGU0ABBlNAAKAIAIARqIgA2AgAgASAAQQFyNgIEIAAgAWogADYCAAwGCyAAQXhxIARqIQQgAEH/AU0EQCAAQQN2IQMgBSgCCCIAIAUoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAULIAIgADYCCCAAIAI2AgwMBAsgBSgCGCEGIAUgBSgCDCIARwRAQZzQACgCABogACAFKAIIIgI2AgggAiAANgIMDAMLIAVBFGoiAygCACICRQRAIAUoAhAiAkUNAiAFQRBqIQMLA0AgAyEHIAIiAEEUaiIDKAIAIgINACAAQRBqIQMgACgCECICDQALIAdBADYCAAwCCyAFIABBfnE2AgQgASAEaiAENgIAIAEgBEEBcjYCBAwDC0EAIQALIAZFDQACQCAFKAIcIgJBAnRBvNIAaiIDKAIAIAVGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiAANgIAIABFDQELIAAgBjYCGCAFKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAFQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgBDxDXARES1gETFBUWFxgZGhvgAd8BHB0e1QEfICEiIyQl1AEmJygpKiss0wHSAS0u0QHQAS8wMTIzNDU2Nzg5Ojs8PT4/QEFCQ0RFRtsBR0hJSs8BzgFLzQFMzAFNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AAYEBggGDAYQBhQGGAYcBiAGJAYoBiwGMAY0BjgGPAZABkQGSAZMBlAGVAZYBlwGYAZkBmgGbAZwBnQGeAZ8BoAGhAaIBowGkAaUBpgGnAagBqQGqAasBrAGtAa4BrwGwAbEBsgGzAbQBtQG2AbcBywHKAbgByQG5AcgBugG7AbwBvQG+Ab8BwAHBAcIBwwHEAcUBxgEA3AELQQAMxgELQQ4MxQELQQ0MxAELQQ8MwwELQRAMwgELQRMMwQELQRQMwAELQRUMvwELQRYMvgELQRgMvQELQRkMvAELQRoMuwELQRsMugELQRwMuQELQR0MuAELQQgMtwELQR4MtgELQSAMtQELQR8MtAELQQcMswELQSEMsgELQSIMsQELQSMMsAELQSQMrwELQRIMrgELQREMrQELQSUMrAELQSYMqwELQScMqgELQSgMqQELQcMBDKgBC0EqDKcBC0ErDKYBC0EsDKUBC0EtDKQBC0EuDKMBC0EvDKIBC0HEAQyhAQtBMAygAQtBNAyfAQtBDAyeAQtBMQydAQtBMgycAQtBMwybAQtBOQyaAQtBNQyZAQtBxQEMmAELQQsMlwELQToMlgELQTYMlQELQQoMlAELQTcMkwELQTgMkgELQTwMkQELQTsMkAELQT0MjwELQQkMjgELQSkMjQELQT4MjAELQT8MiwELQcAADIoBC0HBAAyJAQtBwgAMiAELQcMADIcBC0HEAAyGAQtBxQAMhQELQcYADIQBC0EXDIMBC0HHAAyCAQtByAAMgQELQckADIABC0HKAAx/C0HLAAx+C0HNAAx9C0HMAAx8C0HOAAx7C0HPAAx6C0HQAAx5C0HRAAx4C0HSAAx3C0HTAAx2C0HUAAx1C0HWAAx0C0HVAAxzC0EGDHILQdcADHELQQUMcAtB2AAMbwtBBAxuC0HZAAxtC0HaAAxsC0HbAAxrC0HcAAxqC0EDDGkLQd0ADGgLQd4ADGcLQd8ADGYLQeEADGULQeAADGQLQeIADGMLQeMADGILQQIMYQtB5AAMYAtB5QAMXwtB5gAMXgtB5wAMXQtB6AAMXAtB6QAMWwtB6gAMWgtB6wAMWQtB7AAMWAtB7QAMVwtB7gAMVgtB7wAMVQtB8AAMVAtB8QAMUwtB8gAMUgtB8wAMUQtB9AAMUAtB9QAMTwtB9gAMTgtB9wAMTQtB+AAMTAtB+QAMSwtB+gAMSgtB+wAMSQtB/AAMSAtB/QAMRwtB/gAMRgtB/wAMRQtBgAEMRAtBgQEMQwtBggEMQgtBgwEMQQtBhAEMQAtBhQEMPwtBhgEMPgtBhwEMPQtBiAEMPAtBiQEMOwtBigEMOgtBiwEMOQtBjAEMOAtBjQEMNwtBjgEMNgtBjwEMNQtBkAEMNAtBkQEMMwtBkgEMMgtBkwEMMQtBlAEMMAtBlQEMLwtBlgEMLgtBlwEMLQtBmAEMLAtBmQEMKwtBmgEMKgtBmwEMKQtBnAEMKAtBnQEMJwtBngEMJgtBnwEMJQtBoAEMJAtBoQEMIwtBogEMIgtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtXACAAQRhqQgA3AwAgAEIANwMAIABBOGpCADcDACAAQTBqQgA3AwAgAEEoakIANwMAIABBIGpCADcDACAAQRBqQgA3AwAgAEEIakIANwMAIABB3QE2AhwLBgAgABAyC5otAQt/IwBBEGsiCiQAQaTQACgCACIJRQRAQeTTACgCACIFRQRAQfDTAEJ/NwIAQejTAEKAgISAgIDAADcCAEHk0wAgCkEIakFwcUHYqtWqBXMiBTYCAEH40wBBADYCAEHI0wBBADYCAAtBzNMAQYDUBDYCAEGc0ABBgNQENgIAQbDQACAFNgIAQazQAEF/NgIAQdDTAEGArAM2AgADQCABQcjQAGogAUG80ABqIgI2AgAgAiABQbTQAGoiAzYCACABQcDQAGogAzYCACABQdDQAGogAUHE0ABqIgM2AgAgAyACNgIAIAFB2NAAaiABQczQAGoiAjYCACACIAM2AgAgAUHU0ABqIAI2AgAgAUEgaiIBQYACRw0AC0GM1ARBwasDNgIAQajQAEH00wAoAgA2AgBBmNAAQcCrAzYCAEGk0ABBiNQENgIAQcz/B0E4NgIAQYjUBCEJCwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB7AFNBEBBjNAAKAIAIgZBECAAQRNqQXBxIABBC0kbIgRBA3YiAHYiAUEDcQRAAkAgAUEBcSAAckEBcyICQQN0IgBBtNAAaiIBIABBvNAAaigCACIAKAIIIgNGBEBBjNAAIAZBfiACd3E2AgAMAQsgASADNgIIIAMgATYCDAsgAEEIaiEBIAAgAkEDdCICQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDBELQZTQACgCACIIIARPDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxaCIAQQN0IgJBtNAAaiIBIAJBvNAAaigCACICKAIIIgNGBEBBjNAAIAZBfiAAd3EiBjYCAAwBCyABIAM2AgggAyABNgIMCyACIARBA3I2AgQgAEEDdCIAIARrIQUgACACaiAFNgIAIAIgBGoiBCAFQQFyNgIEIAgEQCAIQXhxQbTQAGohAEGg0AAoAgAhAwJ/QQEgCEEDdnQiASAGcUUEQEGM0AAgASAGcjYCACAADAELIAAoAggLIgEgAzYCDCAAIAM2AgggAyAANgIMIAMgATYCCAsgAkEIaiEBQaDQACAENgIAQZTQACAFNgIADBELQZDQACgCACILRQ0BIAtoQQJ0QbzSAGooAgAiACgCBEF4cSAEayEFIAAhAgNAAkAgAigCECIBRQRAIAJBFGooAgAiAUUNAQsgASgCBEF4cSAEayIDIAVJIQIgAyAFIAIbIQUgASAAIAIbIQAgASECDAELCyAAKAIYIQkgACgCDCIDIABHBEBBnNAAKAIAGiADIAAoAggiATYCCCABIAM2AgwMEAsgAEEUaiICKAIAIgFFBEAgACgCECIBRQ0DIABBEGohAgsDQCACIQcgASIDQRRqIgIoAgAiAQ0AIANBEGohAiADKAIQIgENAAsgB0EANgIADA8LQX8hBCAAQb9/Sw0AIABBE2oiAUFwcSEEQZDQACgCACIIRQ0AQQAgBGshBQJAAkACQAJ/QQAgBEGAAkkNABpBHyAEQf///wdLDQAaIARBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgZBAnRBvNIAaigCACICRQRAQQAhAUEAIQMMAQtBACEBIARBGSAGQQF2a0EAIAZBH0cbdCEAQQAhAwNAAkAgAigCBEF4cSAEayIHIAVPDQAgAiEDIAciBQ0AQQAhBSACIQEMAwsgASACQRRqKAIAIgcgByACIABBHXZBBHFqQRBqKAIAIgJGGyABIAcbIQEgAEEBdCEAIAINAAsLIAEgA3JFBEBBACEDQQIgBnQiAEEAIABrciAIcSIARQ0DIABoQQJ0QbzSAGooAgAhAQsgAUUNAQsDQCABKAIEQXhxIARrIgIgBUkhACACIAUgABshBSABIAMgABshAyABKAIQIgAEfyAABSABQRRqKAIACyIBDQALCyADRQ0AIAVBlNAAKAIAIARrTw0AIAMoAhghByADIAMoAgwiAEcEQEGc0AAoAgAaIAAgAygCCCIBNgIIIAEgADYCDAwOCyADQRRqIgIoAgAiAUUEQCADKAIQIgFFDQMgA0EQaiECCwNAIAIhBiABIgBBFGoiAigCACIBDQAgAEEQaiECIAAoAhAiAQ0ACyAGQQA2AgAMDQtBlNAAKAIAIgMgBE8EQEGg0AAoAgAhAQJAIAMgBGsiAkEQTwRAIAEgBGoiACACQQFyNgIEIAEgA2ogAjYCACABIARBA3I2AgQMAQsgASADQQNyNgIEIAEgA2oiACAAKAIEQQFyNgIEQQAhAEEAIQILQZTQACACNgIAQaDQACAANgIAIAFBCGohAQwPC0GY0AAoAgAiAyAESwRAIAQgCWoiACADIARrIgFBAXI2AgRBpNAAIAA2AgBBmNAAIAE2AgAgCSAEQQNyNgIEIAlBCGohAQwPC0EAIQEgBAJ/QeTTACgCAARAQezTACgCAAwBC0Hw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBDGpBcHFB2KrVqgVzNgIAQfjTAEEANgIAQcjTAEEANgIAQYCABAsiACAEQccAaiIFaiIGQQAgAGsiB3EiAk8EQEH80wBBMDYCAAwPCwJAQcTTACgCACIBRQ0AQbzTACgCACIIIAJqIQAgACABTSAAIAhLcQ0AQQAhAUH80wBBMDYCAAwPC0HI0wAtAABBBHENBAJAAkAgCQRAQczTACEBA0AgASgCACIAIAlNBEAgACABKAIEaiAJSw0DCyABKAIIIgENAAsLQQAQMyIAQX9GDQUgAiEGQejTACgCACIBQQFrIgMgAHEEQCACIABrIAAgA2pBACABa3FqIQYLIAQgBk8NBSAGQf7///8HSw0FQcTTACgCACIDBEBBvNMAKAIAIgcgBmohASABIAdNDQYgASADSw0GCyAGEDMiASAARw0BDAcLIAYgA2sgB3EiBkH+////B0sNBCAGEDMhACAAIAEoAgAgASgCBGpGDQMgACEBCwJAIAYgBEHIAGpPDQAgAUF/Rg0AQezTACgCACIAIAUgBmtqQQAgAGtxIgBB/v///wdLBEAgASEADAcLIAAQM0F/RwRAIAAgBmohBiABIQAMBwtBACAGaxAzGgwECyABIgBBf0cNBQwDC0EAIQMMDAtBACEADAoLIABBf0cNAgtByNMAQcjTACgCAEEEcjYCAAsgAkH+////B0sNASACEDMhAEEAEDMhASAAQX9GDQEgAUF/Rg0BIAAgAU8NASABIABrIgYgBEE4ak0NAQtBvNMAQbzTACgCACAGaiIBNgIAQcDTACgCACABSQRAQcDTACABNgIACwJAAkACQEGk0AAoAgAiAgRAQczTACEBA0AgACABKAIAIgMgASgCBCIFakYNAiABKAIIIgENAAsMAgtBnNAAKAIAIgFBAEcgACABT3FFBEBBnNAAIAA2AgALQQAhAUHQ0wAgBjYCAEHM0wAgADYCAEGs0ABBfzYCAEGw0ABB5NMAKAIANgIAQdjTAEEANgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBeCAAa0EPcSIBIABqIgIgBkE4ayIDIAFrIgFBAXI2AgRBqNAAQfTTACgCADYCAEGY0AAgATYCAEGk0AAgAjYCACAAIANqQTg2AgQMAgsgACACTQ0AIAIgA0kNACABKAIMQQhxDQBBeCACa0EPcSIAIAJqIgNBmNAAKAIAIAZqIgcgAGsiAEEBcjYCBCABIAUgBmo2AgRBqNAAQfTTACgCADYCAEGY0AAgADYCAEGk0AAgAzYCACACIAdqQTg2AgQMAQsgAEGc0AAoAgBJBEBBnNAAIAA2AgALIAAgBmohA0HM0wAhAQJAAkACQANAIAMgASgCAEcEQCABKAIIIgENAQwCCwsgAS0ADEEIcUUNAQtBzNMAIQEDQCABKAIAIgMgAk0EQCADIAEoAgRqIgUgAksNAwsgASgCCCEBDAALAAsgASAANgIAIAEgASgCBCAGajYCBCAAQXggAGtBD3FqIgkgBEEDcjYCBCADQXggA2tBD3FqIgYgBCAJaiIEayEBIAIgBkYEQEGk0AAgBDYCAEGY0ABBmNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEDAgLQaDQACgCACAGRgRAQaDQACAENgIAQZTQAEGU0AAoAgAgAWoiADYCACAEIABBAXI2AgQgACAEaiAANgIADAgLIAYoAgQiBUEDcUEBRw0GIAVBeHEhCCAFQf8BTQRAIAVBA3YhAyAGKAIIIgAgBigCDCICRgRAQYzQAEGM0AAoAgBBfiADd3E2AgAMBwsgAiAANgIIIAAgAjYCDAwGCyAGKAIYIQcgBiAGKAIMIgBHBEAgACAGKAIIIgI2AgggAiAANgIMDAULIAZBFGoiAigCACIFRQRAIAYoAhAiBUUNBCAGQRBqIQILA0AgAiEDIAUiAEEUaiICKAIAIgUNACAAQRBqIQIgACgCECIFDQALIANBADYCAAwEC0F4IABrQQ9xIgEgAGoiByAGQThrIgMgAWsiAUEBcjYCBCAAIANqQTg2AgQgAiAFQTcgBWtBD3FqQT9rIgMgAyACQRBqSRsiA0EjNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAc2AgAgA0EQakHU0wApAgA3AgAgA0HM0wApAgA3AghB1NMAIANBCGo2AgBB0NMAIAY2AgBBzNMAIAA2AgBB2NMAQQA2AgAgA0EkaiEBA0AgAUEHNgIAIAUgAUEEaiIBSw0ACyACIANGDQAgAyADKAIEQX5xNgIEIAMgAyACayIFNgIAIAIgBUEBcjYCBCAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIDcUUEQEGM0AAgASADcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEGQ0AAoAgAiA0EBIAF0IgZxRQRAIAAgAjYCAEGQ0AAgAyAGcjYCACACIAA2AhggAiACNgIIIAIgAjYCDAwBCyAFQRkgAUEBdmtBACABQR9HG3QhASAAKAIAIQMCQANAIAMiACgCBEF4cSAFRg0BIAFBHXYhAyABQQF0IQEgACADQQRxakEQaiIGKAIAIgMNAAsgBiACNgIAIAIgADYCGCACIAI2AgwgAiACNgIIDAELIAAoAggiASACNgIMIAAgAjYCCCACQQA2AhggAiAANgIMIAIgATYCCAtBmNAAKAIAIgEgBE0NAEGk0AAoAgAiACAEaiICIAEgBGsiAUEBcjYCBEGY0AAgATYCAEGk0AAgAjYCACAAIARBA3I2AgQgAEEIaiEBDAgLQQAhAUH80wBBMDYCAAwHC0EAIQALIAdFDQACQCAGKAIcIgJBAnRBvNIAaiIDKAIAIAZGBEAgAyAANgIAIAANAUGQ0ABBkNAAKAIAQX4gAndxNgIADAILIAdBEEEUIAcoAhAgBkYbaiAANgIAIABFDQELIAAgBzYCGCAGKAIQIgIEQCAAIAI2AhAgAiAANgIYCyAGQRRqKAIAIgJFDQAgAEEUaiACNgIAIAIgADYCGAsgASAIaiEBIAYgCGoiBigCBCEFCyAGIAVBfnE2AgQgASAEaiABNgIAIAQgAUEBcjYCBCABQf8BTQRAIAFBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASABQQN2dCIBcUUEQEGM0AAgASACcjYCACAADAELIAAoAggLIgEgBDYCDCAAIAQ2AgggBCAANgIMIAQgATYCCAwBC0EfIQUgAUH///8HTQRAIAFBJiABQQh2ZyIAa3ZBAXEgAEEBdGtBPmohBQsgBCAFNgIcIARCADcCECAFQQJ0QbzSAGohAEGQ0AAoAgAiAkEBIAV0IgNxRQRAIAAgBDYCAEGQ0AAgAiADcjYCACAEIAA2AhggBCAENgIIIAQgBDYCDAwBCyABQRkgBUEBdmtBACAFQR9HG3QhBSAAKAIAIQACQANAIAAiAigCBEF4cSABRg0BIAVBHXYhACAFQQF0IQUgAiAAQQRxakEQaiIDKAIAIgANAAsgAyAENgIAIAQgAjYCGCAEIAQ2AgwgBCAENgIIDAELIAIoAggiACAENgIMIAIgBDYCCCAEQQA2AhggBCACNgIMIAQgADYCCAsgCUEIaiEBDAILAkAgB0UNAAJAIAMoAhwiAUECdEG80gBqIgIoAgAgA0YEQCACIAA2AgAgAA0BQZDQACAIQX4gAXdxIgg2AgAMAgsgB0EQQRQgBygCECADRhtqIAA2AgAgAEUNAQsgACAHNgIYIAMoAhAiAQRAIAAgATYCECABIAA2AhgLIANBFGooAgAiAUUNACAAQRRqIAE2AgAgASAANgIYCwJAIAVBD00EQCADIAQgBWoiAEEDcjYCBCAAIANqIgAgACgCBEEBcjYCBAwBCyADIARqIgIgBUEBcjYCBCADIARBA3I2AgQgAiAFaiAFNgIAIAVB/wFNBEAgBUF4cUG00ABqIQACf0GM0AAoAgAiAUEBIAVBA3Z0IgVxRQRAQYzQACABIAVyNgIAIAAMAQsgACgCCAsiASACNgIMIAAgAjYCCCACIAA2AgwgAiABNgIIDAELQR8hASAFQf///wdNBEAgBUEmIAVBCHZnIgBrdkEBcSAAQQF0a0E+aiEBCyACIAE2AhwgAkIANwIQIAFBAnRBvNIAaiEAQQEgAXQiBCAIcUUEQCAAIAI2AgBBkNAAIAQgCHI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEEAkADQCAEIgAoAgRBeHEgBUYNASABQR12IQQgAUEBdCEBIAAgBEEEcWpBEGoiBigCACIEDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLIANBCGohAQwBCwJAIAlFDQACQCAAKAIcIgFBAnRBvNIAaiICKAIAIABGBEAgAiADNgIAIAMNAUGQ0AAgC0F+IAF3cTYCAAwCCyAJQRBBFCAJKAIQIABGG2ogAzYCACADRQ0BCyADIAk2AhggACgCECIBBEAgAyABNgIQIAEgAzYCGAsgAEEUaigCACIBRQ0AIANBFGogATYCACABIAM2AhgLAkAgBUEPTQRAIAAgBCAFaiIBQQNyNgIEIAAgAWoiASABKAIEQQFyNgIEDAELIAAgBGoiByAFQQFyNgIEIAAgBEEDcjYCBCAFIAdqIAU2AgAgCARAIAhBeHFBtNAAaiEBQaDQACgCACEDAn9BASAIQQN2dCICIAZxRQRAQYzQACACIAZyNgIAIAEMAQsgASgCCAsiAiADNgIMIAEgAzYCCCADIAE2AgwgAyACNgIIC0Gg0AAgBzYCAEGU0AAgBTYCAAsgAEEIaiEBCyAKQRBqJAAgAQtDACAARQRAPwBBEHQPCwJAIABB//8DcQ0AIABBAEgNACAAQRB2QAAiAEF/RgRAQfzTAEEwNgIAQX8PCyAAQRB0DwsACwvcPyIAQYAICwkBAAAAAgAAAAMAQZQICwUEAAAABQBBpAgLCQYAAAAHAAAACABB3AgLii1JbnZhbGlkIGNoYXIgaW4gdXJsIHF1ZXJ5AFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fYm9keQBDb250ZW50LUxlbmd0aCBvdmVyZmxvdwBDaHVuayBzaXplIG92ZXJmbG93AFJlc3BvbnNlIG92ZXJmbG93AEludmFsaWQgbWV0aG9kIGZvciBIVFRQL3gueCByZXF1ZXN0AEludmFsaWQgbWV0aG9kIGZvciBSVFNQL3gueCByZXF1ZXN0AEV4cGVjdGVkIFNPVVJDRSBtZXRob2QgZm9yIElDRS94LnggcmVxdWVzdABJbnZhbGlkIGNoYXIgaW4gdXJsIGZyYWdtZW50IHN0YXJ0AEV4cGVjdGVkIGRvdABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3N0YXR1cwBJbnZhbGlkIHJlc3BvbnNlIHN0YXR1cwBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zAFVzZXIgY2FsbGJhY2sgZXJyb3IAYG9uX3Jlc2V0YCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfaGVhZGVyYCBjYWxsYmFjayBlcnJvcgBgb25fbWVzc2FnZV9iZWdpbmAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3N0YXR1c19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX3ZlcnNpb25fY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl91cmxfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZWAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXRob2RfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfZmllbGRfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fbmFtZWAgY2FsbGJhY2sgZXJyb3IAVW5leHBlY3RlZCBjaGFyIGluIHVybCBzZXJ2ZXIASW52YWxpZCBoZWFkZXIgdmFsdWUgY2hhcgBJbnZhbGlkIGhlYWRlciBmaWVsZCBjaGFyAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdmVyc2lvbgBJbnZhbGlkIG1pbm9yIHZlcnNpb24ASW52YWxpZCBtYWpvciB2ZXJzaW9uAEV4cGVjdGVkIHNwYWNlIGFmdGVyIHZlcnNpb24ARXhwZWN0ZWQgQ1JMRiBhZnRlciB2ZXJzaW9uAEludmFsaWQgSFRUUCB2ZXJzaW9uAEludmFsaWQgaGVhZGVyIHRva2VuAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fdXJsAEludmFsaWQgY2hhcmFjdGVycyBpbiB1cmwAVW5leHBlY3RlZCBzdGFydCBjaGFyIGluIHVybABEb3VibGUgQCBpbiB1cmwARW1wdHkgQ29udGVudC1MZW5ndGgASW52YWxpZCBjaGFyYWN0ZXIgaW4gQ29udGVudC1MZW5ndGgARHVwbGljYXRlIENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhciBpbiB1cmwgcGF0aABDb250ZW50LUxlbmd0aCBjYW4ndCBiZSBwcmVzZW50IHdpdGggVHJhbnNmZXItRW5jb2RpbmcASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgc2l6ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl92YWx1ZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl92YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHZhbHVlAE1pc3NpbmcgZXhwZWN0ZWQgTEYgYWZ0ZXIgaGVhZGVyIHZhbHVlAEludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYCBoZWFkZXIgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZSB2YWx1ZQBJbnZhbGlkIGNoYXJhY3RlciBpbiBjaHVuayBleHRlbnNpb25zIHF1b3RlZCB2YWx1ZQBQYXVzZWQgYnkgb25faGVhZGVyc19jb21wbGV0ZQBJbnZhbGlkIEVPRiBzdGF0ZQBvbl9yZXNldCBwYXVzZQBvbl9jaHVua19oZWFkZXIgcGF1c2UAb25fbWVzc2FnZV9iZWdpbiBwYXVzZQBvbl9jaHVua19leHRlbnNpb25fdmFsdWUgcGF1c2UAb25fc3RhdHVzX2NvbXBsZXRlIHBhdXNlAG9uX3ZlcnNpb25fY29tcGxldGUgcGF1c2UAb25fdXJsX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2NvbXBsZXRlIHBhdXNlAG9uX2hlYWRlcl92YWx1ZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXNzYWdlX2NvbXBsZXRlIHBhdXNlAG9uX21ldGhvZF9jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfZmllbGRfY29tcGxldGUgcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUgcGF1c2UAVW5leHBlY3RlZCBzcGFjZSBhZnRlciBzdGFydCBsaW5lAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fY2h1bmtfZXh0ZW5zaW9uX25hbWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBuYW1lAFBhdXNlIG9uIENPTk5FQ1QvVXBncmFkZQBQYXVzZSBvbiBQUkkvVXBncmFkZQBFeHBlY3RlZCBIVFRQLzIgQ29ubmVjdGlvbiBQcmVmYWNlAFNwYW4gY2FsbGJhY2sgZXJyb3IgaW4gb25fbWV0aG9kAEV4cGVjdGVkIHNwYWNlIGFmdGVyIG1ldGhvZABTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2hlYWRlcl9maWVsZABQYXVzZWQASW52YWxpZCB3b3JkIGVuY291bnRlcmVkAEludmFsaWQgbWV0aG9kIGVuY291bnRlcmVkAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2NoZW1hAFJlcXVlc3QgaGFzIGludmFsaWQgYFRyYW5zZmVyLUVuY29kaW5nYABTV0lUQ0hfUFJPWFkAVVNFX1BST1hZAE1LQUNUSVZJVFkAVU5QUk9DRVNTQUJMRV9FTlRJVFkAQ09QWQBNT1ZFRF9QRVJNQU5FTlRMWQBUT09fRUFSTFkATk9USUZZAEZBSUxFRF9ERVBFTkRFTkNZAEJBRF9HQVRFV0FZAFBMQVkAUFVUAENIRUNLT1VUAEdBVEVXQVlfVElNRU9VVABSRVFVRVNUX1RJTUVPVVQATkVUV09SS19DT05ORUNUX1RJTUVPVVQAQ09OTkVDVElPTl9USU1FT1VUAExPR0lOX1RJTUVPVVQATkVUV09SS19SRUFEX1RJTUVPVVQAUE9TVABNSVNESVJFQ1RFRF9SRVFVRVNUAENMSUVOVF9DTE9TRURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX0xPQURfQkFMQU5DRURfUkVRVUVTVABCQURfUkVRVUVTVABIVFRQX1JFUVVFU1RfU0VOVF9UT19IVFRQU19QT1JUAFJFUE9SVABJTV9BX1RFQVBPVABSRVNFVF9DT05URU5UAE5PX0NPTlRFTlQAUEFSVElBTF9DT05URU5UAEhQRV9JTlZBTElEX0NPTlNUQU5UAEhQRV9DQl9SRVNFVABHRVQASFBFX1NUUklDVABDT05GTElDVABURU1QT1JBUllfUkVESVJFQ1QAUEVSTUFORU5UX1JFRElSRUNUAENPTk5FQ1QATVVMVElfU1RBVFVTAEhQRV9JTlZBTElEX1NUQVRVUwBUT09fTUFOWV9SRVFVRVNUUwBFQVJMWV9ISU5UUwBVTkFWQUlMQUJMRV9GT1JfTEVHQUxfUkVBU09OUwBPUFRJT05TAFNXSVRDSElOR19QUk9UT0NPTFMAVkFSSUFOVF9BTFNPX05FR09USUFURVMATVVMVElQTEVfQ0hPSUNFUwBJTlRFUk5BTF9TRVJWRVJfRVJST1IAV0VCX1NFUlZFUl9VTktOT1dOX0VSUk9SAFJBSUxHVU5fRVJST1IASURFTlRJVFlfUFJPVklERVJfQVVUSEVOVElDQVRJT05fRVJST1IAU1NMX0NFUlRJRklDQVRFX0VSUk9SAElOVkFMSURfWF9GT1JXQVJERURfRk9SAFNFVF9QQVJBTUVURVIAR0VUX1BBUkFNRVRFUgBIUEVfVVNFUgBTRUVfT1RIRVIASFBFX0NCX0NIVU5LX0hFQURFUgBNS0NBTEVOREFSAFNFVFVQAFdFQl9TRVJWRVJfSVNfRE9XTgBURUFSRE9XTgBIUEVfQ0xPU0VEX0NPTk5FQ1RJT04ASEVVUklTVElDX0VYUElSQVRJT04ARElTQ09OTkVDVEVEX09QRVJBVElPTgBOT05fQVVUSE9SSVRBVElWRV9JTkZPUk1BVElPTgBIUEVfSU5WQUxJRF9WRVJTSU9OAEhQRV9DQl9NRVNTQUdFX0JFR0lOAFNJVEVfSVNfRlJPWkVOAEhQRV9JTlZBTElEX0hFQURFUl9UT0tFTgBJTlZBTElEX1RPS0VOAEZPUkJJRERFTgBFTkhBTkNFX1lPVVJfQ0FMTQBIUEVfSU5WQUxJRF9VUkwAQkxPQ0tFRF9CWV9QQVJFTlRBTF9DT05UUk9MAE1LQ09MAEFDTABIUEVfSU5URVJOQUwAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRV9VTk9GRklDSUFMAEhQRV9PSwBVTkxJTksAVU5MT0NLAFBSSQBSRVRSWV9XSVRIAEhQRV9JTlZBTElEX0NPTlRFTlRfTEVOR1RIAEhQRV9VTkVYUEVDVEVEX0NPTlRFTlRfTEVOR1RIAEZMVVNIAFBST1BQQVRDSABNLVNFQVJDSABVUklfVE9PX0xPTkcAUFJPQ0VTU0lORwBNSVNDRUxMQU5FT1VTX1BFUlNJU1RFTlRfV0FSTklORwBNSVNDRUxMQU5FT1VTX1dBUk5JTkcASFBFX0lOVkFMSURfVFJBTlNGRVJfRU5DT0RJTkcARXhwZWN0ZWQgQ1JMRgBIUEVfSU5WQUxJRF9DSFVOS19TSVpFAE1PVkUAQ09OVElOVUUASFBFX0NCX1NUQVRVU19DT01QTEVURQBIUEVfQ0JfSEVBREVSU19DT01QTEVURQBIUEVfQ0JfVkVSU0lPTl9DT01QTEVURQBIUEVfQ0JfVVJMX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19DT01QTEVURQBIUEVfQ0JfSEVBREVSX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fVkFMVUVfQ09NUExFVEUASFBFX0NCX0NIVU5LX0VYVEVOU0lPTl9OQU1FX0NPTVBMRVRFAEhQRV9DQl9NRVNTQUdFX0NPTVBMRVRFAEhQRV9DQl9NRVRIT0RfQ09NUExFVEUASFBFX0NCX0hFQURFUl9GSUVMRF9DT01QTEVURQBERUxFVEUASFBFX0lOVkFMSURfRU9GX1NUQVRFAElOVkFMSURfU1NMX0NFUlRJRklDQVRFAFBBVVNFAE5PX1JFU1BPTlNFAFVOU1VQUE9SVEVEX01FRElBX1RZUEUAR09ORQBOT1RfQUNDRVBUQUJMRQBTRVJWSUNFX1VOQVZBSUxBQkxFAFJBTkdFX05PVF9TQVRJU0ZJQUJMRQBPUklHSU5fSVNfVU5SRUFDSEFCTEUAUkVTUE9OU0VfSVNfU1RBTEUAUFVSR0UATUVSR0UAUkVRVUVTVF9IRUFERVJfRklFTERTX1RPT19MQVJHRQBSRVFVRVNUX0hFQURFUl9UT09fTEFSR0UAUEFZTE9BRF9UT09fTEFSR0UASU5TVUZGSUNJRU5UX1NUT1JBR0UASFBFX1BBVVNFRF9VUEdSQURFAEhQRV9QQVVTRURfSDJfVVBHUkFERQBTT1VSQ0UAQU5OT1VOQ0UAVFJBQ0UASFBFX1VORVhQRUNURURfU1BBQ0UAREVTQ1JJQkUAVU5TVUJTQ1JJQkUAUkVDT1JEAEhQRV9JTlZBTElEX01FVEhPRABOT1RfRk9VTkQAUFJPUEZJTkQAVU5CSU5EAFJFQklORABVTkFVVEhPUklaRUQATUVUSE9EX05PVF9BTExPV0VEAEhUVFBfVkVSU0lPTl9OT1RfU1VQUE9SVEVEAEFMUkVBRFlfUkVQT1JURUQAQUNDRVBURUQATk9UX0lNUExFTUVOVEVEAExPT1BfREVURUNURUQASFBFX0NSX0VYUEVDVEVEAEhQRV9MRl9FWFBFQ1RFRABDUkVBVEVEAElNX1VTRUQASFBFX1BBVVNFRABUSU1FT1VUX09DQ1VSRUQAUEFZTUVOVF9SRVFVSVJFRABQUkVDT05ESVRJT05fUkVRVUlSRUQAUFJPWFlfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATkVUV09SS19BVVRIRU5USUNBVElPTl9SRVFVSVJFRABMRU5HVEhfUkVRVUlSRUQAU1NMX0NFUlRJRklDQVRFX1JFUVVJUkVEAFVQR1JBREVfUkVRVUlSRUQAUEFHRV9FWFBJUkVEAFBSRUNPTkRJVElPTl9GQUlMRUQARVhQRUNUQVRJT05fRkFJTEVEAFJFVkFMSURBVElPTl9GQUlMRUQAU1NMX0hBTkRTSEFLRV9GQUlMRUQATE9DS0VEAFRSQU5TRk9STUFUSU9OX0FQUExJRUQATk9UX01PRElGSUVEAE5PVF9FWFRFTkRFRABCQU5EV0lEVEhfTElNSVRfRVhDRUVERUQAU0lURV9JU19PVkVSTE9BREVEAEhFQUQARXhwZWN0ZWQgSFRUUC8AAF4TAAAmEwAAMBAAAPAXAACdEwAAFRIAADkXAADwEgAAChAAAHUSAACtEgAAghMAAE8UAAB/EAAAoBUAACMUAACJEgAAixQAAE0VAADUEQAAzxQAABAYAADJFgAA3BYAAMERAADgFwAAuxQAAHQUAAB8FQAA5RQAAAgXAAAfEAAAZRUAAKMUAAAoFQAAAhUAAJkVAAAsEAAAixkAAE8PAADUDgAAahAAAM4QAAACFwAAiQ4AAG4TAAAcEwAAZhQAAFYXAADBEwAAzRMAAGwTAABoFwAAZhcAAF8XAAAiEwAAzg8AAGkOAADYDgAAYxYAAMsTAACqDgAAKBcAACYXAADFEwAAXRYAAOgRAABnEwAAZRMAAPIWAABzEwAAHRcAAPkWAADzEQAAzw4AAM4VAAAMEgAAsxEAAKURAABhEAAAMhcAALsTAEH5NQsBAQBBkDYL4AEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB/TcLAQEAQZE4C14CAwICAgICAAACAgACAgACAgICAgICAgICAAQAAAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEH9OQsBAQBBkToLXgIAAgICAgIAAAICAAICAAICAgICAgICAgIAAwAEAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgIAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgACAAIAQfA7Cw1sb3NlZWVwLWFsaXZlAEGJPAsBAQBBoDwL4AEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBBiT4LAQEAQaA+C+cBAQEBAQEBAQEBAQEBAgEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQFjaHVua2VkAEGwwAALXwEBAAEBAQEBAAABAQABAQABAQEBAQEBAQEBAAAAAAAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAEGQwgALIWVjdGlvbmVudC1sZW5ndGhvbnJveHktY29ubmVjdGlvbgBBwMIACy1yYW5zZmVyLWVuY29kaW5ncGdyYWRlDQoNCg0KU00NCg0KVFRQL0NFL1RTUC8AQfnCAAsFAQIAAQMAQZDDAAvgAQQBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH5xAALBQECAAEDAEGQxQAL4AEEAQEFAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cYACwQBAAABAEGRxwAL3wEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAEH6yAALBAEAAAIAQZDJAAtfAwQAAAQEBAQEBAQEBAQEBQQEBAQEBAQEBAQEBAAEAAYHBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQABAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAAAAQAQfrKAAsEAQAAAQBBkMsACwEBAEGqywALQQIAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAEH6zAALBAEAAAEAQZDNAAsBAQBBms0ACwYCAAAAAAIAQbHNAAs6AwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB8M4AC5YBTk9VTkNFRUNLT1VUTkVDVEVURUNSSUJFTFVTSEVURUFEU0VBUkNIUkdFQ1RJVklUWUxFTkRBUlZFT1RJRllQVElPTlNDSFNFQVlTVEFUQ0hHRU9SRElSRUNUT1JUUkNIUEFSQU1FVEVSVVJDRUJTQ1JJQkVBUkRPV05BQ0VJTkROS0NLVUJTQ1JJQkVIVFRQL0FEVFAv","base64")});var Wpe=w((lgr,Vpe)=>{"use strict";var{Buffer:$dt}=require("node:buffer");Vpe.exports=$dt.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/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGTAZQBlQGWAZcBmAGZAZoBmwGcAZ0BngGfAaABoQGiAaMBpAGlAaYBpwGoAakBqgGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgG3AbgBuQG6AbsBvAG9Ab4BvwHAAcEBwgHDAcQBxQHGAccByAHJAcsBzAHNAc4BzwGKA4kDiAOHA4QDgwOAA/sC+gL5AvgC9wL0AvMC8gLLAsECsALZAQsgASAERw3wAkHdASEDDLMDCyABIARHDcgBQcMBIQMMsgMLIAEgBEcNe0H3ACEDDLEDCyABIARHDXBB7wAhAwywAwsgASAERw1pQeoAIQMMrwMLIAEgBEcNZUHoACEDDK4DCyABIARHDWJB5gAhAwytAwsgASAERw0aQRghAwysAwsgASAERw0VQRIhAwyrAwsgASAERw1CQcUAIQMMqgMLIAEgBEcNNEE/IQMMqQMLIAEgBEcNMkE8IQMMqAMLIAEgBEcNK0ExIQMMpwMLIAItAC5BAUYNnwMMwQILQQAhAAJAAkACQCACLQAqRQ0AIAItACtFDQAgAi8BMCIDQQJxRQ0BDAILIAIvATAiA0EBcUUNAQtBASEAIAItAChBAUYNACACLwEyIgVB5ABrQeQASQ0AIAVBzAFGDQAgBUGwAkYNACADQcAAcQ0AQQAhACADQYgEcUGABEYNACADQShxQQBHIQALIAJBADsBMCACQQA6AC8gAEUN3wIgAkIANwMgDOACC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAARQ3MASAAQRVHDd0CIAJBBDYCHCACIAE2AhQgAkGwGDYCECACQRU2AgxBACEDDKQDCyABIARGBEBBBiEDDKQDCyABQQFqIQFBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAA3ZAgwcCyACQgA3AyBBEiEDDIkDCyABIARHDRZBHSEDDKEDCyABIARHBEAgAUEBaiEBQRAhAwyIAwtBByEDDKADCyACIAIpAyAiCiAEIAFrrSILfSIMQgAgCiAMWhs3AyAgCiALWA3UAkEIIQMMnwMLIAEgBEcEQCACQQk2AgggAiABNgIEQRQhAwyGAwtBCSEDDJ4DCyACKQMgQgBSDccBIAIgAi8BMEGAAXI7ATAMQgsgASAERw0/QdAAIQMMnAMLIAEgBEYEQEELIQMMnAMLIAFBAWohAUEAIQACQCACKAI4IgNFDQAgAygCUCIDRQ0AIAIgAxEAACEACyAADc8CDMYBC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ3GASAAQRVHDc0CIAJBCzYCHCACIAE2AhQgAkGCGTYCECACQRU2AgxBACEDDJoDC0EAIQACQCACKAI4IgNFDQAgAygCSCIDRQ0AIAIgAxEAACEACyAARQ0MIABBFUcNygIgAkEaNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMmQMLQQAhAAJAIAIoAjgiA0UNACADKAJMIgNFDQAgAiADEQAAIQALIABFDcQBIABBFUcNxwIgAkELNgIcIAIgATYCFCACQZEXNgIQIAJBFTYCDEEAIQMMmAMLIAEgBEYEQEEPIQMMmAMLIAEtAAAiAEE7Rg0HIABBDUcNxAIgAUEBaiEBDMMBC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3DASAAQRVHDcICIAJBDzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJYDCwNAIAEtAABB8DVqLQAAIgBBAUcEQCAAQQJHDcECIAIoAgQhAEEAIQMgAkEANgIEIAIgACABQQFqIgEQLSIADcICDMUBCyAEIAFBAWoiAUcNAAtBEiEDDJUDC0EAIQACQCACKAI4IgNFDQAgAygCTCIDRQ0AIAIgAxEAACEACyAARQ3FASAAQRVHDb0CIAJBGzYCHCACIAE2AhQgAkGRFzYCECACQRU2AgxBACEDDJQDCyABIARGBEBBFiEDDJQDCyACQQo2AgggAiABNgIEQQAhAAJAIAIoAjgiA0UNACADKAJIIgNFDQAgAiADEQAAIQALIABFDcIBIABBFUcNuQIgAkEVNgIcIAIgATYCFCACQYIZNgIQIAJBFTYCDEEAIQMMkwMLIAEgBEcEQANAIAEtAABB8DdqLQAAIgBBAkcEQAJAIABBAWsOBMQCvQIAvgK9AgsgAUEBaiEBQQghAwz8AgsgBCABQQFqIgFHDQALQRUhAwyTAwtBFSEDDJIDCwNAIAEtAABB8DlqLQAAIgBBAkcEQCAAQQFrDgTFArcCwwK4ArcCCyAEIAFBAWoiAUcNAAtBGCEDDJEDCyABIARHBEAgAkELNgIIIAIgATYCBEEHIQMM+AILQRkhAwyQAwsgAUEBaiEBDAILIAEgBEYEQEEaIQMMjwMLAkAgAS0AAEENaw4UtQG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwG/Ab8BvwEAvwELQQAhAyACQQA2AhwgAkGvCzYCECACQQI2AgwgAiABQQFqNgIUDI4DCyABIARGBEBBGyEDDI4DCyABLQAAIgBBO0cEQCAAQQ1HDbECIAFBAWohAQy6AQsgAUEBaiEBC0EiIQMM8wILIAEgBEYEQEEcIQMMjAMLQgAhCgJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAS0AAEEwaw43wQLAAgABAgMEBQYH0AHQAdAB0AHQAdAB0AEICQoLDA3QAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdABDg8QERIT0AELQgIhCgzAAgtCAyEKDL8CC0IEIQoMvgILQgUhCgy9AgtCBiEKDLwCC0IHIQoMuwILQgghCgy6AgtCCSEKDLkCC0IKIQoMuAILQgshCgy3AgtCDCEKDLYCC0INIQoMtQILQg4hCgy0AgtCDyEKDLMCC0IKIQoMsgILQgshCgyxAgtCDCEKDLACC0INIQoMrwILQg4hCgyuAgtCDyEKDK0CC0IAIQoCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAEtAABBMGsON8ACvwIAAQIDBAUGB74CvgK+Ar4CvgK+Ar4CCAkKCwwNvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ar4CvgK+Ag4PEBESE74CC0ICIQoMvwILQgMhCgy+AgtCBCEKDL0CC0IFIQoMvAILQgYhCgy7AgtCByEKDLoCC0IIIQoMuQILQgkhCgy4AgtCCiEKDLcCC0ILIQoMtgILQgwhCgy1AgtCDSEKDLQCC0IOIQoMswILQg8hCgyyAgtCCiEKDLECC0ILIQoMsAILQgwhCgyvAgtCDSEKDK4CC0IOIQoMrQILQg8hCgysAgsgAiACKQMgIgogBCABa60iC30iDEIAIAogDFobNwMgIAogC1gNpwJBHyEDDIkDCyABIARHBEAgAkEJNgIIIAIgATYCBEElIQMM8AILQSAhAwyIAwtBASEFIAIvATAiA0EIcUUEQCACKQMgQgBSIQULAkAgAi0ALgRAQQEhACACLQApQQVGDQEgA0HAAHFFIAVxRQ0BC0EAIQAgA0HAAHENAEECIQAgA0EIcQ0AIANBgARxBEACQCACLQAoQQFHDQAgAi0ALUEKcQ0AQQUhAAwCC0EEIQAMAQsgA0EgcUUEQAJAIAItAChBAUYNACACLwEyIgBB5ABrQeQASQ0AIABBzAFGDQAgAEGwAkYNAEEEIQAgA0EocUUNAiADQYgEcUGABEYNAgtBACEADAELQQBBAyACKQMgUBshAAsgAEEBaw4FvgIAsAEBpAKhAgtBESEDDO0CCyACQQE6AC8MhAMLIAEgBEcNnQJBJCEDDIQDCyABIARHDRxBxgAhAwyDAwtBACEAAkAgAigCOCIDRQ0AIAMoAkQiA0UNACACIAMRAAAhAAsgAEUNJyAAQRVHDZgCIAJB0AA2AhwgAiABNgIUIAJBkRg2AhAgAkEVNgIMQQAhAwyCAwsgASAERgRAQSghAwyCAwtBACEDIAJBADYCBCACQQw2AgggAiABIAEQKiIARQ2UAiACQSc2AhwgAiABNgIUIAIgADYCDAyBAwsgASAERgRAQSkhAwyBAwsgAS0AACIAQSBGDRMgAEEJRw2VAiABQQFqIQEMFAsgASAERwRAIAFBAWohAQwWC0EqIQMM/wILIAEgBEYEQEErIQMM/wILIAEtAAAiAEEJRyAAQSBHcQ2QAiACLQAsQQhHDd0CIAJBADoALAzdAgsgASAERgRAQSwhAwz+AgsgAS0AAEEKRw2OAiABQQFqIQEMsAELIAEgBEcNigJBLyEDDPwCCwNAIAEtAAAiAEEgRwRAIABBCmsOBIQCiAKIAoQChgILIAQgAUEBaiIBRw0AC0ExIQMM+wILQTIhAyABIARGDfoCIAIoAgAiACAEIAFraiEHIAEgAGtBA2ohBgJAA0AgAEHwO2otAAAgAS0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDQEgAEEDRgRAQQYhAQziAgsgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAc2AgAM+wILIAJBADYCAAyGAgtBMyEDIAQgASIARg35AiAEIAFrIAIoAgAiAWohByAAIAFrQQhqIQYCQANAIAFB9DtqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBCEYEQEEFIQEM4QILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPoCCyACQQA2AgAgACEBDIUCC0E0IQMgBCABIgBGDfgCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgJAA0AgAUHQwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw0BIAFBBUYEQEEHIQEM4AILIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADPkCCyACQQA2AgAgACEBDIQCCyABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRg0JDIECCyAEIAFBAWoiAUcNAAtBMCEDDPgCC0EwIQMM9wILIAEgBEcEQANAIAEtAAAiAEEgRwRAIABBCmsOBP8B/gH+Af8B/gELIAQgAUEBaiIBRw0AC0E4IQMM9wILQTghAwz2AgsDQCABLQAAIgBBIEcgAEEJR3EN9gEgBCABQQFqIgFHDQALQTwhAwz1AgsDQCABLQAAIgBBIEcEQAJAIABBCmsOBPkBBAT5AQALIABBLEYN9QEMAwsgBCABQQFqIgFHDQALQT8hAwz0AgtBwAAhAyABIARGDfMCIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAEGAQGstAAAgAS0AAEEgckcNASAAQQZGDdsCIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPQCCyACQQA2AgALQTYhAwzZAgsgASAERgRAQcEAIQMM8gILIAJBDDYCCCACIAE2AgQgAi0ALEEBaw4E+wHuAewB6wHUAgsgAUEBaiEBDPoBCyABIARHBEADQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxIgBBCUYNACAAQSBGDQACQAJAAkACQCAAQeMAaw4TAAMDAwMDAwMBAwMDAwMDAwMDAgMLIAFBAWohAUExIQMM3AILIAFBAWohAUEyIQMM2wILIAFBAWohAUEzIQMM2gILDP4BCyAEIAFBAWoiAUcNAAtBNSEDDPACC0E1IQMM7wILIAEgBEcEQANAIAEtAABBgDxqLQAAQQFHDfcBIAQgAUEBaiIBRw0AC0E9IQMM7wILQT0hAwzuAgtBACEAAkAgAigCOCIDRQ0AIAMoAkAiA0UNACACIAMRAAAhAAsgAEUNASAAQRVHDeYBIAJBwgA2AhwgAiABNgIUIAJB4xg2AhAgAkEVNgIMQQAhAwztAgsgAUEBaiEBC0E8IQMM0gILIAEgBEYEQEHCACEDDOsCCwJAA0ACQCABLQAAQQlrDhgAAswCzALRAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAswCzALMAgDMAgsgBCABQQFqIgFHDQALQcIAIQMM6wILIAFBAWohASACLQAtQQFxRQ3+AQtBLCEDDNACCyABIARHDd4BQcQAIQMM6AILA0AgAS0AAEGQwABqLQAAQQFHDZwBIAQgAUEBaiIBRw0AC0HFACEDDOcCCyABLQAAIgBBIEYN/gEgAEE6Rw3AAiACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgAN3gEM3QELQccAIQMgBCABIgBGDeUCIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFBkMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvwIgAUEFRg3CAiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzlAgtByAAhAyAEIAEiAEYN5AIgBCABayACKAIAIgFqIQcgACABa0EJaiEGA0AgAUGWwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw2+AkECIAFBCUYNwgIaIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOQCCyABIARGBEBByQAhAwzkAgsCQAJAIAEtAAAiAEEgciAAIABBwQBrQf8BcUEaSRtB/wFxQe4Aaw4HAL8CvwK/Ar8CvwIBvwILIAFBAWohAUE+IQMMywILIAFBAWohAUE/IQMMygILQcoAIQMgBCABIgBGDeICIAQgAWsgAigCACIBaiEGIAAgAWtBAWohBwNAIAFBoMIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNvAIgAUEBRg2+AiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBjYCAAziAgtBywAhAyAEIAEiAEYN4QIgBCABayACKAIAIgFqIQcgACABa0EOaiEGA0AgAUGiwgBqLQAAIAAtAAAiBUEgciAFIAVBwQBrQf8BcUEaSRtB/wFxRw27AiABQQ5GDb4CIAFBAWohASAEIABBAWoiAEcNAAsgAiAHNgIADOECC0HMACEDIAQgASIARg3gAiAEIAFrIAIoAgAiAWohByAAIAFrQQ9qIQYDQCABQcDCAGotAAAgAC0AACIFQSByIAUgBUHBAGtB/wFxQRpJG0H/AXFHDboCQQMgAUEPRg2+AhogAUEBaiEBIAQgAEEBaiIARw0ACyACIAc2AgAM4AILQc0AIQMgBCABIgBGDd8CIAQgAWsgAigCACIBaiEHIAAgAWtBBWohBgNAIAFB0MIAai0AACAALQAAIgVBIHIgBSAFQcEAa0H/AXFBGkkbQf8BcUcNuQJBBCABQQVGDb0CGiABQQFqIQEgBCAAQQFqIgBHDQALIAIgBzYCAAzfAgsgASAERgRAQc4AIQMM3wILAkACQAJAAkAgAS0AACIAQSByIAAgAEHBAGtB/wFxQRpJG0H/AXFB4wBrDhMAvAK8ArwCvAK8ArwCvAK8ArwCvAK8ArwCAbwCvAK8AgIDvAILIAFBAWohAUHBACEDDMgCCyABQQFqIQFBwgAhAwzHAgsgAUEBaiEBQcMAIQMMxgILIAFBAWohAUHEACEDDMUCCyABIARHBEAgAkENNgIIIAIgATYCBEHFACEDDMUCC0HPACEDDN0CCwJAAkAgAS0AAEEKaw4EAZABkAEAkAELIAFBAWohAQtBKCEDDMMCCyABIARGBEBB0QAhAwzcAgsgAS0AAEEgRw0AIAFBAWohASACLQAtQQFxRQ3QAQtBFyEDDMECCyABIARHDcsBQdIAIQMM2QILQdMAIQMgASAERg3YAiACKAIAIgAgBCABa2ohBiABIABrQQFqIQUDQCABLQAAIABB1sIAai0AAEcNxwEgAEEBRg3KASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBjYCAAzYAgsgASAERgRAQdUAIQMM2AILIAEtAABBCkcNwgEgAUEBaiEBDMoBCyABIARGBEBB1gAhAwzXAgsCQAJAIAEtAABBCmsOBADDAcMBAcMBCyABQQFqIQEMygELIAFBAWohAUHKACEDDL0CC0EAIQACQCACKAI4IgNFDQAgAygCPCIDRQ0AIAIgAxEAACEACyAADb8BQc0AIQMMvAILIAItAClBIkYNzwIMiQELIAQgASIFRgRAQdsAIQMM1AILQQAhAEEBIQFBASEGQQAhAwJAAn8CQAJAAkACQAJAAkACQCAFLQAAQTBrDgrFAcQBAAECAwQFBgjDAQtBAgwGC0EDDAULQQQMBAtBBQwDC0EGDAILQQcMAQtBCAshA0EAIQFBACEGDL0BC0EJIQNBASEAQQAhAUEAIQYMvAELIAEgBEYEQEHdACEDDNMCCyABLQAAQS5HDbgBIAFBAWohAQyIAQsgASAERw22AUHfACEDDNECCyABIARHBEAgAkEONgIIIAIgATYCBEHQACEDDLgCC0HgACEDDNACC0HhACEDIAEgBEYNzwIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGA0AgAS0AACAAQeLCAGotAABHDbEBIABBA0YNswEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMzwILQeIAIQMgASAERg3OAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYDQCABLQAAIABB5sIAai0AAEcNsAEgAEECRg2vASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAzOAgtB4wAhAyABIARGDc0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgNAIAEtAAAgAEHpwgBqLQAARw2vASAAQQNGDa0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADM0CCyABIARGBEBB5QAhAwzNAgsgAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANqgFB1gAhAwyzAgsgASAERwRAA0AgAS0AACIAQSBHBEACQAJAAkAgAEHIAGsOCwABswGzAbMBswGzAbMBswGzAQKzAQsgAUEBaiEBQdIAIQMMtwILIAFBAWohAUHTACEDDLYCCyABQQFqIQFB1AAhAwy1AgsgBCABQQFqIgFHDQALQeQAIQMMzAILQeQAIQMMywILA0AgAS0AAEHwwgBqLQAAIgBBAUcEQCAAQQJrDgOnAaYBpQGkAQsgBCABQQFqIgFHDQALQeYAIQMMygILIAFBAWogASAERw0CGkHnACEDDMkCCwNAIAEtAABB8MQAai0AACIAQQFHBEACQCAAQQJrDgSiAaEBoAEAnwELQdcAIQMMsQILIAQgAUEBaiIBRw0AC0HoACEDDMgCCyABIARGBEBB6QAhAwzIAgsCQCABLQAAIgBBCmsOGrcBmwGbAbQBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBmwGbAZsBpAGbAZsBAJkBCyABQQFqCyEBQQYhAwytAgsDQCABLQAAQfDGAGotAABBAUcNfSAEIAFBAWoiAUcNAAtB6gAhAwzFAgsgAUEBaiABIARHDQIaQesAIQMMxAILIAEgBEYEQEHsACEDDMQCCyABQQFqDAELIAEgBEYEQEHtACEDDMMCCyABQQFqCyEBQQQhAwyoAgsgASAERgRAQe4AIQMMwQILAkACQAJAIAEtAABB8MgAai0AAEEBaw4HkAGPAY4BAHwBAo0BCyABQQFqIQEMCwsgAUEBagyTAQtBACEDIAJBADYCHCACQZsSNgIQIAJBBzYCDCACIAFBAWo2AhQMwAILAkADQCABLQAAQfDIAGotAAAiAEEERwRAAkACQCAAQQFrDgeUAZMBkgGNAQAEAY0BC0HaACEDDKoCCyABQQFqIQFB3AAhAwypAgsgBCABQQFqIgFHDQALQe8AIQMMwAILIAFBAWoMkQELIAQgASIARgRAQfAAIQMMvwILIAAtAABBL0cNASAAQQFqIQEMBwsgBCABIgBGBEBB8QAhAwy+AgsgAC0AACIBQS9GBEAgAEEBaiEBQd0AIQMMpQILIAFBCmsiA0EWSw0AIAAhAUEBIAN0QYmAgAJxDfkBC0EAIQMgAkEANgIcIAIgADYCFCACQYwcNgIQIAJBBzYCDAy8AgsgASAERwRAIAFBAWohAUHeACEDDKMCC0HyACEDDLsCCyABIARGBEBB9AAhAwy7AgsCQCABLQAAQfDMAGotAABBAWsOA/cBcwCCAQtB4QAhAwyhAgsgASAERwRAA0AgAS0AAEHwygBqLQAAIgBBA0cEQAJAIABBAWsOAvkBAIUBC0HfACEDDKMCCyAEIAFBAWoiAUcNAAtB8wAhAwy6AgtB8wAhAwy5AgsgASAERwRAIAJBDzYCCCACIAE2AgRB4AAhAwygAgtB9QAhAwy4AgsgASAERgRAQfYAIQMMuAILIAJBDzYCCCACIAE2AgQLQQMhAwydAgsDQCABLQAAQSBHDY4CIAQgAUEBaiIBRw0AC0H3ACEDDLUCCyABIARGBEBB+AAhAwy1AgsgAS0AAEEgRw16IAFBAWohAQxbC0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAADXgMgAILIAEgBEYEQEH6ACEDDLMCCyABLQAAQcwARw10IAFBAWohAUETDHYLQfsAIQMgASAERg2xAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYDQCABLQAAIABB8M4Aai0AAEcNcyAAQQVGDXUgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMsQILIAEgBEYEQEH8ACEDDLECCwJAAkAgAS0AAEHDAGsODAB0dHR0dHR0dHR0AXQLIAFBAWohAUHmACEDDJgCCyABQQFqIQFB5wAhAwyXAgtB/QAhAyABIARGDa8CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDXIgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADLACCyACQQA2AgAgBkEBaiEBQRAMcwtB/gAhAyABIARGDa4CIAIoAgAiACAEIAFraiEFIAEgAGtBBWohBgJAA0AgAS0AACAAQfbOAGotAABHDXEgAEEFRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK8CCyACQQA2AgAgBkEBaiEBQRYMcgtB/wAhAyABIARGDa0CIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQfzOAGotAABHDXAgAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADK4CCyACQQA2AgAgBkEBaiEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohAUEeDF4LIAEgBEYEQEGTASEDDJoCCyABLQAAQcwARw1bIAFBAWohAUEKDF0LIAEgBEYEQEGUASEDDJkCCwJAAkAgAS0AAEHBAGsODwBcXFxcXFxcXFxcXFxcAVwLIAFBAWohAUH+ACEDDIACCyABQQFqIQFB/wAhAwz/AQsgASAERgRAQZUBIQMMmAILAkACQCABLQAAQcEAaw4DAFsBWwsgAUEBaiEBQf0AIQMM/wELIAFBAWohAUGAASEDDP4BC0GWASEDIAEgBEYNlgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBp88Aai0AAEcNWSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlwILIAJBADYCACAGQQFqIQFBCwxaCyABIARGBEBBlwEhAwyWAgsCQAJAAkACQCABLQAAQS1rDiMAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1sBW1tbW1sCW1tbA1sLIAFBAWohAUH7ACEDDP8BCyABQQFqIQFB/AAhAwz+AQsgAUEBaiEBQYEBIQMM/QELIAFBAWohAUGCASEDDPwBC0GYASEDIAEgBEYNlAIgAigCACIAIAQgAWtqIQUgASAAa0EEaiEGAkADQCABLQAAIABBqc8Aai0AAEcNVyAAQQRGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlQILIAJBADYCACAGQQFqIQFBGQxYC0GZASEDIAEgBEYNkwIgAigCACIAIAQgAWtqIQUgASAAa0EFaiEGAkADQCABLQAAIABBrs8Aai0AAEcNViAAQQVGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMlAILIAJBADYCACAGQQFqIQFBBgxXC0GaASEDIAEgBEYNkgIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBtM8Aai0AAEcNVSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkwILIAJBADYCACAGQQFqIQFBHAxWC0GbASEDIAEgBEYNkQIgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABBts8Aai0AAEcNVCAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMkgILIAJBADYCACAGQQFqIQFBJwxVCyABIARGBEBBnAEhAwyRAgsCQAJAIAEtAABB1ABrDgIAAVQLIAFBAWohAUGGASEDDPgBCyABQQFqIQFBhwEhAwz3AQtBnQEhAyABIARGDY8CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbjPAGotAABHDVIgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADJACCyACQQA2AgAgBkEBaiEBQSYMUwtBngEhAyABIARGDY4CIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgJAA0AgAS0AACAAQbrPAGotAABHDVEgAEEBRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI8CCyACQQA2AgAgBkEBaiEBQQMMUgtBnwEhAyABIARGDY0CIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQe3PAGotAABHDVAgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI4CCyACQQA2AgAgBkEBaiEBQQwMUQtBoAEhAyABIARGDYwCIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQbzPAGotAABHDU8gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADI0CCyACQQA2AgAgBkEBaiEBQQ0MUAsgASAERgRAQaEBIQMMjAILAkACQCABLQAAQcYAaw4LAE9PT09PT09PTwFPCyABQQFqIQFBiwEhAwzzAQsgAUEBaiEBQYwBIQMM8gELIAEgBEYEQEGiASEDDIsCCyABLQAAQdAARw1MIAFBAWohAQxGCyABIARGBEBBowEhAwyKAgsCQAJAIAEtAABByQBrDgcBTU1NTU0ATQsgAUEBaiEBQY4BIQMM8QELIAFBAWohAUEiDE0LQaQBIQMgASAERg2IAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHAzwBqLQAARw1LIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyJAgsgAkEANgIAIAZBAWohAUEdDEwLIAEgBEYEQEGlASEDDIgCCwJAAkAgAS0AAEHSAGsOAwBLAUsLIAFBAWohAUGQASEDDO8BCyABQQFqIQFBBAxLCyABIARGBEBBpgEhAwyHAgsCQAJAAkACQAJAIAEtAABBwQBrDhUATU1NTU1NTU1NTQFNTQJNTQNNTQRNCyABQQFqIQFBiAEhAwzxAQsgAUEBaiEBQYkBIQMM8AELIAFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz+AQsgAkEANgIAIAZBAWohAUEqDEELIAEgBEYEQEGwASEDDP0BCwJAAkAgAS0AAEHVAGsOCwBAQEBAQEBAQEABQAsgAUEBaiEBQZoBIQMM5AELIAFBAWohAUGbASEDDOMBCyABIARGBEBBsQEhAwz8AQsCQAJAIAEtAABBwQBrDhQAPz8/Pz8/Pz8/Pz8/Pz8/Pz8/AT8LIAFBAWohAUGZASEDDOMBCyABQQFqIQFBnAEhAwziAQtBsgEhAyABIARGDfoBIAIoAgAiACAEIAFraiEFIAEgAGtBA2ohBgJAA0AgAS0AACAAQdnPAGotAABHDT0gAEEDRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPsBCyACQQA2AgAgBkEBaiEBQSEMPgtBswEhAyABIARGDfkBIAIoAgAiACAEIAFraiEFIAEgAGtBBmohBgJAA0AgAS0AACAAQd3PAGotAABHDTwgAEEGRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADPoBCyACQQA2AgAgBkEBaiEBQRoMPQsgASAERgRAQbQBIQMM+QELAkACQAJAIAEtAABBxQBrDhEAPT09PT09PT09AT09PT09Aj0LIAFBAWohAUGdASEDDOEBCyABQQFqIQFBngEhAwzgAQsgAUEBaiEBQZ8BIQMM3wELQbUBIQMgASAERg33ASACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEHkzwBqLQAARw06IABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz4AQsgAkEANgIAIAZBAWohAUEoDDsLQbYBIQMgASAERg32ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHqzwBqLQAARw05IABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAz3AQsgAkEANgIAIAZBAWohAUEHDDoLIAEgBEYEQEG3ASEDDPYBCwJAAkAgAS0AAEHFAGsODgA5OTk5OTk5OTk5OTkBOQsgAUEBaiEBQaEBIQMM3QELIAFBAWohAUGiASEDDNwBC0G4ASEDIAEgBEYN9AEgAigCACIAIAQgAWtqIQUgASAAa0ECaiEGAkADQCABLQAAIABB7c8Aai0AAEcNNyAAQQJGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9QELIAJBADYCACAGQQFqIQFBEgw4C0G5ASEDIAEgBEYN8wEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8M8Aai0AAEcNNiAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM9AELIAJBADYCACAGQQFqIQFBIAw3C0G6ASEDIAEgBEYN8gEgAigCACIAIAQgAWtqIQUgASAAa0EBaiEGAkADQCABLQAAIABB8s8Aai0AAEcNNSAAQQFGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8wELIAJBADYCACAGQQFqIQFBDww2CyABIARGBEBBuwEhAwzyAQsCQAJAIAEtAABByQBrDgcANTU1NTUBNQsgAUEBaiEBQaUBIQMM2QELIAFBAWohAUGmASEDDNgBC0G8ASEDIAEgBEYN8AEgAigCACIAIAQgAWtqIQUgASAAa0EHaiEGAkADQCABLQAAIABB9M8Aai0AAEcNMyAAQQdGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAM8QELIAJBADYCACAGQQFqIQFBGww0CyABIARGBEBBvQEhAwzwAQsCQAJAAkAgAS0AAEHCAGsOEgA0NDQ0NDQ0NDQBNDQ0NDQ0AjQLIAFBAWohAUGkASEDDNgBCyABQQFqIQFBpwEhAwzXAQsgAUEBaiEBQagBIQMM1gELIAEgBEYEQEG+ASEDDO8BCyABLQAAQc4ARw0wIAFBAWohAQwsCyABIARGBEBBvwEhAwzuAQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCABLQAAQcEAaw4VAAECAz8EBQY/Pz8HCAkKCz8MDQ4PPwsgAUEBaiEBQegAIQMM4wELIAFBAWohAUHpACEDDOIBCyABQQFqIQFB7gAhAwzhAQsgAUEBaiEBQfIAIQMM4AELIAFBAWohAUHzACEDDN8BCyABQQFqIQFB9gAhAwzeAQsgAUEBaiEBQfcAIQMM3QELIAFBAWohAUH6ACEDDNwBCyABQQFqIQFBgwEhAwzbAQsgAUEBaiEBQYQBIQMM2gELIAFBAWohAUGFASEDDNkBCyABQQFqIQFBkgEhAwzYAQsgAUEBaiEBQZgBIQMM1wELIAFBAWohAUGgASEDDNYBCyABQQFqIQFBowEhAwzVAQsgAUEBaiEBQaoBIQMM1AELIAEgBEcEQCACQRA2AgggAiABNgIEQasBIQMM1AELQcABIQMM7AELQQAhAAJAIAIoAjgiA0UNACADKAI0IgNFDQAgAiADEQAAIQALIABFDV4gAEEVRw0HIAJB0QA2AhwgAiABNgIUIAJBsBc2AhAgAkEVNgIMQQAhAwzrAQsgAUEBaiABIARHDQgaQcIBIQMM6gELA0ACQCABLQAAQQprDgQIAAALAAsgBCABQQFqIgFHDQALQcMBIQMM6QELIAEgBEcEQCACQRE2AgggAiABNgIEQQEhAwzQAQtBxAEhAwzoAQsgASAERgRAQcUBIQMM6AELAkACQCABLQAAQQprDgQBKCgAKAsgAUEBagwJCyABQQFqDAULIAEgBEYEQEHGASEDDOcBCwJAAkAgAS0AAEEKaw4XAQsLAQsLCwsLCwsLCwsLCwsLCwsLCwALCyABQQFqIQELQbABIQMMzQELIAEgBEYEQEHIASEDDOYBCyABLQAAQSBHDQkgAkEAOwEyIAFBAWohAUGzASEDDMwBCwNAIAEhAAJAIAEgBEcEQCABLQAAQTBrQf8BcSIDQQpJDQEMJwtBxwEhAwzmAQsCQCACLwEyIgFBmTNLDQAgAiABQQpsIgU7ATIgBUH+/wNxIANB//8Dc0sNACAAQQFqIQEgAiADIAVqIgM7ATIgA0H//wNxQegHSQ0BCwtBACEDIAJBADYCHCACQcEJNgIQIAJBDTYCDCACIABBAWo2AhQM5AELIAJBADYCHCACIAE2AhQgAkHwDDYCECACQRs2AgxBACEDDOMBCyACKAIEIQAgAkEANgIEIAIgACABECYiAA0BIAFBAWoLIQFBrQEhAwzIAQsgAkHBATYCHCACIAA2AgwgAiABQQFqNgIUQQAhAwzgAQsgAigCBCEAIAJBADYCBCACIAAgARAmIgANASABQQFqCyEBQa4BIQMMxQELIAJBwgE2AhwgAiAANgIMIAIgAUEBajYCFEEAIQMM3QELIAJBADYCHCACIAE2AhQgAkGXCzYCECACQQ02AgxBACEDDNwBCyACQQA2AhwgAiABNgIUIAJB4xA2AhAgAkEJNgIMQQAhAwzbAQsgAkECOgAoDKwBC0EAIQMgAkEANgIcIAJBrws2AhAgAkECNgIMIAIgAUEBajYCFAzZAQtBAiEDDL8BC0ENIQMMvgELQSYhAwy9AQtBFSEDDLwBC0EWIQMMuwELQRghAwy6AQtBHCEDDLkBC0EdIQMMuAELQSAhAwy3AQtBISEDDLYBC0EjIQMMtQELQcYAIQMMtAELQS4hAwyzAQtBPSEDDLIBC0HLACEDDLEBC0HOACEDDLABC0HYACEDDK8BC0HZACEDDK4BC0HbACEDDK0BC0HxACEDDKwBC0H0ACEDDKsBC0GNASEDDKoBC0GXASEDDKkBC0GpASEDDKgBC0GvASEDDKcBC0GxASEDDKYBCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB8Rs2AhAgAkEGNgIMDL0BCyACQQA2AgAgBkEBaiEBQSQLOgApIAIoAgQhACACQQA2AgQgAiAAIAEQJyIARQRAQeUAIQMMowELIAJB+QA2AhwgAiABNgIUIAIgADYCDEEAIQMMuwELIABBFUcEQCACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwy7AQsgAkH4ADYCHCACIAE2AhQgAkHKGDYCECACQRU2AgxBACEDDLoBCyACQQA2AhwgAiABNgIUIAJBjhs2AhAgAkEGNgIMQQAhAwy5AQsgAkEANgIcIAIgATYCFCACQf4RNgIQIAJBBzYCDEEAIQMMuAELIAJBADYCHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AAEEwayIAQf8BcUEKSQRAIAIgADoAKiABQQFqIQFBzwAhAwyCAQsgAigCBCEAIAJBADYCBCACIAAgARAoIgBFDYYBIAJB3gA2AhwgAiABNgIUIAIgADYCDEEAIQMMmgELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ2GASACQdwANgIcIAIgATYCFCACIAA2AgxBACEDDJkBCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMhwELIAJB2gA2AhwgAiAFNgIUIAIgADYCDAyYAQtBACEBQQEhAwsgAiADOgArIAVBAWohAwJAAkACQCACLQAtQRBxDQACQAJAAkAgAi0AKg4DAQACBAsgBkUNAwwCCyAADQEMAgsgAUUNAQsgAigCBCEAIAJBADYCBCACIAAgAxAoIgBFBEAgAyEBDAILIAJB2AA2AhwgAiADNgIUIAIgADYCDEEAIQMMmAELIAIoAgQhACACQQA2AgQgAiAAIAMQKCIARQRAIAMhAQyHAQsgAkHZADYCHCACIAM2AhQgAiAANgIMQQAhAwyXAQtBzAAhAwx9CyAAQRVHBEAgAkEANgIcIAIgATYCFCACQZQNNgIQIAJBITYCDEEAIQMMlgELIAJB1wA2AhwgAiABNgIUIAJByRc2AhAgAkEVNgIMQQAhAwyVAQtBACEDIAJBADYCHCACIAE2AhQgAkGAETYCECACQQk2AgwMlAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0AIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMkwELQckAIQMMeQsgAkEANgIcIAIgATYCFCACQcEoNgIQIAJBBzYCDCACQQA2AgBBACEDDJEBCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAlIgBFDQAgAkHSADYCHCACIAE2AhQgAiAANgIMDJABC0HIACEDDHYLIAJBADYCACAFIQELIAJBgBI7ASogAUEBaiEBQQAhAAJAIAIoAjgiA0UNACADKAIwIgNFDQAgAiADEQAAIQALIAANAQtBxwAhAwxzCyAAQRVGBEAgAkHRADYCHCACIAE2AhQgAkHjFzYCECACQRU2AgxBACEDDIwBC0EAIQMgAkEANgIcIAIgATYCFCACQbkNNgIQIAJBGjYCDAyLAQtBACEDIAJBADYCHCACIAE2AhQgAkGgGTYCECACQR42AgwMigELIAEtAABBOkYEQCACKAIEIQBBACEDIAJBADYCBCACIAAgARApIgBFDQEgAkHDADYCHCACIAA2AgwgAiABQQFqNgIUDIoBC0EAIQMgAkEANgIcIAIgATYCFCACQbERNgIQIAJBCjYCDAyJAQsgAUEBaiEBQTshAwxvCyACQcMANgIcIAIgADYCDCACIAFBAWo2AhQMhwELQQAhAyACQQA2AhwgAiABNgIUIAJB8A42AhAgAkEcNgIMDIYBCyACIAIvATBBEHI7ATAMZgsCQCACLwEwIgBBCHFFDQAgAi0AKEEBRw0AIAItAC1BCHFFDQMLIAIgAEH3+wNxQYAEcjsBMAwECyABIARHBEACQANAIAEtAABBMGsiAEH/AXFBCk8EQEE1IQMMbgsgAikDICIKQpmz5syZs+bMGVYNASACIApCCn4iCjcDICAKIACtQv8BgyILQn+FVg0BIAIgCiALfDcDICAEIAFBAWoiAUcNAAtBOSEDDIUBCyACKAIEIQBBACEDIAJBADYCBCACIAAgAUEBaiIBECoiAA0MDHcLQTkhAwyDAQsgAi0AMEEgcQ0GQcUBIQMMaQtBACEDIAJBADYCBCACIAEgARAqIgBFDQQgAkE6NgIcIAIgADYCDCACIAFBAWo2AhQMgQELIAItAChBAUcNACACLQAtQQhxRQ0BC0E3IQMMZgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIABEAgAkE7NgIcIAIgADYCDCACIAFBAWo2AhQMfwsgAUEBaiEBDG4LIAJBCDoALAwECyABQQFqIQEMbQtBACEDIAJBADYCHCACIAE2AhQgAkHkEjYCECACQQQ2AgwMewsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ1sIAJBNzYCHCACIAE2AhQgAiAANgIMDHoLIAIgAi8BMEEgcjsBMAtBMCEDDF8LIAJBNjYCHCACIAE2AhQgAiAANgIMDHcLIABBLEcNASABQQFqIQBBASEBAkACQAJAAkACQCACLQAsQQVrDgQDAQIEAAsgACEBDAQLQQIhAQwBC0EEIQELIAJBAToALCACIAIvATAgAXI7ATAgACEBDAELIAIgAi8BMEEIcjsBMCAAIQELQTkhAwxcCyACQQA6ACwLQTQhAwxaCyABIARGBEBBLSEDDHMLAkACQANAAkAgAS0AAEEKaw4EAgAAAwALIAQgAUEBaiIBRw0AC0EtIQMMdAsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIARQ0CIAJBLDYCHCACIAE2AhQgAiAANgIMDHMLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAS0AAEENRgRAIAIoAgQhAEEAIQMgAkEANgIEIAIgACABECoiAEUEQCABQQFqIQEMAgsgAkEsNgIcIAIgADYCDCACIAFBAWo2AhQMcgsgAi0ALUEBcQRAQcQBIQMMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKiIADQEMZQtBLyEDDFcLIAJBLjYCHCACIAE2AhQgAiAANgIMDG8LQQAhAyACQQA2AhwgAiABNgIUIAJB8BQ2AhAgAkEDNgIMDG4LQQEhAwJAAkACQAJAIAItACxBBWsOBAMBAgAECyACIAIvATBBCHI7ATAMAwtBAiEDDAELQQQhAwsgAkEBOgAsIAIgAi8BMCADcjsBMAtBKiEDDFMLQQAhAyACQQA2AhwgAiABNgIUIAJB4Q82AhAgAkEKNgIMDGsLQQEhAwJAAkACQAJAAkACQCACLQAsQQJrDgcFBAQDAQIABAsgAiACLwEwQQhyOwEwDAMLQQIhAwwBC0EEIQMLIAJBAToALCACIAIvATAgA3I7ATALQSshAwxSC0EAIQMgAkEANgIcIAIgATYCFCACQasSNgIQIAJBCzYCDAxqC0EAIQMgAkEANgIcIAIgATYCFCACQf0NNgIQIAJBHTYCDAxpCyABIARHBEADQCABLQAAQSBHDUggBCABQQFqIgFHDQALQSUhAwxpC0ElIQMMaAsgAi0ALUEBcQRAQcMBIQMMTwsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQKSIABEAgAkEmNgIcIAIgADYCDCACIAFBAWo2AhQMaAsgAUEBaiEBDFwLIAFBAWohASACLwEwIgBBgAFxBEBBACEAAkAgAigCOCIDRQ0AIAMoAlQiA0UNACACIAMRAAAhAAsgAEUNBiAAQRVHDR8gAkEFNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMZwsCQCAAQaAEcUGgBEcNACACLQAtQQJxDQBBACEDIAJBADYCHCACIAE2AhQgAkGWEzYCECACQQQ2AgwMZwsgAgJ/IAIvATBBFHFBFEYEQEEBIAItAChBAUYNARogAi8BMkHlAEYMAQsgAi0AKUEFRgs6AC5BACEAAkAgAigCOCIDRQ0AIAMoAiQiA0UNACACIAMRAAAhAAsCQAJAAkACQAJAIAAOFgIBAAQEBAQEBAQEBAQEBAQEBAQEBAMECyACQQE6AC4LIAIgAi8BMEHAAHI7ATALQSchAwxPCyACQSM2AhwgAiABNgIUIAJBpRY2AhAgAkEVNgIMQQAhAwxnC0EAIQMgAkEANgIcIAIgATYCFCACQdULNgIQIAJBETYCDAxmC0EAIQACQCACKAI4IgNFDQAgAygCLCIDRQ0AIAIgAxEAACEACyAADQELQQ4hAwxLCyAAQRVGBEAgAkECNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMZAtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMYwtBACEDIAJBADYCHCACIAE2AhQgAkGqHDYCECACQQ82AgwMYgsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEgCqdqIgEQKyIARQ0AIAJBBTYCHCACIAE2AhQgAiAANgIMDGELQQ8hAwxHC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxfC0IBIQoLIAFBAWohAQJAIAIpAyAiC0L//////////w9YBEAgAiALQgSGIAqENwMgDAELQQAhAyACQQA2AhwgAiABNgIUIAJBrQk2AhAgAkEMNgIMDF4LQSQhAwxEC0EAIQMgAkEANgIcIAIgATYCFCACQc0TNgIQIAJBDDYCDAxcCyACKAIEIQBBACEDIAJBADYCBCACIAAgARAsIgBFBEAgAUEBaiEBDFILIAJBFzYCHCACIAA2AgwgAiABQQFqNgIUDFsLIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQRY2AhwgAiAANgIMIAIgAUEBajYCFAxbC0EfIQMMQQtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMWQsgAigCBCEAQQAhAyACQQA2AgQgAiAAIAEQLSIARQRAIAFBAWohAQxQCyACQRQ2AhwgAiAANgIMIAIgAUEBajYCFAxYCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABEC0iAEUEQCABQQFqIQEMAQsgAkETNgIcIAIgADYCDCACIAFBAWo2AhQMWAtBHiEDDD4LQQAhAyACQQA2AhwgAiABNgIUIAJBxgw2AhAgAkEjNgIMDFYLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABEC0iAEUEQCABQQFqIQEMTgsgAkERNgIcIAIgADYCDCACIAFBAWo2AhQMVQsgAkEQNgIcIAIgATYCFCACIAA2AgwMVAtBACEDIAJBADYCHCACIAE2AhQgAkHGDDYCECACQSM2AgwMUwtBACEDIAJBADYCHCACIAE2AhQgAkHAFTYCECACQQI2AgwMUgsgAigCBCEAQQAhAyACQQA2AgQCQCACIAAgARAtIgBFBEAgAUEBaiEBDAELIAJBDjYCHCACIAA2AgwgAiABQQFqNgIUDFILQRshAww4C0EAIQMgAkEANgIcIAIgATYCFCACQcYMNgIQIAJBIzYCDAxQCyACKAIEIQBBACEDIAJBADYCBAJAIAIgACABECwiAEUEQCABQQFqIQEMAQsgAkENNgIcIAIgADYCDCACIAFBAWo2AhQMUAtBGiEDDDYLQQAhAyACQQA2AhwgAiABNgIUIAJBmg82AhAgAkEiNgIMDE4LIAIoAgQhAEEAIQMgAkEANgIEAkAgAiAAIAEQLCIARQRAIAFBAWohAQwBCyACQQw2AhwgAiAANgIMIAIgAUEBajYCFAxOC0EZIQMMNAtBACEDIAJBADYCHCACIAE2AhQgAkGaDzYCECACQSI2AgwMTAsgAEEVRwRAQQAhAyACQQA2AhwgAiABNgIUIAJBgww2AhAgAkETNgIMDEwLIAJBCjYCHCACIAE2AhQgAkHkFjYCECACQRU2AgxBACEDDEsLIAIoAgQhAEEAIQMgAkEANgIEIAIgACABIAqnaiIBECsiAARAIAJBBzYCHCACIAE2AhQgAiAANgIMDEsLQRMhAwwxCyAAQRVHBEBBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMSgsgAkEeNgIcIAIgATYCFCACQfkXNgIQIAJBFTYCDEEAIQMMSQtBACEAAkAgAigCOCIDRQ0AIAMoAiwiA0UNACACIAMRAAAhAAsgAEUNQSAAQRVGBEAgAkEDNgIcIAIgATYCFCACQbAYNgIQIAJBFTYCDEEAIQMMSQtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMSAtBACEDIAJBADYCHCACIAE2AhQgAkHaDTYCECACQRQ2AgwMRwtBACEDIAJBADYCHCACIAE2AhQgAkGnDjYCECACQRI2AgwMRgsgAkEAOgAvIAItAC1BBHFFDT8LIAJBADoALyACQQE6ADRBACEDDCsLQQAhAyACQQA2AhwgAkHkETYCECACQQc2AgwgAiABQQFqNgIUDEMLAkADQAJAIAEtAABBCmsOBAACAgACCyAEIAFBAWoiAUcNAAtB3QEhAwxDCwJAAkAgAi0ANEEBRw0AQQAhAAJAIAIoAjgiA0UNACADKAJYIgNFDQAgAiADEQAAIQALIABFDQAgAEEVRw0BIAJB3AE2AhwgAiABNgIUIAJB1RY2AhAgAkEVNgIMQQAhAwxEC0HBASEDDCoLIAJBADYCHCACIAE2AhQgAkHpCzYCECACQR82AgxBACEDDEILAkACQCACLQAoQQFrDgIEAQALQcABIQMMKQtBuQEhAwwoCyACQQI6AC9BACEAAkAgAigCOCIDRQ0AIAMoAgAiA0UNACACIAMRAAAhAAsgAEUEQEHCASEDDCgLIABBFUcEQCACQQA2AhwgAiABNgIUIAJBpAw2AhAgAkEQNgIMQQAhAwxBCyACQdsBNgIcIAIgATYCFCACQfoWNgIQIAJBFTYCDEEAIQMMQAsgASAERgRAQdoBIQMMQAsgAS0AAEHIAEYNASACQQE6ACgLQawBIQMMJQtBvwEhAwwkCyABIARHBEAgAkEQNgIIIAIgATYCBEG+ASEDDCQLQdkBIQMMPAsgASAERgRAQdgBIQMMPAsgAS0AAEHIAEcNBCABQQFqIQFBvQEhAwwiCyABIARGBEBB1wEhAww7CwJAAkAgAS0AAEHFAGsOEAAFBQUFBQUFBQUFBQUFBQEFCyABQQFqIQFBuwEhAwwiCyABQQFqIQFBvAEhAwwhC0HWASEDIAEgBEYNOSACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGD0ABqLQAARw0DIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw6CyACKAIEIQAgAkIANwMAIAIgACAGQQFqIgEQJyIARQRAQcYBIQMMIQsgAkHVATYCHCACIAE2AhQgAiAANgIMQQAhAww5C0HUASEDIAEgBEYNOCACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEGB0ABqLQAARw0CIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAw5CyACQYEEOwEoIAIoAgQhACACQgA3AwAgAiAAIAZBAWoiARAnIgANAwwCCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJB2Bs2AhAgAkEINgIMDDYLQboBIQMMHAsgAkHTATYCHCACIAE2AhQgAiAANgIMQQAhAww0C0EAIQACQCACKAI4IgNFDQAgAygCOCIDRQ0AIAIgAxEAACEACyAARQ0AIABBFUYNASACQQA2AhwgAiABNgIUIAJBzA42AhAgAkEgNgIMQQAhAwwzC0HkACEDDBkLIAJB+AA2AhwgAiABNgIUIAJByhg2AhAgAkEVNgIMQQAhAwwxC0HSASEDIAQgASIARg0wIAQgAWsgAigCACIBaiEFIAAgAWtBBGohBgJAA0AgAC0AACABQfzPAGotAABHDQEgAUEERg0DIAFBAWohASAEIABBAWoiAEcNAAsgAiAFNgIADDELIAJBADYCHCACIAA2AhQgAkGQMzYCECACQQg2AgwgAkEANgIAQQAhAwwwCyABIARHBEAgAkEONgIIIAIgATYCBEG3ASEDDBcLQdEBIQMMLwsgAkEANgIAIAZBAWohAQtBuAEhAwwUCyABIARGBEBB0AEhAwwtCyABLQAAQTBrIgBB/wFxQQpJBEAgAiAAOgAqIAFBAWohAUG2ASEDDBQLIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0UIAJBzwE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAsgASAERgRAQc4BIQMMLAsCQCABLQAAQS5GBEAgAUEBaiEBDAELIAIoAgQhACACQQA2AgQgAiAAIAEQKCIARQ0VIAJBzQE2AhwgAiABNgIUIAIgADYCDEEAIQMMLAtBtQEhAwwSCyAEIAEiBUYEQEHMASEDDCsLQQAhAEEBIQFBASEGQQAhAwJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAIAUtAABBMGsOCgoJAAECAwQFBggLC0ECDAYLQQMMBQtBBAwEC0EFDAMLQQYMAgtBBwwBC0EICyEDQQAhAUEAIQYMAgtBCSEDQQEhAEEAIQFBACEGDAELQQAhAUEBIQMLIAIgAzoAKyAFQQFqIQMCQAJAIAItAC1BEHENAAJAAkACQCACLQAqDgMBAAIECyAGRQ0DDAILIAANAQwCCyABRQ0BCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMAwsgAkHJATYCHCACIAM2AhQgAiAANgIMQQAhAwwtCyACKAIEIQAgAkEANgIEIAIgACADECgiAEUEQCADIQEMGAsgAkHKATYCHCACIAM2AhQgAiAANgIMQQAhAwwsCyACKAIEIQAgAkEANgIEIAIgACAFECgiAEUEQCAFIQEMFgsgAkHLATYCHCACIAU2AhQgAiAANgIMDCsLQbQBIQMMEQtBACEAAkAgAigCOCIDRQ0AIAMoAjwiA0UNACACIAMRAAAhAAsCQCAABEAgAEEVRg0BIAJBADYCHCACIAE2AhQgAkGUDTYCECACQSE2AgxBACEDDCsLQbIBIQMMEQsgAkHIATYCHCACIAE2AhQgAkHJFzYCECACQRU2AgxBACEDDCkLIAJBADYCACAGQQFqIQFB9QAhAwwPCyACLQApQQVGBEBB4wAhAwwPC0HiACEDDA4LIAAhASACQQA2AgALIAJBADoALEEJIQMMDAsgAkEANgIAIAdBAWohAUHAACEDDAsLQQELOgAsIAJBADYCACAGQQFqIQELQSkhAwwIC0E4IQMMBwsCQCABIARHBEADQCABLQAAQYA+ai0AACIAQQFHBEAgAEECRw0DIAFBAWohAQwFCyAEIAFBAWoiAUcNAAtBPiEDDCELQT4hAwwgCwsgAkEAOgAsDAELQQshAwwEC0E6IQMMAwsgAUEBaiEBQS0hAwwCCyACIAE6ACwgAkEANgIAIAZBAWohAUEMIQMMAQsgAkEANgIAIAZBAWohAUEKIQMMAAsAC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwXC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwWC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwVC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwUC0EAIQMgAkEANgIcIAIgATYCFCACQc0QNgIQIAJBCTYCDAwTC0EAIQMgAkEANgIcIAIgATYCFCACQekKNgIQIAJBCTYCDAwSC0EAIQMgAkEANgIcIAIgATYCFCACQbcQNgIQIAJBCTYCDAwRC0EAIQMgAkEANgIcIAIgATYCFCACQZwRNgIQIAJBCTYCDAwQC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwPC0EAIQMgAkEANgIcIAIgATYCFCACQZcVNgIQIAJBDzYCDAwOC0EAIQMgAkEANgIcIAIgATYCFCACQcASNgIQIAJBCzYCDAwNC0EAIQMgAkEANgIcIAIgATYCFCACQZUJNgIQIAJBCzYCDAwMC0EAIQMgAkEANgIcIAIgATYCFCACQeEPNgIQIAJBCjYCDAwLC0EAIQMgAkEANgIcIAIgATYCFCACQfsPNgIQIAJBCjYCDAwKC0EAIQMgAkEANgIcIAIgATYCFCACQfEZNgIQIAJBAjYCDAwJC0EAIQMgAkEANgIcIAIgATYCFCACQcQUNgIQIAJBAjYCDAwIC0EAIQMgAkEANgIcIAIgATYCFCACQfIVNgIQIAJBAjYCDAwHCyACQQI2AhwgAiABNgIUIAJBnBo2AhAgAkEWNgIMQQAhAwwGC0EBIQMMBQtB1AAhAyABIARGDQQgCEEIaiEJIAIoAgAhBQJAAkAgASAERwRAIAVB2MIAaiEHIAQgBWogAWshACAFQX9zQQpqIgUgAWohBgNAIAEtAAAgBy0AAEcEQEECIQcMAwsgBUUEQEEAIQcgBiEBDAMLIAVBAWshBSAHQQFqIQcgBCABQQFqIgFHDQALIAAhBSAEIQELIAlBATYCACACIAU2AgAMAQsgAkEANgIAIAkgBzYCAAsgCSABNgIEIAgoAgwhACAIKAIIDgMBBAIACwALIAJBADYCHCACQbUaNgIQIAJBFzYCDCACIABBAWo2AhRBACEDDAILIAJBADYCHCACIAA2AhQgAkHKGjYCECACQQk2AgxBACEDDAELIAEgBEYEQEEiIQMMAQsgAkEJNgIIIAIgATYCBEEhIQMLIAhBEGokACADRQRAIAIoAgwhAAwBCyACIAM2AhxBACEAIAIoAgQiAUUNACACIAEgBCACKAIIEQEAIgFFDQAgAiAENgIUIAIgATYCDCABIQALIAALvgIBAn8gAEEAOgAAIABB3ABqIgFBAWtBADoAACAAQQA6AAIgAEEAOgABIAFBA2tBADoAACABQQJrQQA6AAAgAEEAOgADIAFBBGtBADoAAEEAIABrQQNxIgEgAGoiAEEANgIAQdwAIAFrQXxxIgIgAGoiAUEEa0EANgIAAkAgAkEJSQ0AIABBADYCCCAAQQA2AgQgAUEIa0EANgIAIAFBDGtBADYCACACQRlJDQAgAEEANgIYIABBADYCFCAAQQA2AhAgAEEANgIMIAFBEGtBADYCACABQRRrQQA2AgAgAUEYa0EANgIAIAFBHGtBADYCACACIABBBHFBGHIiAmsiAUEgSQ0AIAAgAmohAANAIABCADcDGCAAQgA3AxAgAEIANwMIIABCADcDACAAQSBqIQAgAUEgayIBQR9LDQALCwtWAQF/AkAgACgCDA0AAkACQAJAAkAgAC0ALw4DAQADAgsgACgCOCIBRQ0AIAEoAiwiAUUNACAAIAERAAAiAQ0DC0EADwsACyAAQcMWNgIQQQ4hAQsgAQsaACAAKAIMRQRAIABB0Rs2AhAgAEEVNgIMCwsUACAAKAIMQRVGBEAgAEEANgIMCwsUACAAKAIMQRZGBEAgAEEANgIMCwsHACAAKAIMCwcAIAAoAhALCQAgACABNgIQCwcAIAAoAhQLFwAgAEEkTwRAAAsgAEECdEGgM2ooAgALFwAgAEEuTwRAAAsgAEECdEGwNGooAgALvwkBAX9B6yghAQJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIABB5ABrDvQDY2IAAWFhYWFhYQIDBAVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhBgcICQoLDA0OD2FhYWFhEGFhYWFhYWFhYWFhEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYRITFBUWFxgZGhthYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2YTc4OTphYWFhYWFhYTthYWE8YWFhYT0+P2FhYWFhYWFhQGFhQWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUJDREVGR0hJSktMTU5PUFFSU2FhYWFhYWFhVFVWV1hZWlthXF1hYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFeYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhX2BhC0HhJw8LQaQhDwtByywPC0H+MQ8LQcAkDwtBqyQPC0GNKA8LQeImDwtBgDAPC0G5Lw8LQdckDwtB7x8PC0HhHw8LQfofDwtB8iAPC0GoLw8LQa4yDwtBiDAPC0HsJw8LQYIiDwtBjh0PC0HQLg8LQcojDwtBxTIPC0HfHA8LQdIcDwtBxCAPC0HXIA8LQaIfDwtB7S4PC0GrMA8LQdQlDwtBzC4PC0H6Lg8LQfwrDwtB0jAPC0HxHQ8LQbsgDwtB9ysPC0GQMQ8LQdcxDwtBoi0PC0HUJw8LQeArDwtBnywPC0HrMQ8LQdUfDwtByjEPC0HeJQ8LQdQeDwtB9BwPC0GnMg8LQbEdDwtBoB0PC0G5MQ8LQbwwDwtBkiEPC0GzJg8LQeksDwtBrB4PC0HUKw8LQfcmDwtBgCYPC0GwIQ8LQf4eDwtBjSMPC0GJLQ8LQfciDwtBoDEPC0GuHw8LQcYlDwtB6B4PC0GTIg8LQcIvDwtBwx0PC0GLLA8LQeEdDwtBjS8PC0HqIQ8LQbQtDwtB0i8PC0HfMg8LQdIyDwtB8DAPC0GpIg8LQfkjDwtBmR4PC0G1LA8LQZswDwtBkjIPC0G2Kw8LQcIiDwtB+DIPC0GeJQ8LQdAiDwtBuh4PC0GBHg8LAAtB1iEhAQsgAQsWACAAIAAtAC1B/gFxIAFBAEdyOgAtCxkAIAAgAC0ALUH9AXEgAUEAR0EBdHI6AC0LGQAgACAALQAtQfsBcSABQQBHQQJ0cjoALQsZACAAIAAtAC1B9wFxIAFBAEdBA3RyOgAtCz4BAn8CQCAAKAI4IgNFDQAgAygCBCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBxhE2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCCCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9go2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCDCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7Ro2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCECIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlRA2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCFCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBqhs2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCGCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB7RM2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCKCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABB9gg2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCHCIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBwhk2AhBBGCEECyAECz4BAn8CQCAAKAI4IgNFDQAgAygCICIDRQ0AIAAgASACIAFrIAMRAQAiBEF/Rw0AIABBlBQ2AhBBGCEECyAEC1kBAn8CQCAALQAoQQFGDQAgAC8BMiIBQeQAa0HkAEkNACABQcwBRg0AIAFBsAJGDQAgAC8BMCIAQcAAcQ0AQQEhAiAAQYgEcUGABEYNACAAQShxRSECCyACC4wBAQJ/AkACQAJAIAAtACpFDQAgAC0AK0UNACAALwEwIgFBAnFFDQEMAgsgAC8BMCIBQQFxRQ0BC0EBIQIgAC0AKEEBRg0AIAAvATIiAEHkAGtB5ABJDQAgAEHMAUYNACAAQbACRg0AIAFBwABxDQBBACECIAFBiARxQYAERg0AIAFBKHFBAEchAgsgAgtzACAAQRBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAA/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQTBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQSBq/QwAAAAAAAAAAAAAAAAAAAAA/QsDACAAQd0BNgIcCwYAIAAQMguaLQELfyMAQRBrIgokAEGk0AAoAgAiCUUEQEHk0wAoAgAiBUUEQEHw0wBCfzcCAEHo0wBCgICEgICAwAA3AgBB5NMAIApBCGpBcHFB2KrVqgVzIgU2AgBB+NMAQQA2AgBByNMAQQA2AgALQczTAEGA1AQ2AgBBnNAAQYDUBDYCAEGw0AAgBTYCAEGs0ABBfzYCAEHQ0wBBgKwDNgIAA0AgAUHI0ABqIAFBvNAAaiICNgIAIAIgAUG00ABqIgM2AgAgAUHA0ABqIAM2AgAgAUHQ0ABqIAFBxNAAaiIDNgIAIAMgAjYCACABQdjQAGogAUHM0ABqIgI2AgAgAiADNgIAIAFB1NAAaiACNgIAIAFBIGoiAUGAAkcNAAtBjNQEQcGrAzYCAEGo0ABB9NMAKAIANgIAQZjQAEHAqwM2AgBBpNAAQYjUBDYCAEHM/wdBODYCAEGI1AQhCQsCQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAAQewBTQRAQYzQACgCACIGQRAgAEETakFwcSAAQQtJGyIEQQN2IgB2IgFBA3EEQAJAIAFBAXEgAHJBAXMiAkEDdCIAQbTQAGoiASAAQbzQAGooAgAiACgCCCIDRgRAQYzQACAGQX4gAndxNgIADAELIAEgAzYCCCADIAE2AgwLIABBCGohASAAIAJBA3QiAkEDcjYCBCAAIAJqIgAgACgCBEEBcjYCBAwRC0GU0AAoAgAiCCAETw0BIAEEQAJAQQIgAHQiAkEAIAJrciABIAB0cWgiAEEDdCICQbTQAGoiASACQbzQAGooAgAiAigCCCIDRgRAQYzQACAGQX4gAHdxIgY2AgAMAQsgASADNgIIIAMgATYCDAsgAiAEQQNyNgIEIABBA3QiACAEayEFIAAgAmogBTYCACACIARqIgQgBUEBcjYCBCAIBEAgCEF4cUG00ABqIQBBoNAAKAIAIQMCf0EBIAhBA3Z0IgEgBnFFBEBBjNAAIAEgBnI2AgAgAAwBCyAAKAIICyIBIAM2AgwgACADNgIIIAMgADYCDCADIAE2AggLIAJBCGohAUGg0AAgBDYCAEGU0AAgBTYCAAwRC0GQ0AAoAgAiC0UNASALaEECdEG80gBqKAIAIgAoAgRBeHEgBGshBSAAIQIDQAJAIAIoAhAiAUUEQCACQRRqKAIAIgFFDQELIAEoAgRBeHEgBGsiAyAFSSECIAMgBSACGyEFIAEgACACGyEAIAEhAgwBCwsgACgCGCEJIAAoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAIAkgBEEDcjYCBCAJQQhqIQEMDwtBACEBIAQCf0Hk0wAoAgAEQEHs0wAoAgAMAQtB8NMAQn83AgBB6NMAQoCAhICAgMAANwIAQeTTACAKQQxqQXBxQdiq1aoFczYCAEH40wBBADYCAEHI0wBBADYCAEGAgAQLIgAgBEHHAGoiBWoiBkEAIABrIgdxIgJPBEBB/NMAQTA2AgAMDwsCQEHE0wAoAgAiAUUNAEG80wAoAgAiCCACaiEAIAAgAU0gACAIS3ENAEEAIQFB/NMAQTA2AgAMDwtByNMALQAAQQRxDQQCQAJAIAkEQEHM0wAhAQNAIAEoAgAiACAJTQRAIAAgASgCBGogCUsNAwsgASgCCCIBDQALC0EAEDMiAEF/Rg0FIAIhBkHo0wAoAgAiAUEBayIDIABxBEAgAiAAayAAIANqQQAgAWtxaiEGCyAEIAZPDQUgBkH+////B0sNBUHE0wAoAgAiAwRAQbzTACgCACIHIAZqIQEgASAHTQ0GIAEgA0sNBgsgBhAzIgEgAEcNAQwHCyAGIANrIAdxIgZB/v///wdLDQQgBhAzIQAgACABKAIAIAEoAgRqRg0DIAAhAQsCQCAGIARByABqTw0AIAFBf0YNAEHs0wAoAgAiACAFIAZrakEAIABrcSIAQf7///8HSwRAIAEhAAwHCyAAEDNBf0cEQCAAIAZqIQYgASEADAcLQQAgBmsQMxoMBAsgASIAQX9HDQUMAwtBACEDDAwLQQAhAAwKCyAAQX9HDQILQcjTAEHI0wAoAgBBBHI2AgALIAJB/v///wdLDQEgAhAzIQBBABAzIQEgAEF/Rg0BIAFBf0YNASAAIAFPDQEgASAAayIGIARBOGpNDQELQbzTAEG80wAoAgAgBmoiATYCAEHA0wAoAgAgAUkEQEHA0wAgATYCAAsCQAJAAkBBpNAAKAIAIgIEQEHM0wAhAQNAIAAgASgCACIDIAEoAgQiBWpGDQIgASgCCCIBDQALDAILQZzQACgCACIBQQBHIAAgAU9xRQRAQZzQACAANgIAC0EAIQFB0NMAIAY2AgBBzNMAIAA2AgBBrNAAQX82AgBBsNAAQeTTACgCADYCAEHY0wBBADYCAANAIAFByNAAaiABQbzQAGoiAjYCACACIAFBtNAAaiIDNgIAIAFBwNAAaiADNgIAIAFB0NAAaiABQcTQAGoiAzYCACADIAI2AgAgAUHY0ABqIAFBzNAAaiICNgIAIAIgAzYCACABQdTQAGogAjYCACABQSBqIgFBgAJHDQALQXggAGtBD3EiASAAaiICIAZBOGsiAyABayIBQQFyNgIEQajQAEH00wAoAgA2AgBBmNAAIAE2AgBBpNAAIAI2AgAgACADakE4NgIEDAILIAAgAk0NACACIANJDQAgASgCDEEIcQ0AQXggAmtBD3EiACACaiIDQZjQACgCACAGaiIHIABrIgBBAXI2AgQgASAFIAZqNgIEQajQAEH00wAoAgA2AgBBmNAAIAA2AgBBpNAAIAM2AgAgAiAHakE4NgIEDAELIABBnNAAKAIASQRAQZzQACAANgIACyAAIAZqIQNBzNMAIQECQAJAAkADQCADIAEoAgBHBEAgASgCCCIBDQEMAgsLIAEtAAxBCHFFDQELQczTACEBA0AgASgCACIDIAJNBEAgAyABKAIEaiIFIAJLDQMLIAEoAgghAQwACwALIAEgADYCACABIAEoAgQgBmo2AgQgAEF4IABrQQ9xaiIJIARBA3I2AgQgA0F4IANrQQ9xaiIGIAQgCWoiBGshASACIAZGBEBBpNAAIAQ2AgBBmNAAQZjQACgCACABaiIANgIAIAQgAEEBcjYCBAwIC0Gg0AAoAgAgBkYEQEGg0AAgBDYCAEGU0ABBlNAAKAIAIAFqIgA2AgAgBCAAQQFyNgIEIAAgBGogADYCAAwICyAGKAIEIgVBA3FBAUcNBiAFQXhxIQggBUH/AU0EQCAFQQN2IQMgBigCCCIAIAYoAgwiAkYEQEGM0ABBjNAAKAIAQX4gA3dxNgIADAcLIAIgADYCCCAAIAI2AgwMBgsgBigCGCEHIAYgBigCDCIARwRAIAAgBigCCCICNgIIIAIgADYCDAwFCyAGQRRqIgIoAgAiBUUEQCAGKAIQIgVFDQQgBkEQaiECCwNAIAIhAyAFIgBBFGoiAigCACIFDQAgAEEQaiECIAAoAhAiBQ0ACyADQQA2AgAMBAtBeCAAa0EPcSIBIABqIgcgBkE4ayIDIAFrIgFBAXI2AgQgACADakE4NgIEIAIgBUE3IAVrQQ9xakE/ayIDIAMgAkEQakkbIgNBIzYCBEGo0ABB9NMAKAIANgIAQZjQACABNgIAQaTQACAHNgIAIANBEGpB1NMAKQIANwIAIANBzNMAKQIANwIIQdTTACADQQhqNgIAQdDTACAGNgIAQczTACAANgIAQdjTAEEANgIAIANBJGohAQNAIAFBBzYCACAFIAFBBGoiAUsNAAsgAiADRg0AIAMgAygCBEF+cTYCBCADIAMgAmsiBTYCACACIAVBAXI2AgQgBUH/AU0EQCAFQXhxQbTQAGohAAJ/QYzQACgCACIBQQEgBUEDdnQiA3FFBEBBjNAAIAEgA3I2AgAgAAwBCyAAKAIICyIBIAI2AgwgACACNgIIIAIgADYCDCACIAE2AggMAQtBHyEBIAVB////B00EQCAFQSYgBUEIdmciAGt2QQFxIABBAXRrQT5qIQELIAIgATYCHCACQgA3AhAgAUECdEG80gBqIQBBkNAAKAIAIgNBASABdCIGcUUEQCAAIAI2AgBBkNAAIAMgBnI2AgAgAiAANgIYIAIgAjYCCCACIAI2AgwMAQsgBUEZIAFBAXZrQQAgAUEfRxt0IQEgACgCACEDAkADQCADIgAoAgRBeHEgBUYNASABQR12IQMgAUEBdCEBIAAgA0EEcWpBEGoiBigCACIDDQALIAYgAjYCACACIAA2AhggAiACNgIMIAIgAjYCCAwBCyAAKAIIIgEgAjYCDCAAIAI2AgggAkEANgIYIAIgADYCDCACIAE2AggLQZjQACgCACIBIARNDQBBpNAAKAIAIgAgBGoiAiABIARrIgFBAXI2AgRBmNAAIAE2AgBBpNAAIAI2AgAgACAEQQNyNgIEIABBCGohAQwIC0EAIQFB/NMAQTA2AgAMBwtBACEACyAHRQ0AAkAgBigCHCICQQJ0QbzSAGoiAygCACAGRgRAIAMgADYCACAADQFBkNAAQZDQACgCAEF+IAJ3cTYCAAwCCyAHQRBBFCAHKAIQIAZGG2ogADYCACAARQ0BCyAAIAc2AhggBigCECICBEAgACACNgIQIAIgADYCGAsgBkEUaigCACICRQ0AIABBFGogAjYCACACIAA2AhgLIAEgCGohASAGIAhqIgYoAgQhBQsgBiAFQX5xNgIEIAEgBGogATYCACAEIAFBAXI2AgQgAUH/AU0EQCABQXhxQbTQAGohAAJ/QYzQACgCACICQQEgAUEDdnQiAXFFBEBBjNAAIAEgAnI2AgAgAAwBCyAAKAIICyIBIAQ2AgwgACAENgIIIAQgADYCDCAEIAE2AggMAQtBHyEFIAFB////B00EQCABQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qIQULIAQgBTYCHCAEQgA3AhAgBUECdEG80gBqIQBBkNAAKAIAIgJBASAFdCIDcUUEQCAAIAQ2AgBBkNAAIAIgA3I2AgAgBCAANgIYIAQgBDYCCCAEIAQ2AgwMAQsgAUEZIAVBAXZrQQAgBUEfRxt0IQUgACgCACEAAkADQCAAIgIoAgRBeHEgAUYNASAFQR12IQAgBUEBdCEFIAIgAEEEcWpBEGoiAygCACIADQALIAMgBDYCACAEIAI2AhggBCAENgIMIAQgBDYCCAwBCyACKAIIIgAgBDYCDCACIAQ2AgggBEEANgIYIAQgAjYCDCAEIAA2AggLIAlBCGohAQwCCwJAIAdFDQACQCADKAIcIgFBAnRBvNIAaiICKAIAIANGBEAgAiAANgIAIAANAUGQ0AAgCEF+IAF3cSIINgIADAILIAdBEEEUIAcoAhAgA0YbaiAANgIAIABFDQELIAAgBzYCGCADKAIQIgEEQCAAIAE2AhAgASAANgIYCyADQRRqKAIAIgFFDQAgAEEUaiABNgIAIAEgADYCGAsCQCAFQQ9NBEAgAyAEIAVqIgBBA3I2AgQgACADaiIAIAAoAgRBAXI2AgQMAQsgAyAEaiICIAVBAXI2AgQgAyAEQQNyNgIEIAIgBWogBTYCACAFQf8BTQRAIAVBeHFBtNAAaiEAAn9BjNAAKAIAIgFBASAFQQN2dCIFcUUEQEGM0AAgASAFcjYCACAADAELIAAoAggLIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCAwBC0EfIQEgBUH///8HTQRAIAVBJiAFQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAQsgAiABNgIcIAJCADcCECABQQJ0QbzSAGohAEEBIAF0IgQgCHFFBEAgACACNgIAQZDQACAEIAhyNgIAIAIgADYCGCACIAI2AgggAiACNgIMDAELIAVBGSABQQF2a0EAIAFBH0cbdCEBIAAoAgAhBAJAA0AgBCIAKAIEQXhxIAVGDQEgAUEddiEEIAFBAXQhASAAIARBBHFqQRBqIgYoAgAiBA0ACyAGIAI2AgAgAiAANgIYIAIgAjYCDCACIAI2AggMAQsgACgCCCIBIAI2AgwgACACNgIIIAJBADYCGCACIAA2AgwgAiABNgIICyADQQhqIQEMAQsCQCAJRQ0AAkAgACgCHCIBQQJ0QbzSAGoiAigCACAARgRAIAIgAzYCACADDQFBkNAAIAtBfiABd3E2AgAMAgsgCUEQQRQgCSgCECAARhtqIAM2AgAgA0UNAQsgAyAJNgIYIAAoAhAiAQRAIAMgATYCECABIAM2AhgLIABBFGooAgAiAUUNACADQRRqIAE2AgAgASADNgIYCwJAIAVBD00EQCAAIAQgBWoiAUEDcjYCBCAAIAFqIgEgASgCBEEBcjYCBAwBCyAAIARqIgcgBUEBcjYCBCAAIARBA3I2AgQgBSAHaiAFNgIAIAgEQCAIQXhxQbTQAGohAUGg0AAoAgAhAwJ/QQEgCEEDdnQiAiAGcUUEQEGM0AAgAiAGcjYCACABDAELIAEoAggLIgIgAzYCDCABIAM2AgggAyABNgIMIAMgAjYCCAtBoNAAIAc2AgBBlNAAIAU2AgALIABBCGohAQsgCkEQaiQAIAELQwAgAEUEQD8AQRB0DwsCQCAAQf//A3ENACAAQQBIDQAgAEEQdkAAIgBBf0YEQEH80wBBMDYCAEF/DwsgAEEQdA8LAAsL3D8iAEGACAsJAQAAAAIAAAADAEGUCAsFBAAAAAUAQaQICwkGAAAABwAAAAgAQdwIC4otSW52YWxpZCBjaGFyIGluIHVybCBxdWVyeQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2JvZHkAQ29udGVudC1MZW5ndGggb3ZlcmZsb3cAQ2h1bmsgc2l6ZSBvdmVyZmxvdwBSZXNwb25zZSBvdmVyZmxvdwBJbnZhbGlkIG1ldGhvZCBmb3IgSFRUUC94LnggcmVxdWVzdABJbnZhbGlkIG1ldGhvZCBmb3IgUlRTUC94LnggcmVxdWVzdABFeHBlY3RlZCBTT1VSQ0UgbWV0aG9kIGZvciBJQ0UveC54IHJlcXVlc3QASW52YWxpZCBjaGFyIGluIHVybCBmcmFnbWVudCBzdGFydABFeHBlY3RlZCBkb3QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9zdGF0dXMASW52YWxpZCByZXNwb25zZSBzdGF0dXMASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucwBVc2VyIGNhbGxiYWNrIGVycm9yAGBvbl9yZXNldGAgY2FsbGJhY2sgZXJyb3IAYG9uX2NodW5rX2hlYWRlcmAgY2FsbGJhY2sgZXJyb3IAYG9uX21lc3NhZ2VfYmVnaW5gIGNhbGxiYWNrIGVycm9yAGBvbl9jaHVua19leHRlbnNpb25fdmFsdWVgIGNhbGxiYWNrIGVycm9yAGBvbl9zdGF0dXNfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl92ZXJzaW9uX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fdXJsX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGVgIGNhbGxiYWNrIGVycm9yAGBvbl9tZXNzYWdlX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fbWV0aG9kX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlYCBjYWxsYmFjayBlcnJvcgBgb25fY2h1bmtfZXh0ZW5zaW9uX25hbWVgIGNhbGxiYWNrIGVycm9yAFVuZXhwZWN0ZWQgY2hhciBpbiB1cmwgc2VydmVyAEludmFsaWQgaGVhZGVyIHZhbHVlIGNoYXIASW52YWxpZCBoZWFkZXIgZmllbGQgY2hhcgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3ZlcnNpb24ASW52YWxpZCBtaW5vciB2ZXJzaW9uAEludmFsaWQgbWFqb3IgdmVyc2lvbgBFeHBlY3RlZCBzcGFjZSBhZnRlciB2ZXJzaW9uAEV4cGVjdGVkIENSTEYgYWZ0ZXIgdmVyc2lvbgBJbnZhbGlkIEhUVFAgdmVyc2lvbgBJbnZhbGlkIGhlYWRlciB0b2tlbgBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX3VybABJbnZhbGlkIGNoYXJhY3RlcnMgaW4gdXJsAFVuZXhwZWN0ZWQgc3RhcnQgY2hhciBpbiB1cmwARG91YmxlIEAgaW4gdXJsAEVtcHR5IENvbnRlbnQtTGVuZ3RoAEludmFsaWQgY2hhcmFjdGVyIGluIENvbnRlbnQtTGVuZ3RoAER1cGxpY2F0ZSBDb250ZW50LUxlbmd0aABJbnZhbGlkIGNoYXIgaW4gdXJsIHBhdGgAQ29udGVudC1MZW5ndGggY2FuJ3QgYmUgcHJlc2VudCB3aXRoIFRyYW5zZmVyLUVuY29kaW5nAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIHNpemUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfdmFsdWUAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9jaHVua19leHRlbnNpb25fdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyB2YWx1ZQBNaXNzaW5nIGV4cGVjdGVkIExGIGFmdGVyIGhlYWRlciB2YWx1ZQBJbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AgaGVhZGVyIHZhbHVlAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgcXVvdGUgdmFsdWUASW52YWxpZCBjaGFyYWN0ZXIgaW4gY2h1bmsgZXh0ZW5zaW9ucyBxdW90ZWQgdmFsdWUAUGF1c2VkIGJ5IG9uX2hlYWRlcnNfY29tcGxldGUASW52YWxpZCBFT0Ygc3RhdGUAb25fcmVzZXQgcGF1c2UAb25fY2h1bmtfaGVhZGVyIHBhdXNlAG9uX21lc3NhZ2VfYmVnaW4gcGF1c2UAb25fY2h1bmtfZXh0ZW5zaW9uX3ZhbHVlIHBhdXNlAG9uX3N0YXR1c19jb21wbGV0ZSBwYXVzZQBvbl92ZXJzaW9uX2NvbXBsZXRlIHBhdXNlAG9uX3VybF9jb21wbGV0ZSBwYXVzZQBvbl9jaHVua19jb21wbGV0ZSBwYXVzZQBvbl9oZWFkZXJfdmFsdWVfY29tcGxldGUgcGF1c2UAb25fbWVzc2FnZV9jb21wbGV0ZSBwYXVzZQBvbl9tZXRob2RfY29tcGxldGUgcGF1c2UAb25faGVhZGVyX2ZpZWxkX2NvbXBsZXRlIHBhdXNlAG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lIHBhdXNlAFVuZXhwZWN0ZWQgc3BhY2UgYWZ0ZXIgc3RhcnQgbGluZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX2NodW5rX2V4dGVuc2lvbl9uYW1lAEludmFsaWQgY2hhcmFjdGVyIGluIGNodW5rIGV4dGVuc2lvbnMgbmFtZQBQYXVzZSBvbiBDT05ORUNUL1VwZ3JhZGUAUGF1c2Ugb24gUFJJL1VwZ3JhZGUARXhwZWN0ZWQgSFRUUC8yIENvbm5lY3Rpb24gUHJlZmFjZQBTcGFuIGNhbGxiYWNrIGVycm9yIGluIG9uX21ldGhvZABFeHBlY3RlZCBzcGFjZSBhZnRlciBtZXRob2QAU3BhbiBjYWxsYmFjayBlcnJvciBpbiBvbl9oZWFkZXJfZmllbGQAUGF1c2VkAEludmFsaWQgd29yZCBlbmNvdW50ZXJlZABJbnZhbGlkIG1ldGhvZCBlbmNvdW50ZXJlZABVbmV4cGVjdGVkIGNoYXIgaW4gdXJsIHNjaGVtYQBSZXF1ZXN0IGhhcyBpbnZhbGlkIGBUcmFuc2Zlci1FbmNvZGluZ2AAU1dJVENIX1BST1hZAFVTRV9QUk9YWQBNS0FDVElWSVRZAFVOUFJPQ0VTU0FCTEVfRU5USVRZAENPUFkATU9WRURfUEVSTUFORU5UTFkAVE9PX0VBUkxZAE5PVElGWQBGQUlMRURfREVQRU5ERU5DWQBCQURfR0FURVdBWQBQTEFZAFBVVABDSEVDS09VVABHQVRFV0FZX1RJTUVPVVQAUkVRVUVTVF9USU1FT1VUAE5FVFdPUktfQ09OTkVDVF9USU1FT1VUAENPTk5FQ1RJT05fVElNRU9VVABMT0dJTl9USU1FT1VUAE5FVFdPUktfUkVBRF9USU1FT1VUAFBPU1QATUlTRElSRUNURURfUkVRVUVTVABDTElFTlRfQ0xPU0VEX1JFUVVFU1QAQ0xJRU5UX0NMT1NFRF9MT0FEX0JBTEFOQ0VEX1JFUVVFU1QAQkFEX1JFUVVFU1QASFRUUF9SRVFVRVNUX1NFTlRfVE9fSFRUUFNfUE9SVABSRVBPUlQASU1fQV9URUFQT1QAUkVTRVRfQ09OVEVOVABOT19DT05URU5UAFBBUlRJQUxfQ09OVEVOVABIUEVfSU5WQUxJRF9DT05TVEFOVABIUEVfQ0JfUkVTRVQAR0VUAEhQRV9TVFJJQ1QAQ09ORkxJQ1QAVEVNUE9SQVJZX1JFRElSRUNUAFBFUk1BTkVOVF9SRURJUkVDVABDT05ORUNUAE1VTFRJX1NUQVRVUwBIUEVfSU5WQUxJRF9TVEFUVVMAVE9PX01BTllfUkVRVUVTVFMARUFSTFlfSElOVFMAVU5BVkFJTEFCTEVfRk9SX0xFR0FMX1JFQVNPTlMAT1BUSU9OUwBTV0lUQ0hJTkdfUFJPVE9DT0xTAFZBUklBTlRfQUxTT19ORUdPVElBVEVTAE1VTFRJUExFX0NIT0lDRVMASU5URVJOQUxfU0VSVkVSX0VSUk9SAFdFQl9TRVJWRVJfVU5LTk9XTl9FUlJPUgBSQUlMR1VOX0VSUk9SAElERU5USVRZX1BST1ZJREVSX0FVVEhFTlRJQ0FUSU9OX0VSUk9SAFNTTF9DRVJUSUZJQ0FURV9FUlJPUgBJTlZBTElEX1hfRk9SV0FSREVEX0ZPUgBTRVRfUEFSQU1FVEVSAEdFVF9QQVJBTUVURVIASFBFX1VTRVIAU0VFX09USEVSAEhQRV9DQl9DSFVOS19IRUFERVIATUtDQUxFTkRBUgBTRVRVUABXRUJfU0VSVkVSX0lTX0RPV04AVEVBUkRPV04ASFBFX0NMT1NFRF9DT05ORUNUSU9OAEhFVVJJU1RJQ19FWFBJUkFUSU9OAERJU0NPTk5FQ1RFRF9PUEVSQVRJT04ATk9OX0FVVEhPUklUQVRJVkVfSU5GT1JNQVRJT04ASFBFX0lOVkFMSURfVkVSU0lPTgBIUEVfQ0JfTUVTU0FHRV9CRUdJTgBTSVRFX0lTX0ZST1pFTgBIUEVfSU5WQUxJRF9IRUFERVJfVE9LRU4ASU5WQUxJRF9UT0tFTgBGT1JCSURERU4ARU5IQU5DRV9ZT1VSX0NBTE0ASFBFX0lOVkFMSURfVVJMAEJMT0NLRURfQllfUEFSRU5UQUxfQ09OVFJPTABNS0NPTABBQ0wASFBFX0lOVEVSTkFMAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0VfVU5PRkZJQ0lBTABIUEVfT0sAVU5MSU5LAFVOTE9DSwBQUkkAUkVUUllfV0lUSABIUEVfSU5WQUxJRF9DT05URU5UX0xFTkdUSABIUEVfVU5FWFBFQ1RFRF9DT05URU5UX0xFTkdUSABGTFVTSABQUk9QUEFUQ0gATS1TRUFSQ0gAVVJJX1RPT19MT05HAFBST0NFU1NJTkcATUlTQ0VMTEFORU9VU19QRVJTSVNURU5UX1dBUk5JTkcATUlTQ0VMTEFORU9VU19XQVJOSU5HAEhQRV9JTlZBTElEX1RSQU5TRkVSX0VOQ09ESU5HAEV4cGVjdGVkIENSTEYASFBFX0lOVkFMSURfQ0hVTktfU0laRQBNT1ZFAENPTlRJTlVFAEhQRV9DQl9TVEFUVVNfQ09NUExFVEUASFBFX0NCX0hFQURFUlNfQ09NUExFVEUASFBFX0NCX1ZFUlNJT05fQ09NUExFVEUASFBFX0NCX1VSTF9DT01QTEVURQBIUEVfQ0JfQ0hVTktfQ09NUExFVEUASFBFX0NCX0hFQURFUl9WQUxVRV9DT01QTEVURQBIUEVfQ0JfQ0hVTktfRVhURU5TSU9OX1ZBTFVFX0NPTVBMRVRFAEhQRV9DQl9DSFVOS19FWFRFTlNJT05fTkFNRV9DT01QTEVURQBIUEVfQ0JfTUVTU0FHRV9DT01QTEVURQBIUEVfQ0JfTUVUSE9EX0NPTVBMRVRFAEhQRV9DQl9IRUFERVJfRklFTERfQ09NUExFVEUAREVMRVRFAEhQRV9JTlZBTElEX0VPRl9TVEFURQBJTlZBTElEX1NTTF9DRVJUSUZJQ0FURQBQQVVTRQBOT19SRVNQT05TRQBVTlNVUFBPUlRFRF9NRURJQV9UWVBFAEdPTkUATk9UX0FDQ0VQVEFCTEUAU0VSVklDRV9VTkFWQUlMQUJMRQBSQU5HRV9OT1RfU0FUSVNGSUFCTEUAT1JJR0lOX0lTX1VOUkVBQ0hBQkxFAFJFU1BPTlNFX0lTX1NUQUxFAFBVUkdFAE1FUkdFAFJFUVVFU1RfSEVBREVSX0ZJRUxEU19UT09fTEFSR0UAUkVRVUVTVF9IRUFERVJfVE9PX0xBUkdFAFBBWUxPQURfVE9PX0xBUkdFAElOU1VGRklDSUVOVF9TVE9SQUdFAEhQRV9QQVVTRURfVVBHUkFERQBIUEVfUEFVU0VEX0gyX1VQR1JBREUAU09VUkNFAEFOTk9VTkNFAFRSQUNFAEhQRV9VTkVYUEVDVEVEX1NQQUNFAERFU0NSSUJFAFVOU1VCU0NSSUJFAFJFQ09SRABIUEVfSU5WQUxJRF9NRVRIT0QATk9UX0ZPVU5EAFBST1BGSU5EAFVOQklORABSRUJJTkQAVU5BVVRIT1JJWkVEAE1FVEhPRF9OT1RfQUxMT1dFRABIVFRQX1ZFUlNJT05fTk9UX1NVUFBPUlRFRABBTFJFQURZX1JFUE9SVEVEAEFDQ0VQVEVEAE5PVF9JTVBMRU1FTlRFRABMT09QX0RFVEVDVEVEAEhQRV9DUl9FWFBFQ1RFRABIUEVfTEZfRVhQRUNURUQAQ1JFQVRFRABJTV9VU0VEAEhQRV9QQVVTRUQAVElNRU9VVF9PQ0NVUkVEAFBBWU1FTlRfUkVRVUlSRUQAUFJFQ09ORElUSU9OX1JFUVVJUkVEAFBST1hZX0FVVEhFTlRJQ0FUSU9OX1JFUVVJUkVEAE5FVFdPUktfQVVUSEVOVElDQVRJT05fUkVRVUlSRUQATEVOR1RIX1JFUVVJUkVEAFNTTF9DRVJUSUZJQ0FURV9SRVFVSVJFRABVUEdSQURFX1JFUVVJUkVEAFBBR0VfRVhQSVJFRABQUkVDT05ESVRJT05fRkFJTEVEAEVYUEVDVEFUSU9OX0ZBSUxFRABSRVZBTElEQVRJT05fRkFJTEVEAFNTTF9IQU5EU0hBS0VfRkFJTEVEAExPQ0tFRABUUkFOU0ZPUk1BVElPTl9BUFBMSUVEAE5PVF9NT0RJRklFRABOT1RfRVhURU5ERUQAQkFORFdJRFRIX0xJTUlUX0VYQ0VFREVEAFNJVEVfSVNfT1ZFUkxPQURFRABIRUFEAEV4cGVjdGVkIEhUVFAvAABeEwAAJhMAADAQAADwFwAAnRMAABUSAAA5FwAA8BIAAAoQAAB1EgAArRIAAIITAABPFAAAfxAAAKAVAAAjFAAAiRIAAIsUAABNFQAA1BEAAM8UAAAQGAAAyRYAANwWAADBEQAA4BcAALsUAAB0FAAAfBUAAOUUAAAIFwAAHxAAAGUVAACjFAAAKBUAAAIVAACZFQAALBAAAIsZAABPDwAA1A4AAGoQAADOEAAAAhcAAIkOAABuEwAAHBMAAGYUAABWFwAAwRMAAM0TAABsEwAAaBcAAGYXAABfFwAAIhMAAM4PAABpDgAA2A4AAGMWAADLEwAAqg4AACgXAAAmFwAAxRMAAF0WAADoEQAAZxMAAGUTAADyFgAAcxMAAB0XAAD5FgAA8xEAAM8OAADOFQAADBIAALMRAAClEQAAYRAAADIXAAC7EwBB+TULAQEAQZA2C+ABAQECAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQf03CwEBAEGROAteAgMCAgICAgAAAgIAAgIAAgICAgICAgICAgAEAAAAAAACAgICAgICAgICAgICAgICAgICAgICAgICAgAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAgICAAIAAgBB/TkLAQEAQZE6C14CAAICAgICAAACAgACAgACAgICAgICAgICAAMABAAAAAICAgICAgICAgICAgICAgICAgICAgICAgICAAAAAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAAgACAEHwOwsNbG9zZWVlcC1hbGl2ZQBBiTwLAQEAQaA8C+ABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQYk+CwEBAEGgPgvnAQEBAQEBAQEBAQEBAQIBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBY2h1bmtlZABBsMAAC18BAQABAQEBAQAAAQEAAQEAAQEBAQEBAQEBAQAAAAAAAAABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQBBkMIACyFlY3Rpb25lbnQtbGVuZ3Rob25yb3h5LWNvbm5lY3Rpb24AQcDCAAstcmFuc2Zlci1lbmNvZGluZ3BncmFkZQ0KDQoNClNNDQoNClRUUC9DRS9UU1AvAEH5wgALBQECAAEDAEGQwwAL4AEEAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+cQACwUBAgABAwBBkMUAC+ABBAEBBQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAQfnGAAsEAQAAAQBBkccAC98BAQEAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")});var ix=w((ugr,tfe)=>{"use strict";var jpe=["GET","HEAD","POST"],qdt=new Set(jpe),Hdt=[101,204,205,304],Jpe=[301,302,303,307,308],Gdt=new Set(Jpe),Ype=["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"],zdt=new Set(Ype),Kpe=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],Vdt=new Set(Kpe),Wdt=["follow","manual","error"],Xpe=["GET","HEAD","OPTIONS","TRACE"],jdt=new Set(Xpe),Jdt=["navigate","same-origin","no-cors","cors"],Ydt=["omit","same-origin","include"],Kdt=["default","no-store","reload","no-cache","force-cache","only-if-cached"],Xdt=["content-encoding","content-language","content-location","content-type","content-length"],Zdt=["half"],Zpe=["CONNECT","TRACE","TRACK"],ept=new Set(Zpe),efe=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],tpt=new Set(efe);tfe.exports={subresource:efe,forbiddenMethods:Zpe,requestBodyHeader:Xdt,referrerPolicy:Kpe,requestRedirect:Wdt,requestMode:Jdt,requestCredentials:Ydt,requestCache:Kdt,redirectStatus:Jpe,corsSafeListedMethods:jpe,nullBodyStatus:Hdt,safeMethods:Xpe,badPorts:Ype,requestDuplex:Zdt,subresourceSet:tpt,badPortsSet:zdt,redirectStatusSet:Gdt,corsSafeListedMethodsSet:qdt,safeMethodsSet:jdt,forbiddenMethodsSet:ept,referrerPolicySet:Vdt}});var IV=w((dgr,rfe)=>{"use strict";var CV=Symbol.for("undici.globalOrigin.1");function rpt(){return globalThis[CV]}i(rpt,"getGlobalOrigin");function npt(t){if(t===void 0){Object.defineProperty(globalThis,CV,{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,CV,{value:e,writable:!0,enumerable:!1,configurable:!1})}i(npt,"setGlobalOrigin");rfe.exports={getGlobalOrigin:rpt,setGlobalOrigin:npt}});var Ks=w((fgr,lfe)=>{"use strict";var y_=require("node:assert"),spt=new TextEncoder,ax=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,opt=/[\u000A\u000D\u0009\u0020]/,ipt=/[\u0009\u000A\u000C\u000D\u0020]/g,apt=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function cpt(t){y_(t.protocol==="data:");let e=ofe(t,!0);e=e.slice(5);let r={position:0},n=ry(",",e,r),s=n.length;if(n=mpt(n,!0,!0),r.position>=e.length)return"failure";r.position++;let o=e.slice(s+1),a=ife(o);if(/;(\u0020){0,}base64$/i.test(n)){let l=cfe(a);if(a=upt(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=SV(n);return c==="failure"&&(c=SV("text/plain;charset=US-ASCII")),{mimeType:c,body:a}}i(cpt,"dataURLProcessor");function ofe(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(ofe,"URLSerializer");function E_(t,e,r){let n="";for(;r.position<e.length&&t(e[r.position]);)n+=e[r.position],r.position++;return n}i(E_,"collectASequenceOfCodePoints");function ry(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(ry,"collectASequenceOfCodePointsFast");function ife(t){let e=spt.encode(t);return lpt(e)}i(ife,"stringPercentDecode");function nfe(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}i(nfe,"isHexCharByte");function sfe(t){return t>=48&&t<=57?t-48:(t&223)-55}i(sfe,"hexByteToNumber");function lpt(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&&!(nfe(t[s+1])&&nfe(t[s+2]))?r[n++]=37:(r[n++]=sfe(t[s+1])<<4|sfe(t[s+2]),s+=2)}return e===n?r:r.subarray(0,n)}i(lpt,"percentDecode");function SV(t){t=g_(t,!0,!0);let e={position:0},r=ry("/",t,e);if(r.length===0||!ax.test(r)||e.position>t.length)return"failure";e.position++;let n=ry(";",t,e);if(n=g_(n,!1,!0),n.length===0||!ax.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++,E_(u=>opt.test(u),t,e);let c=E_(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=afe(t,e,!0),ry(";",t,e);else if(l=ry(";",t,e),l=g_(l,!1,!0),l.length===0)continue;c.length!==0&&ax.test(c)&&(l.length===0||apt.test(l))&&!a.parameters.has(c)&&a.parameters.set(c,l)}return a}i(SV,"parseMIMEType");function upt(t){t=t.replace(ipt,"");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(upt,"forgivingBase64");function afe(t,e,r){let n=e.position,s="";for(y_(t[e.position]==='"'),e.position++;s+=E_(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{y_(o==='"');break}}return r?s:t.slice(n,e.position)}i(afe,"collectAnHTTPQuotedString");function dpt(t){y_(t!=="failure");let{parameters:e,essence:r}=t,n=r;for(let[s,o]of e.entries())n+=";",n+=s,n+="=",ax.test(o)||(o=o.replace(/(\\|")/g,"\\$1"),o='"'+o,o+='"'),n+=o;return n}i(dpt,"serializeAMimeType");function ppt(t){return t===13||t===10||t===9||t===32}i(ppt,"isHTTPWhiteSpace");function g_(t,e=!0,r=!0){return wV(t,e,r,ppt)}i(g_,"removeHTTPWhitespace");function fpt(t){return t===13||t===10||t===9||t===12||t===32}i(fpt,"isASCIIWhitespace");function mpt(t,e=!0,r=!0){return wV(t,e,r,fpt)}i(mpt,"removeASCIIWhitespace");function wV(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(wV,"removeChars");function cfe(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(cfe,"isomorphicDecode");function hpt(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(hpt,"minimizeSupportedMimeType");lfe.exports={dataURLProcessor:cpt,URLSerializer:ofe,collectASequenceOfCodePoints:E_,collectASequenceOfCodePointsFast:ry,stringPercentDecode:ife,parseMIMEType:SV,collectAnHTTPQuotedString:afe,serializeAMimeType:dpt,removeChars:wV,removeHTTPWhitespace:g_,minimizeSupportedMimeType:hpt,HTTP_TOKEN_CODEPOINTS:ax,isomorphicDecode:cfe}});var Fn=w((hgr,ufe)=>{"use strict";var{types:kc,inspect:Apt}=require("node:util"),{markAsUncloneable:gpt}=require("node:worker_threads"),{toUSVString:ypt}=Ye(),Q={};Q.converters={};Q.util={};Q.errors={};Q.errors.exception=function(t){return new TypeError(`${t.header}: ${t.message}`)};Q.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 Q.errors.exception({header:t.prefix,message:r})};Q.errors.invalidArgument=function(t){return Q.errors.exception({header:t.prefix,message:`"${t.value}" is an invalid ${t.type}.`})};Q.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}};Q.argumentLengthCheck=function({length:t},e,r){if(t<e)throw Q.errors.exception({message:`${e} argument${e!==1?"s":""} required, but${t?" only":""} ${t} found.`,header:r})};Q.illegalConstructor=function(){throw Q.errors.exception({header:"TypeError",message:"Illegal constructor"})};Q.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"}};Q.util.markAsUncloneable=gpt||(()=>{});Q.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 Q.errors.exception({header:"Integer conversion",message:`Could not convert ${Q.util.Stringify(t)} to an integer.`});if(a=Q.util.IntegerPart(a),a<o||a>s)throw Q.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=Q.util.IntegerPart(a),a=a%Math.pow(2,e),r==="signed"&&a>=Math.pow(2,e)-1?a-Math.pow(2,e):a)};Q.util.IntegerPart=function(t){let e=Math.floor(Math.abs(t));return t<0?-1*e:e};Q.util.Stringify=function(t){switch(Q.util.Type(t)){case"Symbol":return`Symbol(${t.description})`;case"Object":return Apt(t);case"String":return`"${t}"`;default:return`${t}`}};Q.sequenceConverter=function(t){return(e,r,n,s)=>{if(Q.util.Type(e)!=="Object")throw Q.errors.exception({header:r,message:`${n} (${Q.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 Q.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}};Q.recordConverter=function(t,e){return(r,n,s)=>{if(Q.util.Type(r)!=="Object")throw Q.errors.exception({header:n,message:`${s} ("${Q.util.Type(r)}") is not an Object.`});let o={};if(!kc.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}};Q.interfaceConverter=function(t){return(e,r,n,s)=>{if(s?.strict!==!1&&!(e instanceof t))throw Q.errors.exception({header:r,message:`Expected ${n} ("${Q.util.Stringify(e)}") to be an instance of ${t.name}.`});return e}};Q.dictionaryConverter=function(t){return(e,r,n)=>{let s=Q.util.Type(e),o={};if(s==="Null"||s==="Undefined")return o;if(s!=="Object")throw Q.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 Q.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 Q.errors.exception({header:r,message:`${p} is not an accepted type. Expected one of ${a.allowedValues.join(", ")}.`});o[c]=p}}return o}};Q.nullableConverter=function(t){return(e,r,n)=>e===null?e:t(e,r,n)};Q.converters.DOMString=function(t,e,r,n){if(t===null&&n?.legacyNullToEmptyString)return"";if(typeof t=="symbol")throw Q.errors.exception({header:e,message:`${r} is a symbol, which cannot be converted to a DOMString.`});return String(t)};Q.converters.ByteString=function(t,e,r){let n=Q.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};Q.converters.USVString=ypt;Q.converters.boolean=function(t){return!!t};Q.converters.any=function(t){return t};Q.converters["long long"]=function(t,e,r){return Q.util.ConvertToInt(t,64,"signed",void 0,e,r)};Q.converters["unsigned long long"]=function(t,e,r){return Q.util.ConvertToInt(t,64,"unsigned",void 0,e,r)};Q.converters["unsigned long"]=function(t,e,r){return Q.util.ConvertToInt(t,32,"unsigned",void 0,e,r)};Q.converters["unsigned short"]=function(t,e,r,n){return Q.util.ConvertToInt(t,16,"unsigned",n,e,r)};Q.converters.ArrayBuffer=function(t,e,r,n){if(Q.util.Type(t)!=="Object"||!kc.isAnyArrayBuffer(t))throw Q.errors.conversionFailed({prefix:e,argument:`${r} ("${Q.util.Stringify(t)}")`,types:["ArrayBuffer"]});if(n?.allowShared===!1&&kc.isSharedArrayBuffer(t))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.resizable||t.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.TypedArray=function(t,e,r,n,s){if(Q.util.Type(t)!=="Object"||!kc.isTypedArray(t)||t.constructor.name!==e.name)throw Q.errors.conversionFailed({prefix:r,argument:`${n} ("${Q.util.Stringify(t)}")`,types:[e.name]});if(s?.allowShared===!1&&kc.isSharedArrayBuffer(t.buffer))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.DataView=function(t,e,r,n){if(Q.util.Type(t)!=="Object"||!kc.isDataView(t))throw Q.errors.exception({header:e,message:`${r} is not a DataView.`});if(n?.allowShared===!1&&kc.isSharedArrayBuffer(t.buffer))throw Q.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});if(t.buffer.resizable||t.buffer.growable)throw Q.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."});return t};Q.converters.BufferSource=function(t,e,r,n){if(kc.isAnyArrayBuffer(t))return Q.converters.ArrayBuffer(t,e,r,{...n,allowShared:!1});if(kc.isTypedArray(t))return Q.converters.TypedArray(t,t.constructor,e,r,{...n,allowShared:!1});if(kc.isDataView(t))return Q.converters.DataView(t,e,r,{...n,allowShared:!1});throw Q.errors.conversionFailed({prefix:e,argument:`${r} ("${Q.util.Stringify(t)}")`,types:["BufferSource"]})};Q.converters["sequence<ByteString>"]=Q.sequenceConverter(Q.converters.ByteString);Q.converters["sequence<sequence<ByteString>>"]=Q.sequenceConverter(Q.converters["sequence<ByteString>"]);Q.converters["record<ByteString, ByteString>"]=Q.recordConverter(Q.converters.ByteString,Q.converters.ByteString);ufe.exports={webidl:Q}});var Ho=w((Agr,xfe)=>{"use strict";var{Transform:Ept}=require("node:stream"),dfe=require("node:zlib"),{redirectStatusSet:Cpt,referrerPolicySet:Ipt,badPortsSet:Spt}=ix(),{getGlobalOrigin:pfe}=IV(),{collectASequenceOfCodePoints:Gm,collectAnHTTPQuotedString:wpt,removeChars:xpt,parseMIMEType:bpt}=Ks(),{performance:Bpt}=require("node:perf_hooks"),{isBlobLike:Rpt,ReadableStreamFrom:Npt,isValidHTTPToken:ffe,normalizedMethodRecordsBase:Tpt}=Ye(),zm=require("node:assert"),{isUint8Array:_pt}=require("node:util/types"),{webidl:cx}=Fn(),mfe=[],I_;try{I_=require("node:crypto");let t=["sha256","sha384","sha512"];mfe=I_.getHashes().filter(e=>t.includes(e))}catch{}function hfe(t){let e=t.urlList,r=e.length;return r===0?null:e[r-1].toString()}i(hfe,"responseURL");function Ppt(t,e){if(!Cpt.has(t.status))return null;let r=t.headersList.get("location",!0);return r!==null&&gfe(r)&&(Afe(r)||(r=vpt(r)),r=new URL(r,hfe(t))),r&&!r.hash&&(r.hash=e),r}i(Ppt,"responseLocationURL");function Afe(t){for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(r>126||r<32)return!1}return!0}i(Afe,"isValidEncodedURL");function vpt(t){return Buffer.from(t,"binary").toString("utf8")}i(vpt,"normalizeBinaryStringToUtf8");function ux(t){return t.urlList[t.urlList.length-1]}i(ux,"requestCurrentURL");function Qpt(t){let e=ux(t);return Sfe(e)&&Spt.has(e.port)?"blocked":"allowed"}i(Qpt,"requestBadPort");function Dpt(t){return t instanceof Error||t?.constructor?.name==="Error"||t?.constructor?.name==="DOMException"}i(Dpt,"isErrorLike");function kpt(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(kpt,"isValidReasonPhrase");var Opt=ffe;function gfe(t){return(t[0]===" "||t[0]===" "||t[t.length-1]===" "||t[t.length-1]===" "||t.includes(`
`)||t.includes("\r")||t.includes("\0"))===!1}i(gfe,"isValidHeaderValue");function Lpt(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(Ipt.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}i(Lpt,"setRequestReferrerPolicyOnRedirect");function Mpt(){return"allowed"}i(Mpt,"crossOriginResourcePolicyCheck");function Fpt(){return"success"}i(Fpt,"corsCheck");function Upt(){return"success"}i(Upt,"TAOCheck");function $pt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i($pt,"appendFetchMetadata");function qpt(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&&bV(t.origin)&&!bV(ux(t))&&(e=null);break;case"same-origin":S_(t,ux(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(qpt,"appendRequestOriginHeader");function ny(t,e){return t}i(ny,"coarsenTime");function Hpt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ny(t.domainLookupStartTime,r),domainLookupEndTime:ny(t.domainLookupEndTime,r),connectionStartTime:ny(t.connectionStartTime,r),connectionEndTime:ny(t.connectionEndTime,r),secureConnectionStartTime:ny(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(Hpt,"clampAndCoarsenConnectionTimingInfo");function Gpt(t){return ny(Bpt.now(),t)}i(Gpt,"coarsenedSharedCurrentTime");function zpt(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(zpt,"createOpaqueTimingInfo");function yfe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(yfe,"makePolicyContainer");function Vpt(t){return{referrerPolicy:t.referrerPolicy}}i(Vpt,"clonePolicyContainer");function Wpt(t){let e=t.referrerPolicy;zm(e);let r=null;if(t.referrer==="client"){let c=pfe();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=xV(r),s=xV(r,!0);n.toString().length>4096&&(n=s);let o=S_(t,n),a=lx(n)&&!lx(t.url);switch(e){case"origin":return s??xV(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=ux(t);return S_(n,c)?n:lx(n)&&!lx(c)?"no-referrer":s}default:return a?"no-referrer":s}}i(Wpt,"determineRequestsReferrer");function xV(t,e){return zm(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(xV,"stripURLForReferrer");function lx(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(lx,"isURLPotentiallyTrustworthy");function jpt(t,e){if(I_===void 0)return!0;let r=Efe(e);if(r==="no metadata"||r.length===0)return!0;let n=Ypt(r),s=Kpt(r,n);for(let o of s){let a=o.algo,c=o.hash,l=I_.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)),Xpt(l,c))return!0}return!1}i(jpt,"bytesMatch");var Jpt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Efe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Jpt.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let o=s.groups.algo.toLowerCase();mfe.includes(o)&&e.push(s.groups)}return r===!0?"no metadata":e}i(Efe,"parseMetadata");function Ypt(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(Ypt,"getStrongestMetadata");function Kpt(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(Kpt,"filterMetadataListByAlgorithm");function Xpt(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(Xpt,"compareBase64Mixed");function Zpt(t){}i(Zpt,"tryUpgradeRequestToAPotentiallyTrustworthyURL");function S_(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}i(S_,"sameOrigin");function eft(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}i(eft,"createDeferredPromise");function tft(t){return t.controller.state==="aborted"}i(tft,"isAborted");function rft(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}i(rft,"isCancelled");function nft(t){return Tpt[t.toLowerCase()]??t}i(nft,"normalizeMethod");function sft(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return zm(typeof e=="string"),e}i(sft,"serializeJavascriptValueToJSONString");var oft=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Cfe(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,oft),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(Cfe,"createIterator");function ift(t,e,r,n=0,s=1){let o=Cfe(t,r,n,s),a={keys:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return cx.brandCheck(this,e),o(this,"key")},"keys")},values:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return cx.brandCheck(this,e),o(this,"value")},"values")},entries:{writable:!0,enumerable:!0,configurable:!0,value:i(function(){return cx.brandCheck(this,e),o(this,"key+value")},"entries")},forEach:{writable:!0,enumerable:!0,configurable:!0,value:i(function(l,u=globalThis){if(cx.brandCheck(this,e),cx.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(ift,"iteratorMixin");async function aft(t,e,r){let n=e,s=r,o;try{o=t.stream.getReader()}catch(a){s(a);return}try{n(await Ife(o))}catch(a){s(a)}}i(aft,"fullyReadBody");function cft(t){return t instanceof ReadableStream||t[Symbol.toStringTag]==="ReadableStream"&&typeof t.tee=="function"}i(cft,"isReadableStreamLike");function lft(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(lft,"readableStreamClose");var uft=/[^\x00-\xFF]/;function C_(t){return zm(!uft.test(t)),t}i(C_,"isomorphicEncode");async function Ife(t){let e=[],r=0;for(;;){let{done:n,value:s}=await t.read();if(n)return Buffer.concat(e,r);if(!_pt(s))throw new TypeError("Received non-Uint8Array chunk");e.push(s),r+=s.length}}i(Ife,"readAllBytes");function dft(t){zm("protocol"in t);let e=t.protocol;return e==="about:"||e==="blob:"||e==="data:"}i(dft,"urlIsLocal");function bV(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(bV,"urlHasHttpsScheme");function Sfe(t){zm("protocol"in t);let e=t.protocol;return e==="http:"||e==="https:"}i(Sfe,"urlIsHttpHttpsScheme");function pft(t,e){let r=t;if(!r.startsWith("bytes"))return"failure";let n={position:5};if(e&&Gm(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==61)return"failure";n.position++,e&&Gm(l=>l===" "||l===" ",r,n);let s=Gm(l=>{let u=l.charCodeAt(0);return u>=48&&u<=57},r,n),o=s.length?Number(s):null;if(e&&Gm(l=>l===" "||l===" ",r,n),r.charCodeAt(n.position)!==45)return"failure";n.position++,e&&Gm(l=>l===" "||l===" ",r,n);let a=Gm(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(pft,"simpleRangeHeaderValue");function fft(t,e,r){let n="bytes ";return n+=C_(`${t}`),n+="-",n+=C_(`${e}`),n+="/",n+=C_(`${r}`),n}i(fft,"buildContentRange");var BV=class extends Ept{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?dfe.createInflate(this.#e):dfe.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 mft(t){return new BV(t)}i(mft,"createInflate");function hft(t){let e=null,r=null,n=null,s=wfe("content-type",t);if(s===null)return"failure";for(let o of s){let a=bpt(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(hft,"extractMimeType");function Aft(t){let e=t,r={position:0},n=[],s="";for(;r.position<e.length;){if(s+=Gm(o=>o!=='"'&&o!==",",e,r),r.position<e.length)if(e.charCodeAt(r.position)===34){if(s+=wpt(e,r),r.position<e.length)continue}else zm(e.charCodeAt(r.position)===44),r.position++;s=xpt(s,!0,!0,o=>o===9||o===32),n.push(s),s=""}return n}i(Aft,"gettingDecodingSplitting");function wfe(t,e){let r=e.get(t,!0);return r===null?null:Aft(r)}i(wfe,"getDecodeSplit");var gft=new TextDecoder;function yft(t){return t.length===0?"":(t[0]===239&&t[1]===187&&t[2]===191&&(t=t.subarray(3)),gft.decode(t))}i(yft,"utf8DecodeBytes");var RV=class{static{i(this,"EnvironmentSettingsObjectBase")}get baseUrl(){return pfe()}get origin(){return this.baseUrl?.origin}policyContainer=yfe()},NV=class{static{i(this,"EnvironmentSettingsObject")}settingsObject=new RV},Eft=new NV;xfe.exports={isAborted:tft,isCancelled:rft,isValidEncodedURL:Afe,createDeferredPromise:eft,ReadableStreamFrom:Npt,tryUpgradeRequestToAPotentiallyTrustworthyURL:Zpt,clampAndCoarsenConnectionTimingInfo:Hpt,coarsenedSharedCurrentTime:Gpt,determineRequestsReferrer:Wpt,makePolicyContainer:yfe,clonePolicyContainer:Vpt,appendFetchMetadata:$pt,appendRequestOriginHeader:qpt,TAOCheck:Upt,corsCheck:Fpt,crossOriginResourcePolicyCheck:Mpt,createOpaqueTimingInfo:zpt,setRequestReferrerPolicyOnRedirect:Lpt,isValidHTTPToken:ffe,requestBadPort:Qpt,requestCurrentURL:ux,responseURL:hfe,responseLocationURL:Ppt,isBlobLike:Rpt,isURLPotentiallyTrustworthy:lx,isValidReasonPhrase:kpt,sameOrigin:S_,normalizeMethod:nft,serializeJavascriptValueToJSONString:sft,iteratorMixin:ift,createIterator:Cfe,isValidHeaderName:Opt,isValidHeaderValue:gfe,isErrorLike:Dpt,fullyReadBody:aft,bytesMatch:jpt,isReadableStreamLike:cft,readableStreamClose:lft,isomorphicEncode:C_,urlIsLocal:dft,urlHasHttpsScheme:bV,urlIsHttpHttpsScheme:Sfe,readAllBytes:Ife,simpleRangeHeaderValue:pft,buildContentRange:fft,parseMetadata:Efe,createInflate:mft,extractMimeType:hft,getDecodeSplit:wfe,utf8DecodeBytes:yft,environmentSettingsObject:Eft}});var op=w((ygr,bfe)=>{"use strict";bfe.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}});var _V=w((Egr,Bfe)=>{"use strict";var{Blob:Cft,File:Ift}=require("node:buffer"),{kState:Ju}=op(),{webidl:Oc}=Fn(),TV=class t{static{i(this,"FileLike")}constructor(e,r,n={}){let s=r,o=n.type,a=n.lastModified??Date.now();this[Ju]={blobLike:e,name:s,type:o,lastModified:a}}stream(...e){return Oc.brandCheck(this,t),this[Ju].blobLike.stream(...e)}arrayBuffer(...e){return Oc.brandCheck(this,t),this[Ju].blobLike.arrayBuffer(...e)}slice(...e){return Oc.brandCheck(this,t),this[Ju].blobLike.slice(...e)}text(...e){return Oc.brandCheck(this,t),this[Ju].blobLike.text(...e)}get size(){return Oc.brandCheck(this,t),this[Ju].blobLike.size}get type(){return Oc.brandCheck(this,t),this[Ju].blobLike.type}get name(){return Oc.brandCheck(this,t),this[Ju].name}get lastModified(){return Oc.brandCheck(this,t),this[Ju].lastModified}get[Symbol.toStringTag](){return"File"}};Oc.converters.Blob=Oc.interfaceConverter(Cft);function Sft(t){return t instanceof Ift||t&&(typeof t.stream=="function"||typeof t.arrayBuffer=="function")&&t[Symbol.toStringTag]==="File"}i(Sft,"isFileLike");Bfe.exports={FileLike:TV,isFileLike:Sft}});var px=w((Igr,Pfe)=>{"use strict";var{isBlobLike:w_,iteratorMixin:wft}=Ho(),{kState:Ss}=op(),{kEnumerableProperty:sy}=Ye(),{FileLike:Rfe,isFileLike:xft}=_V(),{webidl:Ut}=Fn(),{File:_fe}=require("node:buffer"),Nfe=require("node:util"),Tfe=globalThis.File??_fe,dx=class t{static{i(this,"FormData")}constructor(e){if(Ut.util.markAsUncloneable(this),e!==void 0)throw Ut.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[Ss]=[]}append(e,r,n=void 0){Ut.brandCheck(this,t);let s="FormData.append";if(Ut.argumentLengthCheck(arguments,2,s),arguments.length===3&&!w_(r))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e,s,"name"),r=w_(r)?Ut.converters.Blob(r,s,"value",{strict:!1}):Ut.converters.USVString(r,s,"value"),n=arguments.length===3?Ut.converters.USVString(n,s,"filename"):void 0;let o=PV(e,r,n);this[Ss].push(o)}delete(e){Ut.brandCheck(this,t);let r="FormData.delete";Ut.argumentLengthCheck(arguments,1,r),e=Ut.converters.USVString(e,r,"name"),this[Ss]=this[Ss].filter(n=>n.name!==e)}get(e){Ut.brandCheck(this,t);let r="FormData.get";Ut.argumentLengthCheck(arguments,1,r),e=Ut.converters.USVString(e,r,"name");let n=this[Ss].findIndex(s=>s.name===e);return n===-1?null:this[Ss][n].value}getAll(e){Ut.brandCheck(this,t);let r="FormData.getAll";return Ut.argumentLengthCheck(arguments,1,r),e=Ut.converters.USVString(e,r,"name"),this[Ss].filter(n=>n.name===e).map(n=>n.value)}has(e){Ut.brandCheck(this,t);let r="FormData.has";return Ut.argumentLengthCheck(arguments,1,r),e=Ut.converters.USVString(e,r,"name"),this[Ss].findIndex(n=>n.name===e)!==-1}set(e,r,n=void 0){Ut.brandCheck(this,t);let s="FormData.set";if(Ut.argumentLengthCheck(arguments,2,s),arguments.length===3&&!w_(r))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=Ut.converters.USVString(e,s,"name"),r=w_(r)?Ut.converters.Blob(r,s,"name",{strict:!1}):Ut.converters.USVString(r,s,"name"),n=arguments.length===3?Ut.converters.USVString(n,s,"name"):void 0;let o=PV(e,r,n),a=this[Ss].findIndex(c=>c.name===e);a!==-1?this[Ss]=[...this[Ss].slice(0,a),o,...this[Ss].slice(a+1).filter(c=>c.name!==e)]:this[Ss].push(o)}[Nfe.inspect.custom](e,r){let n=this[Ss].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=Nfe.formatWithOptions(r,n);return`FormData ${s.slice(s.indexOf("]")+2)}`}};wft("FormData",dx,Ss,"name","value");Object.defineProperties(dx.prototype,{append:sy,delete:sy,get:sy,getAll:sy,has:sy,set:sy,[Symbol.toStringTag]:{value:"FormData",configurable:!0}});function PV(t,e,r){if(typeof e!="string"){if(xft(e)||(e=e instanceof Blob?new Tfe([e],"blob",{type:e.type}):new Rfe(e,"blob",{type:e.type})),r!==void 0){let n={type:e.type,lastModified:e.lastModified};e=e instanceof _fe?new Tfe([e],r,n):new Rfe(e,r,n)}}return{name:t,value:e}}i(PV,"makeEntry");Pfe.exports={FormData:dx,makeEntry:PV}});var Lfe=w((wgr,Ofe)=>{"use strict";var{isUSVString:vfe,bufferToLowerCasedHeaderName:bft}=Ye(),{utf8DecodeBytes:Bft}=Ho(),{HTTP_TOKEN_CODEPOINTS:Rft,isomorphicDecode:Qfe}=Ks(),{isFileLike:Nft}=_V(),{makeEntry:Tft}=px(),x_=require("node:assert"),{File:_ft}=require("node:buffer"),Pft=globalThis.File??_ft,vft=Buffer.from('form-data; name="'),Dfe=Buffer.from("; filename"),Qft=Buffer.from("--"),Dft=Buffer.from(`--\r
`);function kft(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(kft,"isAsciiString");function Oft(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(Oft,"validateBoundary");function Lft(t,e){x_(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&&b_(t,Qft,o)||o.position===t.length-4&&b_(t,Dft,o))return s;if(t[o.position]!==13||t[o.position+1]!==10)return"failure";o.position+=2;let c=Mft(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",kft(d)||(d=""),m=new Pft([f],u,{type:d})):m=Bft(Buffer.from(f)),x_(vfe(l)),x_(typeof m=="string"&&vfe(m)||Nft(m)),s.push(Tft(l,m,u))}}i(Lft,"multipartFormDataParser");function Mft(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=oy(c=>c!==10&&c!==13&&c!==58,t,e);if(a=vV(a,!0,!0,c=>c===9||c===32),!Rft.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,oy(c=>c===32||c===9,t,e),bft(a)){case"content-disposition":{if(r=n=null,!b_(t,vft,e)||(e.position+=17,r=kfe(t,e),r===null))return"failure";if(b_(t,Dfe,e)){let c=e.position+Dfe.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=kfe(t,e),n===null))return"failure"}break}case"content-type":{let c=oy(l=>l!==10&&l!==13,t,e);c=vV(c,!1,!0,l=>l===9||l===32),s=Qfe(c);break}case"content-transfer-encoding":{let c=oy(l=>l!==10&&l!==13,t,e);c=vV(c,!1,!0,l=>l===9||l===32),o=Qfe(c);break}default:oy(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(Mft,"parseMultipartFormDataHeaders");function kfe(t,e){x_(t[e.position-1]===34);let r=oy(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(kfe,"parseMultipartFormDataName");function oy(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(oy,"collectASequenceOfBytes");function vV(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(vV,"removeChars");function b_(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(b_,"bufferStartsWith");Ofe.exports={multipartFormDataParser:Lft,validateBoundary:Oft}});var cy=w((bgr,Wfe)=>{"use strict";var fx=Ye(),{ReadableStreamFrom:Fft,isBlobLike:Mfe,isReadableStreamLike:Uft,readableStreamClose:$ft,createDeferredPromise:qft,fullyReadBody:Hft,extractMimeType:Gft,utf8DecodeBytes:$fe}=Ho(),{FormData:Ffe}=px(),{kState:ay}=op(),{webidl:zft}=Fn(),{Blob:Vft}=require("node:buffer"),QV=require("node:assert"),{isErrored:qfe,isDisturbed:Wft}=require("node:stream"),{isArrayBuffer:jft}=require("node:util/types"),{serializeAMimeType:Jft}=Ks(),{multipartFormDataParser:Yft}=Lfe(),DV;try{let t=require("node:crypto");DV=i(e=>t.randomInt(0,e),"random")}catch{DV=i(t=>Math.floor(Math.random(t)),"random")}var B_=new TextEncoder;function Kft(){}i(Kft,"noop");var Hfe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Gfe;Hfe&&(Gfe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Wft(e)&&!qfe(e)&&e.cancel("Response object has been garbage collected").catch(Kft)}));function zfe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Mfe(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?B_.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>$ft(l))},start(){},type:"bytes"}),QV(Uft(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(jft(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(fx.isFormDataLike(t)){let l=`----formdata-undici-0${`${DV(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 C=B_.encode(u+`; name="${d(p(y))}"\r
\r
${p(E)}\r
`);f.push(C),o+=C.byteLength}else{let C=B_.encode(`${u}; name="${d(p(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);f.push(C,E,m),typeof E.size=="number"?o+=C.byteLength+E.size+m.byteLength:h=!0}let g=B_.encode(`--${l}--\r
`);f.push(g),o+=g.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(Mfe(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(fx.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Fft(t)}if((typeof s=="string"||fx.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(!qfe(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(zfe,"extractBody");function Xft(t,e=!1){return t instanceof ReadableStream&&(QV(!fx.isDisturbed(t),"The body has already been consumed."),QV(!t.locked,"The stream is locked.")),zfe(t,e)}i(Xft,"safelyExtractBody");function Zft(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(Zft,"cloneBody");function emt(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(emt,"throwIfAborted");function tmt(t){return{blob(){return iy(this,r=>{let n=Ufe(this);return n===null?n="":n&&(n=Jft(n)),new Vft([r],{type:n})},t)},arrayBuffer(){return iy(this,r=>new Uint8Array(r).buffer,t)},text(){return iy(this,$fe,t)},json(){return iy(this,nmt,t)},formData(){return iy(this,r=>{let n=Ufe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Yft(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let o=new Ffe;return o[ay]=s,o}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),o=new Ffe;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 iy(this,r=>new Uint8Array(r),t)}}}i(tmt,"bodyMixinMethods");function rmt(t){Object.assign(t.prototype,tmt(t))}i(rmt,"mixinBody");async function iy(t,e,r){if(zft.brandCheck(t,r),Vfe(t))throw new TypeError("Body is unusable: Body has already been read");emt(t[ay]);let n=qft(),s=i(a=>n.reject(a),"errorSteps"),o=i(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[ay].body==null?(o(Buffer.allocUnsafe(0)),n.promise):(await Hft(t[ay].body,o,s),n.promise)}i(iy,"consumeBody");function Vfe(t){let e=t[ay].body;return e!=null&&(e.stream.locked||fx.isDisturbed(e.stream))}i(Vfe,"bodyUnusable");function nmt(t){return JSON.parse($fe(t))}i(nmt,"parseJSONFromBytes");function Ufe(t){let e=t[ay].headersList,r=Gft(e);return r==="failure"?null:r}i(Ufe,"bodyMimeType");Wfe.exports={extractBody:zfe,safelyExtractBody:Xft,cloneBody:Zft,mixinBody:rmt,streamRegistry:Gfe,hasFinalizationRegistry:Hfe,bodyUnusable:Vfe}});var lme=w((Rgr,cme)=>{"use strict";var he=require("node:assert"),ce=Ye(),{channels:jfe}=Jg(),kV=AV(),{RequestContentLengthMismatchError:Vm,ResponseContentLengthMismatchError:Jfe,RequestAbortedError:nme,InvalidArgumentError:smt,HeadersTimeoutError:omt,HeadersOverflowError:imt,SocketError:ly,InformationalError:Wm,BodyTimeoutError:amt,HTTPParserError:cmt,ResponseExceededMaxSizeError:lmt}=pt(),{kUrl:sme,kReset:Xs,kClient:__,kParser:zt,kBlocking:Ax,kRunning:Hr,kPending:ome,kSize:Yfe,kWriting:ip,kQueue:va,kNoRef:mx,kKeepAliveDefaultTimeout:umt,kHostHeader:dmt,kPendingIdx:pmt,kRunningIdx:Pi,kError:ws,kPipelining:P_,kSocket:jm,kKeepAliveTimeoutValue:Q_,kMaxHeadersSize:OV,kKeepAliveMaxTimeout:fmt,kKeepAliveTimeoutThreshold:mmt,kHeadersTimeout:hmt,kBodyTimeout:Amt,kStrictContentLength:FV,kMaxRequests:Kfe,kCounter:gmt,kMaxResponseSize:ymt,kOnError:Xfe,kResume:Yu,kHTTPContext:ime}=er(),Go=Gpe(),Zfe=Buffer.alloc(0),R_=Buffer[Symbol.species],N_=ce.addListener,Emt=ce.removeAllListeners,Jm=Symbol("kIdleSocketValidation"),uy=Symbol("kIdleSocketValidationTimeout"),HV=Symbol("kSocketUsed"),LV;async function Cmt(){let t=process.env.JEST_WORKER_ID?EV():void 0,e;try{e=await WebAssembly.compile(Wpe())}catch{e=await WebAssembly.compile(t||EV())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,s)=>0,"wasm_on_url"),wasm_on_status:i((r,n,s)=>{he(yr.ptr===r);let o=n-Mc+Lc.byteOffset;return yr.onStatus(new R_(Lc.buffer,o,s))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(he(yr.ptr===r),yr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,s)=>{he(yr.ptr===r);let o=n-Mc+Lc.byteOffset;return yr.onHeaderField(new R_(Lc.buffer,o,s))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,s)=>{he(yr.ptr===r);let o=n-Mc+Lc.byteOffset;return yr.onHeaderValue(new R_(Lc.buffer,o,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,s,o)=>(he(yr.ptr===r),yr.onHeadersComplete(n,!!s,!!o)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,s)=>{he(yr.ptr===r);let o=n-Mc+Lc.byteOffset;return yr.onBody(new R_(Lc.buffer,o,s))||0},"wasm_on_body"),wasm_on_message_complete:i(r=>(he(yr.ptr===r),yr.onMessageComplete()||0),"wasm_on_message_complete")}})}i(Cmt,"lazyllhttp");var MV=null,UV=Cmt();UV.catch();var yr=null,Lc=null,T_=0,Mc=null,Imt=0,hx=1,dy=2|hx,v_=4|hx,$V=8|Imt,qV=class{static{i(this,"Parser")}constructor(e,r,{exports:n}){he(Number.isFinite(e[OV])&&e[OV]>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[OV],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[ymt]}setTimeout(e,r){e!==this.timeoutValue||r&hx^this.timeoutType&hx?(this.timeout&&(kV.clearTimeout(this.timeout),this.timeout=null),e&&(r&hx?this.timeout=kV.setFastTimeout(eme,e,new WeakRef(this)):(this.timeout=setTimeout(eme,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||(he(this.ptr!=null),he(yr==null),this.llhttp.llhttp_resume(this.ptr),he(this.timeoutType===v_),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||Zfe),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){he(this.ptr!=null),he(yr==null),he(!this.paused);let{socket:r,llhttp:n}=this;e.length>T_&&(Mc&&n.free(Mc),T_=Math.ceil(e.length/4096)*4096,Mc=n.malloc(T_)),new Uint8Array(n.memory.buffer,Mc,T_).set(e);try{let s;try{Lc=e,yr=this,s=n.llhttp_execute(this.ptr,Mc,e.length)}catch(a){throw a}finally{yr=null,Lc=null}let o=n.llhttp_get_error_pos(this.ptr)-Mc;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){ce.destroy(r,s)}}finish(){he(yr===null),he(this.ptr!=null),he(!this.paused);let{llhttp:e}=this,r;try{yr=this,r=e.llhttp_finish(this.ptr)}finally{yr=null}return r===Go.ERROR.OK?null:r===Go.ERROR.PAUSED||r===Go.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(r,Zfe)}createError(e,r){let{llhttp:n,contentLength:s,bytesRead:o}=this;if(s&&o!==parseInt(s,10))return new Jfe;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 cmt(c,Go.ERROR[e],r)}destroy(){he(this.ptr!=null),he(yr==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&kV.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[Hr]===0)return ce.destroy(e,new ly("bad response",ce.getSocketInfo(e))),-1;let n=r[va][r[Pi]];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=ce.bufferToLowerCasedHeaderName(n);s==="keep-alive"?this.keepAlive+=e.toString():s==="connection"&&(this.connection+=e.toString())}else n.length===14&&ce.bufferToLowerCasedHeaderName(n)==="content-length"&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&ce.destroy(this.socket,new imt)}onUpgrade(e){let{upgrade:r,client:n,socket:s,headers:o,statusCode:a,statusText:c}=this;he(r),he(n[jm]===s),he(!s.destroyed),he(!this.paused),he((o.length&1)===0);let l=n[va][n[Pi]];he(l),he(l.upgrade||l.method==="CONNECT"),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,s.unshift(e),s[zt].destroy(),s[zt]=null,s[__]=null,s[ws]=null,Emt(s),n[jm]=null,n[ime]=null,n[va][n[Pi]++]=null,n.emit("disconnect",n[sme],[n],new Wm("upgrade"));try{l.onUpgrade(a,o,s,c)}catch(u){ce.errorRequest(n,l,u),ce.destroy(s,u)}n[Yu]()}onHeadersComplete(e,r,n){let{client:s,socket:o,headers:a,statusText:c}=this;if(o.destroyed)return-1;if(s[Hr]===0)return ce.destroy(o,new ly("bad response",ce.getSocketInfo(o))),-1;let l=s[va][s[Pi]];if(!l)return-1;if(he(!this.upgrade),he(this.statusCode<200),e===100)return ce.destroy(o,new ly("bad response",ce.getSocketInfo(o))),-1;if(r&&!l.upgrade)return ce.destroy(o,new ly("bad upgrade",ce.getSocketInfo(o))),-1;if(he(this.timeoutType===dy),this.statusCode=e,this.shouldKeepAlive=n||l.method==="HEAD"&&!o[Xs]&&this.connection.toLowerCase()==="keep-alive",this.statusCode>=200){let d=l.bodyTimeout!=null?l.bodyTimeout:s[Amt];this.setTimeout(d,v_)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method==="CONNECT")return he(s[Hr]===1),this.upgrade=!0,2;if(r)return he(s[Hr]===1),this.upgrade=!0,2;if(he((this.headers.length&1)===0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&s[P_]){let d=this.keepAlive?ce.parseKeepAliveTimeout(this.keepAlive):null;if(d!=null){let p=Math.min(d-s[mmt],s[fmt]);p<=0?o[Xs]=!0:s[Q_]=p}else s[Q_]=s[umt]}else o[Xs]=!0;let u=l.onHeaders(e,a,this.resume,c)===!1;return l.aborted?-1:l.method==="HEAD"||e<200?1:(o[Ax]&&(o[Ax]=!1,s[Yu]()),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[va][r[Pi]];if(he(a),he(this.timeoutType===v_),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),he(s>=200),o>-1&&this.bytesRead+e.length>o)return ce.destroy(n,new lmt),-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;he(n>=100),he((this.headers.length&1)===0);let u=e[va][e[Pi]];if(he(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 ce.destroy(r,new Jfe),-1;if(u.onComplete(o),e[va][e[Pi]++]=null,r[HV]=!0,r[ip])return he(e[Hr]===0),ce.destroy(r,new Wm("reset")),Go.ERROR.PAUSED;if(l){if(r[Xs]&&e[Hr]===0)return ce.destroy(r,new Wm("reset")),Go.ERROR.PAUSED;e[P_]==null||e[P_]===1?setImmediate(()=>e[Yu]()):e[Yu]()}else return ce.destroy(r,new Wm("reset")),Go.ERROR.PAUSED}}};function eme(t){let{socket:e,timeoutType:r,client:n,paused:s}=t.deref();r===dy?(!e[ip]||e.writableNeedDrain||n[Hr]>1)&&(he(!s,"cannot be paused while waiting for headers"),ce.destroy(e,new omt)):r===v_?s||ce.destroy(e,new amt):r===$V&&(he(n[Hr]===0&&n[Q_]),ce.destroy(e,new Wm("socket idle timeout")))}i(eme,"onParserTimeout");async function Smt(t,e){t[jm]=e,MV||(MV=await UV,UV=null),e[mx]=!1,e[ip]=!1,e[Xs]=!1,e[Ax]=!1,e[Jm]=0,e[uy]=null,e[HV]=!1,e[zt]=new qV(t,e,MV),N_(e,"error",function(n){let s=this[zt];if(n.code==="ECONNRESET"&&s.statusCode&&!s.shouldKeepAlive){let o=s.finish();o&&(this[ws]=o,this[__][Xfe](o));return}this[ws]=n,this[__][Xfe](n)}),N_(e,"readable",function(){let n=this[zt];n&&n.readMore()}),N_(e,"end",function(){let n=this[zt];if(n.statusCode&&!n.shouldKeepAlive){let s=n.finish();s&&ce.destroy(this,s);return}ce.destroy(this,new ly("other side closed",ce.getSocketInfo(this)))}),N_(e,"close",function(){let n=this[__],s=this[zt];ame(this),s&&(!this[ws]&&s.statusCode&&!s.shouldKeepAlive&&(this[ws]=s.finish()||this[ws]),this[zt].destroy(),this[zt]=null);let o=this[ws]||new ly("closed",ce.getSocketInfo(this));if(n[jm]=null,n[ime]=null,n.destroyed){he(n[ome]===0);let a=n[va].splice(n[Pi]);for(let c=0;c<a.length;c++){let l=a[c];ce.errorRequest(n,l,o)}}else if(n[Hr]>0&&o.code!=="UND_ERR_INFO"){let a=n[va][n[Pi]];n[va][n[Pi]++]=null,ce.errorRequest(n,a,o)}n[pmt]=n[Pi],he(n[Hr]===0),n.emit("disconnect",n[sme],[n],o),n[Yu]()});let r=!1;return e.on("close",()=>{r=!0}),{version:"h1",defaultPipelining:1,write(...n){return Bmt(t,...n)},resume(){xmt(t)},destroy(n,s){r?queueMicrotask(s):e.destroy(n).on("close",s)},get destroyed(){return e.destroyed},busy(n){return!!(e[ip]||e[Xs]||e[Ax]||e[Jm]===1||n&&(t[Hr]>0&&!n.idempotent||t[Hr]>0&&(n.upgrade||n.method==="CONNECT")||t[Hr]>0&&ce.bodyLength(n.body)!==0&&(ce.isStream(n.body)||ce.isAsyncIterable(n.body)||ce.isFormDataLike(n.body))))}}}i(Smt,"connectH1");function ame(t){t[uy]&&(clearImmediate(t[uy]),t[uy]=null),t[Jm]=0}i(ame,"clearIdleSocketValidation");function wmt(t,e){e[Jm]=1,e[uy]=setImmediate(()=>{e[uy]=null,e[Jm]=2,t[jm]===e&&!e.destroyed&&t[Yu]()})}i(wmt,"scheduleIdleSocketValidation");function xmt(t){let e=t[jm];if(e&&!e.destroyed){if(t[Yfe]===0?!e[mx]&&e.unref&&(e.unref(),e[mx]=!0):e[mx]&&e.ref&&(e.ref(),e[mx]=!1),t[Hr]===0&&t[ome]>0&&e[HV]){if(e[Jm]===0)return wmt(t,e),e[zt].readMore(),e.destroyed,void 0;if(e[Jm]===1)return e[zt].readMore(),e.destroyed,void 0}if(t[Hr]===0&&(e[zt].readMore(),e.destroyed))return;if(t[Yfe]===0)e[zt].timeoutType!==$V&&e[zt].setTimeout(t[Q_],$V);else if(t[Hr]>0&&e[zt].statusCode<200&&e[zt].timeoutType!==dy){let r=t[va][t[Pi]],n=r.headersTimeout!=null?r.headersTimeout:t[hmt];e[zt].setTimeout(n,dy)}}}i(xmt,"resumeH1");function bmt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(bmt,"shouldSendContentLength");function Bmt(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(ce.isFormDataLike(l)){LV||(LV=cy().extractBody);let[y,E]=LV(l);e.contentType==null&&u.push("content-type",E),l=y.stream,d=y.length}else if(ce.isBlobLike(l)&&e.contentType==null){let y=l.type;if(y){let E=`${y}`;if(!ce.isValidHeaderValue(E))return ce.errorRequest(t,e,new smt("invalid content-type header")),!1;u.push("content-type",E)}}l&&typeof l.read=="function"&&l.read(0);let f=ce.bodyLength(l);if(d=f??d,d===null&&(d=e.contentLength),d===0&&!p&&(d=null),bmt(r)&&d>0&&e.contentLength!==null&&e.contentLength!==d){if(t[FV])return ce.errorRequest(t,e,new Vm),!1;process.emitWarning(new Vm)}let m=t[jm];ame(m);let h=i(y=>{if(!e.aborted){if(e.completed){(e.upgrade||e.method==="CONNECT")&&ce.destroy(m,new Wm("aborted"));return}ce.errorRequest(t,e,y||new nme),ce.destroy(l),ce.destroy(m,new Wm("aborted"))}},"abort");try{e.onConnect(h)}catch(y){ce.errorRequest(t,e,y)}if(e.aborted)return!1;r==="HEAD"&&(m[Xs]=!0),(o||r==="CONNECT")&&(m[Xs]=!0),c!=null&&(m[Xs]=c),t[Kfe]&&m[gmt]++>=t[Kfe]&&(m[Xs]=!0),a&&(m[Ax]=!0);let g=`${r} ${n} HTTP/1.1\r
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[dmt],o?g+=`connection: upgrade\r
upgrade: ${o}\r
`:t[P_]&&!m[Xs]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let S=0;S<C.length;S++)g+=`${E}: ${C[S]}\r
`;else g+=`${E}: ${C}\r
`}return jfe.sendHeaders.hasSubscribers&&jfe.sendHeaders.publish({request:e,headers:g,socket:m}),!l||f===0?tme(h,null,t,e,m,d,g,p):ce.isBuffer(l)?tme(h,l,t,e,m,d,g,p):ce.isBlobLike(l)?typeof l.stream=="function"?rme(h,l.stream(),t,e,m,d,g,p):Nmt(h,l,t,e,m,d,g,p):ce.isStream(l)?Rmt(h,l,t,e,m,d,g,p):ce.isIterable(l)?rme(h,l,t,e,m,d,g,p):he(!1),!0}i(Bmt,"writeH1");function Rmt(t,e,r,n,s,o,a,c){he(o!==0||r[Hr]===0,"stream body cannot be pipelined");let l=!1,u=new D_({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(g){ce.destroy(this,g)}},"onData"),p=i(function(){l||e.resume&&e.resume()},"onDrain"),f=i(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new nme;queueMicrotask(()=>m(h))}},"onClose"),m=i(function(h){if(!l){if(l=!0,he(s.destroyed||s[ip]&&r[Hr]<=1),s.off("drain",p).off("error",m),e.removeListener("data",d).removeListener("end",m).removeListener("close",f),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?ce.destroy(e,h):ce.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(Rmt,"writeStream");function tme(t,e,r,n,s,o,a,c){try{e?ce.isBuffer(e)&&(he(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[Xs]=!0)):o===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(he(o===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Yu]()}catch(l){t(l)}}i(tme,"writeBuffer");async function Nmt(t,e,r,n,s,o,a,c){he(o===e.size,"blob body must have content length");try{if(o!=null&&o!==e.size)throw new Vm;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[Xs]=!0),r[Yu]()}catch(l){t(l)}}i(Nmt,"writeBlob");async function rme(t,e,r,n,s,o,a,c){he(o!==0||r[Hr]===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)=>{he(l===null),s[ws]?m(s[ws]):l=f}),"waitForDrain");s.on("close",u).on("drain",u);let p=new D_({abort:t,socket:s,request:n,contentLength:o,client:r,expectsPayload:c,header:a});try{for await(let f of e){if(s[ws])throw s[ws];p.write(f)||await d()}p.end()}catch(f){p.destroy(f)}finally{s.off("close",u).off("drain",u)}}i(rme,"writeIterable");var D_=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[ip]=!0}write(e){let{socket:r,request:n,contentLength:s,client:o,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[ws])throw r[ws];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(o[FV])throw new Vm;process.emitWarning(new Vm)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[Xs]=!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[zt].timeout&&r[zt].timeoutType===dy&&r[zt].timeout.refresh&&r[zt].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:o,header:a,request:c}=this;if(c.onRequestSent(),e[ip]=!1,e[ws])throw e[ws];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[FV])throw new Vm;process.emitWarning(new Vm)}e[zt].timeout&&e[zt].timeoutType===dy&&e[zt].timeout.refresh&&e[zt].timeout.refresh(),n[Yu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[ip]=!1,e&&(he(n[Hr]<=1,"pipeline should only contain this request"),s(e))}};cme.exports=Smt});var gme=w((Tgr,Ame)=>{"use strict";var Uc=require("node:assert"),{errorMonitor:GV}=require("node:events"),{pipeline:Tmt}=require("node:stream"),et=Ye(),{RequestContentLengthMismatchError:VV,RequestAbortedError:zV,SocketError:gx,InformationalError:k_}=pt(),{kUrl:O_,kReset:M_,kClient:py,kRunning:F_,kPending:_mt,kQueue:Ym,kPendingIdx:jV,kRunningIdx:Fc,kError:Da,kSocket:En,kStrictContentLength:Pmt,kOnError:JV,kMaxConcurrentStreams:mme,kHTTP2Session:Qa,kResume:cp,kSize:vmt,kHTTPContext:Qmt}=er(),ap=Symbol("open streams"),ume,dme=!1,L_;try{L_=require("node:http2")}catch{L_={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Dmt,HTTP2_HEADER_METHOD:kmt,HTTP2_HEADER_PATH:Omt,HTTP2_HEADER_SCHEME:Lmt,HTTP2_HEADER_CONTENT_LENGTH:Mmt,HTTP2_HEADER_EXPECT:Fmt,HTTP2_HEADER_STATUS:WV}}=L_;function hme(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(hme,"parseH2Headers");function Umt(t){let{[WV]:e,...r}=t;return hme(r)}i(Umt,"parseH2ResponseHeaders");async function $mt(t,e){t[En]=e,dme||(dme=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=L_.connect(t[O_],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[mme]});r[ap]=0,r[py]=t,r[En]=e,et.addListener(r,"error",Hmt),et.addListener(r,"frameError",Gmt),et.addListener(r,"end",zmt),et.addListener(r,"goaway",Vmt),et.addListener(r,"close",function(){let{[py]:s}=this,{[En]:o}=s,a=this[En][Da]||this[Da]||new gx("closed",et.getSocketInfo(o));if(s[Qa]=null,s.destroyed){Uc(s[_mt]===0);let c=s[Ym].splice(s[Fc]);for(let l=0;l<c.length;l++){let u=c[l];et.errorRequest(s,u,a)}}}),r.unref(),t[Qa]=r,e[Qa]=r,et.addListener(e,"error",function(s){this[Da]=s,this[py][JV](s)}),et.addListener(e,"end",function(){et.destroy(this,new gx("other side closed",et.getSocketInfo(this)))}),et.addListener(e,"close",function(){let s=this[Da]||new gx("closed",et.getSocketInfo(this));t[En]=null,this[Qa]!=null&&this[Qa].destroy(s),t[jV]=t[Fc],Uc(t[F_]===0),t.emit("disconnect",t[O_],[t],s),t[cp]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return jmt(t,...s)},resume(){qmt(t)},destroy(s,o){n?queueMicrotask(o):e.destroy(s).on("close",o)},get destroyed(){return e.destroyed},busy(){return!1}}}i($mt,"connectH2");function qmt(t){let e=t[En];e?.destroyed===!1&&(t[vmt]===0&&t[mme]===0?(e.unref(),t[Qa].unref()):(e.ref(),t[Qa].ref()))}i(qmt,"resumeH2");function Hmt(t){this[En][Da]=t,this[py][JV](t)}i(Hmt,"onHttp2SessionError");function Gmt(t,e,r){if(r===0){let n=new k_(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[En][Da]=n,this[py][JV](n)}}i(Gmt,"onHttp2FrameError");function zmt(){let t=new gx("other side closed",et.getSocketInfo(this[En]));this.destroy(t),et.destroy(this[En],t)}i(zmt,"onHttp2SessionEnd");function Vmt(t){let e=this[Da]||new gx(`HTTP/2: "GOAWAY" frame received with code ${t}`,et.getSocketInfo(this)),r=this[py];if(r[En]=null,r[Qmt]=null,this[Qa]!=null&&(this[Qa].destroy(e),this[Qa]=null),et.destroy(this[En],e),r[Fc]<r[Ym].length){let n=r[Ym][r[Fc]];r[Ym][r[Fc]++]=null,et.errorRequest(r,n,e),r[jV]=r[Fc]}Uc(r[F_]===0),r.emit("disconnect",r[O_],[r],e),r[cp]()}i(Vmt,"onHTTP2GoAway");function Wmt(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(Wmt,"shouldSendContentLength");function jmt(t,e){let r=t[Qa],{method:n,path:s,host:o,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return et.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],_=u[b+1];if(Array.isArray(_))for(let v=0;v<_.length;v++)p[N]?p[N]+=`,${_[v]}`:p[N]=_[v];else p[N]=_}let f,{hostname:m,port:h}=t[O_];p[Dmt]=o||`${m}${h?`:${h}`:""}`,p[kmt]=n;let g=i(b=>{if(!e.aborted){if(e.completed){n==="CONNECT"&&f!=null&&et.destroy(f,b||new zV);return}b=b||new zV,et.errorRequest(t,e,b),f!=null&&et.destroy(f,b),et.destroy(d,b),t[Ym][t[Fc]++]=null,t[cp]()}},"abort");try{e.onConnect(g)}catch(b){et.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(GV,_),e.onUpgradeResponse(Number(J[WV]),J,Umt)},"onResponse"),_=i(J=>{b=!0,f.off("response",N),e.onUpgradeError(J)},"onUpgradeError"),v=i(()=>{try{e.onUpgrade(null,null,f)}catch(J){f.off("response",N),g(J);return}e.aborted||(f.off("error",g),f.once(GV,_),t[Ym][t[Fc]++]=null)},"onReady");return f.once("response",N),f.once("error",g),++r[ap],v(),f.once("close",()=>{!b&&e.completed&&(f.off("response",N),f.off(GV,_),e.onUpgradeError(new k_(`HTTP/2: "stream error" received - code ${f.rstCode}`))),r[ap]-=1,r[ap]===0&&r.unref()}),!0}p[Omt]=s,p[Lmt]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=et.bodyLength(d);if(et.isFormDataLike(d)){ume??=cy().extractBody;let[b,N]=ume(d);p["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),Wmt(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Pmt])return et.errorRequest(t,e,new VV),!1;process.emitWarning(new VV)}E!=null&&(Uc(d,"no body must not have content length"),p[Mmt]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||d===null;return c?(p[Fmt]="100-continue",f=r.request(p,{endStream:C,signal:l}),f.once("continue",S)):(f=r.request(p,{endStream:C,signal:l}),S()),++r[ap],f.once("response",b=>{let{[WV]:N,..._}=b;if(e.onResponseStarted(),e.aborted){let v=new zV;et.errorRequest(t,e,v),et.destroy(f,v);return}e.onHeaders(Number(N),hme(_),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",v=>{e.onData(v)===!1&&f.pause()})}),f.once("end",()=>{(f.state?.state==null||f.state.state<6)&&e.onComplete([]),r[ap]===0&&r.unref(),g(new k_("HTTP/2: stream half-closed (remote)")),t[Ym][t[Fc]++]=null,t[jV]=t[Fc],t[cp]()}),f.once("close",()=>{r[ap]-=1,r[ap]===0&&r.unref()}),f.once("error",function(b){g(b)}),f.once("frameError",(b,N)=>{g(new k_(`HTTP/2: "frameError" received - type ${b}, code ${N}`))}),!0;function S(){!d||E===0?pme(g,f,null,t,e,t[En],E,y):et.isBuffer(d)?pme(g,f,d,t,e,t[En],E,y):et.isBlobLike(d)?typeof d.stream=="function"?fme(g,f,d.stream(),t,e,t[En],E,y):Ymt(g,f,d,t,e,t[En],E,y):et.isStream(d)?Jmt(g,t[En],y,f,d,t,e,E):et.isIterable(d)?fme(g,f,d,t,e,t[En],E,y):Uc(!1)}i(S,"writeBodyH2")}i(jmt,"writeH2");function pme(t,e,r,n,s,o,a,c){try{r!=null&&et.isBuffer(r)&&(Uc(a===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),c||(o[M_]=!0),s.onRequestSent(),n[cp]()}catch(l){t(l)}}i(pme,"writeBuffer");function Jmt(t,e,r,n,s,o,a,c){Uc(c!==0||o[F_]===0,"stream body cannot be pipelined");let l=Tmt(s,n,d=>{d?(et.destroy(l,d),t(d)):(et.removeAllListeners(l),a.onRequestSent(),r||(e[M_]=!0),o[cp]())});et.addListener(l,"data",u);function u(d){a.onBodySent(d)}i(u,"onPipeData")}i(Jmt,"writeStream");async function Ymt(t,e,r,n,s,o,a,c){Uc(a===r.size,"blob body must have content length");try{if(a!=null&&a!==r.size)throw new VV;let l=Buffer.from(await r.arrayBuffer());e.cork(),e.write(l),e.uncork(),e.end(),s.onBodySent(l),s.onRequestSent(),c||(o[M_]=!0),n[cp]()}catch(l){t(l)}}i(Ymt,"writeBlob");async function fme(t,e,r,n,s,o,a,c){Uc(a!==0||n[F_]===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)=>{Uc(l===null),o[Da]?f(o[Da]):l=p}),"waitForDrain");e.on("close",u).on("drain",u);try{for await(let p of r){if(o[Da])throw o[Da];let f=e.write(p);s.onBodySent(p),f||await d()}e.end(),s.onRequestSent(),c||(o[M_]=!0),n[cp]()}catch(p){t(p)}finally{e.off("close",u).off("drain",u)}}i(fme,"writeIterable");Ame.exports=$mt});var $_=w((Pgr,Cme)=>{"use strict";var $c=Ye(),{kBodyUsed:yx}=er(),KV=require("node:assert"),{InvalidArgumentError:Kmt}=pt(),Xmt=require("node:events"),Zmt=[300,301,302,303,307,308],yme=Symbol("body"),U_=class{static{i(this,"BodyAsyncIterable")}constructor(e){this[yme]=e,this[yx]=!1}async*[Symbol.asyncIterator](){KV(!this[yx],"disturbed"),this[yx]=!0,yield*this[yme]}},YV=class{static{i(this,"RedirectHandler")}constructor(e,r,n,s){if(r!=null&&(!Number.isInteger(r)||r<0))throw new Kmt("maxRedirections must be a positive number");$c.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,$c.isStream(this.opts.body)?($c.bodyLength(this.opts.body)===0&&this.opts.body.on("data",function(){KV(!1)}),typeof this.opts.body.readableDidRead!="boolean"&&(this.opts.body[yx]=!1,Xmt.prototype.on.call(this.opts.body,"data",function(){this[yx]=!0}))):this.opts.body&&typeof this.opts.body.pipeTo=="function"?this.opts.body=new U_(this.opts.body):this.opts.body&&typeof this.opts.body!="string"&&!ArrayBuffer.isView(this.opts.body)&&$c.isIterable(this.opts.body)&&(this.opts.body=new U_(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||$c.isDisturbed(this.opts.body)?null:eht(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}=$c.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),l=c?`${a}${c}`:a;this.opts.headers=tht(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 eht(t,e){if(Zmt.indexOf(t)===-1)return null;for(let r=0;r<e.length;r+=2)if(e[r].length===8&&$c.headerNameToString(e[r])==="location")return e[r+1]}i(eht,"parseLocation");function Eme(t,e,r){if(t.length===4)return $c.headerNameToString(t)==="host";if(e&&$c.headerNameToString(t).startsWith("content-"))return!0;if(r&&(t.length===13||t.length===6||t.length===19)){let n=$c.headerNameToString(t);return n==="authorization"||n==="cookie"||n==="proxy-authorization"}return!1}i(Eme,"shouldRemoveHeader");function tht(t,e,r){let n=[];if(Array.isArray(t))for(let s=0;s<t.length;s+=2)Eme(t[s],e,r)||n.push(t[s],t[s+1]);else if(t&&typeof t=="object")for(let s of Object.keys(t))Eme(s,e,r)||n.push(s,t[s]);else KV(t==null,"headers must be an object or an array");return n}i(tht,"cleanRequestHeaders");Cme.exports=YV});var q_=w((Qgr,Ime)=>{"use strict";var rht=$_();function nht({maxRedirections:t}){return e=>i(function(n,s){let{maxRedirections:o=t}=n;if(!o)return e(n,s);let a=new rht(e,o,n,s);return n={...n,maxRedirections:0},e(n,a)},"Intercept")}i(nht,"createRedirectInterceptor");Ime.exports=nht});var hy=w((kgr,Pme)=>{"use strict";var Ku=require("node:assert"),Rme=require("node:net"),sht=require("node:http"),Km=Ye(),{channels:fy}=Jg(),oht=_pe(),iht=Zg(),{InvalidArgumentError:Pr,InformationalError:aht,ClientDestroyedError:cht}=pt(),lht=ox(),{kUrl:qc,kServerName:lp,kClient:uht,kBusy:XV,kConnect:dht,kResuming:Xm,kRunning:wx,kPending:xx,kSize:Sx,kQueue:ka,kConnected:pht,kConnecting:my,kNeedDrain:dp,kKeepAliveDefaultTimeout:Sme,kHostHeader:fht,kPendingIdx:Oa,kRunningIdx:Xu,kError:mht,kPipelining:H_,kKeepAliveTimeoutValue:hht,kMaxHeadersSize:Aht,kKeepAliveMaxTimeout:ght,kKeepAliveTimeoutThreshold:yht,kHeadersTimeout:Eht,kBodyTimeout:Cht,kStrictContentLength:Iht,kConnector:Ex,kMaxRedirections:Sht,kMaxRequests:ZV,kCounter:wht,kClose:xht,kDestroy:bht,kDispatch:Bht,kInterceptors:wme,kLocalAddress:Cx,kMaxResponseSize:Rht,kOnError:Nht,kHTTPContext:vr,kMaxConcurrentStreams:Tht,kResume:Ix}=er(),_ht=lme(),Pht=gme(),xme=!1,up=Symbol("kClosedResolve"),bme=i(()=>{},"noop");function Nme(t){return t[H_]??t[vr]?.defaultPipelining??1}i(Nme,"getPipelining");var e4=class extends iht{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:g,pipelining:y,tls:E,strictContentLength:C,maxCachedSessions:S,maxRedirections:b,connect:N,maxRequestsPerClient:_,localAddress:v,maxResponseSize:J,autoSelectFamily:Pe,autoSelectFamilyAttemptTimeout:De,maxConcurrentStreams:Ue,allowH2:fe,webSocket:Ve,eventSource:D}={}){if(super({webSocket:Ve,eventSource:D}),d!==void 0)throw new Pr("unsupported keepAlive, use pipelining=0 instead");if(o!==void 0)throw new Pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(a!==void 0)throw new Pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(u!==void 0)throw new Pr("unsupported idleTimeout, use keepAliveTimeout instead");if(f!==void 0)throw new Pr("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(n!=null&&!Number.isFinite(n))throw new Pr("invalid maxHeaderSize");if(g!=null&&typeof g!="string")throw new Pr("invalid socketPath");if(c!=null&&(!Number.isFinite(c)||c<0))throw new Pr("invalid connectTimeout");if(p!=null&&(!Number.isFinite(p)||p<=0))throw new Pr("invalid keepAliveTimeout");if(m!=null&&(!Number.isFinite(m)||m<=0))throw new Pr("invalid keepAliveMaxTimeout");if(h!=null&&!Number.isFinite(h))throw new Pr("invalid keepAliveTimeoutThreshold");if(s!=null&&(!Number.isInteger(s)||s<0))throw new Pr("headersTimeout must be a positive integer or zero");if(l!=null&&(!Number.isInteger(l)||l<0))throw new Pr("bodyTimeout must be a positive integer or zero");if(N!=null&&typeof N!="function"&&typeof N!="object")throw new Pr("connect must be a function or an object");if(b!=null&&(!Number.isInteger(b)||b<0))throw new Pr("maxRedirections must be a positive number");if(_!=null&&(!Number.isInteger(_)||_<0))throw new Pr("maxRequestsPerClient must be a positive number");if(v!=null&&(typeof v!="string"||Rme.isIP(v)===0))throw new Pr("localAddress must be valid string IP address");if(J!=null&&(!Number.isInteger(J)||J<-1))throw new Pr("maxResponseSize must be a positive number");if(De!=null&&(!Number.isInteger(De)||De<-1))throw new Pr("autoSelectFamilyAttemptTimeout must be a positive number");if(fe!=null&&typeof fe!="boolean")throw new Pr("allowH2 must be a valid boolean value");if(Ue!=null&&(typeof Ue!="number"||Ue<1))throw new Pr("maxConcurrentStreams must be a positive integer, greater than 0");typeof N!="function"&&(N=lht({...E,maxCachedSessions:S,allowH2:fe,socketPath:g,timeout:c,...Pe?{autoSelectFamily:Pe,autoSelectFamilyAttemptTimeout:De}:void 0,...N})),r?.Client&&Array.isArray(r.Client)?(this[wme]=r.Client,xme||(xme=!0,process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"}))):this[wme]=[vht({maxRedirections:b})],this[qc]=Km.parseOrigin(e),this[Ex]=N,this[H_]=y??1,this[Aht]=n||sht.maxHeaderSize,this[Sme]=p??4e3,this[ght]=m??6e5,this[yht]=h??2e3,this[hht]=this[Sme],this[lp]=null,this[Cx]=v??null,this[Xm]=0,this[dp]=0,this[fht]=`host: ${this[qc].hostname}${this[qc].port?`:${this[qc].port}`:""}\r
`,this[Cht]=l??3e5,this[Eht]=s??3e5,this[Iht]=C??!0,this[Sht]=b,this[ZV]=_,this[up]=null,this[Rht]=J>-1?J:-1,this[Tht]=Ue??100,this[vr]=null,this[ka]=[],this[Xu]=0,this[Oa]=0,this[Ix]=ot=>t4(this,ot),this[Nht]=ot=>Tme(this,ot)}get pipelining(){return this[H_]}set pipelining(e){this[H_]=e,this[Ix](!0)}get[xx](){return this[ka].length-this[Oa]}get[wx](){return this[Oa]-this[Xu]}get[Sx](){return this[ka].length-this[Xu]}get[pht](){return!!this[vr]&&!this[my]&&!this[vr].destroyed}get[XV](){return!!(this[vr]?.busy(null)||this[Sx]>=(Nme(this)||1)||this[xx]>0)}[dht](e){_me(this),this.once("connect",e)}[Bht](e,r){let n=e.origin||this[qc].origin,s=new oht(n,e,r);return this[ka].push(s),this[Xm]||(Km.bodyLength(s.body)==null&&Km.isIterable(s.body)?(this[Xm]=1,queueMicrotask(()=>t4(this))):this[Ix](!0)),this[Xm]&&this[dp]!==2&&this[XV]&&(this[dp]=2),this[dp]<2}async[xht](){return new Promise(e=>{this[Sx]?this[up]=e:e(null)})}async[bht](e){return new Promise(r=>{let n=this[ka].splice(this[Oa]);for(let o=0;o<n.length;o++){let a=n[o];Km.errorRequest(this,a,e)}let s=i(()=>{this[up]&&(this[up](),this[up]=null),r(null)},"callback");this[vr]?(this[vr].destroy(e,s),this[vr]=null):queueMicrotask(s),this[Ix]()})}},vht=q_();function Tme(t,e){if(t[wx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[Oa]===t[Xu]);let r=t[ka].splice(t[Xu]);for(let n=0;n<r.length;n++){let s=r[n];Km.errorRequest(t,s,e)}Ku(t[Sx]===0)}}i(Tme,"onError");async function _me(t){Ku(!t[my]),Ku(!t[vr]);let{host:e,hostname:r,protocol:n,port:s}=t[qc];if(r[0]==="["){let o=r.indexOf("]");Ku(o!==-1);let a=r.substring(1,o);Ku(Rme.isIP(a)),r=a}t[my]=!0,fy.beforeConnect.hasSubscribers&&fy.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[vr]?.version,servername:t[lp],localAddress:t[Cx]},connector:t[Ex]});try{let o=await new Promise((a,c)=>{t[Ex]({host:e,hostname:r,protocol:n,port:s,servername:t[lp],localAddress:t[Cx]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){Km.destroy(o.on("error",bme),new cht);return}Ku(o);try{t[vr]=o.alpnProtocol==="h2"?await Pht(t,o):await _ht(t,o)}catch(a){throw o.destroy().on("error",bme),a}t[my]=!1,o[wht]=0,o[ZV]=t[ZV],o[uht]=t,o[mht]=null,fy.connected.hasSubscribers&&fy.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[vr]?.version,servername:t[lp],localAddress:t[Cx]},connector:t[Ex],socket:o}),t.emit("connect",t[qc],[t])}catch(o){if(t.destroyed)return;if(t[my]=!1,fy.connectError.hasSubscribers&&fy.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[vr]?.version,servername:t[lp],localAddress:t[Cx]},connector:t[Ex],error:o}),o.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[wx]===0);t[xx]>0&&t[ka][t[Oa]].servername===t[lp];){let a=t[ka][t[Oa]++];Km.errorRequest(t,a,o)}else Tme(t,o);t.emit("connectionError",t[qc],[t],o)}t[Ix]()}i(_me,"connect");function Bme(t){t[dp]=0,t.emit("drain",t[qc],[t])}i(Bme,"emitDrain");function t4(t,e){t[Xm]!==2&&(t[Xm]=2,Qht(t,e),t[Xm]=0,t[Xu]>256&&(t[ka].splice(0,t[Xu]),t[Oa]-=t[Xu],t[Xu]=0))}i(t4,"resume");function Qht(t,e){for(;;){if(t.destroyed){Ku(t[xx]===0);return}if(t[up]&&!t[Sx]){t[up](),t[up]=null;return}if(t[vr]&&t[vr].resume(),t[XV])t[dp]=2;else if(t[dp]===2){e?(t[dp]=1,queueMicrotask(()=>Bme(t))):Bme(t);continue}if(t[xx]===0||t[wx]>=(Nme(t)||1))return;let r=t[ka][t[Oa]];if(t[qc].protocol==="https:"&&t[lp]!==r.servername){if(t[wx]>0)return;t[lp]=r.servername,t[vr]?.destroy(new aht("servername changed"),()=>{t[vr]=null,t4(t)})}if(t[my])return;if(!t[vr]){_me(t);return}if(t[vr].destroyed||t[vr].busy(r))return;!r.aborted&&t[vr].write(r)?t[Oa]++:t[ka].splice(t[Oa],1)}}i(Qht,"_resume");Pme.exports=e4});var r4=w((Mgr,vme)=>{"use strict";var G_=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)}};vme.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new G_}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new G_),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Dme=w((Ugr,Qme)=>{var{kFree:Dht,kConnected:kht,kPending:Oht,kQueued:Lht,kRunning:Mht,kSize:Fht}=er(),Zm=Symbol("pool"),n4=class{static{i(this,"PoolStats")}constructor(e){this[Zm]=e}get connected(){return this[Zm][kht]}get free(){return this[Zm][Dht]}get pending(){return this[Zm][Oht]}get queued(){return this[Zm][Lht]}get running(){return this[Zm][Mht]}get size(){return this[Zm][Fht]}};Qme.exports=n4});var l4=w((qgr,Gme)=>{"use strict";var Uht=Zg(),$ht=r4(),{kConnected:s4,kSize:kme,kRunning:Ome,kPending:Lme,kQueued:bx,kBusy:qht,kFree:Hht,kUrl:Ght,kClose:zht,kDestroy:Vht,kDispatch:Wht}=er(),jht=Dme(),Zs=Symbol("clients"),xs=Symbol("needDrain"),Bx=Symbol("queue"),o4=Symbol("closed resolve"),i4=Symbol("onDrain"),Mme=Symbol("onConnect"),Fme=Symbol("onDisconnect"),Ume=Symbol("onConnectionError"),a4=Symbol("get dispatcher"),qme=Symbol("add client"),Hme=Symbol("remove client"),$me=Symbol("stats"),c4=class extends Uht{static{i(this,"PoolBase")}constructor(e){super(e),this[Bx]=new $ht,this[Zs]=[],this[bx]=0;let r=this;this[i4]=i(function(s,o){let a=r[Bx],c=!1;for(;!c;){let l=a.shift();if(!l)break;r[bx]--,c=!this.dispatch(l.opts,l.handler)}this[xs]=c,!this[xs]&&r[xs]&&(r[xs]=!1,r.emit("drain",s,[r,...o])),r[o4]&&a.isEmpty()&&Promise.all(r[Zs].map(l=>l.close())).then(r[o4])},"onDrain"),this[Mme]=(n,s)=>{r.emit("connect",n,[r,...s])},this[Fme]=(n,s,o)=>{r.emit("disconnect",n,[r,...s],o)},this[Ume]=(n,s,o)=>{r.emit("connectionError",n,[r,...s],o)},this[$me]=new jht(this)}get[qht](){return this[xs]}get[s4](){return this[Zs].filter(e=>e[s4]).length}get[Hht](){return this[Zs].filter(e=>e[s4]&&!e[xs]).length}get[Lme](){let e=this[bx];for(let{[Lme]:r}of this[Zs])e+=r;return e}get[Ome](){let e=0;for(let{[Ome]:r}of this[Zs])e+=r;return e}get[kme](){let e=this[bx];for(let{[kme]:r}of this[Zs])e+=r;return e}get stats(){return this[$me]}async[zht](){this[Bx].isEmpty()?await Promise.all(this[Zs].map(e=>e.close())):await new Promise(e=>{this[o4]=e})}async[Vht](e){for(;;){let r=this[Bx].shift();if(!r)break;r.handler.onError(e)}await Promise.all(this[Zs].map(r=>r.destroy(e)))}[Wht](e,r){let n=this[a4]();return n?n.dispatch(e,r)||(n[xs]=!0,this[xs]=!this[a4]()):(this[xs]=!0,this[Bx].push({opts:e,handler:r}),this[bx]++),!this[xs]}[qme](e){return e.on("drain",this[i4]).on("connect",this[Mme]).on("disconnect",this[Fme]).on("connectionError",this[Ume]),this[Zs].push(e),this[xs]&&queueMicrotask(()=>{this[xs]&&this[i4](e[Ght],[this,e])}),this}[Hme](e){e.close(()=>{let r=this[Zs].indexOf(e);r!==-1&&this[Zs].splice(r,1)}),this[xs]=this[Zs].some(r=>!r[xs]&&r.closed!==!0&&r.destroyed!==!0)}};Gme.exports={PoolBase:c4,kClients:Zs,kNeedDrain:xs,kAddClient:qme,kRemoveClient:Hme,kGetDispatcher:a4}});var Ay=w((Ggr,jme)=>{"use strict";var{PoolBase:Jht,kClients:z_,kNeedDrain:Yht,kAddClient:Kht,kGetDispatcher:Xht}=l4(),Zht=hy(),{InvalidArgumentError:u4}=pt(),zme=Ye(),{kUrl:Vme,kInterceptors:eAt}=er(),tAt=ox(),d4=Symbol("options"),p4=Symbol("connections"),Wme=Symbol("factory");function rAt(t,e){return new Zht(t,e)}i(rAt,"defaultFactory");var f4=class extends Jht{static{i(this,"Pool")}constructor(e,{connections:r,factory:n=rAt,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 u4("invalid connections");if(typeof n!="function")throw new u4("factory must be a function.");if(s!=null&&typeof s!="function"&&typeof s!="object")throw new u4("connect must be a function or an object");typeof s!="function"&&(s=tAt({...a,maxCachedSessions:c,allowH2:p,socketPath:l,timeout:o,...u?{autoSelectFamily:u,autoSelectFamilyAttemptTimeout:d}:void 0,...s})),super(f),this[eAt]=f.interceptors?.Pool&&Array.isArray(f.interceptors.Pool)?f.interceptors.Pool:[],this[p4]=r||null,this[Vme]=zme.parseOrigin(e),this[d4]={...zme.deepClone(f),connect:s,allowH2:p},this[d4].interceptors=f.interceptors?{...f.interceptors}:void 0,this[Wme]=n,this.on("connectionError",(m,h,g)=>{for(let y of h){let E=this[z_].indexOf(y);E!==-1&&this[z_].splice(E,1)}})}[Xht](){for(let e of this[z_])if(!e[Yht])return e;if(!this[p4]||this[z_].length<this[p4]){let e=this[Wme](this[Vme],this[d4]);return this[Kht](e),e}}};jme.exports=f4});var Zme=w((Vgr,Xme)=>{"use strict";var{BalancedPoolMissingUpstreamError:nAt,InvalidArgumentError:sAt}=pt(),{PoolBase:oAt,kClients:ts,kNeedDrain:Rx,kAddClient:iAt,kRemoveClient:aAt,kGetDispatcher:cAt}=l4(),lAt=Ay(),{kUrl:m4,kInterceptors:uAt}=er(),{parseOrigin:Jme}=Ye(),Yme=Symbol("factory"),V_=Symbol("options"),Kme=Symbol("kGreatestCommonDivisor"),eh=Symbol("kCurrentWeight"),th=Symbol("kIndex"),vi=Symbol("kWeight"),W_=Symbol("kMaxWeightPerServer"),j_=Symbol("kErrorPenalty");function dAt(t,e){if(t===0)return e;for(;e!==0;){let r=e;e=t%e,t=r}return t}i(dAt,"getGreatestCommonDivisor");function pAt(t,e){return new lAt(t,e)}i(pAt,"defaultFactory");var h4=class extends oAt{static{i(this,"BalancedPool")}constructor(e=[],{factory:r=pAt,...n}={}){if(super(),this[V_]=n,this[th]=-1,this[eh]=0,this[W_]=this[V_].maxWeightPerServer||100,this[j_]=this[V_].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof r!="function")throw new sAt("factory must be a function.");this[uAt]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[Yme]=r;for(let s of e)this.addUpstream(s);this._updateBalancedPoolStats()}addUpstream(e){let r=Jme(e).origin;if(this[ts].find(s=>s[m4].origin===r&&s.closed!==!0&&s.destroyed!==!0))return this;let n=this[Yme](r,Object.assign({},this[V_]));this[iAt](n),n.on("connect",()=>{n[vi]=Math.min(this[W_],n[vi]+this[j_])}),n.on("connectionError",()=>{n[vi]=Math.max(1,n[vi]-this[j_]),this._updateBalancedPoolStats()}),n.on("disconnect",(...s)=>{let o=s[2];o&&o.code==="UND_ERR_SOCKET"&&(n[vi]=Math.max(1,n[vi]-this[j_]),this._updateBalancedPoolStats())});for(let s of this[ts])s[vi]=this[W_];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let r=0;r<this[ts].length;r++)e=dAt(this[ts][r][vi],e);this[Kme]=e}removeUpstream(e){let r=Jme(e).origin,n=this[ts].find(s=>s[m4].origin===r&&s.closed!==!0&&s.destroyed!==!0);return n&&this[aAt](n),this}get upstreams(){return this[ts].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[m4].origin)}[cAt](){if(this[ts].length===0)throw new nAt;if(!this[ts].find(o=>!o[Rx]&&o.closed!==!0&&o.destroyed!==!0)||this[ts].map(o=>o[Rx]).reduce((o,a)=>o&&a,!0))return;let n=0,s=this[ts].findIndex(o=>!o[Rx]);for(;n++<this[ts].length;){this[th]=(this[th]+1)%this[ts].length;let o=this[ts][this[th]];if(o[vi]>this[ts][s][vi]&&!o[Rx]&&(s=this[th]),this[th]===0&&(this[eh]=this[eh]-this[Kme],this[eh]<=0&&(this[eh]=this[W_])),o[vi]>=this[eh]&&!o[Rx])return o}return this[eh]=this[ts][s][vi],this[th]=s,this[ts][s]}};Xme.exports=h4});var gy=w((jgr,ihe)=>{"use strict";var{InvalidArgumentError:J_}=pt(),{kClients:pp,kRunning:ehe,kClose:fAt,kDestroy:mAt,kDispatch:hAt,kInterceptors:AAt}=er(),gAt=Zg(),yAt=Ay(),EAt=hy(),CAt=Ye(),IAt=q_(),the=Symbol("onConnect"),rhe=Symbol("onDisconnect"),nhe=Symbol("onConnectionError"),SAt=Symbol("maxRedirections"),she=Symbol("onDrain"),ohe=Symbol("factory"),A4=Symbol("options");function wAt(t,e){return e&&e.connections===1?new EAt(t,e):new yAt(t,e)}i(wAt,"defaultFactory");var g4=class extends gAt{static{i(this,"Agent")}constructor({factory:e=wAt,maxRedirections:r=0,connect:n,tls:s,...o}={}){if(typeof e!="function")throw new J_("factory must be a function.");if(n!=null&&typeof n!="function"&&typeof n!="object")throw new J_("connect must be a function or an object");if(!Number.isInteger(r)||r<0)throw new J_("maxRedirections must be a positive number");super(o),n&&typeof n!="function"&&(n={...n}),s&&typeof s!="function"&&(s={...s}),this[AAt]=o.interceptors?.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[IAt({maxRedirections:r})],this[A4]={...CAt.deepClone(o),connect:n,tls:s},this[A4].interceptors=o.interceptors?{...o.interceptors}:void 0,this[SAt]=r,this[ohe]=e,this[pp]=new Map,this[she]=(a,c)=>{this.emit("drain",a,[this,...c])},this[the]=(a,c)=>{this.emit("connect",a,[this,...c])},this[rhe]=(a,c,l)=>{this.emit("disconnect",a,[this,...c],l)},this[nhe]=(a,c,l)=>{this.emit("connectionError",a,[this,...c],l)}}get[ehe](){let e=0;for(let r of this[pp].values())e+=r[ehe];return e}[hAt](e,r){let n;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))n=String(e.origin);else throw new J_("opts.origin must be a non-empty string or URL.");let s=this[pp].get(n);return s||(s=this[ohe](e.origin,this[A4]).on("drain",this[she]).on("connect",this[the]).on("disconnect",this[rhe]).on("connectionError",this[nhe]),this[pp].set(n,s)),s.dispatch(e,r)}async[fAt](){let e=[];for(let r of this[pp].values())e.push(r.close());this[pp].clear(),await Promise.all(e)}async[mAt](e){let r=[];for(let n of this[pp].values())r.push(n.destroy(e));this[pp].clear(),await Promise.all(r)}};ihe.exports=g4});var S4=w((Ygr,ghe)=>{"use strict";var{kProxy:y4,kClose:phe,kDestroy:fhe,kDispatch:ahe,kInterceptors:xAt}=er(),{URL:rh}=require("node:url"),bAt=gy(),mhe=Ay(),hhe=Zg(),{InvalidArgumentError:yy,RequestAbortedError:BAt,SecureProxyConnectionError:RAt}=pt(),che=ox(),Ahe=hy(),Y_=Symbol("proxy agent"),K_=Symbol("proxy client"),fp=Symbol("proxy headers"),E4=Symbol("request tls settings"),lhe=Symbol("proxy tls settings"),uhe=Symbol("connect endpoint function"),dhe=Symbol("tunnel proxy");function NAt(t){return t==="https:"?443:80}i(NAt,"defaultProtocolPort");function TAt(t,e){return new mhe(t,e)}i(TAt,"defaultFactory");var _At=i(()=>{},"noop");function PAt(t,e){return e.connections===1?new Ahe(t,e):new mhe(t,e)}i(PAt,"defaultAgentFactory");var C4=class extends hhe{static{i(this,"Http1ProxyWrapper")}#e;constructor(e,{headers:r={},connect:n,factory:s}){if(super(),!e)throw new yy("Proxy URL is mandatory");this[fp]=r,s?this.#e=s(e,{connect:n}):this.#e=new Ahe(e,{connect:n})}[ahe](e,r){let n=r.onHeaders;r.onHeaders=function(c,l,u){if(c===407){typeof r.onError=="function"&&r.onError(new yy("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 rh(s);a.host=c}return e.headers={...this[fp],...a},this.#e[ahe](e,r)}async[phe](){return this.#e.close()}async[fhe](e){return this.#e.destroy(e)}},I4=class extends hhe{static{i(this,"ProxyAgent")}constructor(e){if(super(),!e||typeof e=="object"&&!(e instanceof rh)&&!e.uri)throw new yy("Proxy uri is mandatory");let{clientFactory:r=TAt}=e;if(typeof r!="function")throw new yy("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[y4]={uri:o,protocol:l},this[xAt]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[E4]=e.requestTls,this[lhe]=e.proxyTls,this[fp]=e.headers||{},this[dhe]=n,e.auth&&e.token)throw new yy("opts.auth cannot be used in combination with opts.token");e.auth?this[fp]["proxy-authorization"]=`Basic ${e.auth}`:e.token?this[fp]["proxy-authorization"]=e.token:u&&d&&(this[fp]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(u)}:${decodeURIComponent(d)}`).toString("base64")}`);let f=che({...e.proxyTls});this[uhe]=che({...e.requestTls});let m=e.factory||PAt,h=i((g,y)=>{let{protocol:E}=new rh(g);return!this[dhe]&&E==="http:"&&this[y4].protocol==="http:"?new C4(this[y4].uri,{headers:this[fp],connect:f,factory:m}):m(g,y)},"factory");this[K_]=r(s,{connect:f}),this[Y_]=new bAt({...e,factory:h,connect:i(async(g,y)=>{let E=g.host;g.port||(E+=`:${NAt(g.protocol)}`);try{let{socket:C,statusCode:S}=await this[K_].connect({origin:a,port:c,path:E,signal:g.signal,headers:{...this[fp],host:g.host},servername:this[lhe]?.servername||p});if(S!==200&&(C.on("error",_At).destroy(),y(new BAt(`Proxy response (${S}) !== 200 when HTTP Tunneling`))),g.protocol!=="https:"){y(null,C);return}let b;this[E4]?b=this[E4].servername:b=g.servername,this[uhe]({...g,servername:b,httpSocket:C},y)}catch(C){C.code==="ERR_TLS_CERT_ALTNAME_INVALID"?y(new RAt(C)):y(C)}},"connect")})}dispatch(e,r){let n=vAt(e.headers);if(QAt(n),n&&!("host"in n)&&!("Host"in n)){let{host:s}=new rh(e.origin);n.host=s}return this[Y_].dispatch({...e,headers:n},r)}#e(e){return typeof e=="string"?new rh(e):e instanceof rh?e:new rh(e.uri)}async[phe](){await this[Y_].close(),await this[K_].close()}async[fhe](){await this[Y_].destroy(),await this[K_].destroy()}};function vAt(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(vAt,"buildHeaders");function QAt(t){if(t&&Object.keys(t).find(r=>r.toLowerCase()==="proxy-authorization"))throw new yy("Proxy-Authorization should be sent in ProxyAgent constructor")}i(QAt,"throwIfProxyAuthIsSent");ghe.exports=I4});var whe=w((Xgr,She)=>{"use strict";var DAt=Zg(),{kClose:kAt,kDestroy:OAt,kClosed:yhe,kDestroyed:Ehe,kDispatch:LAt,kNoProxyAgent:Nx,kHttpProxyAgent:mp,kHttpsProxyAgent:nh}=er(),Che=S4(),MAt=gy(),FAt={"http:":80,"https:":443},Ihe=!1,w4=class extends DAt{static{i(this,"EnvHttpProxyAgent")}#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,Ihe||(Ihe=!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[Nx]=new MAt(o);let a=r??process.env.http_proxy??process.env.HTTP_PROXY;a?this[mp]=new Che({...o,uri:a}):this[mp]=this[Nx];let c=n??process.env.https_proxy??process.env.HTTPS_PROXY;c?this[nh]=new Che({...o,uri:c}):this[nh]=this[mp],this.#o()}[LAt](e,r){let n=new URL(e.origin);return this.#r(n).dispatch(e,r)}async[kAt](){await this[Nx].close(),this[mp][yhe]||await this[mp].close(),this[nh][yhe]||await this[nh].close()}async[OAt](e){await this[Nx].destroy(e),this[mp][Ehe]||await this[mp].destroy(e),this[nh][Ehe]||await this[nh].destroy(e)}#r(e){let{protocol:r,host:n,port:s}=e;return n=n.replace(/:\d*$/,"").toLowerCase(),s=Number.parseInt(s,10)||FAt[r]||0,this.#s(n,s)?r==="https:"?this[nh]:this[mp]:this[Nx]}#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??""}};She.exports=w4});var X_=w((eyr,Nhe)=>{"use strict";var Tx=require("node:assert"),{kRetryHandlerDefaultRetry:xhe}=er(),{RequestRetryError:sh}=pt(),{isDisturbed:bhe,parseHeaders:UAt,parseRangeHeader:Bhe,wrapRequestBody:$At}=Ye();function qAt(t){let e=Date.now();return new Date(t).getTime()-e}i(qAt,"calculateRetryAfterHeader");function Rhe(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 sh("Content-Length mismatch",r,{headers:t,data:{count:n}}):null}i(Rhe,"validatePartialResponseContentLength");var x4=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:$At(e.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??t[xhe],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,Tx(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[xhe](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:g,methods:y}=u,{counter:E}=r;if(a&&a!=="UND_ERR_REQ_RETRY"&&!g.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 C=c?.["retry-after"];C&&(C=Number(C),C=Number.isNaN(C)?qAt(C):C*1e3);let S=C>0?Math.min(C,f):Math.min(p*m**(E-1),f);setTimeout(()=>s(null),S)}onHeaders(e,r,n,s){let o=UAt(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 sh("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 sh("server does not support the range header and the payload was partially consumed",e,{headers:o,data:{count:this.retryCount}})),!1;let c=Bhe(o["content-range"]);if(!c)return this.abort(new sh("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==o.etag)return this.abort(new sh("ETag mismatch",e,{headers:o,data:{count:this.retryCount}})),!1;let l=Rhe(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 sh("Content-Range mismatch",e,{headers:o,data:{count:this.retryCount}})),!1):(this.resume=n,!0)}if(this.end==null){if(e===206){let c=Bhe(o["content-range"]);if(c==null)return this.headersSent=!0,this.handler.onHeaders(e,r,n,s);let l=Rhe(o,c,e,this.retryCount);if(l!=null)return this.abort(l),!1;let{start:u,size:d,end:p=d-1}=c;Tx(u!=null&&Number.isFinite(u),"content-range mismatch"),Tx(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 Tx(Number.isFinite(this.start)),Tx(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 sh("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||bhe(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||bhe(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")}};Nhe.exports=x4});var _he=w((ryr,The)=>{"use strict";var HAt=nx(),GAt=X_(),b4=class extends HAt{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 GAt({...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()}};The.exports=b4});var P4=w((syr,Fhe)=>{"use strict";var khe=require("node:assert"),{Readable:zAt}=require("node:stream"),{RequestAbortedError:Ohe,NotSupportedError:VAt,InvalidArgumentError:WAt,AbortError:B4}=pt(),Lhe=Ye(),{ReadableStreamFrom:jAt}=Ye(),zo=Symbol("kConsume"),_x=Symbol("kReading"),hp=Symbol("kBody"),Phe=Symbol("kAbort"),Mhe=Symbol("kContentType"),vhe=Symbol("kContentLength"),JAt=i(()=>{},"noop"),R4=class extends zAt{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[Phe]=r,this[zo]=null,this[hp]=null,this[Mhe]=n,this[vhe]=s,this[_x]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new Ohe),e&&this[Phe](),super.destroy(e)}_destroy(e,r){this[_x]?r(e):setImmediate(()=>{r(e)})}on(e,...r){return(e==="data"||e==="readable")&&(this[_x]=!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[_x]=this.listenerCount("data")>0||this.listenerCount("readable")>0),n}removeListener(e,...r){return this.off(e,...r)}push(e){return this[zo]&&e!==null?(T4(this[zo],e),this[_x]?super.push(e):!0):super.push(e)}async text(){return Px(this,"text")}async json(){return Px(this,"json")}async blob(){return Px(this,"blob")}async bytes(){return Px(this,"bytes")}async arrayBuffer(){return Px(this,"arrayBuffer")}async formData(){throw new VAt}get bodyUsed(){return Lhe.isDisturbed(this)}get body(){return this[hp]||(this[hp]=jAt(this),this[zo]&&(this[hp].getReader(),khe(this[hp].locked))),this[hp]}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 WAt("signal must be an AbortSignal");return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((s,o)=>{this[vhe]>r&&this.destroy(new B4);let a=i(()=>{this.destroy(n.reason??new B4)},"onAbort");n?.addEventListener("abort",a),this.on("close",function(){n?.removeEventListener("abort",a),n?.aborted?o(n.reason??new B4):s(null)}).on("error",JAt).on("data",function(c){r-=c.length,r<=0&&this.destroy()}).resume()})}};function YAt(t){return t[hp]&&t[hp].locked===!0||t[zo]}i(YAt,"isLocked");function KAt(t){return Lhe.isDisturbed(t)||YAt(t)}i(KAt,"isUnusable");async function Px(t,e){return khe(!t[zo]),new Promise((r,n)=>{if(KAt(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[zo]={type:e,stream:t,resolve:r,reject:n,length:0,body:[]},t.on("error",function(s){_4(this[zo],s)}).on("close",function(){this[zo].body!==null&&_4(this[zo],new Ohe)}),XAt(t[zo])})})}i(Px,"consume");function XAt(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++)T4(t,e.buffer[s])}else for(let r of e.buffer)T4(t,r);for(e.endEmitted?Dhe(this[zo]):t.stream.on("end",function(){Dhe(this[zo])}),t.stream.resume();t.stream.read()!=null;);}i(XAt,"consumeStart");function N4(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(N4,"chunksDecode");function Qhe(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(Qhe,"chunksConcat");function Dhe(t){let{type:e,body:r,resolve:n,stream:s,length:o}=t;try{e==="text"?n(N4(r,o)):e==="json"?n(JSON.parse(N4(r,o))):e==="arrayBuffer"?n(Qhe(r,o).buffer):e==="blob"?n(new Blob(r,{type:s[Mhe]})):e==="bytes"&&n(Qhe(r,o)),_4(t)}catch(a){s.destroy(a)}}i(Dhe,"consumeEnd");function T4(t,e){t.length+=e.length,t.body.push(e)}i(T4,"consumePush");function _4(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(_4,"consumeFinish");Fhe.exports={Readable:R4,chunksDecode:N4}});var v4=w((iyr,Ghe)=>{var ZAt=require("node:assert"),{ResponseStatusCodeError:Uhe}=pt(),{chunksDecode:$he}=P4(),egt=128*1024;async function tgt({callback:t,body:e,contentType:r,statusCode:n,statusMessage:s,headers:o}){ZAt(e);let a=[],c=0;try{for await(let p of e)if(a.push(p),c+=p.length,c>egt){a=[],c=0;break}}catch{a=[],c=0}let l=`Response status code ${n}${s?`: ${s}`:""}`;if(n===204||!r||!c){queueMicrotask(()=>t(new Uhe(l,n,o)));return}let u=Error.stackTraceLimit;Error.stackTraceLimit=0;let d;try{qhe(r)?d=JSON.parse($he(a,c)):Hhe(r)&&(d=$he(a,c))}catch{}finally{Error.stackTraceLimit=u}queueMicrotask(()=>t(new Uhe(l,n,o,d)))}i(tgt,"getResolveErrorBodyCallback");var qhe=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"),Hhe=i(t=>t.length>4&&t[4]==="/"&&t[0]==="t"&&t[1]==="e"&&t[2]==="x"&&t[3]==="t","isContentTypeText");Ghe.exports={getResolveErrorBodyCallback:tgt,isContentTypeApplicationJson:qhe,isContentTypeText:Hhe}});var Whe=w((cyr,Q4)=>{"use strict";var rgt=require("node:assert"),{Readable:ngt}=P4(),{InvalidArgumentError:Ey,RequestAbortedError:zhe}=pt(),Vo=Ye(),{getResolveErrorBodyCallback:sgt}=v4(),{AsyncResource:ogt}=require("node:async_hooks"),Z_=class extends ogt{static{i(this,"RequestHandler")}constructor(e,r){if(!e||typeof e!="object")throw new Ey("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 Ey("invalid callback");if(d&&(typeof d!="number"||d<0))throw new Ey("invalid highWaterMark");if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new Ey("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new Ey("invalid method");if(c&&typeof c!="function")throw new Ey("invalid onInfo callback");super("UNDICI_REQUEST")}catch(p){throw Vo.isStream(a)&&Vo.destroy(a.on("error",Vo.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,Vo.isStream(a)&&a.on("error",p=>{this.onError(p)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new zhe:this.removeAbortListener=Vo.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new zhe,this.res?Vo.destroy(this.res.on("error",Vo.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}rgt(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"?Vo.parseRawHeaders(r):Vo.parseHeaders(r);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let f=u==="raw"?Vo.parseHeaders(r):p,m=f["content-type"],h=f["content-length"],g=new ngt({resume:n,abort:c,contentType:m,contentLength:this.method!=="HEAD"&&h?Number(h):null,highWaterMark:d});this.removeAbortListener&&g.on("close",this.removeAbortListener),this.callback=null,this.res=g,o!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(sgt,null,{callback:o,body:g,contentType:m,statusCode:e,statusMessage:s,headers:p}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:a,body:g,context:l}))}onData(e){return this.res.push(e)}onComplete(e){Vo.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(()=>{Vo.destroy(r,e)})),s&&(this.body=null,Vo.destroy(s,e)),this.removeAbortListener&&(r?.off("close",this.removeAbortListener),this.removeAbortListener(),this.removeAbortListener=null)}};function Vhe(t,e){if(e===void 0)return new Promise((r,n)=>{Vhe.call(this,t,(s,o)=>s?n(s):r(o))});try{this.dispatch(t,new Z_(t,e))}catch(r){if(typeof e!="function")throw r;let n=t?.opaque;queueMicrotask(()=>e(r,{opaque:n}))}}i(Vhe,"request");Q4.exports=Vhe;Q4.exports.RequestHandler=Z_});var vx=w((uyr,Yhe)=>{var{addAbortListener:igt}=Ye(),{RequestAbortedError:agt}=pt(),Cy=Symbol("kListener"),Hc=Symbol("kSignal");function jhe(t){t.abort?t.abort(t[Hc]?.reason):t.reason=t[Hc]?.reason??new agt,Jhe(t)}i(jhe,"abort");function cgt(t,e){if(t.reason=null,t[Hc]=null,t[Cy]=null,!!e){if(e.aborted){jhe(t);return}t[Hc]=e,t[Cy]=()=>{jhe(t)},igt(t[Hc],t[Cy])}}i(cgt,"addSignal");function Jhe(t){t[Hc]&&("removeEventListener"in t[Hc]?t[Hc].removeEventListener("abort",t[Cy]):t[Hc].removeListener("abort",t[Cy]),t[Hc]=null,t[Cy]=null)}i(Jhe,"removeSignal");Yhe.exports={addSignal:cgt,removeSignal:Jhe}});var eAe=w((pyr,Zhe)=>{"use strict";var lgt=require("node:assert"),{finished:ugt,PassThrough:dgt}=require("node:stream"),{InvalidArgumentError:Iy,InvalidReturnValueError:pgt}=pt(),La=Ye(),{getResolveErrorBodyCallback:fgt}=v4(),{AsyncResource:mgt}=require("node:async_hooks"),{addSignal:hgt,removeSignal:Khe}=vx(),D4=class extends mgt{static{i(this,"StreamHandler")}constructor(e,r,n){if(!e||typeof e!="object")throw new Iy("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 Iy("invalid callback");if(typeof r!="function")throw new Iy("invalid factory");if(s&&typeof s.on!="function"&&typeof s.addEventListener!="function")throw new Iy("signal must be an EventEmitter or EventTarget");if(o==="CONNECT")throw new Iy("invalid method");if(l&&typeof l!="function")throw new Iy("invalid onInfo callback");super("UNDICI_STREAM")}catch(p){throw La.isStream(c)&&La.destroy(c.on("error",La.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,La.isStream(c)&&c.on("error",p=>{this.onError(p)}),hgt(this,s)}onConnect(e,r){if(this.reason){e(this.reason);return}lgt(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"?La.parseRawHeaders(r):La.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"?La.parseHeaders(r):d)["content-type"];p=new dgt,this.callback=null,this.runInAsyncScope(fgt,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 pgt("expected Writable");ugt(p,{readable:!1},m=>{let{callback:h,res:g,opaque:y,trailers:E,abort:C}=this;this.res=null,(m||!g.readable)&&La.destroy(g,m),this.callback=null,this.runInAsyncScope(h,null,m||null,{opaque:y,trailers:E}),m&&C()})}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;Khe(this),r&&(this.trailers=La.parseHeaders(e),r.end())}onError(e){let{res:r,callback:n,opaque:s,body:o}=this;Khe(this),this.factory=null,r?(this.res=null,La.destroy(r,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:s})})),o&&(this.body=null,La.destroy(o,e))}};function Xhe(t,e,r){if(r===void 0)return new Promise((n,s)=>{Xhe.call(this,t,e,(o,a)=>o?s(o):n(a))});try{this.dispatch(t,new D4(t,e,r))}catch(n){if(typeof r!="function")throw n;let s=t?.opaque;queueMicrotask(()=>r(n,{opaque:s}))}}i(Xhe,"stream");Zhe.exports=Xhe});var sAe=w((myr,nAe)=>{"use strict";var{Readable:rAe,Duplex:Agt,PassThrough:ggt}=require("node:stream"),{InvalidArgumentError:Qx,InvalidReturnValueError:ygt,RequestAbortedError:k4}=pt(),Qi=Ye(),{AsyncResource:Egt}=require("node:async_hooks"),{addSignal:Cgt,removeSignal:Igt}=vx(),tAe=require("node:assert"),Sy=Symbol("resume"),O4=class extends rAe{static{i(this,"PipelineRequest")}constructor(){super({autoDestroy:!0}),this[Sy]=null}_read(){let{[Sy]:e}=this;e&&(this[Sy]=null,e())}_destroy(e,r){this._read(),r(e)}},L4=class extends rAe{static{i(this,"PipelineResponse")}constructor(e){super({autoDestroy:!0}),this[Sy]=e}_read(){this[Sy]()}_destroy(e,r){!e&&!this._readableState.endEmitted&&(e=new k4),r(e)}},M4=class extends Egt{static{i(this,"PipelineHandler")}constructor(e,r){if(!e||typeof e!="object")throw new Qx("invalid opts");if(typeof r!="function")throw new Qx("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 Qx("signal must be an EventEmitter or EventTarget");if(s==="CONNECT")throw new Qx("invalid method");if(a&&typeof a!="function")throw new Qx("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 O4().on("error",Qi.nop),this.ret=new Agt({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[Sy]=d},"write"),destroy:i((l,u)=>{let{body:d,req:p,res:f,ret:m,abort:h}=this;!l&&!m._readableState.endEmitted&&(l=new k4),h&&l&&h(),Qi.destroy(d,l),Qi.destroy(p,l),Qi.destroy(f,l),Igt(this),u(l)},"destroy")}).on("prefinish",()=>{let{req:l}=this;l.push(null)}),this.res=null,Cgt(this,n)}onConnect(e,r){let{ret:n,res:s}=this;if(this.reason){e(this.reason);return}tAe(!s,"pipeline cannot be retried"),tAe(!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"?Qi.parseRawHeaders(r):Qi.parseHeaders(r);this.onInfo({statusCode:e,headers:l})}return}this.res=new L4(n);let c;try{this.handler=null;let l=this.responseHeaders==="raw"?Qi.parseRawHeaders(r):Qi.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",Qi.nop),l}if(!c||typeof c.on!="function")throw new ygt("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;Qi.destroy(u,l)}).on("end",()=>{let{ret:l}=this;l.push(null)}).on("close",()=>{let{ret:l}=this;l._readableState.ended||Qi.destroy(l,new k4)}),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,Qi.destroy(r,e)}};function Sgt(t,e){try{let r=new M4(t,e);return this.dispatch({...t,body:r.req},r),r.ret}catch(r){return new ggt().destroy(r)}}i(Sgt,"pipeline");nAe.exports=Sgt});var uAe=w((Ayr,lAe)=>{"use strict";var{InvalidArgumentError:F4,SocketError:wgt}=pt(),{AsyncResource:xgt}=require("node:async_hooks"),oAe=Ye(),{addSignal:bgt,removeSignal:iAe}=vx(),aAe=require("node:assert"),U4=class extends xgt{static{i(this,"UpgradeHandler")}constructor(e,r){if(!e||typeof e!="object")throw new F4("invalid opts");if(typeof r!="function")throw new F4("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new F4("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,bgt(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}aAe(this.callback),this.abort=e,this.context=null}onHeaders(){throw new wgt("bad upgrade",null)}onUpgrade(e,r,n){aAe(e===101);let{callback:s,opaque:o,context:a}=this;iAe(this),this.callback=null;let c=this.responseHeaders==="raw"?oAe.parseRawHeaders(r):oAe.parseHeaders(r);this.runInAsyncScope(s,null,null,{headers:c,socket:n,opaque:o,context:a})}onError(e){let{callback:r,opaque:n}=this;iAe(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function cAe(t,e){if(e===void 0)return new Promise((r,n)=>{cAe.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new U4(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(cAe,"upgrade");lAe.exports=cAe});var hAe=w((yyr,mAe)=>{"use strict";var Bgt=require("node:assert"),{AsyncResource:Rgt}=require("node:async_hooks"),{InvalidArgumentError:$4,SocketError:Ngt}=pt(),dAe=Ye(),{addSignal:Tgt,removeSignal:pAe}=vx(),q4=class extends Rgt{static{i(this,"ConnectHandler")}constructor(e,r){if(!e||typeof e!="object")throw new $4("invalid opts");if(typeof r!="function")throw new $4("invalid callback");let{signal:n,opaque:s,responseHeaders:o}=e;if(n&&typeof n.on!="function"&&typeof n.addEventListener!="function")throw new $4("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=s||null,this.responseHeaders=o||null,this.callback=r,this.abort=null,Tgt(this,n)}onConnect(e,r){if(this.reason){e(this.reason);return}Bgt(this.callback),this.abort=e,this.context=r}onHeaders(){throw new Ngt("bad connect",null)}onUpgrade(e,r,n){let{callback:s,opaque:o,context:a}=this;pAe(this),this.callback=null;let c=r;c!=null&&(c=this.responseHeaders==="raw"?dAe.parseRawHeaders(r):dAe.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;pAe(this),r&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))}};function fAe(t,e){if(e===void 0)return new Promise((r,n)=>{fAe.call(this,t,(s,o)=>s?n(s):r(o))});try{let r=new q4(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(fAe,"connect");mAe.exports=fAe});var AAe=w((Cyr,wy)=>{"use strict";wy.exports.request=Whe();wy.exports.stream=eAe();wy.exports.pipeline=sAe();wy.exports.upgrade=uAe();wy.exports.connect=hAe()});var G4=w((Iyr,yAe)=>{"use strict";var{UndiciError:_gt}=pt(),gAe=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED"),H4=class t extends _gt{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[gAe]===!0}[gAe]=!0};yAe.exports={MockNotMatchedError:H4}});var xy=w((wyr,EAe)=>{"use strict";EAe.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 Dx=w((xyr,_Ae)=>{"use strict";var{MockNotMatchedError:oh}=G4(),{kDispatches:eP,kMockAgent:Pgt,kOriginalDispatch:vgt,kOrigin:Qgt,kGetNetConnect:Dgt}=xy(),{buildURL:kgt}=Ye(),{STATUS_CODES:Ogt}=require("node:http"),{types:{isPromise:Lgt}}=require("node:util");function Zu(t,e){return typeof t=="string"?t===e:t instanceof RegExp?t.test(e):typeof t=="function"?t(e)===!0:!1}i(Zu,"matchValue");function IAe(t){return Object.fromEntries(Object.entries(t).map(([e,r])=>[e.toLocaleLowerCase(),r]))}i(IAe,"lowerCaseEntries");function SAe(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):IAe(t)[e.toLocaleLowerCase()]}i(SAe,"getHeaderByName");function W4(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(W4,"buildHeadersFromArray");function wAe(t,e){if(typeof t.headers=="function")return Array.isArray(e)&&(e=W4(e)),t.headers(e?IAe(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=SAe(e,r);if(!Zu(n,s))return!1}return!0}i(wAe,"matchHeaders");function CAe(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(CAe,"safeUrl");function Mgt(t,{path:e,method:r,body:n,headers:s}){let o=Zu(t.path,e),a=Zu(t.method,r),c=typeof t.body<"u"?Zu(t.body,n):!0,l=wAe(t,s);return o&&a&&c&&l}i(Mgt,"matchKey");function xAe(t){return Buffer.isBuffer(t)||t instanceof Uint8Array||t instanceof ArrayBuffer?t:typeof t=="object"?JSON.stringify(t):t.toString()}i(xAe,"getResponseData");function bAe(t,e){let r=e.query?kgt(e.path,e.query):e.path,n=typeof r=="string"?CAe(r):r,s=t.filter(({consumed:o})=>!o).filter(({path:o})=>Zu(CAe(o),n));if(s.length===0)throw new oh(`Mock dispatch not matched for path '${n}'`);if(s=s.filter(({method:o})=>Zu(o,e.method)),s.length===0)throw new oh(`Mock dispatch not matched for method '${e.method}' on path '${n}'`);if(s=s.filter(({body:o})=>typeof o<"u"?Zu(o,e.body):!0),s.length===0)throw new oh(`Mock dispatch not matched for body '${e.body}' on path '${n}'`);if(s=s.filter(o=>wAe(o,e.headers)),s.length===0){let o=typeof e.headers=="object"?JSON.stringify(e.headers):e.headers;throw new oh(`Mock dispatch not matched for headers '${o}' on path '${n}'`)}return s[0]}i(bAe,"getMockDispatch");function Fgt(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(Fgt,"addMockDispatch");function z4(t,e){let r=t.findIndex(n=>n.consumed?Mgt(n,e):!1);r!==-1&&t.splice(r,1)}i(z4,"deleteMockDispatch");function BAe(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(BAe,"buildKey");function V4(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(V4,"generateKeyValues");function RAe(t){return Ogt[t]||"unknown"}i(RAe,"getStatusText");async function Ugt(t){let e=[];for await(let r of t)e.push(r);return Buffer.concat(e).toString("utf8")}i(Ugt,"getResponse");function NAe(t,e){let r=BAe(t),n=bAe(this[eP],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 z4(this[eP],r),e.onError(l),!0;typeof u=="number"&&u>0?setTimeout(()=>{m(this[eP])},u):m(this[eP]);function m(g,y=o){let E=Array.isArray(t.headers)?W4(t.headers):t.headers,C=typeof y=="function"?y({...t,headers:E}):y;if(Lgt(C)){C.then(_=>m(g,_));return}let S=xAe(C),b=V4(a),N=V4(c);e.onConnect?.(_=>e.onError(_),null),e.onHeaders?.(s,b,h,RAe(s)),e.onData?.(Buffer.from(S)),e.onComplete?.(N),z4(g,r)}i(m,"handleReply");function h(){}return i(h,"resume"),!0}i(NAe,"mockDispatch");function $gt(){let t=this[Pgt],e=this[Qgt],r=this[vgt];return i(function(s,o){if(t.isMockActive)try{NAe.call(this,s,o)}catch(a){if(a instanceof oh){let c=t[Dgt]();if(c===!1)throw new oh(`${a.message}: subsequent request to origin ${e} was not allowed (net.connect disabled)`);if(TAe(c,e))r.call(this,s,o);else throw new oh(`${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($gt,"buildMockDispatch");function TAe(t,e){let r=new URL(e);return t===!0?!0:!!(Array.isArray(t)&&t.some(n=>Zu(n,r.host)))}i(TAe,"checkNetConnect");function qgt(t){if(t){let{agent:e,...r}=t;return r}}i(qgt,"buildMockOptions");_Ae.exports={getResponseData:xAe,getMockDispatch:bAe,addMockDispatch:Fgt,deleteMockDispatch:z4,buildKey:BAe,generateKeyValues:V4,matchValue:Zu,getResponse:Ugt,getStatusText:RAe,mockDispatch:NAe,buildMockDispatch:$gt,checkNetConnect:TAe,buildMockOptions:qgt,getHeaderByName:SAe,buildHeadersFromArray:W4}});var e8=w((Byr,Z4)=>{"use strict";var{getResponseData:Hgt,buildKey:Ggt,addMockDispatch:j4}=Dx(),{kDispatches:tP,kDispatchKey:rP,kDefaultHeaders:J4,kDefaultTrailers:Y4,kContentLength:K4,kMockDispatch:nP}=xy(),{InvalidArgumentError:Gc}=pt(),{buildURL:zgt}=Ye(),by=class{static{i(this,"MockScope")}constructor(e){this[nP]=e}delay(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Gc("waitInMs must be a valid integer > 0");return this[nP].delay=e,this}persist(){return this[nP].persist=!0,this}times(e){if(typeof e!="number"||!Number.isInteger(e)||e<=0)throw new Gc("repeatTimes must be a valid integer > 0");return this[nP].times=e,this}},X4=class{static{i(this,"MockInterceptor")}constructor(e,r){if(typeof e!="object")throw new Gc("opts must be an object");if(typeof e.path>"u")throw new Gc("opts.path must be defined");if(typeof e.method>"u"&&(e.method="GET"),typeof e.path=="string")if(e.query)e.path=zgt(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[rP]=Ggt(e),this[tP]=r,this[J4]={},this[Y4]={},this[K4]=!1}createMockScopeDispatchData({statusCode:e,data:r,responseOptions:n}){let s=Hgt(r),o=this[K4]?{"content-length":s.length}:{},a={...this[J4],...o,...n.headers},c={...this[Y4],...n.trailers};return{statusCode:e,data:r,headers:a,trailers:c}}validateReplyParameters(e){if(typeof e.statusCode>"u")throw new Gc("statusCode must be defined");if(typeof e.responseOptions!="object"||e.responseOptions===null)throw new Gc("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 Gc("reply options callback must return an object");let u={data:"",responseOptions:{},...l};return this.validateReplyParameters(u),{...this.createMockScopeDispatchData(u)}},"wrappedDefaultsCallback"),a=j4(this[tP],this[rP],o);return new by(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=j4(this[tP],this[rP],n);return new by(s)}replyWithError(e){if(typeof e>"u")throw new Gc("error must be defined");let r=j4(this[tP],this[rP],{error:e});return new by(r)}defaultReplyHeaders(e){if(typeof e>"u")throw new Gc("headers must be defined");return this[J4]=e,this}defaultReplyTrailers(e){if(typeof e>"u")throw new Gc("trailers must be defined");return this[Y4]=e,this}replyContentLength(){return this[K4]=!0,this}};Z4.exports.MockInterceptor=X4;Z4.exports.MockScope=by});var n8=w((Nyr,LAe)=>{"use strict";var{promisify:Vgt}=require("node:util"),Wgt=hy(),{buildMockDispatch:jgt}=Dx(),{kDispatches:PAe,kMockAgent:vAe,kClose:QAe,kOriginalClose:DAe,kOrigin:kAe,kOriginalDispatch:Jgt,kConnected:t8}=xy(),{MockInterceptor:Ygt}=e8(),OAe=er(),{InvalidArgumentError:Kgt}=pt(),r8=class extends Wgt{static{i(this,"MockClient")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new Kgt("Argument opts.agent must implement Agent");this[vAe]=r.agent,this[kAe]=e,this[PAe]=[],this[t8]=1,this[Jgt]=this.dispatch,this[DAe]=this.close.bind(this),this.dispatch=jgt.call(this),this.close=this[QAe]}get[OAe.kConnected](){return this[t8]}intercept(e){return new Ygt(e,this[PAe])}async[QAe](){await Vgt(this[DAe])(),this[t8]=0,this[vAe][OAe.kClients].delete(this[kAe])}};LAe.exports=r8});var i8=w((_yr,GAe)=>{"use strict";var{promisify:Xgt}=require("node:util"),Zgt=Ay(),{buildMockDispatch:eyt}=Dx(),{kDispatches:MAe,kMockAgent:FAe,kClose:UAe,kOriginalClose:$Ae,kOrigin:qAe,kOriginalDispatch:tyt,kConnected:s8}=xy(),{MockInterceptor:ryt}=e8(),HAe=er(),{InvalidArgumentError:nyt}=pt(),o8=class extends Zgt{static{i(this,"MockPool")}constructor(e,r){if(super(e,r),!r||!r.agent||typeof r.agent.dispatch!="function")throw new nyt("Argument opts.agent must implement Agent");this[FAe]=r.agent,this[qAe]=e,this[MAe]=[],this[s8]=1,this[tyt]=this.dispatch,this[$Ae]=this.close.bind(this),this.dispatch=eyt.call(this),this.close=this[UAe]}get[HAe.kConnected](){return this[s8]}intercept(e){return new ryt(e,this[MAe])}async[UAe](){await Xgt(this[$Ae])(),this[s8]=0,this[FAe][HAe.kClients].delete(this[qAe])}};GAe.exports=o8});var VAe=w((Qyr,zAe)=>{"use strict";var syt={pronoun:"it",is:"is",was:"was",this:"this"},oyt={pronoun:"they",is:"are",was:"were",this:"these"};zAe.exports=class{static{i(this,"Pluralizer")}constructor(e,r){this.singular=e,this.plural=r}pluralize(e){let r=e===1,n=r?syt:oyt,s=r?this.singular:this.plural;return{...n,count:e,noun:s}}}});var jAe=w((Oyr,WAe)=>{"use strict";var{Transform:iyt}=require("node:stream"),{Console:ayt}=require("node:console"),cyt=process.versions.icu?"\u2705":"Y ",lyt=process.versions.icu?"\u274C":"N ";WAe.exports=class{static{i(this,"PendingInterceptorsFormatter")}constructor({disableColors:e}={}){this.transform=new iyt({transform(r,n,s){s(null,r)}}),this.logger=new ayt({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?cyt:lyt,Invocations:l,Remaining:a?1/0:c-l}));return this.logger.table(r),this.transform.read().toString()}}});var XAe=w((Myr,KAe)=>{"use strict";var{kClients:ih}=er(),uyt=gy(),{kAgent:a8,kMockAgentSet:sP,kMockAgentGet:JAe,kDispatches:c8,kIsMockActive:oP,kNetConnect:ah,kGetNetConnect:dyt,kOptions:iP,kFactory:aP}=xy(),pyt=n8(),fyt=i8(),{matchValue:myt,buildMockOptions:hyt}=Dx(),{InvalidArgumentError:YAe,UndiciError:Ayt}=pt(),gyt=nx(),yyt=VAe(),Eyt=jAe(),l8=class extends gyt{static{i(this,"MockAgent")}constructor(e){if(super(e),this[ah]=!0,this[oP]=!0,e?.agent&&typeof e.agent.dispatch!="function")throw new YAe("Argument opts.agent must implement Agent");let r=e?.agent?e.agent:new uyt(e);this[a8]=r,this[ih]=r[ih],this[iP]=hyt(e)}get(e){let r=this[JAe](e);return r||(r=this[aP](e),this[sP](e,r)),r}dispatch(e,r){return this.get(e.origin),this[a8].dispatch(e,r)}async close(){await this[a8].close(),this[ih].clear()}deactivate(){this[oP]=!1}activate(){this[oP]=!0}enableNetConnect(e){if(typeof e=="string"||typeof e=="function"||e instanceof RegExp)Array.isArray(this[ah])?this[ah].push(e):this[ah]=[e];else if(typeof e>"u")this[ah]=!0;else throw new YAe("Unsupported matcher. Must be one of String|Function|RegExp.")}disableNetConnect(){this[ah]=!1}get isMockActive(){return this[oP]}[sP](e,r){this[ih].set(e,r)}[aP](e){let r=Object.assign({agent:this},this[iP]);return this[iP]&&this[iP].connections===1?new pyt(e,r):new fyt(e,r)}[JAe](e){let r=this[ih].get(e);if(r)return r;if(typeof e!="string"){let n=this[aP]("http://localhost:9999");return this[sP](e,n),n}for(let[n,s]of Array.from(this[ih]))if(s&&typeof n!="string"&&myt(n,e)){let o=this[aP](e);return this[sP](e,o),o[c8]=s[c8],o}}[dyt](){return this[ah]}pendingInterceptors(){let e=this[ih];return Array.from(e.entries()).flatMap(([r,n])=>n[c8].map(s=>({...s,origin:r}))).filter(({pending:r})=>r)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new Eyt}={}){let r=this.pendingInterceptors();if(r.length===0)return;let n=new yyt("interceptor","interceptors").pluralize(r.length);throw new Ayt(`
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};KAe.exports=l8});var kx=w((Uyr,rge)=>{"use strict";var ZAe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Cyt}=pt(),Iyt=gy();tge()===void 0&&ege(new Iyt);function ege(t){if(!t||typeof t.dispatch!="function")throw new Cyt("Argument agent must implement Agent");Object.defineProperty(globalThis,ZAe,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(ege,"setGlobalDispatcher");function tge(){return globalThis[ZAe]}i(tge,"getGlobalDispatcher");rge.exports={setGlobalDispatcher:ege,getGlobalDispatcher:tge}});var cP=w((Hyr,nge)=>{"use strict";nge.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 oge=w((zyr,sge)=>{"use strict";var Syt=$_();sge.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 Syt(r,a,s,o);return r(c,l)},"redirectInterceptor")}});var age=w((Wyr,ige)=>{"use strict";var wyt=X_();ige.exports=t=>e=>i(function(n,s){return e(n,new wyt({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var lge=w((Jyr,cge)=>{"use strict";var xyt=Ye(),{InvalidArgumentError:byt,RequestAbortedError:Byt}=pt(),Ryt=cP(),u8=class extends Ryt{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 byt("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=xyt.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Byt(`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 Nyt({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,s){let{dumpMaxSize:o=t}=n,a=new u8({maxSize:o},s);return e(n,a)},"Intercept")}i(Nyt,"createDumpInterceptor");cge.exports=Nyt});var pge=w((Kyr,dge)=>{"use strict";var{isIP:Tyt}=require("node:net"),{lookup:_yt}=require("node:dns"),Pyt=cP(),{InvalidArgumentError:By,InformationalError:vyt}=pt(),uge=Math.pow(2,31)-1,d8=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 vyt("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){_yt(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===uge?(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===uge?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 p8(this,e,r)}},p8=class extends Pyt{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}}};dge.exports=t=>{if(t?.maxTTL!=null&&(typeof t?.maxTTL!="number"||t?.maxTTL<0))throw new By("Invalid maxTTL. Must be a positive number");if(t?.maxItems!=null&&(typeof t?.maxItems!="number"||t?.maxItems<1))throw new By("Invalid maxItems. Must be a positive number and greater than zero");if(t?.affinity!=null&&t?.affinity!==4&&t?.affinity!==6)throw new By("Invalid affinity. Must be either 4 or 6");if(t?.dualStack!=null&&typeof t?.dualStack!="boolean")throw new By("Invalid dualStack. Must be a boolean");if(t?.lookup!=null&&typeof t?.lookup!="function")throw new By("Invalid lookup. Must be a function");if(t?.pick!=null&&typeof t?.pick!="function")throw new By("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 d8(n);return o=>i(function(c,l){let u=c.origin.constructor===URL?c.origin:new URL(c.origin);return Tyt(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 ch=w((Zyr,Ege)=>{"use strict";var{kConstruct:Qyt}=er(),{kEnumerableProperty:Ry}=Ye(),{iteratorMixin:Dyt,isValidHeaderName:Ox,isValidHeaderValue:mge}=Ho(),{webidl:at}=Fn(),f8=require("node:assert"),lP=require("node:util"),Gr=Symbol("headers map"),Wo=Symbol("headers map sorted");function fge(t){return t===10||t===13||t===9||t===32}i(fge,"isHTTPWhiteSpaceCharCode");function hge(t){let e=0,r=t.length;for(;r>e&&fge(t.charCodeAt(r-1));)--r;for(;r>e&&fge(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}i(hge,"headerValueNormalize");function Age(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw at.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});m8(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)m8(t,r[n],e[r[n]])}else throw at.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}i(Age,"fill");function m8(t,e,r){if(r=hge(r),Ox(e)){if(!mge(r))throw at.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw at.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(yge(t)==="immutable")throw new TypeError("immutable");return h8(t).append(e,r,!1)}i(m8,"appendHeader");function gge(t,e){return t[0]<e[0]?-1:1}i(gge,"compareHeaderName");var uP=class t{static{i(this,"HeadersList")}cookies=null;constructor(e){e instanceof t?(this[Gr]=new Map(e[Gr]),this[Wo]=e[Wo],this.cookies=e.cookies===null?null:[...e.cookies]):(this[Gr]=new Map(e),this[Wo]=null)}contains(e,r){return this[Gr].has(r?e:e.toLowerCase())}clear(){this[Gr].clear(),this[Wo]=null,this.cookies=null}append(e,r,n){this[Wo]=null;let s=n?e:e.toLowerCase(),o=this[Gr].get(s);if(o){let a=s==="cookie"?"; ":", ";this[Gr].set(s,{name:o.name,value:`${o.value}${a}${r}`})}else this[Gr].set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this[Wo]=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this[Gr].set(s,{name:e,value:r})}delete(e,r){this[Wo]=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this[Gr].delete(e)}get(e,r){return this[Gr].get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this[Gr])yield[e,r]}get entries(){let e={};if(this[Gr].size!==0)for(let{name:r,value:n}of this[Gr].values())e[r]=n;return e}rawValues(){return this[Gr].values()}get entriesList(){let e=[];if(this[Gr].size!==0)for(let{0:r,1:{name:n,value:s}}of this[Gr])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[Gr].size,r=new Array(e);if(e<=32){if(e===0)return r;let n=this[Gr][Symbol.iterator](),s=n.next().value;r[0]=[s[0],s[1].value],f8(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],f8(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[Gr])r[n++]=[s,o],f8(o!==null);return r.sort(gge)}}},Ma=class t{static{i(this,"Headers")}#e;#t;constructor(e=void 0){at.util.markAsUncloneable(this),e!==Qyt&&(this.#t=new uP,this.#e="none",e!==void 0&&(e=at.converters.HeadersInit(e,"Headers contructor","init"),Age(this,e)))}append(e,r){at.brandCheck(this,t),at.argumentLengthCheck(arguments,2,"Headers.append");let n="Headers.append";return e=at.converters.ByteString(e,n,"name"),r=at.converters.ByteString(r,n,"value"),m8(this,e,r)}delete(e){if(at.brandCheck(this,t),at.argumentLengthCheck(arguments,1,"Headers.delete"),e=at.converters.ByteString(e,"Headers.delete","name"),!Ox(e))throw at.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){at.brandCheck(this,t),at.argumentLengthCheck(arguments,1,"Headers.get");let r="Headers.get";if(e=at.converters.ByteString(e,r,"name"),!Ox(e))throw at.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.get(e,!1)}has(e){at.brandCheck(this,t),at.argumentLengthCheck(arguments,1,"Headers.has");let r="Headers.has";if(e=at.converters.ByteString(e,r,"name"),!Ox(e))throw at.errors.invalidArgument({prefix:r,value:e,type:"header name"});return this.#t.contains(e,!1)}set(e,r){at.brandCheck(this,t),at.argumentLengthCheck(arguments,2,"Headers.set");let n="Headers.set";if(e=at.converters.ByteString(e,n,"name"),r=at.converters.ByteString(r,n,"value"),r=hge(r),Ox(e)){if(!mge(r))throw at.errors.invalidArgument({prefix:n,value:r,type:"header value"})}else throw at.errors.invalidArgument({prefix:n,value:e,type:"header name"});if(this.#e==="immutable")throw new TypeError("immutable");this.#t.set(e,r,!1)}getSetCookie(){at.brandCheck(this,t);let e=this.#t.cookies;return e?[...e]:[]}get[Wo](){if(this.#t[Wo])return this.#t[Wo];let e=[],r=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[Wo]=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[Wo]=e}[lP.inspect.custom](e,r){return r.depth??=e,`Headers ${lP.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:yge,setHeadersGuard:kyt,getHeadersList:h8,setHeadersList:Oyt}=Ma;Reflect.deleteProperty(Ma,"getHeadersGuard");Reflect.deleteProperty(Ma,"setHeadersGuard");Reflect.deleteProperty(Ma,"getHeadersList");Reflect.deleteProperty(Ma,"setHeadersList");Dyt("Headers",Ma,Wo,0,1);Object.defineProperties(Ma.prototype,{append:Ry,delete:Ry,get:Ry,has:Ry,set:Ry,getSetCookie:Ry,[Symbol.toStringTag]:{value:"Headers",configurable:!0},[lP.inspect.custom]:{enumerable:!1}});at.converters.HeadersInit=function(t,e,r){if(at.util.Type(t)==="Object"){let n=Reflect.get(t,Symbol.iterator);if(!lP.types.isProxy(t)&&n===Ma.prototype.entries)try{return h8(t).entriesList}catch{}return typeof n=="function"?at.converters["sequence<sequence<ByteString>>"](t,e,r,n.bind(t)):at.converters["record<ByteString, ByteString>"](t,e,r)}throw at.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};Ege.exports={fill:Age,compareHeaderName:gge,Headers:Ma,HeadersList:uP,getHeadersGuard:yge,setHeadersGuard:kyt,setHeadersList:Oyt,getHeadersList:h8}});var Mx=w((tEr,Pge)=>{"use strict";var{Headers:bge,HeadersList:Cge,fill:Lyt,getHeadersGuard:Myt,setHeadersGuard:Bge,setHeadersList:Rge}=ch(),{extractBody:Ige,cloneBody:Fyt,mixinBody:Uyt,hasFinalizationRegistry:Nge,streamRegistry:Tge,bodyUnusable:$yt}=cy(),A8=Ye(),Sge=require("node:util"),{kEnumerableProperty:jo}=A8,{isValidReasonPhrase:qyt,isCancelled:Hyt,isAborted:Gyt,isBlobLike:zyt,serializeJavascriptValueToJSONString:Vyt,isErrorLike:Wyt,isomorphicEncode:jyt,environmentSettingsObject:Jyt}=Ho(),{redirectStatusSet:Yyt,nullBodyStatus:Kyt}=ix(),{kState:rr,kHeaders:ed}=op(),{webidl:qe}=Fn(),{FormData:Xyt}=px(),{URLSerializer:wge}=Ks(),{kConstruct:pP}=er(),g8=require("node:assert"),{types:Zyt}=require("node:util"),eEt=new TextEncoder("utf-8"),lh=class t{static{i(this,"Response")}static error(){return Lx(fP(),"immutable")}static json(e,r={}){qe.argumentLengthCheck(arguments,1,"Response.json"),r!==null&&(r=qe.converters.ResponseInit(r));let n=eEt.encode(Vyt(e)),s=Ige(n),o=Lx(Ny({}),"response");return xge(o,r,{body:s[0],type:"application/json"}),o}static redirect(e,r=302){qe.argumentLengthCheck(arguments,1,"Response.redirect"),e=qe.converters.USVString(e),r=qe.converters["unsigned short"](r);let n;try{n=new URL(e,Jyt.settingsObject.baseUrl)}catch(a){throw new TypeError(`Failed to parse URL from ${e}`,{cause:a})}if(!Yyt.has(r))throw new RangeError(`Invalid status code ${r}`);let s=Lx(Ny({}),"immutable");s[rr].status=r;let o=jyt(wge(n));return s[rr].headersList.append("location",o,!0),s}constructor(e=null,r={}){if(qe.util.markAsUncloneable(this),e===pP)return;e!==null&&(e=qe.converters.BodyInit(e)),r=qe.converters.ResponseInit(r),this[rr]=Ny({}),this[ed]=new bge(pP),Bge(this[ed],"response"),Rge(this[ed],this[rr].headersList);let n=null;if(e!=null){let[s,o]=Ige(e);n={body:s,type:o}}xge(this,r,n)}get type(){return qe.brandCheck(this,t),this[rr].type}get url(){qe.brandCheck(this,t);let e=this[rr].urlList,r=e[e.length-1]??null;return r===null?"":wge(r,!0)}get redirected(){return qe.brandCheck(this,t),this[rr].urlList.length>1}get status(){return qe.brandCheck(this,t),this[rr].status}get ok(){return qe.brandCheck(this,t),this[rr].status>=200&&this[rr].status<=299}get statusText(){return qe.brandCheck(this,t),this[rr].statusText}get headers(){return qe.brandCheck(this,t),this[ed]}get body(){return qe.brandCheck(this,t),this[rr].body?this[rr].body.stream:null}get bodyUsed(){return qe.brandCheck(this,t),!!this[rr].body&&A8.isDisturbed(this[rr].body.stream)}clone(){if(qe.brandCheck(this,t),$yt(this))throw qe.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=y8(this[rr]);return Nge&&this[rr].body?.stream&&Tge.register(this,new WeakRef(this[rr].body.stream)),Lx(e,Myt(this[ed]))}[Sge.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 ${Sge.formatWithOptions(r,n)}`}};Uyt(lh);Object.defineProperties(lh.prototype,{type:jo,url:jo,status:jo,ok:jo,redirected:jo,statusText:jo,headers:jo,clone:jo,body:jo,bodyUsed:jo,[Symbol.toStringTag]:{value:"Response",configurable:!0}});Object.defineProperties(lh,{json:jo,redirect:jo,error:jo});function y8(t){if(t.internalResponse)return _ge(y8(t.internalResponse),t.type);let e=Ny({...t,body:null});return t.body!=null&&(e.body=Fyt(e,t.body)),e}i(y8,"cloneResponse");function Ny(t){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...t,headersList:t?.headersList?new Cge(t?.headersList):new Cge,urlList:t?.urlList?[...t.urlList]:[]}}i(Ny,"makeResponse");function fP(t){let e=Wyt(t);return Ny({type:"error",status:0,error:e?t:new Error(t&&String(t)),aborted:t&&t.name==="AbortError"})}i(fP,"makeNetworkError");function tEt(t){return t.type==="error"&&t.status===0}i(tEt,"isNetworkError");function dP(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 g8(!(n in e)),r[n]=s,!0}})}i(dP,"makeFilteredResponse");function _ge(t,e){if(e==="basic")return dP(t,{type:"basic",headersList:t.headersList});if(e==="cors")return dP(t,{type:"cors",headersList:t.headersList});if(e==="opaque")return dP(t,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null});if(e==="opaqueredirect")return dP(t,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null});g8(!1)}i(_ge,"filterResponse");function rEt(t,e=null){return g8(Hyt(t)),Gyt(t)?fP(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:e})):fP(Object.assign(new DOMException("Request was cancelled."),{cause:e}))}i(rEt,"makeAppropriateNetworkError");function xge(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&&!qyt(String(e.statusText)))throw new TypeError("Invalid statusText");if("status"in e&&e.status!=null&&(t[rr].status=e.status),"statusText"in e&&e.statusText!=null&&(t[rr].statusText=e.statusText),"headers"in e&&e.headers!=null&&Lyt(t[ed],e.headers),r){if(Kyt.includes(t.status))throw qe.errors.exception({header:"Response constructor",message:`Invalid response status code ${t.status}`});t[rr].body=r.body,r.type!=null&&!t[rr].headersList.contains("content-type",!0)&&t[rr].headersList.append("content-type",r.type,!0)}}i(xge,"initializeResponse");function Lx(t,e){let r=new lh(pP);return r[rr]=t,r[ed]=new bge(pP),Rge(r[ed],t.headersList),Bge(r[ed],e),Nge&&t.body?.stream&&Tge.register(r,new WeakRef(t.body.stream)),r}i(Lx,"fromInnerResponse");qe.converters.ReadableStream=qe.interfaceConverter(ReadableStream);qe.converters.FormData=qe.interfaceConverter(Xyt);qe.converters.URLSearchParams=qe.interfaceConverter(URLSearchParams);qe.converters.XMLHttpRequestBodyInit=function(t,e,r){return typeof t=="string"?qe.converters.USVString(t,e,r):zyt(t)?qe.converters.Blob(t,e,r,{strict:!1}):ArrayBuffer.isView(t)||Zyt.isArrayBuffer(t)?qe.converters.BufferSource(t,e,r):A8.isFormDataLike(t)?qe.converters.FormData(t,e,r,{strict:!1}):t instanceof URLSearchParams?qe.converters.URLSearchParams(t,e,r):qe.converters.DOMString(t,e,r)};qe.converters.BodyInit=function(t,e,r){return t instanceof ReadableStream?qe.converters.ReadableStream(t,e,r):t?.[Symbol.asyncIterator]?t:qe.converters.XMLHttpRequestBodyInit(t,e,r)};qe.converters.ResponseInit=qe.dictionaryConverter([{key:"status",converter:qe.converters["unsigned short"],defaultValue:i(()=>200,"defaultValue")},{key:"statusText",converter:qe.converters.ByteString,defaultValue:i(()=>"","defaultValue")},{key:"headers",converter:qe.converters.HeadersInit}]);Pge.exports={isNetworkError:tEt,makeNetworkError:fP,makeResponse:Ny,makeAppropriateNetworkError:rEt,filterResponse:_ge,Response:lh,cloneResponse:y8,fromInnerResponse:Lx}});var kge=w((nEr,Dge)=>{"use strict";var{kConnected:vge,kSize:Qge}=er(),E8=class{static{i(this,"CompatWeakRef")}constructor(e){this.value=e}deref(){return this.value[vge]===0&&this.value[Qge]===0?void 0:this.value}},C8=class{static{i(this,"CompatFinalizer")}constructor(e){this.finalizer=e}register(e,r){e.on&&e.on("disconnect",()=>{e[vge]===0&&e[Qge]===0&&this.finalizer(r)})}unregister(e){}};Dge.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")?(process._rawDebug("Using compatibility WeakRef and FinalizationRegistry"),{WeakRef:E8,FinalizationRegistry:C8}):{WeakRef,FinalizationRegistry}}});var Ty=w((oEr,Yge)=>{"use strict";var{extractBody:nEt,mixinBody:sEt,cloneBody:oEt,bodyUnusable:Oge}=cy(),{Headers:zge,fill:iEt,HeadersList:gP,setHeadersGuard:S8,getHeadersGuard:aEt,setHeadersList:Vge,getHeadersList:Lge}=ch(),{FinalizationRegistry:cEt}=kge()(),hP=Ye(),Mge=require("node:util"),{isValidHTTPToken:lEt,sameOrigin:Fge,environmentSettingsObject:mP}=Ho(),{forbiddenMethodsSet:uEt,corsSafeListedMethodsSet:dEt,referrerPolicy:pEt,requestRedirect:fEt,requestMode:mEt,requestCredentials:hEt,requestCache:AEt,requestDuplex:gEt}=ix(),{kEnumerableProperty:zr,normalizedMethodRecordsBase:yEt,normalizedMethodRecords:EEt}=hP,{kHeaders:Jo,kSignal:AP,kState:Vt,kDispatcher:I8}=op(),{webidl:ye}=Fn(),{URLSerializer:CEt}=Ks(),{kConstruct:yP}=er(),IEt=require("node:assert"),{getMaxListeners:Uge,setMaxListeners:$ge,getEventListeners:SEt,defaultMaxListeners:qge}=require("node:events"),wEt=Symbol("abortController"),Wge=new cEt(({signal:t,abort:e})=>{t.removeEventListener("abort",e)}),EP=new WeakMap;function Hge(t){return e;function e(){let r=t.deref();if(r!==void 0){Wge.unregister(e),this.removeEventListener("abort",e),r.abort(this.reason);let n=EP.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()}EP.delete(r.signal)}}}}i(Hge,"buildAbort");var Gge=!1,Ap=class t{static{i(this,"Request")}constructor(e,r={}){if(ye.util.markAsUncloneable(this),e===yP)return;let n="Request constructor";ye.argumentLengthCheck(arguments,1,n),e=ye.converters.RequestInfo(e,n,"input"),r=ye.converters.RequestInit(r,n,"init");let s=null,o=null,a=mP.settingsObject.baseUrl,c=null;if(typeof e=="string"){this[I8]=r.dispatcher;let E;try{E=new URL(e,a)}catch(C){throw new TypeError("Failed to parse URL from "+e,{cause:C})}if(E.username||E.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);s=CP({urlList:[E]}),o="cors"}else this[I8]=r.dispatcher||e[I8],IEt(e instanceof t),s=e[Vt],c=e[AP];let l=mP.settingsObject.origin,u="client";if(s.window?.constructor?.name==="EnvironmentSettingsObject"&&Fge(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=CP({method:s.method,headersList:s.headersList,unsafeRequest:s.unsafeRequest,client:mP.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 C;try{C=new URL(E,a)}catch(S){throw new TypeError(`Referrer "${E}" is not a valid URL.`,{cause:S})}C.protocol==="about:"&&C.hostname==="client"||l&&!Fge(C,mP.settingsObject.baseUrl)?s.referrer="client":s.referrer=C}}r.referrerPolicy!==void 0&&(s.referrerPolicy=r.referrerPolicy);let p;if(r.mode!==void 0?p=r.mode:p=o,p==="navigate")throw ye.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,C=EEt[E];if(C!==void 0)s.method=C;else{if(!lEt(E))throw new TypeError(`'${E}' is not a valid HTTP method.`);let S=E.toUpperCase();if(uEt.has(S))throw new TypeError(`'${E}' HTTP method is unsupported.`);E=yEt[S]??E,s.method=E}!Gge&&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"}),Gge=!0)}r.signal!==void 0&&(c=r.signal),this[Vt]=s;let f=new AbortController;if(this[AP]=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[wEt]=f;let E=new WeakRef(f),C=Hge(E);try{(typeof Uge=="function"&&Uge(c)===qge||SEt(c,"abort").length>=qge)&&$ge(1500,c)}catch{}hP.addAbortListener(c,C),Wge.register(f,{signal:c,abort:C},C)}}if(this[Jo]=new zge(yP),Vge(this[Jo],s.headersList),S8(this[Jo],"request"),p==="no-cors"){if(!dEt.has(s.method))throw new TypeError(`'${s.method} is unsupported in no-cors mode.`);S8(this[Jo],"request-no-cors")}if(d){let E=Lge(this[Jo]),C=r.headers!==void 0?r.headers:new gP(E);if(E.clear(),C instanceof gP){for(let{name:S,value:b}of C.rawValues())E.append(S,b,!1);E.cookies=C.cookies}else iEt(this[Jo],C)}let m=e instanceof t?e[Vt].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,C]=nEt(r.body,s.keepalive);h=E,C&&!Lge(this[Jo]).contains("content-type",!0)&&this[Jo].append("content-type",C)}let g=h??m;if(g!=null&&g.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=g;if(h==null&&m!=null){if(Oge(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[Vt].body=y}get method(){return ye.brandCheck(this,t),this[Vt].method}get url(){return ye.brandCheck(this,t),CEt(this[Vt].url)}get headers(){return ye.brandCheck(this,t),this[Jo]}get destination(){return ye.brandCheck(this,t),this[Vt].destination}get referrer(){return ye.brandCheck(this,t),this[Vt].referrer==="no-referrer"?"":this[Vt].referrer==="client"?"about:client":this[Vt].referrer.toString()}get referrerPolicy(){return ye.brandCheck(this,t),this[Vt].referrerPolicy}get mode(){return ye.brandCheck(this,t),this[Vt].mode}get credentials(){return this[Vt].credentials}get cache(){return ye.brandCheck(this,t),this[Vt].cache}get redirect(){return ye.brandCheck(this,t),this[Vt].redirect}get integrity(){return ye.brandCheck(this,t),this[Vt].integrity}get keepalive(){return ye.brandCheck(this,t),this[Vt].keepalive}get isReloadNavigation(){return ye.brandCheck(this,t),this[Vt].reloadNavigation}get isHistoryNavigation(){return ye.brandCheck(this,t),this[Vt].historyNavigation}get signal(){return ye.brandCheck(this,t),this[AP]}get body(){return ye.brandCheck(this,t),this[Vt].body?this[Vt].body.stream:null}get bodyUsed(){return ye.brandCheck(this,t),!!this[Vt].body&&hP.isDisturbed(this[Vt].body.stream)}get duplex(){return ye.brandCheck(this,t),"half"}clone(){if(ye.brandCheck(this,t),Oge(this))throw new TypeError("unusable");let e=jge(this[Vt]),r=new AbortController;if(this.signal.aborted)r.abort(this.signal.reason);else{let n=EP.get(this.signal);n===void 0&&(n=new Set,EP.set(this.signal,n));let s=new WeakRef(r);n.add(s),hP.addAbortListener(r.signal,Hge(s))}return Jge(e,r.signal,aEt(this[Jo]))}[Mge.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 ${Mge.formatWithOptions(r,n)}`}};sEt(Ap);function CP(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 gP(t.headersList):new gP}}i(CP,"makeRequest");function jge(t){let e=CP({...t,body:null});return t.body!=null&&(e.body=oEt(e,t.body)),e}i(jge,"cloneRequest");function Jge(t,e,r){let n=new Ap(yP);return n[Vt]=t,n[AP]=e,n[Jo]=new zge(yP),Vge(n[Jo],t.headersList),S8(n[Jo],r),n}i(Jge,"fromInnerRequest");Object.defineProperties(Ap.prototype,{method:zr,url:zr,headers:zr,redirect:zr,clone:zr,signal:zr,duplex:zr,destination:zr,body:zr,bodyUsed:zr,isHistoryNavigation:zr,isReloadNavigation:zr,keepalive:zr,integrity:zr,cache:zr,credentials:zr,attribute:zr,referrerPolicy:zr,referrer:zr,mode:zr,[Symbol.toStringTag]:{value:"Request",configurable:!0}});ye.converters.Request=ye.interfaceConverter(Ap);ye.converters.RequestInfo=function(t,e,r){return typeof t=="string"?ye.converters.USVString(t,e,r):t instanceof Ap?ye.converters.Request(t,e,r):ye.converters.USVString(t,e,r)};ye.converters.AbortSignal=ye.interfaceConverter(AbortSignal);ye.converters.RequestInit=ye.dictionaryConverter([{key:"method",converter:ye.converters.ByteString},{key:"headers",converter:ye.converters.HeadersInit},{key:"body",converter:ye.nullableConverter(ye.converters.BodyInit)},{key:"referrer",converter:ye.converters.USVString},{key:"referrerPolicy",converter:ye.converters.DOMString,allowedValues:pEt},{key:"mode",converter:ye.converters.DOMString,allowedValues:mEt},{key:"credentials",converter:ye.converters.DOMString,allowedValues:hEt},{key:"cache",converter:ye.converters.DOMString,allowedValues:AEt},{key:"redirect",converter:ye.converters.DOMString,allowedValues:fEt},{key:"integrity",converter:ye.converters.DOMString},{key:"keepalive",converter:ye.converters.boolean},{key:"signal",converter:ye.nullableConverter(t=>ye.converters.AbortSignal(t,"RequestInit","signal",{strict:!1}))},{key:"window",converter:ye.converters.any},{key:"duplex",converter:ye.converters.DOMString,allowedValues:gEt},{key:"dispatcher",converter:ye.converters.any}]);Yge.exports={Request:Ap,makeRequest:CP,fromInnerRequest:Jge,cloneRequest:jge}});var Ux=w((aEr,dye)=>{"use strict";var{makeNetworkError:wt,makeAppropriateNetworkError:IP,filterResponse:w8,makeResponse:SP,fromInnerResponse:xEt}=Mx(),{HeadersList:Kge}=ch(),{Request:bEt,cloneRequest:BEt}=Ty(),gp=require("node:zlib"),{bytesMatch:REt,makePolicyContainer:NEt,clonePolicyContainer:TEt,requestBadPort:_Et,TAOCheck:PEt,appendRequestOriginHeader:vEt,responseLocationURL:QEt,requestCurrentURL:zc,setRequestReferrerPolicyOnRedirect:DEt,tryUpgradeRequestToAPotentiallyTrustworthyURL:kEt,createOpaqueTimingInfo:N8,appendFetchMetadata:OEt,corsCheck:LEt,crossOriginResourcePolicyCheck:MEt,determineRequestsReferrer:FEt,coarsenedSharedCurrentTime:Fx,createDeferredPromise:UEt,isBlobLike:$Et,sameOrigin:R8,isCancelled:uh,isAborted:Xge,isErrorLike:qEt,fullyReadBody:HEt,readableStreamClose:GEt,isomorphicEncode:wP,urlIsLocal:zEt,urlIsHttpHttpsScheme:T8,urlHasHttpsScheme:VEt,clampAndCoarsenConnectionTimingInfo:WEt,simpleRangeHeaderValue:jEt,buildContentRange:JEt,createInflate:YEt,extractMimeType:KEt}=Ho(),{kState:rye,kDispatcher:XEt}=op(),dh=require("node:assert"),{safelyExtractBody:_8,extractBody:Zge}=cy(),{redirectStatusSet:nye,nullBodyStatus:sye,safeMethodsSet:ZEt,requestBodyHeader:eCt,subresourceSet:tCt}=ix(),rCt=require("node:events"),{Readable:nCt,pipeline:sCt,finished:oCt}=require("node:stream"),{addAbortListener:iCt,isErrored:aCt,isReadable:xP,bufferToLowerCasedHeaderName:eye}=Ye(),{dataURLProcessor:cCt,serializeAMimeType:lCt,minimizeSupportedMimeType:uCt}=Ks(),{getGlobalDispatcher:dCt}=kx(),{webidl:pCt}=Fn(),{STATUS_CODES:fCt}=require("node:http"),mCt=["GET","HEAD"],hCt=typeof __UNDICI_IS_NODE__<"u"||typeof esbuildDetection<"u"?"node":"undici",x8,bP=class extends rCt{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 ACt(t){oye(t,"fetch")}i(ACt,"handleFetchDone");function gCt(t,e=void 0){pCt.argumentLengthCheck(arguments,1,"globalThis.fetch");let r=UEt(),n;try{n=new bEt(t,e)}catch(d){return r.reject(d),r.promise}let s=n[rye];if(n.signal.aborted)return b8(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 iCt(n.signal,()=>{c=!0,dh(l!=null),l.abort(n.signal.reason);let d=a?.deref();b8(r,s,d,n.signal.reason)}),l=aye({request:s,processResponseEndOfBody:ACt,processResponse:i(d=>{if(!c){if(d.aborted){b8(r,s,a,l.serializedAbortReason);return}if(d.type==="error"){r.reject(new TypeError("fetch failed",{cause:d.error}));return}a=new WeakRef(xEt(d,"immutable")),r.resolve(a.deref()),r=null}},"processResponse"),dispatcher:n[XEt]}),r.promise}i(gCt,"fetch");function oye(t,e="other"){if(t.type==="error"&&t.aborted||!t.urlList?.length)return;let r=t.urlList[0],n=t.timingInfo,s=t.cacheState;T8(r)&&n!==null&&(t.timingAllowPassed||(n=N8({startTime:n.startTime}),s=""),n.endTime=Fx(),t.timingInfo=n,iye(n,r.href,e,globalThis,s))}i(oye,"finalizeAndReportTiming");var iye=performance.markResourceTiming;function b8(t,e,r,n){if(t&&t.reject(n),e.body!=null&&xP(e.body?.stream)&&e.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o}),r==null)return;let s=r[rye];s.body!=null&&xP(s.body?.stream)&&s.body.stream.cancel(n).catch(o=>{if(o.code!=="ERR_INVALID_STATE")throw o})}i(b8,"abortFetch");function aye({request:t,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:s,processResponseConsumeBody:o,useParallelQueue:a=!1,dispatcher:c=dCt()}){dh(c);let l=null,u=!1;t.client!=null&&(l=t.client.globalObject,u=t.client.crossOriginIsolatedCapability);let d=Fx(u),p=N8({startTime:d}),f={controller:new bP(c),request:t,timingInfo:p,processRequestBodyChunkLength:e,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:o,processResponseEndOfBody:s,taskDestination:l,crossOriginIsolatedCapability:u};return dh(!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=TEt(t.client.policyContainer):t.policyContainer=NEt()),t.headersList.contains("accept",!0)||t.headersList.append("accept","*/*",!0),t.headersList.contains("accept-language",!0)||t.headersList.append("accept-language","*",!0),t.priority,tCt.has(t.destination),cye(f).catch(m=>{f.controller.terminate(m)}),f.controller}i(aye,"fetching");async function cye(t,e=!1){let r=t.request,n=null;if(r.localURLsOnly&&!zEt(zc(r))&&(n=wt("local URLs only")),kEt(r),_Et(r)==="blocked"&&(n=wt("bad port")),r.referrerPolicy===""&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!=="no-referrer"&&(r.referrer=FEt(r)),n===null&&(n=await(async()=>{let o=zc(r);return R8(o,r.url)&&r.responseTainting==="basic"||o.protocol==="data:"||r.mode==="navigate"||r.mode==="websocket"?(r.responseTainting="basic",await tye(t)):r.mode==="same-origin"?wt('request mode cannot be "same-origin"'):r.mode==="no-cors"?r.redirect!=="follow"?wt('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await tye(t)):T8(zc(r))?(r.responseTainting="cors",await lye(t)):wt("URL scheme must be a HTTP(S) scheme")})()),e)return n;n.status!==0&&!n.internalResponse&&(r.responseTainting,r.responseTainting==="basic"?n=w8(n,"basic"):r.responseTainting==="cors"?n=w8(n,"cors"):r.responseTainting==="opaque"?n=w8(n,"opaque"):dh(!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=wt()),n.status!==0&&(r.method==="HEAD"||r.method==="CONNECT"||sye.includes(s.status))&&(s.body=null,t.controller.dump=!0),r.integrity){let o=i(c=>B8(t,wt(c)),"processBodyError");if(r.responseTainting==="opaque"||n.body==null){o(n.error);return}let a=i(c=>{if(!REt(c,r.integrity)){o("integrity mismatch");return}n.body=_8(c)[0],B8(t,n)},"processBody");await HEt(n.body,a,o)}else B8(t,n)}i(cye,"mainFetch");function tye(t){if(uh(t)&&t.request.redirectCount===0)return Promise.resolve(IP(t));let{request:e}=t,{protocol:r}=zc(e);switch(r){case"about:":return Promise.resolve(wt("about scheme is not supported"));case"blob:":{x8||(x8=require("node:buffer").resolveObjectURL);let n=zc(e);if(n.search.length!==0)return Promise.resolve(wt("NetworkError when attempting to fetch resource."));let s=x8(n.toString());if(e.method!=="GET"||!$Et(s))return Promise.resolve(wt("invalid method"));let o=SP(),a=s.size,c=wP(`${a}`),l=s.type;if(e.headersList.contains("range",!0)){o.rangeRequested=!0;let u=e.headersList.get("range",!0),d=jEt(u,!0);if(d==="failure")return Promise.resolve(wt("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(wt("Range start is greater than the blob's size."));(f===null||f>=a)&&(f=a-1)}let m=s.slice(p,f,l),h=Zge(m);o.body=h[0];let g=wP(`${m.size}`),y=JEt(p,f,a);o.status=206,o.statusText="Partial Content",o.headersList.set("content-length",g,!0),o.headersList.set("content-type",l,!0),o.headersList.set("content-range",y,!0)}else{let u=Zge(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=zc(e),s=cCt(n);if(s==="failure")return Promise.resolve(wt("failed to fetch the data URL"));let o=lCt(s.mimeType);return Promise.resolve(SP({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:o}]],body:_8(s.body)[0]}))}case"file:":return Promise.resolve(wt("not implemented... yet..."));case"http:":case"https:":return lye(t).catch(n=>wt(n));default:return Promise.resolve(wt("unknown scheme"))}}i(tye,"schemeFetch");function yCt(t,e){t.request.done=!0,t.processResponseDone!=null&&queueMicrotask(()=>t.processResponseDone(e))}i(yCt,"finalizeResponse");function B8(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=N8(r),c="");let u=0;if(t.request.mode!=="navigator"||!e.hasCrossOriginRedirects){u=e.status;let d=KEt(e.headersList);d!=="failure"&&(l.contentType=uCt(d))}t.request.initiatorType!=null&&iye(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():oCt(s.body.stream,()=>{n()})}i(B8,"fetchFinale");async function lye(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 uye(t),e.responseTainting==="cors"&&LEt(e,r)==="failure")return wt("cors failure");PEt(e,r)==="failure"&&(e.timingAllowFailed=!0)}return(e.responseTainting==="opaque"||r.type==="opaque")&&MEt(e.origin,e.client,e.destination,n)==="blocked"?wt("blocked"):(nye.has(n.status)&&(e.redirect!=="manual"&&t.controller.connection.destroy(void 0,!1),e.redirect==="error"?r=wt("unexpected redirect"):e.redirect==="manual"?r=n:e.redirect==="follow"?r=await ECt(t,r):dh(!1)),r.timingInfo=s,r)}i(lye,"httpFetch");function ECt(t,e){let r=t.request,n=e.internalResponse?e.internalResponse:e,s;try{if(s=QEt(n,zc(r).hash),s==null)return e}catch(a){return Promise.resolve(wt(a))}if(!T8(s))return Promise.resolve(wt("URL scheme must be a HTTP(S) scheme"));if(r.redirectCount===20)return Promise.resolve(wt("redirect count exceeded"));if(r.redirectCount+=1,r.mode==="cors"&&(s.username||s.password)&&!R8(r,s))return Promise.resolve(wt('cross origin not allowed for request mode "cors"'));if(r.responseTainting==="cors"&&(s.username||s.password))return Promise.resolve(wt('URL cannot contain credentials for request mode "cors"'));if(n.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(wt());if([301,302].includes(n.status)&&r.method==="POST"||n.status===303&&!mCt.includes(r.method)){r.method="GET",r.body=null;for(let a of eCt)r.headersList.delete(a)}R8(zc(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&&(dh(r.body.source!=null),r.body=_8(r.body.source)[0]);let o=t.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=Fx(t.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(s),DEt(r,n),cye(t,!0)}i(ECt,"httpRedirectFetch");async function uye(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=BEt(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=wP(`${d}`)),p!=null&&o.headersList.append("content-length",p,!0),d!=null&&o.keepalive,o.referrer instanceof URL&&o.headersList.append("referer",wP(o.referrer.href),!0),vEt(o),OEt(o),o.headersList.contains("user-agent",!0)||o.headersList.append("user-agent",hCt),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)||(VEt(zc(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 wt("only if cached");let f=await CCt(s,u,r);!ZEt.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"?wt():uh(t)?IP(t):wt("proxy authentication required");if(a.status===421&&!r&&(n.body==null||n.body.source!=null)){if(uh(t))return IP(t);t.controller.connection.destroy(),a=await uye(t,e,!0)}return a}i(uye,"httpNetworkOrCacheFetch");async function CCt(t,e=!1,r=!1){dh(!t.controller.connection||t.controller.connection.destroyed),t.controller.connection={abort:null,destroyed:!1,destroy(h,g=!0){this.destroyed||(this.destroyed=!0,g&&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){uh(t)||(yield E,t.processRequestBodyChunkLength?.(E.byteLength))},"processBodyChunk"),g=i(()=>{uh(t)||t.processRequestEndOfBody&&t.processRequestEndOfBody()},"processEndOfBody"),y=i(E=>{uh(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);g()}catch(E){y(E)}})()}try{let{body:h,status:g,statusText:y,headersList:E,socket:C}=await m({body:l});if(C)s=SP({status:g,statusText:y,headersList:E,socket:C});else{let S=h[Symbol.asyncIterator]();t.controller.next=()=>S.next(),s=SP({status:g,statusText:y,headersList:E})}}catch(h){return h.name==="AbortError"?(t.controller.connection.destroy(),IP(t,h)):wt(h)}let u=i(async()=>{await t.controller.resume()},"pullAlgorithm"),d=i(h=>{uh(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,g;try{let{done:E,value:C}=await t.controller.next();if(Xge(t))break;h=E?void 0:C}catch(E){t.controller.ended&&!o.encodedBodySize?h=void 0:(h=E,g=!0)}if(h===void 0){GEt(t.controller.controller),yCt(t,s);return}if(o.decodedBodySize+=h?.byteLength??0,g){t.controller.terminate(h);return}let y=new Uint8Array(h);if(y.byteLength&&t.controller.controller.enqueue(y),aCt(p)){t.controller.terminate();return}if(t.controller.controller.desiredSize<=0)return}};function f(h){Xge(t)?(s.aborted=!0,xP(p)&&t.controller.controller.error(t.controller.serializedAbortReason)):xP(p)&&t.controller.controller.error(new TypeError("terminated",{cause:qEt(h)?h:void 0})),t.controller.connection.destroy()}return i(f,"onAborted"),s;function m({body:h}){let g=zc(n),y=t.controller.dispatcher;return new Promise((E,C)=>y.dispatch({path:g.pathname+g.search,origin:g.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(S){let{connection:b}=t.controller;o.finalConnectionTimingInfo=WEt(void 0,o.postRedirectStartTime,t.crossOriginIsolatedCapability),b.destroyed?S(new DOMException("The operation was aborted.","AbortError")):(t.controller.on("terminated",S),this.abort=b.abort=S),o.finalNetworkRequestStartTime=Fx(t.crossOriginIsolatedCapability)},onResponseStarted(){o.finalNetworkResponseStartTime=Fx(t.crossOriginIsolatedCapability)},onHeaders(S,b,N,_){if(S<200)return;let v="",J=new Kge;for(let fe=0;fe<b.length;fe+=2)J.append(eye(b[fe]),b[fe+1].toString("latin1"),!0);v=J.get("location",!0);let Pe=[],De=v&&n.redirect==="follow"&&nye.has(S);if(n.method!=="HEAD"&&n.method!=="CONNECT"&&!sye.includes(S)&&!De){let fe=J.get("content-encoding",!0),Ve=fe?fe.toLowerCase().split(","):[],D=5;if(Ve.length>D)return this.abort(new Error(`too many content-encodings in response: ${Ve.length}, maximum allowed is ${D}`)),!0;for(let ot=Ve.length-1;ot>=0;--ot){let re=Ve[ot].trim();if(re==="x-gzip"||re==="gzip")Pe.push(gp.createGunzip({flush:gp.constants.Z_SYNC_FLUSH,finishFlush:gp.constants.Z_SYNC_FLUSH}));else if(re==="deflate")Pe.push(YEt({flush:gp.constants.Z_SYNC_FLUSH,finishFlush:gp.constants.Z_SYNC_FLUSH}));else if(re==="br")Pe.push(gp.createBrotliDecompress({flush:gp.constants.BROTLI_OPERATION_FLUSH,finishFlush:gp.constants.BROTLI_OPERATION_FLUSH}));else{Pe.length=0;break}}}this.body=new nCt({read:N});let Ue=this.onError.bind(this);return E({status:S,statusText:_,headersList:J,body:Pe.length?sCt(this.body,...Pe,fe=>{fe&&this.onError(fe)}).on("error",Ue):this.body.on("error",Ue)}),!0},onData(S){if(t.controller.dump)return;let b=S;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(S){this.abort&&t.controller.off("terminated",this.abort),this.body?.destroy(S),t.controller.terminate(S),C(S)},onUpgrade(S,b,N){if(S!==101)return;let _=new Kge;for(let v=0;v<b.length;v+=2)_.append(eye(b[v]),b[v+1].toString("latin1"),!0);return E({status:S,statusText:fCt[S],headersList:_,socket:N}),!0}}))}i(m,"dispatch")}i(CCt,"httpNetworkFetch");dye.exports={fetch:gCt,Fetch:bP,fetching:aye,finalizeAndReportTiming:oye}});var P8=w((lEr,pye)=>{"use strict";pye.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 mye=w((uEr,fye)=>{"use strict";var{webidl:Yo}=Fn(),BP=Symbol("ProgressEvent state"),v8=class t extends Event{static{i(this,"ProgressEvent")}constructor(e,r={}){e=Yo.converters.DOMString(e,"ProgressEvent constructor","type"),r=Yo.converters.ProgressEventInit(r??{}),super(e,r),this[BP]={lengthComputable:r.lengthComputable,loaded:r.loaded,total:r.total}}get lengthComputable(){return Yo.brandCheck(this,t),this[BP].lengthComputable}get loaded(){return Yo.brandCheck(this,t),this[BP].loaded}get total(){return Yo.brandCheck(this,t),this[BP].total}};Yo.converters.ProgressEventInit=Yo.dictionaryConverter([{key:"lengthComputable",converter:Yo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"loaded",converter:Yo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"total",converter:Yo.converters["unsigned long long"],defaultValue:i(()=>0,"defaultValue")},{key:"bubbles",converter:Yo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"cancelable",converter:Yo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"composed",converter:Yo.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}]);fye.exports={ProgressEvent:v8}});var Aye=w((pEr,hye)=>{"use strict";function ICt(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(ICt,"getEncoding");hye.exports={getEncoding:ICt}});var xye=w((mEr,wye)=>{"use strict";var{kState:_y,kError:Q8,kResult:gye,kAborted:$x,kLastProgressEventFired:D8}=P8(),{ProgressEvent:SCt}=mye(),{getEncoding:yye}=Aye(),{serializeAMimeType:wCt,parseMIMEType:Eye}=Ks(),{types:xCt}=require("node:util"),{StringDecoder:Cye}=require("string_decoder"),{btoa:Iye}=require("node:buffer"),bCt={enumerable:!0,writable:!1,configurable:!1};function BCt(t,e,r,n){if(t[_y]==="loading")throw new DOMException("Invalid state","InvalidStateError");t[_y]="loading",t[gye]=null,t[Q8]=null;let o=e.stream().getReader(),a=[],c=o.read(),l=!0;(async()=>{for(;!t[$x];)try{let{done:u,value:d}=await c;if(l&&!t[$x]&&queueMicrotask(()=>{yp("loadstart",t)}),l=!1,!u&&xCt.isUint8Array(d))a.push(d),(t[D8]===void 0||Date.now()-t[D8]>=50)&&!t[$x]&&(t[D8]=Date.now(),queueMicrotask(()=>{yp("progress",t)})),c=o.read();else if(u){queueMicrotask(()=>{t[_y]="done";try{let p=RCt(a,r,e.type,n);if(t[$x])return;t[gye]=p,yp("load",t)}catch(p){t[Q8]=p,yp("error",t)}t[_y]!=="loading"&&yp("loadend",t)});break}}catch(u){if(t[$x])return;queueMicrotask(()=>{t[_y]="done",t[Q8]=u,yp("error",t),t[_y]!=="loading"&&yp("loadend",t)});break}})()}i(BCt,"readOperation");function yp(t,e){let r=new SCt(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(r)}i(yp,"fireAProgressEvent");function RCt(t,e,r,n){switch(e){case"DataURL":{let s="data:",o=Eye(r||"application/octet-stream");o!=="failure"&&(s+=wCt(o)),s+=";base64,";let a=new Cye("latin1");for(let c of t)s+=Iye(a.write(c));return s+=Iye(a.end()),s}case"Text":{let s="failure";if(n&&(s=yye(n)),s==="failure"&&r){let o=Eye(r);o!=="failure"&&(s=yye(o.parameters.get("charset")))}return s==="failure"&&(s="UTF-8"),NCt(t,s)}case"ArrayBuffer":return Sye(t).buffer;case"BinaryString":{let s="",o=new Cye("latin1");for(let a of t)s+=o.write(a);return s+=o.end(),s}}}i(RCt,"packageData");function NCt(t,e){let r=Sye(t),n=TCt(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(NCt,"decode");function TCt(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(TCt,"BOMSniffing");function Sye(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(Sye,"combineByteSequences");wye.exports={staticPropertyDescriptors:bCt,readOperation:BCt,fireAProgressEvent:yp}});var Nye=w((AEr,Rye)=>{"use strict";var{staticPropertyDescriptors:Py,readOperation:RP,fireAProgressEvent:bye}=xye(),{kState:ph,kError:Bye,kResult:NP,kEvents:At,kAborted:_Ct}=P8(),{webidl:Pt}=Fn(),{kEnumerableProperty:eo}=Ye(),Fa=class t extends EventTarget{static{i(this,"FileReader")}constructor(){super(),this[ph]="empty",this[NP]=null,this[Bye]=null,this[At]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){Pt.brandCheck(this,t),Pt.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer"),e=Pt.converters.Blob(e,{strict:!1}),RP(this,e,"ArrayBuffer")}readAsBinaryString(e){Pt.brandCheck(this,t),Pt.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString"),e=Pt.converters.Blob(e,{strict:!1}),RP(this,e,"BinaryString")}readAsText(e,r=void 0){Pt.brandCheck(this,t),Pt.argumentLengthCheck(arguments,1,"FileReader.readAsText"),e=Pt.converters.Blob(e,{strict:!1}),r!==void 0&&(r=Pt.converters.DOMString(r,"FileReader.readAsText","encoding")),RP(this,e,"Text",r)}readAsDataURL(e){Pt.brandCheck(this,t),Pt.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL"),e=Pt.converters.Blob(e,{strict:!1}),RP(this,e,"DataURL")}abort(){if(this[ph]==="empty"||this[ph]==="done"){this[NP]=null;return}this[ph]==="loading"&&(this[ph]="done",this[NP]=null),this[_Ct]=!0,bye("abort",this),this[ph]!=="loading"&&bye("loadend",this)}get readyState(){switch(Pt.brandCheck(this,t),this[ph]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return Pt.brandCheck(this,t),this[NP]}get error(){return Pt.brandCheck(this,t),this[Bye]}get onloadend(){return Pt.brandCheck(this,t),this[At].loadend}set onloadend(e){Pt.brandCheck(this,t),this[At].loadend&&this.removeEventListener("loadend",this[At].loadend),typeof e=="function"?(this[At].loadend=e,this.addEventListener("loadend",e)):this[At].loadend=null}get onerror(){return Pt.brandCheck(this,t),this[At].error}set onerror(e){Pt.brandCheck(this,t),this[At].error&&this.removeEventListener("error",this[At].error),typeof e=="function"?(this[At].error=e,this.addEventListener("error",e)):this[At].error=null}get onloadstart(){return Pt.brandCheck(this,t),this[At].loadstart}set onloadstart(e){Pt.brandCheck(this,t),this[At].loadstart&&this.removeEventListener("loadstart",this[At].loadstart),typeof e=="function"?(this[At].loadstart=e,this.addEventListener("loadstart",e)):this[At].loadstart=null}get onprogress(){return Pt.brandCheck(this,t),this[At].progress}set onprogress(e){Pt.brandCheck(this,t),this[At].progress&&this.removeEventListener("progress",this[At].progress),typeof e=="function"?(this[At].progress=e,this.addEventListener("progress",e)):this[At].progress=null}get onload(){return Pt.brandCheck(this,t),this[At].load}set onload(e){Pt.brandCheck(this,t),this[At].load&&this.removeEventListener("load",this[At].load),typeof e=="function"?(this[At].load=e,this.addEventListener("load",e)):this[At].load=null}get onabort(){return Pt.brandCheck(this,t),this[At].abort}set onabort(e){Pt.brandCheck(this,t),this[At].abort&&this.removeEventListener("abort",this[At].abort),typeof e=="function"?(this[At].abort=e,this.addEventListener("abort",e)):this[At].abort=null}};Fa.EMPTY=Fa.prototype.EMPTY=0;Fa.LOADING=Fa.prototype.LOADING=1;Fa.DONE=Fa.prototype.DONE=2;Object.defineProperties(Fa.prototype,{EMPTY:Py,LOADING:Py,DONE:Py,readAsArrayBuffer:eo,readAsBinaryString:eo,readAsText:eo,readAsDataURL:eo,abort:eo,readyState:eo,result:eo,error:eo,onloadstart:eo,onprogress:eo,onload:eo,onabort:eo,onerror:eo,onloadend:eo,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Fa,{EMPTY:Py,LOADING:Py,DONE:Py});Rye.exports={FileReader:Fa}});var TP=w((yEr,Tye)=>{"use strict";Tye.exports={kConstruct:er().kConstruct}});var vye=w((EEr,Pye)=>{"use strict";var PCt=require("node:assert"),{URLSerializer:_ye}=Ks(),{isValidHeaderName:vCt}=Ho();function QCt(t,e,r=!1){let n=_ye(t,r),s=_ye(e,r);return n===s}i(QCt,"urlEquals");function DCt(t){PCt(t!==null);let e=[];for(let r of t.split(","))r=r.trim(),vCt(r)&&e.push(r);return e}i(DCt,"getFieldValues");Pye.exports={urlEquals:QCt,getFieldValues:DCt}});var kye=w((IEr,Dye)=>{"use strict";var{kConstruct:kCt}=TP(),{urlEquals:OCt,getFieldValues:k8}=vye(),{kEnumerableProperty:fh,isDisturbed:LCt}=Ye(),{webidl:le}=Fn(),{Response:MCt,cloneResponse:FCt,fromInnerResponse:UCt}=Mx(),{Request:td,fromInnerRequest:$Ct}=Ty(),{kState:Ua}=op(),{fetching:qCt}=Ux(),{urlIsHttpHttpsScheme:_P,createDeferredPromise:vy,readAllBytes:HCt}=Ho(),O8=require("node:assert"),PP=class t{static{i(this,"Cache")}#e;constructor(){arguments[0]!==kCt&&le.illegalConstructor(),le.util.markAsUncloneable(this),this.#e=arguments[1]}async match(e,r={}){le.brandCheck(this,t);let n="Cache.match";le.argumentLengthCheck(arguments,1,n),e=le.converters.RequestInfo(e,n,"request"),r=le.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={}){le.brandCheck(this,t);let n="Cache.matchAll";return e!==void 0&&(e=le.converters.RequestInfo(e,n,"request")),r=le.converters.CacheQueryOptions(r,n,"options"),this.#s(e,r)}async add(e){le.brandCheck(this,t);let r="Cache.add";le.argumentLengthCheck(arguments,1,r),e=le.converters.RequestInfo(e,r,"request");let n=[e];return await this.addAll(n)}async addAll(e){le.brandCheck(this,t);let r="Cache.addAll";le.argumentLengthCheck(arguments,1,r);let n=[],s=[];for(let f of e){if(f===void 0)throw le.errors.conversionFailed({prefix:r,argument:"Argument 1",types:["undefined is not allowed"]});if(f=le.converters.RequestInfo(f),typeof f=="string")continue;let m=f[Ua];if(!_P(m.url)||m.method!=="GET")throw le.errors.exception({header:r,message:"Expected http/s scheme when method is not GET."})}let o=[];for(let f of e){let m=new td(f)[Ua];if(!_P(m.url))throw le.errors.exception({header:r,message:"Expected http/s scheme."});m.initiator="fetch",m.destination="subresource",s.push(m);let h=vy();o.push(qCt({request:m,processResponse(g){if(g.type==="error"||g.status===206||g.status<200||g.status>299)h.reject(le.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(g.headersList.contains("vary")){let y=k8(g.headersList.get("vary"));for(let E of y)if(E==="*"){h.reject(le.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(let C of o)C.abort();return}}},processResponseEndOfBody(g){if(g.aborted){h.reject(new DOMException("aborted","AbortError"));return}h.resolve(g)}})),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=vy(),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){le.brandCheck(this,t);let n="Cache.put";le.argumentLengthCheck(arguments,2,n),e=le.converters.RequestInfo(e,n,"request"),r=le.converters.Response(r,n,"response");let s=null;if(e instanceof td?s=e[Ua]:s=new td(e)[Ua],!_P(s.url)||s.method!=="GET")throw le.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"});let o=r[Ua];if(o.status===206)throw le.errors.exception({header:n,message:"Got 206 status"});if(o.headersList.contains("vary")){let m=k8(o.headersList.get("vary"));for(let h of m)if(h==="*")throw le.errors.exception({header:n,message:"Got * vary field value"})}if(o.body&&(LCt(o.body.stream)||o.body.stream.locked))throw le.errors.exception({header:n,message:"Response body is locked or disturbed"});let a=FCt(o),c=vy();if(o.body!=null){let h=o.body.stream.getReader();HCt(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=vy(),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={}){le.brandCheck(this,t);let n="Cache.delete";le.argumentLengthCheck(arguments,1,n),e=le.converters.RequestInfo(e,n,"request"),r=le.converters.CacheQueryOptions(r,n,"options");let s=null;if(e instanceof td){if(s=e[Ua],s.method!=="GET"&&!r.ignoreMethod)return!1}else O8(typeof e=="string"),s=new td(e)[Ua];let o=[],a={type:"delete",request:s,options:r};o.push(a);let c=vy(),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={}){le.brandCheck(this,t);let n="Cache.keys";e!==void 0&&(e=le.converters.RequestInfo(e,n,"request")),r=le.converters.CacheQueryOptions(r,n,"options");let s=null;if(e!==void 0)if(e instanceof td){if(s=e[Ua],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new td(e)[Ua]);let o=vy(),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=$Ct(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 le.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if(a.type==="delete"&&a.response!=null)throw le.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);O8(u!==-1),r.splice(u,1)}}else if(a.type==="put"){if(a.response==null)throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let l=a.request;if(!_P(l.url))throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if(l.method!=="GET")throw le.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(a.options!=null)throw le.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);O8(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=""),!OCt(o,a,!0))return!1;if(n==null||s?.ignoreVary||!n.headersList.contains("vary"))return!0;let c=k8(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 td){if(s=e[Ua],s.method!=="GET"&&!r.ignoreMethod)return[]}else typeof e=="string"&&(s=new td(e)[Ua]);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=UCt(c,"immutable");if(a.push(l.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(PP.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:fh,matchAll:fh,add:fh,addAll:fh,put:fh,delete:fh,keys:fh});var Qye=[{key:"ignoreSearch",converter:le.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreMethod",converter:le.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"ignoreVary",converter:le.converters.boolean,defaultValue:i(()=>!1,"defaultValue")}];le.converters.CacheQueryOptions=le.dictionaryConverter(Qye);le.converters.MultiCacheQueryOptions=le.dictionaryConverter([...Qye,{key:"cacheName",converter:le.converters.DOMString}]);le.converters.Response=le.interfaceConverter(MCt);le.converters["sequence<RequestInfo>"]=le.sequenceConverter(le.converters.RequestInfo);Dye.exports={Cache:PP}});var Lye=w((wEr,Oye)=>{"use strict";var{kConstruct:qx}=TP(),{Cache:vP}=kye(),{webidl:rs}=Fn(),{kEnumerableProperty:Hx}=Ye(),QP=class t{static{i(this,"CacheStorage")}#e=new Map;constructor(){arguments[0]!==qx&&rs.illegalConstructor(),rs.util.markAsUncloneable(this)}async match(e,r={}){if(rs.brandCheck(this,t),rs.argumentLengthCheck(arguments,1,"CacheStorage.match"),e=rs.converters.RequestInfo(e),r=rs.converters.MultiCacheQueryOptions(r),r.cacheName!=null){if(this.#e.has(r.cacheName)){let n=this.#e.get(r.cacheName);return await new vP(qx,n).match(e,r)}}else for(let n of this.#e.values()){let o=await new vP(qx,n).match(e,r);if(o!==void 0)return o}}async has(e){rs.brandCheck(this,t);let r="CacheStorage.has";return rs.argumentLengthCheck(arguments,1,r),e=rs.converters.DOMString(e,r,"cacheName"),this.#e.has(e)}async open(e){rs.brandCheck(this,t);let r="CacheStorage.open";if(rs.argumentLengthCheck(arguments,1,r),e=rs.converters.DOMString(e,r,"cacheName"),this.#e.has(e)){let s=this.#e.get(e);return new vP(qx,s)}let n=[];return this.#e.set(e,n),new vP(qx,n)}async delete(e){rs.brandCheck(this,t);let r="CacheStorage.delete";return rs.argumentLengthCheck(arguments,1,r),e=rs.converters.DOMString(e,r,"cacheName"),this.#e.delete(e)}async keys(){return rs.brandCheck(this,t),[...this.#e.keys()]}};Object.defineProperties(QP.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:Hx,has:Hx,open:Hx,delete:Hx,keys:Hx});Oye.exports={CacheStorage:QP}});var Fye=w((bEr,Mye)=>{"use strict";Mye.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}});var F8=w((BEr,Hye)=>{"use strict";function GCt(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(GCt,"isCTLExcludingHtab");function L8(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(L8,"validateCookieName");function M8(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(M8,"validateCookieValue");function $ye(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($ye,"validateCookiePath");function Uye(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}i(Uye,"isLetterOrDigit");function zCt(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&&!Uye(n))throw new Error("Invalid cookie domain");if(!Uye(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(zCt,"validateCookieDomain");var VCt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],WCt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DP=Array(61).fill(0).map((t,e)=>e.toString().padStart(2,"0"));function qye(t){return typeof t=="number"&&(t=new Date(t)),`${VCt[t.getUTCDay()]}, ${DP[t.getUTCDate()]} ${WCt[t.getUTCMonth()]} ${t.getUTCFullYear()} ${DP[t.getUTCHours()]}:${DP[t.getUTCMinutes()]}:${DP[t.getUTCSeconds()]} GMT`}i(qye,"toIMFDate");function jCt(t){if(t<0)throw new Error("Invalid cookie max-age")}i(jCt,"validateCookieMaxAge");function JCt(t){if(t.name.length===0)return null;L8(t.name),M8(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"&&(jCt(t.maxAge),e.push(`Max-Age=${t.maxAge}`)),t.domain&&(zCt(t.domain),e.push(`Domain=${t.domain}`)),t.path&&($ye(t.path),e.push(`Path=${t.path}`)),t.expires&&t.expires.toString()!=="Invalid Date"&&e.push(`Expires=${qye(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("=");L8(o),M8(a),e.push(`${o}=${a}`)}return e.join("; ")}i(JCt,"stringify");Hye.exports={isCTLExcludingHtab:GCt,validateCookieName:L8,validateCookiePath:$ye,validateCookieValue:M8,toIMFDate:qye,stringify:JCt}});var zye=w((NEr,Gye)=>{"use strict";var{maxNameValuePairSize:YCt,maxAttributeValueSize:KCt}=Fye(),{isCTLExcludingHtab:XCt}=F8(),{collectASequenceOfCodePointsFast:kP}=Ks(),ZCt=require("node:assert");function eIt(t){if(XCt(t))return null;let e="",r="",n="",s="";if(t.includes(";")){let o={position:0};e=kP(";",t,o),r=t.slice(o.position)}else e=t;if(!e.includes("="))s=e;else{let o={position:0};n=kP("=",e,o),s=e.slice(o.position+1)}return n=n.trim(),s=s.trim(),n.length+s.length>YCt?null:{name:n,value:s,...Qy(r)}}i(eIt,"parseSetCookie");function Qy(t,e={}){if(t.length===0)return e;ZCt(t[0]===";"),t=t.slice(1);let r="";t.includes(";")?(r=kP(";",t,{position:0}),t=t.slice(r.length)):(r=t,t="");let n="",s="";if(r.includes("=")){let a={position:0};n=kP("=",r,a),s=r.slice(a.position+1)}else n=r;if(n=n.trim(),s=s.trim(),s.length>KCt)return Qy(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 Qy(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 Qy(t,e)}i(Qy,"parseUnparsedAttributes");Gye.exports={parseSetCookie:eIt,parseUnparsedAttributes:Qy}});var jye=w((_Er,Wye)=>{"use strict";var{parseSetCookie:tIt}=zye(),{stringify:rIt}=F8(),{webidl:st}=Fn(),{Headers:OP}=ch();function nIt(t){st.argumentLengthCheck(arguments,1,"getCookies"),st.brandCheck(t,OP,{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(nIt,"getCookies");function sIt(t,e,r){st.brandCheck(t,OP,{strict:!1});let n="deleteCookie";st.argumentLengthCheck(arguments,2,n),e=st.converters.DOMString(e,n,"name"),r=st.converters.DeleteCookieAttributes(r),Vye(t,{name:e,value:"",expires:new Date(0),...r})}i(sIt,"deleteCookie");function oIt(t){st.argumentLengthCheck(arguments,1,"getSetCookies"),st.brandCheck(t,OP,{strict:!1});let e=t.getSetCookie();return e?e.map(r=>tIt(r)):[]}i(oIt,"getSetCookies");function Vye(t,e){st.argumentLengthCheck(arguments,2,"setCookie"),st.brandCheck(t,OP,{strict:!1}),e=st.converters.Cookie(e);let r=rIt(e);r&&t.append("Set-Cookie",r)}i(Vye,"setCookie");st.converters.DeleteCookieAttributes=st.dictionaryConverter([{converter:st.nullableConverter(st.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:st.nullableConverter(st.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")}]);st.converters.Cookie=st.dictionaryConverter([{converter:st.converters.DOMString,key:"name"},{converter:st.converters.DOMString,key:"value"},{converter:st.nullableConverter(t=>typeof t=="number"?st.converters["unsigned long long"](t):new Date(t)),key:"expires",defaultValue:i(()=>null,"defaultValue")},{converter:st.nullableConverter(st.converters["long long"]),key:"maxAge",defaultValue:i(()=>null,"defaultValue")},{converter:st.nullableConverter(st.converters.DOMString),key:"domain",defaultValue:i(()=>null,"defaultValue")},{converter:st.nullableConverter(st.converters.DOMString),key:"path",defaultValue:i(()=>null,"defaultValue")},{converter:st.nullableConverter(st.converters.boolean),key:"secure",defaultValue:i(()=>null,"defaultValue")},{converter:st.nullableConverter(st.converters.boolean),key:"httpOnly",defaultValue:i(()=>null,"defaultValue")},{converter:st.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:st.sequenceConverter(st.converters.DOMString),key:"unparsed",defaultValue:i(()=>new Array(0),"defaultValue")}]);Wye.exports={getCookies:nIt,deleteCookie:sIt,getSetCookies:oIt,setCookie:Vye}});var ky=w((vEr,Yye)=>{"use strict";var{webidl:ie}=Fn(),{kEnumerableProperty:to}=Ye(),{kConstruct:Jye}=er(),{MessagePort:iIt}=require("node:worker_threads"),Dy=class t extends Event{static{i(this,"MessageEvent")}#e;constructor(e,r={}){if(e===Jye){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(Jye,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:aIt}=Dy;delete Dy.createFastMessageEvent;var LP=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}},MP=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(Dy.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:to,origin:to,lastEventId:to,source:to,ports:to,initMessageEvent:to});Object.defineProperties(LP.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:to,code:to,wasClean:to});Object.defineProperties(MP.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:to,filename:to,lineno:to,colno:to,error:to});ie.converters.MessagePort=ie.interfaceConverter(iIt);ie.converters["sequence<MessagePort>"]=ie.sequenceConverter(ie.converters.MessagePort);var U8=[{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([...U8,{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([...U8,{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([...U8,{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}]);Yye.exports={MessageEvent:Dy,CloseEvent:LP,ErrorEvent:MP,createFastMessageEvent:aIt}});var mh=w((DEr,Kye)=>{"use strict";var cIt="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",lIt={enumerable:!0,writable:!1,configurable:!1},uIt={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},dIt={NOT_SENT:0,PROCESSING:1,SENT:2},pIt={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},fIt=2**16-1,mIt={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},hIt=Buffer.allocUnsafe(0),AIt={string:1,typedArray:2,arrayBuffer:3,blob:4};Kye.exports={uid:cIt,sentCloseFrameState:dIt,staticPropertyDescriptors:lIt,states:uIt,opcodes:pIt,maxUnsigned16Bit:fIt,parserStates:mIt,emptyBuffer:hIt,sendHints:AIt}});var Gx=w((kEr,Xye)=>{"use strict";Xye.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 Wx=w((OEr,aEe)=>{"use strict";var{kReadyState:zx,kController:gIt,kResponse:yIt,kBinaryType:EIt,kWebSocketURL:CIt}=Gx(),{states:Vx,opcodes:Ep}=mh(),{ErrorEvent:IIt,createFastMessageEvent:SIt}=ky(),{isUtf8:wIt}=require("node:buffer"),{collectASequenceOfCodePointsFast:xIt,removeHTTPWhitespace:Zye}=Ks();function bIt(t){return t[zx]===Vx.CONNECTING}i(bIt,"isConnecting");function BIt(t){return t[zx]===Vx.OPEN}i(BIt,"isEstablished");function RIt(t){return t[zx]===Vx.CLOSING}i(RIt,"isClosing");function NIt(t){return t[zx]===Vx.CLOSED}i(NIt,"isClosed");function $8(t,e,r=(s,o)=>new Event(s,o),n={}){let s=r(t,n);e.dispatchEvent(s)}i($8,"fireEvent");function TIt(t,e,r){if(t[zx]!==Vx.OPEN)return;let n;if(e===Ep.TEXT)try{n=iEe(r)}catch{tEe(t,"Received invalid UTF-8 in text frame.");return}else e===Ep.BINARY&&(t[EIt]==="blob"?n=new Blob([r]):n=_It(r));$8("message",t,SIt,{origin:t[CIt].origin,data:n})}i(TIt,"websocketMessageReceived");function _It(t){return t.byteLength===t.buffer.byteLength?t.buffer:t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}i(_It,"toArrayBuffer");function PIt(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(PIt,"isValidSubprotocol");function vIt(t){return t>=1e3&&t<1015?t!==1004&&t!==1005&&t!==1006:t>=3e3&&t<=4999}i(vIt,"isValidStatusCode");function tEe(t,e){let{[gIt]:r,[yIt]:n}=t;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),e&&$8("error",t,(s,o)=>new IIt(s,o),{error:new Error(e),message:e})}i(tEe,"failWebsocketConnection");function rEe(t){return t===Ep.CLOSE||t===Ep.PING||t===Ep.PONG}i(rEe,"isControlFrame");function nEe(t){return t===Ep.CONTINUATION}i(nEe,"isContinuationFrame");function sEe(t){return t===Ep.TEXT||t===Ep.BINARY}i(sEe,"isTextBinaryFrame");function QIt(t){return sEe(t)||nEe(t)||rEe(t)}i(QIt,"isValidOpcode");function DIt(t){let e={position:0},r=new Map;for(;e.position<t.length;){let n=xIt(";",t,e),[s,o=""]=n.split("=");r.set(Zye(s,!0,!1),Zye(o,!1,!0)),e.position++}return r}i(DIt,"parseExtensions");function kIt(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(kIt,"isValidClientWindowBits");var oEe=typeof process.versions.icu=="string",eEe=oEe?new TextDecoder("utf-8",{fatal:!0}):void 0,iEe=oEe?eEe.decode.bind(eEe):function(t){if(wIt(t))return t.toString("utf-8");throw new TypeError("Invalid utf-8 received.")};aEe.exports={isConnecting:bIt,isEstablished:BIt,isClosing:RIt,isClosed:NIt,fireEvent:$8,isValidSubprotocol:PIt,isValidStatusCode:vIt,failWebsocketConnection:tEe,websocketMessageReceived:TIt,utf8Decode:iEe,isControlFrame:rEe,isContinuationFrame:nEe,isTextBinaryFrame:sEe,isValidOpcode:QIt,parseExtensions:DIt,isValidClientWindowBits:kIt}});var UP=w((MEr,cEe)=>{"use strict";var{maxUnsigned16Bit:OIt}=mh(),FP=16386,q8,jx=null,Oy=FP;try{q8=require("node:crypto")}catch{q8={randomFillSync:i(function(e,r,n){for(let s=0;s<e.length;++s)e[s]=Math.random()*255|0;return e},"randomFillSync")}}function LIt(){return Oy===FP&&(Oy=0,q8.randomFillSync(jx??=Buffer.allocUnsafe(FP),0,FP)),[jx[Oy++],jx[Oy++],jx[Oy++],jx[Oy++]]}i(LIt,"generateMask");var H8=class{static{i(this,"WebsocketFrameSend")}constructor(e){this.frameData=e}createFrame(e){let r=this.frameData,n=LIt(),s=r?.byteLength??0,o=s,a=6;s>OIt?(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}};cEe.exports={WebsocketFrameSend:H8}});var z8=w((UEr,hEe)=>{"use strict";var{uid:MIt,states:Jx,sentCloseFrameState:$P,emptyBuffer:FIt,opcodes:UIt}=mh(),{kReadyState:Yx,kSentClose:qP,kByteParser:uEe,kReceivedClose:lEe,kResponse:dEe}=Gx(),{fireEvent:$It,failWebsocketConnection:Cp,isClosing:qIt,isClosed:HIt,isEstablished:GIt,parseExtensions:zIt}=Wx(),{channels:Ly}=Jg(),{CloseEvent:VIt}=ky(),{makeRequest:WIt}=Ty(),{fetching:jIt}=Ux(),{Headers:JIt,getHeadersList:YIt}=ch(),{getDecodeSplit:KIt}=Ho(),{WebsocketFrameSend:XIt}=UP(),G8;try{G8=require("node:crypto")}catch{}function ZIt(t,e,r,n,s,o){let a=t;a.protocol=t.protocol==="ws:"?"http:":"https:";let c=WIt({urlList:[a],client:r,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let p=YIt(new JIt(o.headers));c.headersList=p}let l=G8.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"),jIt({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(p){if(p.type==="error"||p.status!==101){Cp(n,"Received network error or non-101 status code.");return}if(e.length!==0&&!p.headersList.get("Sec-WebSocket-Protocol")){Cp(n,"Server did not respond with sent protocols.");return}if(p.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){Cp(n,'Server did not set Upgrade header to "websocket".');return}if(p.headersList.get("Connection")?.toLowerCase()!=="upgrade"){Cp(n,'Server did not set Connection header to "upgrade".');return}let f=p.headersList.get("Sec-WebSocket-Accept"),m=G8.createHash("sha1").update(l+MIt).digest("base64");if(f!==m){Cp(n,"Incorrect hash received in Sec-WebSocket-Accept header.");return}let h=p.headersList.get("Sec-WebSocket-Extensions"),g;if(h!==null&&(g=zIt(h),!g.has("permessage-deflate"))){Cp(n,"Sec-WebSocket-Extensions header does not match.");return}let y=p.headersList.get("Sec-WebSocket-Protocol");if(y!==null){let E=KIt("sec-websocket-protocol",c.headersList);if(E===null||!E.includes(y)){Cp(n,"Protocol was not set in the opening handshake.");return}}p.socket.on("data",pEe),p.socket.on("close",fEe),p.socket.on("error",mEe),Ly.open.hasSubscribers&&Ly.open.publish({address:p.socket.address(),protocol:y,extensions:h}),s(p,g)}})}i(ZIt,"establishWebSocketConnection");function eSt(t,e,r,n){if(!(qIt(t)||HIt(t)))if(!GIt(t))Cp(t,"Connection was closed before it was established."),t[Yx]=Jx.CLOSING;else if(t[qP]===$P.NOT_SENT){t[qP]=$P.PROCESSING;let s=new XIt;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=FIt,t[dEe].socket.write(s.createFrame(UIt.CLOSE)),t[qP]=$P.SENT,t[Yx]=Jx.CLOSING}else t[Yx]=Jx.CLOSING}i(eSt,"closeWebSocketConnection");function pEe(t){this.ws[uEe].write(t)||this.pause()}i(pEe,"onSocketData");function fEe(){let{ws:t}=this,{[dEe]:e}=t;e.socket.off("data",pEe),e.socket.off("close",fEe),e.socket.off("error",mEe);let r=t[qP]===$P.SENT&&t[lEe],n=1005,s="",o=t[uEe].closingInfo;o&&!o.error?(n=o.code??1005,s=o.reason):t[lEe]||(n=1006),t[Yx]=Jx.CLOSED,$It("close",t,(a,c)=>new VIt(a,c),{wasClean:r,code:n,reason:s}),Ly.close.hasSubscribers&&Ly.close.publish({websocket:t,code:n,reason:s})}i(fEe,"onSocketClose");function mEe(t){let{ws:e}=this;e[Yx]=Jx.CLOSING,Ly.socketError.hasSubscribers&&Ly.socketError.publish(t),this.destroy()}i(mEe,"onSocketError");hEe.exports={establishWebSocketConnection:ZIt,closeWebSocketConnection:eSt}});var gEe=w((qEr,AEe)=>{"use strict";var{createInflateRaw:tSt,Z_DEFAULT_WINDOWBITS:rSt}=require("node:zlib"),{isValidClientWindowBits:nSt}=Wx(),{MessageSizeExceededError:sSt}=pt(),oSt=Buffer.from([0,0,255,255]),HP=Symbol("kBuffer"),Kx=Symbol("kLength"),V8=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=rSt;if(this.#t.serverMaxWindowBits){if(!nSt(this.#t.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}s=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=tSt({windowBits:s})}catch(o){n(o);return}this.#e[HP]=[],this.#e[Kx]=0,this.#e.on("data",o=>{if(this.#e[Kx]+=o.length,this.#n>0&&this.#e[Kx]>this.#n){n(new sSt),this.#e.removeAllListeners(),this.#e.destroy(),this.#e=null;return}this.#e[HP].push(o)}),this.#e.on("error",o=>{this.#e=null,n(o)})}this.#e.write(e),r&&this.#e.write(oSt),this.#e.flush(()=>{if(!this.#e)return;let s=Buffer.concat(this.#e[HP],this.#e[Kx]);this.#e[HP].length=0,this.#e[Kx]=0,n(null,s)})}};AEe.exports={PerMessageDeflate:V8}});var BEe=w((GEr,bEe)=>{"use strict";var{Writable:iSt}=require("node:stream"),aSt=require("node:assert"),{parserStates:ro,opcodes:My,states:cSt,emptyBuffer:yEe,sentCloseFrameState:EEe}=mh(),{kReadyState:lSt,kSentClose:CEe,kResponse:W8,kReceivedClose:IEe}=Gx(),{channels:GP}=Jg(),{isValidStatusCode:uSt,isValidOpcode:dSt,failWebsocketConnection:Ko,websocketMessageReceived:SEe,utf8Decode:pSt,isControlFrame:j8,isTextBinaryFrame:J8,isContinuationFrame:fSt}=Wx(),{WebsocketFrameSend:wEe}=UP(),{closeWebSocketConnection:xEe}=z8(),{PerMessageDeflate:mSt}=gEe(),{MessageSizeExceededError:Y8}=pt();function Xx(t,e,r){xEe(t,e,r,Buffer.byteLength(r)),Ko(t,r)}i(Xx,"failWebsocketConnectionWithCode");var K8=class extends iSt{static{i(this,"ByteParser")}#e=[];#t=0;#n=0;#r=!1;#s=ro.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 mSt(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&&!j8(this.#o.opcode)&&this.#o.payloadLength+this.#t>this.#c?(Xx(this.ws,1009,"Payload size exceeds maximum allowed size"),!1):!0}run(e){for(;this.#r;)if(this.#s===ro.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!==My.CONTINUATION,c=r[1]&127,l=r[0]&64,u=r[0]&32,d=r[0]&16;if(!dSt(s))return Ko(this.ws,"Invalid opcode received"),e();if(o)return Ko(this.ws,"Frame cannot be masked"),e();if(l!==0&&!this.#a.has("permessage-deflate")){Ko(this.ws,"Expected RSV1 to be clear.");return}if(u!==0||d!==0){Ko(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(a&&!J8(s)){Ko(this.ws,"Invalid frame type was fragmented.");return}if(J8(s)&&this.#i.length>0){Ko(this.ws,"Expected continuation frame");return}if(this.#o.fragmented&&a){Ko(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((c>125||a)&&j8(s)){Ko(this.ws,"Control frame either too large or fragmented");return}if(fSt(s)&&this.#i.length===0&&!this.#o.compressed){Ko(this.ws,"Unexpected continuation frame");return}if(c<=125){if(this.#o.payloadLength=c,this.#s=ro.READ_DATA,!this.#u())return}else c===126?this.#s=ro.PAYLOADLENGTH_16:c===127&&(this.#s=ro.PAYLOADLENGTH_64);J8(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===ro.PAYLOADLENGTH_16){if(this.#n<2)return e();let r=this.consume(2);if(this.#o.payloadLength=r.readUInt16BE(0),this.#s=ro.READ_DATA,!this.#u())return}else if(this.#s===ro.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){Ko(this.ws,"Received payload length > 2^31 bytes.");return}if(this.#o.payloadLength=s,this.#s=ro.READ_DATA,!this.#u())return}else if(this.#s===ro.READ_DATA){if(this.#n<this.#o.payloadLength)return e();let r=this.consume(this.#o.payloadLength);if(j8(this.#o.opcode)){this.#r=this.parseControlFrame(r),this.#s=ro.INFO;let n=this.ws[W8].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 Y8?1009:1007;Xx(this.ws,o,n.message);return}if(this.writeFragments(s)){if(this.#c>0&&this.#t>this.#c){Xx(this.ws,1009,new Y8().message);return}if(!this.#o.fin){this.#s=ro.INFO,this.#r=!0,this.run(e);return}SEe(this.ws,this.#o.binaryType,this.consumeFragments()),this.#r=!0,this.#s=ro.INFO,this.run(e)}}),this.#r=!1;break}else{if(!this.writeFragments(r))return;if(this.#c>0&&this.#t>this.#c){Xx(this.ws,1009,new Y8().message);return}!this.#o.fragmented&&this.#o.fin&&SEe(this.ws,this.#o.binaryType,this.consumeFragments()),this.#s=ro.INFO}}}consume(e){if(e>this.#n)throw new Error("Called consume() before buffers satiated.");if(e===0)return yEe;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?(Xx(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){aSt(e.length!==1);let r;if(e.length>=2&&(r=e.readUInt16BE(0)),r!==void 0&&!uSt(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=pSt(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===My.CLOSE){if(n===1)return Ko(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 xEe(this.ws,s,o,o.length),Ko(this.ws,o),!1}if(this.ws[CEe]!==EEe.SENT){let s=yEe;this.#o.closeInfo.code&&(s=Buffer.allocUnsafe(2),s.writeUInt16BE(this.#o.closeInfo.code,0));let o=new wEe(s);this.ws[W8].socket.write(o.createFrame(My.CLOSE),a=>{a||(this.ws[CEe]=EEe.SENT)})}return this.ws[lSt]=cSt.CLOSING,this.ws[IEe]=!0,!1}else if(r===My.PING){if(!this.ws[IEe]){let s=new wEe(e);this.ws[W8].socket.write(s.createFrame(My.PONG)),GP.ping.hasSubscribers&&GP.ping.publish({payload:e})}}else r===My.PONG&&GP.pong.hasSubscribers&&GP.pong.publish({payload:e});return!0}get closingInfo(){return this.#o.closeInfo}};bEe.exports={ByteParser:K8}});var PEe=w((VEr,_Ee)=>{"use strict";var{WebsocketFrameSend:hSt}=UP(),{opcodes:REe,sendHints:Fy}=mh(),ASt=r4(),NEe=Buffer[Symbol.species],X8=class{static{i(this,"SendQueue")}#e=new ASt;#t=!1;#n;constructor(e){this.#n=e}add(e,r,n){if(n!==Fy.blob){let o=TEe(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=TEe(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 TEe(t,e){return new hSt(gSt(t,e)).createFrame(e===Fy.string?REe.TEXT:REe.BINARY)}i(TEe,"createFrame");function gSt(t,e){switch(e){case Fy.string:return Buffer.from(t);case Fy.arrayBuffer:case Fy.blob:return new NEe(t);case Fy.typedArray:return new NEe(t.buffer,t.byteOffset,t.byteLength)}}i(gSt,"toBuffer");_Ee.exports={SendQueue:X8}});var $Ee=w((jEr,UEe)=>{"use strict";var{webidl:xe}=Fn(),{URLSerializer:ySt}=Ks(),{environmentSettingsObject:vEe}=Ho(),{staticPropertyDescriptors:Ip,states:Zx,sentCloseFrameState:ESt,sendHints:zP}=mh(),{kWebSocketURL:QEe,kReadyState:Z8,kController:DEe,kBinaryType:VP,kResponse:kEe,kSentClose:CSt,kByteParser:ISt}=Gx(),{isConnecting:SSt,isEstablished:wSt,isClosing:xSt,isValidSubprotocol:bSt,fireEvent:OEe}=Wx(),{establishWebSocketConnection:BSt,closeWebSocketConnection:LEe}=z8(),{ByteParser:RSt}=BEe(),{kEnumerableProperty:Di,isBlobLike:MEe}=Ye(),{getGlobalDispatcher:NSt}=kx(),{types:FEe}=require("node:util"),{ErrorEvent:TSt,CloseEvent:_St}=ky(),{SendQueue:PSt}=PEe(),Xo=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(),xe.util.markAsUncloneable(this);let n="WebSocket constructor";xe.argumentLengthCheck(arguments,1,n);let s=xe.converters["DOMString or sequence<DOMString> or WebSocketInit"](r,n,"options");e=xe.converters.USVString(e,n,"url"),r=s.protocols;let o=vEe.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=>bSt(l)))throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[QEe]=new URL(a.href);let c=vEe.settingsObject;this[DEe]=BSt(a,r,c,this,(l,u)=>this.#o(l,u),s),this[Z8]=t.CONNECTING,this[CSt]=ESt.NOT_SENT,this[VP]="blob"}close(e=void 0,r=void 0){xe.brandCheck(this,t);let n="WebSocket.close";if(e!==void 0&&(e=xe.converters["unsigned short"](e,n,"code",{clamp:!0})),r!==void 0&&(r=xe.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");LEe(this,e,r,s)}send(e){xe.brandCheck(this,t);let r="WebSocket.send";if(xe.argumentLengthCheck(arguments,1,r),e=xe.converters.WebSocketSendData(e,r,"data"),SSt(this))throw new DOMException("Sent before connected.","InvalidStateError");if(!(!wSt(this)||xSt(this)))if(typeof e=="string"){let n=Buffer.byteLength(e);this.#t+=n,this.#s.add(e,()=>{this.#t-=n},zP.string)}else FEe.isArrayBuffer(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},zP.arrayBuffer)):ArrayBuffer.isView(e)?(this.#t+=e.byteLength,this.#s.add(e,()=>{this.#t-=e.byteLength},zP.typedArray)):MEe(e)&&(this.#t+=e.size,this.#s.add(e,()=>{this.#t-=e.size},zP.blob))}get readyState(){return xe.brandCheck(this,t),this[Z8]}get bufferedAmount(){return xe.brandCheck(this,t),this.#t}get url(){return xe.brandCheck(this,t),ySt(this[QEe])}get extensions(){return xe.brandCheck(this,t),this.#r}get protocol(){return xe.brandCheck(this,t),this.#n}get onopen(){return xe.brandCheck(this,t),this.#e.open}set onopen(e){xe.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 xe.brandCheck(this,t),this.#e.error}set onerror(e){xe.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 xe.brandCheck(this,t),this.#e.close}set onclose(e){xe.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 xe.brandCheck(this,t),this.#e.message}set onmessage(e){xe.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 xe.brandCheck(this,t),this[VP]}set binaryType(e){xe.brandCheck(this,t),e!=="blob"&&e!=="arraybuffer"?this[VP]="blob":this[VP]=e}#o(e,r){this[kEe]=e;let n=this[DEe]?.dispatcher?.webSocketOptions,s=n?.maxFragments,o=n?.maxPayloadSize,a=new RSt(this,r,{maxFragments:s,maxPayloadSize:o});a.on("drain",vSt),a.on("error",QSt.bind(this)),e.socket.ws=this,this[ISt]=a,this.#s=new PSt(e.socket),this[Z8]=Zx.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),OEe("open",this)}};Xo.CONNECTING=Xo.prototype.CONNECTING=Zx.CONNECTING;Xo.OPEN=Xo.prototype.OPEN=Zx.OPEN;Xo.CLOSING=Xo.prototype.CLOSING=Zx.CLOSING;Xo.CLOSED=Xo.prototype.CLOSED=Zx.CLOSED;Object.defineProperties(Xo.prototype,{CONNECTING:Ip,OPEN:Ip,CLOSING:Ip,CLOSED:Ip,url:Di,readyState:Di,bufferedAmount:Di,onopen:Di,onerror:Di,onclose:Di,close:Di,onmessage:Di,binaryType:Di,send:Di,extensions:Di,protocol:Di,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}});Object.defineProperties(Xo,{CONNECTING:Ip,OPEN:Ip,CLOSING:Ip,CLOSED:Ip});xe.converters["sequence<DOMString>"]=xe.sequenceConverter(xe.converters.DOMString);xe.converters["DOMString or sequence<DOMString>"]=function(t,e,r){return xe.util.Type(t)==="Object"&&Symbol.iterator in t?xe.converters["sequence<DOMString>"](t):xe.converters.DOMString(t,e,r)};xe.converters.WebSocketInit=xe.dictionaryConverter([{key:"protocols",converter:xe.converters["DOMString or sequence<DOMString>"],defaultValue:i(()=>new Array(0),"defaultValue")},{key:"dispatcher",converter:xe.converters.any,defaultValue:i(()=>NSt(),"defaultValue")},{key:"headers",converter:xe.nullableConverter(xe.converters.HeadersInit)}]);xe.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(t){return xe.util.Type(t)==="Object"&&!(Symbol.iterator in t)?xe.converters.WebSocketInit(t):{protocols:xe.converters["DOMString or sequence<DOMString>"](t)}};xe.converters.WebSocketSendData=function(t){if(xe.util.Type(t)==="Object"){if(MEe(t))return xe.converters.Blob(t,{strict:!1});if(ArrayBuffer.isView(t)||FEe.isArrayBuffer(t))return xe.converters.BufferSource(t)}return xe.converters.USVString(t)};function vSt(){this.ws[kEe].socket.resume()}i(vSt,"onParserDrain");function QSt(t){let e,r;t instanceof _St?(e=t.reason,r=t.code):e=t.message,OEe("error",this,()=>new TSt("error",{error:t,message:e})),LEe(this,r)}i(QSt,"onParserError");UEe.exports={WebSocket:Xo}});var eW=w((YEr,qEe)=>{"use strict";function DSt(t){return t.indexOf("\0")===-1}i(DSt,"isValidLastEventId");function kSt(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(kSt,"isASCIINumber");function OSt(t){return new Promise(e=>{setTimeout(e,t).unref()})}i(OSt,"delay");qEe.exports={isValidLastEventId:DSt,isASCIINumber:kSt,delay:OSt}});var GEe=w((XEr,HEe)=>{"use strict";var LSt=require("node:buffer"),{Transform:MSt}=require("node:stream"),{isASCIINumber:FSt,isValidLastEventId:USt}=eW(),Uy=[239,187,191],WP=10,eb=13,$St=58,qSt=32,HSt=LSt.kStringMaxLength,GSt=Buffer.from("data"),zSt=Buffer.from("event"),VSt=Buffer.from("id"),WSt=Buffer.from("retry"),jSt=1024,JSt=131072,YSt=128;function KSt(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(KSt,"isASCIINumberBytes");function XSt(t,e){for(let r=e;r<t.length;r++)if(t[r]===0)return!1;return!0}i(XSt,"isValidLastEventIdBytes");function jP(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(jP,"isFieldName");function JP(){let t=new Error("EventSource message size exceeded");return t.aborted=!1,t}i(JP,"createMaxEventSizeExceededError");var tW=class extends MSt{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??HSt;let r=this.maxEventSize>0?Math.min(JSt,Math.max(jSt,Math.floor(this.maxEventSize/YSt))):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]!==WP&&e[0]!==eb){n(JP());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===WP){this.crlfCheck=!1,this.consumeCurrentByte();continue}this.crlfCheck=!1}if(s===WP||s===eb){s===eb&&(this.crlfCheck=!0),this.consumeCurrentByte(),this.hasPendingEvent()&&this.processEvent(this.event),this.clearEvent();continue}this.eventEndCheck=!1;continue}if(s===WP||s===eb){s===eb&&(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(JP());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($St);if(n===0)return;let s=e.length,o=e.length;if(n!==-1&&(s=n,o=n+1,e[o]===qSt&&++o),jP(e,s,GSt)){if(this.maxEventSize>0&&this.dataLineCount>=this.maxDataLines)throw JP();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(jP(e,s,WSt)){KSt(e,o)&&(this.setEventFieldSize("retry",e.length-o),r.retry=e.toString("utf8",o));return}if(jP(e,s,VSt)){XSt(e,o)&&(this.setEventFieldSize("id",e.length-o),r.id=e.toString("utf8",o));return}jP(e,s,zSt)&&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 JP();this.eventSize=n,this.eventFieldSizes[e]=r}processEvent(e){e.retry&&FSt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&USt(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===Uy[0]||(this.checkBOM=!1),!0):n===void 0?e===Uy[0]&&r===Uy[1]?!0:(this.checkBOM=!1,!1):(e===Uy[0]&&r===Uy[1]&&n===Uy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};HEe.exports={EventSourceStream:tW}});var XEe=w((eCr,KEe)=>{"use strict";var{pipeline:ZSt}=require("node:stream"),{fetching:ewt}=Ux(),{makeRequest:twt}=Ty(),{webidl:rd}=Fn(),{EventSourceStream:rwt}=GEe(),{parseMIMEType:nwt}=Ks(),{createFastMessageEvent:swt}=ky(),{isNetworkError:zEe}=Mx(),{delay:owt}=eW(),{kEnumerableProperty:hh}=Ye(),{environmentSettingsObject:VEe}=Ho(),{getGlobalDispatcher:iwt}=kx(),WEe=!1,jEe=3e3,tb=0,JEe=1,rb=2,awt="anonymous",cwt="use-credentials",$y=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=tb;#s=null;#o=null;#i;#a;constructor(e,r={}){super(),rd.util.markAsUncloneable(this);let n="EventSource constructor";rd.argumentLengthCheck(arguments,1,n),WEe||(WEe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=rd.converters.USVString(e,n,"url"),r=rd.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#i=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:jEe};let s=VEe,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=awt;r.withCredentials&&(a=cwt,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=VEe.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=twt(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===rb)return;this.#r=tb;let e={request:this.#s,dispatcher:this.#i},r=i(n=>{zEe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(zEe(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?nwt(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=JEe,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new rwt({eventSourceSettings:this.#a,maxEventSize:this.#i.eventSourceOptions?.maxEventSize,push:i(l=>{this.dispatchEvent(swt(l.type,l.options))},"push")});ZSt(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#o=ewt(e)}async#c(){this.#r!==rb&&(this.#r=tb,this.dispatchEvent(new Event("error")),await owt(this.#a.reconnectionTime),this.#r===tb&&(this.#a.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#a.lastEventId,!0),this.#l()))}close(){rd.brandCheck(this,t),this.#r!==rb&&(this.#r=rb,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}},YEe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:tb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:JEe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:rb,writable:!1}};Object.defineProperties($y,YEe);Object.defineProperties($y.prototype,YEe);Object.defineProperties($y.prototype,{close:hh,onerror:hh,onmessage:hh,onopen:hh,readyState:hh,url:hh,withCredentials:hh});rd.converters.EventSourceInitDict=rd.dictionaryConverter([{key:"withCredentials",converter:rd.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:rd.converters.any,defaultValue:i(()=>iwt(),"defaultValue")}]);KEe.exports={EventSource:$y,defaultReconnectionTime:jEe}});var Ah=w((rCr,Ee)=>{"use strict";var lwt=hy(),ZEe=nx(),uwt=Ay(),dwt=Zme(),pwt=gy(),fwt=S4(),mwt=whe(),hwt=_he(),eCe=pt(),KP=Ye(),{InvalidArgumentError:YP}=eCe,qy=AAe(),Awt=ox(),gwt=n8(),ywt=XAe(),Ewt=i8(),Cwt=G4(),Iwt=X_(),{getGlobalDispatcher:tCe,setGlobalDispatcher:Swt}=kx(),wwt=cP(),xwt=$_(),bwt=q_();Object.assign(ZEe.prototype,qy);Ee.exports.Dispatcher=ZEe;Ee.exports.Client=lwt;Ee.exports.Pool=uwt;Ee.exports.BalancedPool=dwt;Ee.exports.Agent=pwt;Ee.exports.ProxyAgent=fwt;Ee.exports.EnvHttpProxyAgent=mwt;Ee.exports.RetryAgent=hwt;Ee.exports.RetryHandler=Iwt;Ee.exports.DecoratorHandler=wwt;Ee.exports.RedirectHandler=xwt;Ee.exports.createRedirectInterceptor=bwt;Ee.exports.interceptors={redirect:oge(),retry:age(),dump:lge(),dns:pge()};Ee.exports.buildConnector=Awt;Ee.exports.errors=eCe;Ee.exports.util={parseHeaders:KP.parseHeaders,headerNameToString:KP.headerNameToString};function nb(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 YP("invalid url");if(r!=null&&typeof r!="object")throw new YP("invalid opts");if(r&&r.path!=null){if(typeof r.path!="string")throw new YP("invalid opts.path");let a=r.path;r.path.startsWith("/")||(a=`/${a}`),e=new URL(KP.parseOrigin(e).origin+a)}else r||(r=typeof e=="object"?e:{}),e=KP.parseURL(e);let{agent:s,dispatcher:o=tCe()}=r;if(s)throw new YP("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(nb,"makeDispatcher");Ee.exports.setGlobalDispatcher=Swt;Ee.exports.getGlobalDispatcher=tCe;var Bwt=Ux().fetch;Ee.exports.fetch=i(async function(e,r=void 0){try{return await Bwt(e,r)}catch(n){throw n&&typeof n=="object"&&Error.captureStackTrace(n),n}},"fetch");Ee.exports.Headers=ch().Headers;Ee.exports.Response=Mx().Response;Ee.exports.Request=Ty().Request;Ee.exports.FormData=px().FormData;Ee.exports.File=globalThis.File??require("node:buffer").File;Ee.exports.FileReader=Nye().FileReader;var{setGlobalOrigin:Rwt,getGlobalOrigin:Nwt}=IV();Ee.exports.setGlobalOrigin=Rwt;Ee.exports.getGlobalOrigin=Nwt;var{CacheStorage:Twt}=Lye(),{kConstruct:_wt}=TP();Ee.exports.caches=new Twt(_wt);var{deleteCookie:Pwt,getCookies:vwt,getSetCookies:Qwt,setCookie:Dwt}=jye();Ee.exports.deleteCookie=Pwt;Ee.exports.getCookies=vwt;Ee.exports.getSetCookies=Qwt;Ee.exports.setCookie=Dwt;var{parseMIMEType:kwt,serializeAMimeType:Owt}=Ks();Ee.exports.parseMIMEType=kwt;Ee.exports.serializeAMimeType=Owt;var{CloseEvent:Lwt,ErrorEvent:Mwt,MessageEvent:Fwt}=ky();Ee.exports.WebSocket=$Ee().WebSocket;Ee.exports.CloseEvent=Lwt;Ee.exports.ErrorEvent=Mwt;Ee.exports.MessageEvent=Fwt;Ee.exports.request=nb(qy.request);Ee.exports.stream=nb(qy.stream);Ee.exports.pipeline=nb(qy.pipeline);Ee.exports.connect=nb(qy.connect);Ee.exports.upgrade=nb(qy.upgrade);Ee.exports.MockClient=gwt;Ee.exports.MockPool=Ewt;Ee.exports.MockAgent=ywt;Ee.exports.mockErrors=Cwt;var{EventSource:Uwt}=XEe();Ee.exports.EventSource=Uwt});var hb=w((OIr,MCe)=>{"use strict";var mxt="2.0.0",hxt=Number.MAX_SAFE_INTEGER||9007199254740991,Axt=16,gxt=250,yxt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];MCe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Axt,MAX_SAFE_BUILD_LENGTH:gxt,MAX_SAFE_INTEGER:hxt,RELEASE_TYPES:yxt,SEMVER_SPEC_VERSION:mxt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ab=w((LIr,FCe)=>{"use strict";var Ext=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};FCe.exports=Ext});var Vy=w((jc,UCe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:IW,MAX_SAFE_BUILD_LENGTH:Cxt,MAX_LENGTH:Ixt}=hb(),Sxt=Ab();jc=UCe.exports={};var wxt=jc.re=[],xxt=jc.safeRe=[],H=jc.src=[],bxt=jc.safeSrc=[],G=jc.t={},Bxt=0,SW="[a-zA-Z0-9-]",Rxt=[["\\s",1],["\\d",Ixt],[SW,Cxt]],Nxt=i(t=>{for(let[e,r]of Rxt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),ke=i((t,e,r)=>{let n=Nxt(e),s=Bxt++;Sxt(t,s,e),G[t]=s,H[s]=e,bxt[s]=n,wxt[s]=new RegExp(e,r?"g":void 0),xxt[s]=new RegExp(n,r?"g":void 0)},"createToken");ke("NUMERICIDENTIFIER","0|[1-9]\\d*");ke("NUMERICIDENTIFIERLOOSE","\\d+");ke("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${SW}*`);ke("MAINVERSION",`(${H[G.NUMERICIDENTIFIER]})\\.(${H[G.NUMERICIDENTIFIER]})\\.(${H[G.NUMERICIDENTIFIER]})`);ke("MAINVERSIONLOOSE",`(${H[G.NUMERICIDENTIFIERLOOSE]})\\.(${H[G.NUMERICIDENTIFIERLOOSE]})\\.(${H[G.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASEIDENTIFIER",`(?:${H[G.NONNUMERICIDENTIFIER]}|${H[G.NUMERICIDENTIFIER]})`);ke("PRERELEASEIDENTIFIERLOOSE",`(?:${H[G.NONNUMERICIDENTIFIER]}|${H[G.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASE",`(?:-(${H[G.PRERELEASEIDENTIFIER]}(?:\\.${H[G.PRERELEASEIDENTIFIER]})*))`);ke("PRERELEASELOOSE",`(?:-?(${H[G.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${H[G.PRERELEASEIDENTIFIERLOOSE]})*))`);ke("BUILDIDENTIFIER",`${SW}+`);ke("BUILD",`(?:\\+(${H[G.BUILDIDENTIFIER]}(?:\\.${H[G.BUILDIDENTIFIER]})*))`);ke("FULLPLAIN",`v?${H[G.MAINVERSION]}${H[G.PRERELEASE]}?${H[G.BUILD]}?`);ke("FULL",`^${H[G.FULLPLAIN]}$`);ke("LOOSEPLAIN",`[v=\\s]*${H[G.MAINVERSIONLOOSE]}${H[G.PRERELEASELOOSE]}?${H[G.BUILD]}?`);ke("LOOSE",`^${H[G.LOOSEPLAIN]}$`);ke("GTLT","((?:<|>)?=?)");ke("XRANGEIDENTIFIERLOOSE",`${H[G.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ke("XRANGEIDENTIFIER",`${H[G.NUMERICIDENTIFIER]}|x|X|\\*`);ke("XRANGEPLAIN",`[v=\\s]*(${H[G.XRANGEIDENTIFIER]})(?:\\.(${H[G.XRANGEIDENTIFIER]})(?:\\.(${H[G.XRANGEIDENTIFIER]})(?:${H[G.PRERELEASE]})?${H[G.BUILD]}?)?)?`);ke("XRANGEPLAINLOOSE",`[v=\\s]*(${H[G.XRANGEIDENTIFIERLOOSE]})(?:\\.(${H[G.XRANGEIDENTIFIERLOOSE]})(?:\\.(${H[G.XRANGEIDENTIFIERLOOSE]})(?:${H[G.PRERELEASELOOSE]})?${H[G.BUILD]}?)?)?`);ke("XRANGE",`^${H[G.GTLT]}\\s*${H[G.XRANGEPLAIN]}$`);ke("XRANGELOOSE",`^${H[G.GTLT]}\\s*${H[G.XRANGEPLAINLOOSE]}$`);ke("COERCEPLAIN",`(^|[^\\d])(\\d{1,${IW}})(?:\\.(\\d{1,${IW}}))?(?:\\.(\\d{1,${IW}}))?`);ke("COERCE",`${H[G.COERCEPLAIN]}(?:$|[^\\d])`);ke("COERCEFULL",H[G.COERCEPLAIN]+`(?:${H[G.PRERELEASE]})?(?:${H[G.BUILD]})?(?:$|[^\\d])`);ke("COERCERTL",H[G.COERCE],!0);ke("COERCERTLFULL",H[G.COERCEFULL],!0);ke("LONETILDE","(?:~>?)");ke("TILDETRIM",`(\\s*)${H[G.LONETILDE]}\\s+`,!0);jc.tildeTrimReplace="$1~";ke("TILDE",`^${H[G.LONETILDE]}${H[G.XRANGEPLAIN]}$`);ke("TILDELOOSE",`^${H[G.LONETILDE]}${H[G.XRANGEPLAINLOOSE]}$`);ke("LONECARET","(?:\\^)");ke("CARETTRIM",`(\\s*)${H[G.LONECARET]}\\s+`,!0);jc.caretTrimReplace="$1^";ke("CARET",`^${H[G.LONECARET]}${H[G.XRANGEPLAIN]}$`);ke("CARETLOOSE",`^${H[G.LONECARET]}${H[G.XRANGEPLAINLOOSE]}$`);ke("COMPARATORLOOSE",`^${H[G.GTLT]}\\s*(${H[G.LOOSEPLAIN]})$|^$`);ke("COMPARATOR",`^${H[G.GTLT]}\\s*(${H[G.FULLPLAIN]})$|^$`);ke("COMPARATORTRIM",`(\\s*)${H[G.GTLT]}\\s*(${H[G.LOOSEPLAIN]}|${H[G.XRANGEPLAIN]})`,!0);jc.comparatorTrimReplace="$1$2$3";ke("HYPHENRANGE",`^\\s*(${H[G.XRANGEPLAIN]})\\s+-\\s+(${H[G.XRANGEPLAIN]})\\s*$`);ke("HYPHENRANGELOOSE",`^\\s*(${H[G.XRANGEPLAINLOOSE]})\\s+-\\s+(${H[G.XRANGEPLAINLOOSE]})\\s*$`);ke("STAR","(<|>)?=?\\s*\\*");ke("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ke("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var iv=w((FIr,$Ce)=>{"use strict";var Txt=Object.freeze({loose:!0}),_xt=Object.freeze({}),Pxt=i(t=>t?typeof t!="object"?Txt:t:_xt,"parseOptions");$Ce.exports=Pxt});var wW=w(($Ir,GCe)=>{"use strict";var qCe=/^[0-9]+$/,HCe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=qCe.test(t),n=qCe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),vxt=i((t,e)=>HCe(e,t),"rcompareIdentifiers");GCe.exports={compareIdentifiers:HCe,rcompareIdentifiers:vxt}});var ss=w((HIr,VCe)=>{"use strict";var av=Ab(),{MAX_LENGTH:zCe,MAX_SAFE_INTEGER:cv}=hb(),{safeRe:lv,t:uv}=Vy(),Qxt=iv(),{compareIdentifiers:xW}=wW(),bW=class t{static{i(this,"SemVer")}constructor(e,r){if(r=Qxt(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>zCe)throw new TypeError(`version is longer than ${zCe} characters`);av("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?lv[uv.LOOSE]:lv[uv.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>cv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>cv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>cv||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<cv)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(av("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(av("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 xW(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(av("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 xW(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?lv[uv.PRERELEASELOOSE]:lv[uv.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]),xW(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}};VCe.exports=bW});var Sh=w((zIr,jCe)=>{"use strict";var WCe=ss(),Dxt=i((t,e,r=!1)=>{if(t instanceof WCe)return t;try{return new WCe(t,e)}catch(n){if(!r)return null;throw n}},"parse");jCe.exports=Dxt});var YCe=w((WIr,JCe)=>{"use strict";var kxt=Sh(),Oxt=i((t,e)=>{let r=kxt(t,e);return r?r.version:null},"valid");JCe.exports=Oxt});var XCe=w((JIr,KCe)=>{"use strict";var Lxt=Sh(),Mxt=i((t,e)=>{let r=Lxt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");KCe.exports=Mxt});var tIe=w((KIr,eIe)=>{"use strict";var ZCe=ss(),Fxt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new ZCe(t instanceof ZCe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");eIe.exports=Fxt});var sIe=w((ZIr,nIe)=>{"use strict";var rIe=Sh(),Uxt=i((t,e)=>{let r=rIe(t,null,!0),n=rIe(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");nIe.exports=Uxt});var iIe=w((tSr,oIe)=>{"use strict";var $xt=ss(),qxt=i((t,e)=>new $xt(t,e).major,"major");oIe.exports=qxt});var cIe=w((nSr,aIe)=>{"use strict";var Hxt=ss(),Gxt=i((t,e)=>new Hxt(t,e).minor,"minor");aIe.exports=Gxt});var uIe=w((oSr,lIe)=>{"use strict";var zxt=ss(),Vxt=i((t,e)=>new zxt(t,e).patch,"patch");lIe.exports=Vxt});var pIe=w((aSr,dIe)=>{"use strict";var Wxt=Sh(),jxt=i((t,e)=>{let r=Wxt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");dIe.exports=jxt});var Oi=w((lSr,mIe)=>{"use strict";var fIe=ss(),Jxt=i((t,e,r)=>new fIe(t,r).compare(new fIe(e,r)),"compare");mIe.exports=Jxt});var AIe=w((dSr,hIe)=>{"use strict";var Yxt=Oi(),Kxt=i((t,e,r)=>Yxt(e,t,r),"rcompare");hIe.exports=Kxt});var yIe=w((fSr,gIe)=>{"use strict";var Xxt=Oi(),Zxt=i((t,e)=>Xxt(t,e,!0),"compareLoose");gIe.exports=Zxt});var dv=w((hSr,CIe)=>{"use strict";var EIe=ss(),ebt=i((t,e,r)=>{let n=new EIe(t,r),s=new EIe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");CIe.exports=ebt});var SIe=w((gSr,IIe)=>{"use strict";var tbt=dv(),rbt=i((t,e)=>t.sort((r,n)=>tbt(r,n,e)),"sort");IIe.exports=rbt});var xIe=w((ESr,wIe)=>{"use strict";var nbt=dv(),sbt=i((t,e)=>t.sort((r,n)=>nbt(n,r,e)),"rsort");wIe.exports=sbt});var gb=w((ISr,bIe)=>{"use strict";var obt=Oi(),ibt=i((t,e,r)=>obt(t,e,r)>0,"gt");bIe.exports=ibt});var pv=w((wSr,BIe)=>{"use strict";var abt=Oi(),cbt=i((t,e,r)=>abt(t,e,r)<0,"lt");BIe.exports=cbt});var BW=w((bSr,RIe)=>{"use strict";var lbt=Oi(),ubt=i((t,e,r)=>lbt(t,e,r)===0,"eq");RIe.exports=ubt});var RW=w((RSr,NIe)=>{"use strict";var dbt=Oi(),pbt=i((t,e,r)=>dbt(t,e,r)!==0,"neq");NIe.exports=pbt});var fv=w((TSr,TIe)=>{"use strict";var fbt=Oi(),mbt=i((t,e,r)=>fbt(t,e,r)>=0,"gte");TIe.exports=mbt});var mv=w((PSr,_Ie)=>{"use strict";var hbt=Oi(),Abt=i((t,e,r)=>hbt(t,e,r)<=0,"lte");_Ie.exports=Abt});var NW=w((QSr,PIe)=>{"use strict";var gbt=BW(),ybt=RW(),Ebt=gb(),Cbt=fv(),Ibt=pv(),Sbt=mv(),wbt=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 gbt(t,r,n);case"!=":return ybt(t,r,n);case">":return Ebt(t,r,n);case">=":return Cbt(t,r,n);case"<":return Ibt(t,r,n);case"<=":return Sbt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");PIe.exports=wbt});var QIe=w((kSr,vIe)=>{"use strict";var xbt=ss(),bbt=Sh(),{safeRe:hv,t:Av}=Vy(),Bbt=i((t,e)=>{if(t instanceof xbt)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?hv[Av.COERCEFULL]:hv[Av.COERCE]);else{let l=e.includePrerelease?hv[Av.COERCERTLFULL]:hv[Av.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 bbt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");vIe.exports=Bbt});var kIe=w((LSr,DIe)=>{"use strict";var TW=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}};DIe.exports=TW});var Li=w((FSr,FIe)=>{"use strict";var Rbt=/\s+/g,_W=class t{static{i(this,"Range")}constructor(e,r){if(r=Tbt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof PW)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(Rbt," "),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=>!LIe(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&&Obt(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&&Dbt)|(this.options.loose&&kbt))+":"+e,s=OIe.get(n);if(s)return s;let o=this.options.loose,a=o?Rs[os.HYPHENRANGELOOSE]:Rs[os.HYPHENRANGE];e=e.replace(a,Vbt(this.options.includePrerelease)),Wt("hyphen replace",e),e=e.replace(Rs[os.COMPARATORTRIM],Pbt),Wt("comparator trim",e),e=e.replace(Rs[os.TILDETRIM],vbt),Wt("tilde trim",e),e=e.replace(Rs[os.CARETTRIM],Qbt),Wt("caret trim",e);let c=e.split(" ").map(p=>Lbt(p,this.options)).join(" ").split(/\s+/).map(p=>zbt(p,this.options));o&&(c=c.filter(p=>(Wt("loose invalid filter",p,this.options),!!p.match(Rs[os.COMPARATORLOOSE])))),Wt("range list",c);let l=new Map,u=c.map(p=>new PW(p,this.options));for(let p of u){if(LIe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return OIe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>MIe(n,r)&&e.set.some(s=>MIe(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 _bt(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(Wbt(this.set[r],e,this.options))return!0;return!1}};FIe.exports=_W;var Nbt=kIe(),OIe=new Nbt,Tbt=iv(),PW=yb(),Wt=Ab(),_bt=ss(),{safeRe:Rs,t:os,comparatorTrimReplace:Pbt,tildeTrimReplace:vbt,caretTrimReplace:Qbt}=Vy(),{FLAG_INCLUDE_PRERELEASE:Dbt,FLAG_LOOSE:kbt}=hb(),LIe=i(t=>t.value==="<0.0.0-0","isNullSet"),Obt=i(t=>t.value==="","isAny"),MIe=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"),Lbt=i((t,e)=>(t=t.replace(Rs[os.BUILD],""),Wt("comp",t,e),t=Ubt(t,e),Wt("caret",t),t=Mbt(t,e),Wt("tildes",t),t=qbt(t,e),Wt("xrange",t),t=Gbt(t,e),Wt("stars",t),t),"parseComparator"),Ns=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),Mbt=i((t,e)=>t.trim().split(/\s+/).map(r=>Fbt(r,e)).join(" "),"replaceTildes"),Fbt=i((t,e)=>{let r=e.loose?Rs[os.TILDELOOSE]:Rs[os.TILDE];return t.replace(r,(n,s,o,a,c)=>{Wt("tilde",t,n,s,o,a,c);let l;return Ns(s)?l="":Ns(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:Ns(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(Wt("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,Wt("tilde return",l),l})},"replaceTilde"),Ubt=i((t,e)=>t.trim().split(/\s+/).map(r=>$bt(r,e)).join(" "),"replaceCarets"),$bt=i((t,e)=>{Wt("caret",t,e);let r=e.loose?Rs[os.CARETLOOSE]:Rs[os.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Wt("caret",t,s,o,a,c,l);let u;return Ns(o)?u="":Ns(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Ns(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Wt("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`):(Wt("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`),Wt("caret return",u),u})},"replaceCaret"),qbt=i((t,e)=>(Wt("replaceXRanges",t,e),t.split(/\s+/).map(r=>Hbt(r,e)).join(" ")),"replaceXRanges"),Hbt=i((t,e)=>{t=t.trim();let r=e.loose?Rs[os.XRANGELOOSE]:Rs[os.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{Wt("xRange",t,n,s,o,a,c,l);let u=Ns(o),d=u||Ns(a),p=d||Ns(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`),Wt("xRange return",n),n})},"replaceXRange"),Gbt=i((t,e)=>(Wt("replaceStars",t,e),t.trim().replace(Rs[os.STAR],"")),"replaceStars"),zbt=i((t,e)=>(Wt("replaceGTE0",t,e),t.trim().replace(Rs[e.includePrerelease?os.GTE0PRE:os.GTE0],"")),"replaceGTE0"),Vbt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(Ns(n)?r="":Ns(s)?r=`>=${n}.0.0${t?"-0":""}`:Ns(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,Ns(u)?l="":Ns(d)?l=`<${+u+1}.0.0-0`:Ns(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"),Wbt=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(Wt(t[n].semver),t[n].semver!==PW.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 yb=w(($Sr,zIe)=>{"use strict";var Eb=Symbol("SemVer ANY"),DW=class t{static{i(this,"Comparator")}static get ANY(){return Eb}constructor(e,r){if(r=UIe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),QW("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Eb?this.value="":this.value=this.operator+this.semver.version,QW("comp",this)}parse(e){let r=this.options.loose?$Ie[qIe.COMPARATORLOOSE]:$Ie[qIe.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 HIe(n[2],this.options.loose):this.semver=Eb}toString(){return this.value}test(e){if(QW("Comparator.test",e,this.options.loose),this.semver===Eb||e===Eb)return!0;if(typeof e=="string")try{e=new HIe(e,this.options)}catch{return!1}return vW(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 GIe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new GIe(this.value,r).test(e.semver):(r=UIe(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("=")||vW(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||vW(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};zIe.exports=DW;var UIe=iv(),{safeRe:$Ie,t:qIe}=Vy(),vW=NW(),QW=Ab(),HIe=ss(),GIe=Li()});var Cb=w((HSr,VIe)=>{"use strict";var jbt=Li(),Jbt=i((t,e,r)=>{try{e=new jbt(e,r)}catch{return!1}return e.test(t)},"satisfies");VIe.exports=Jbt});var jIe=w((zSr,WIe)=>{"use strict";var Ybt=Li(),Kbt=i((t,e)=>new Ybt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");WIe.exports=Kbt});var YIe=w((WSr,JIe)=>{"use strict";var Xbt=ss(),Zbt=Li(),e0t=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new Zbt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new Xbt(n,r))}),n},"maxSatisfying");JIe.exports=e0t});var XIe=w((JSr,KIe)=>{"use strict";var t0t=ss(),r0t=Li(),n0t=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new r0t(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new t0t(n,r))}),n},"minSatisfying");KIe.exports=n0t});var tSe=w((KSr,eSe)=>{"use strict";var kW=ss(),s0t=Li(),ZIe=gb(),o0t=i((t,e)=>{t=new s0t(t,e);let r=new kW("0.0.0");if(t.test(r)||(r=new kW("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 kW(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||ZIe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||ZIe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");eSe.exports=o0t});var nSe=w((ZSr,rSe)=>{"use strict";var i0t=Li(),a0t=i((t,e)=>{try{return new i0t(t,e).range||"*"}catch{return null}},"validRange");rSe.exports=a0t});var gv=w((twr,aSe)=>{"use strict";var c0t=ss(),iSe=yb(),{ANY:l0t}=iSe,u0t=Li(),d0t=Cb(),sSe=gb(),oSe=pv(),p0t=mv(),f0t=fv(),m0t=i((t,e,r,n)=>{t=new c0t(t,n),e=new u0t(e,n);let s,o,a,c,l;switch(r){case">":s=sSe,o=p0t,a=oSe,c=">",l=">=";break;case"<":s=oSe,o=f0t,a=sSe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d0t(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===l0t&&(m=new iSe(">=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");aSe.exports=m0t});var lSe=w((nwr,cSe)=>{"use strict";var h0t=gv(),A0t=i((t,e,r)=>h0t(t,e,">",r),"gtr");cSe.exports=A0t});var dSe=w((owr,uSe)=>{"use strict";var g0t=gv(),y0t=i((t,e,r)=>g0t(t,e,"<",r),"ltr");uSe.exports=y0t});var mSe=w((awr,fSe)=>{"use strict";var pSe=Li(),E0t=i((t,e,r)=>(t=new pSe(t,r),e=new pSe(e,r),t.intersects(e,r)),"intersects");fSe.exports=E0t});var ASe=w((lwr,hSe)=>{"use strict";var C0t=Cb(),I0t=Oi();hSe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>I0t(d,p,r));for(let d of a)C0t(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 SSe=w((uwr,ISe)=>{"use strict";var gSe=Li(),LW=yb(),{ANY:OW}=LW,Ib=Cb(),MW=Oi(),S0t=i((t,e,r={})=>{if(t===e)return!0;t=new gSe(t,r),e=new gSe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=x0t(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),w0t=[new LW(">=0.0.0-0")],ySe=[new LW(">=0.0.0")],x0t=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===OW){if(e.length===1&&e[0].semver===OW)return!0;r.includePrerelease?t=w0t:t=ySe}if(e.length===1&&e[0].semver===OW){if(r.includePrerelease)return!0;e=ySe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=ESe(s,m,r):m.operator==="<"||m.operator==="<="?o=CSe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=MW(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&&!Ib(m,String(s),r)||o&&!Ib(m,String(o),r))return null;for(let h of e)if(!Ib(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=ESe(s,m,r),c===m&&c!==s)return!1}else if(s.operator===">="&&!Ib(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=CSe(o,m,r),l===m&&l!==o)return!1}else if(o.operator==="<="&&!Ib(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"),ESe=i((t,e,r)=>{if(!t)return e;let n=MW(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),CSe=i((t,e,r)=>{if(!t)return e;let n=MW(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");ISe.exports=S0t});var UW=w((pwr,bSe)=>{"use strict";var FW=Vy(),wSe=hb(),b0t=ss(),xSe=wW(),B0t=Sh(),R0t=YCe(),N0t=XCe(),T0t=tIe(),_0t=sIe(),P0t=iIe(),v0t=cIe(),Q0t=uIe(),D0t=pIe(),k0t=Oi(),O0t=AIe(),L0t=yIe(),M0t=dv(),F0t=SIe(),U0t=xIe(),$0t=gb(),q0t=pv(),H0t=BW(),G0t=RW(),z0t=fv(),V0t=mv(),W0t=NW(),j0t=QIe(),J0t=yb(),Y0t=Li(),K0t=Cb(),X0t=jIe(),Z0t=YIe(),eBt=XIe(),tBt=tSe(),rBt=nSe(),nBt=gv(),sBt=lSe(),oBt=dSe(),iBt=mSe(),aBt=ASe(),cBt=SSe();bSe.exports={parse:B0t,valid:R0t,clean:N0t,inc:T0t,diff:_0t,major:P0t,minor:v0t,patch:Q0t,prerelease:D0t,compare:k0t,rcompare:O0t,compareLoose:L0t,compareBuild:M0t,sort:F0t,rsort:U0t,gt:$0t,lt:q0t,eq:H0t,neq:G0t,gte:z0t,lte:V0t,cmp:W0t,coerce:j0t,Comparator:J0t,Range:Y0t,satisfies:K0t,toComparators:X0t,maxSatisfying:Z0t,minSatisfying:eBt,minVersion:tBt,validRange:rBt,outside:nBt,gtr:sBt,ltr:oBt,intersects:iBt,simplifyRange:aBt,subset:cBt,SemVer:b0t,re:FW.re,src:FW.src,tokens:FW.t,SEMVER_SPEC_VERSION:wSe.SEMVER_SPEC_VERSION,RELEASE_TYPES:wSe.RELEASE_TYPES,compareIdentifiers:xSe.compareIdentifiers,rcompareIdentifiers:xSe.rcompareIdentifiers}});var Ky=w((wbr,cwe)=>{"use strict";var $Rt="2.0.0",qRt=Number.MAX_SAFE_INTEGER||9007199254740991,HRt=16,GRt=250,zRt=["major","premajor","minor","preminor","patch","prepatch","prerelease"];cwe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:HRt,MAX_SAFE_BUILD_LENGTH:GRt,MAX_SAFE_INTEGER:qRt,RELEASE_TYPES:zRt,SEMVER_SPEC_VERSION:$Rt,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Pb=w((xbr,lwe)=>{"use strict";var VRt=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};lwe.exports=VRt});var Xy=w((Yc,uwe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:sj,MAX_SAFE_BUILD_LENGTH:WRt,MAX_LENGTH:jRt}=Ky(),JRt=Pb();Yc=uwe.exports={};var YRt=Yc.re=[],KRt=Yc.safeRe=[],z=Yc.src=[],XRt=Yc.safeSrc=[],V=Yc.t={},ZRt=0,oj="[a-zA-Z0-9-]",eNt=[["\\s",1],["\\d",jRt],[oj,WRt]],tNt=i(t=>{for(let[e,r]of eNt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Oe=i((t,e,r)=>{let n=tNt(e),s=ZRt++;JRt(t,s,e),V[t]=s,z[s]=e,XRt[s]=n,YRt[s]=new RegExp(e,r?"g":void 0),KRt[s]=new RegExp(n,r?"g":void 0)},"createToken");Oe("NUMERICIDENTIFIER","0|[1-9]\\d*");Oe("NUMERICIDENTIFIERLOOSE","\\d+");Oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${oj}*`);Oe("MAINVERSION",`(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})\\.(${z[V.NUMERICIDENTIFIER]})`);Oe("MAINVERSIONLOOSE",`(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})\\.(${z[V.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASEIDENTIFIER",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIER]})`);Oe("PRERELEASEIDENTIFIERLOOSE",`(?:${z[V.NONNUMERICIDENTIFIER]}|${z[V.NUMERICIDENTIFIERLOOSE]})`);Oe("PRERELEASE",`(?:-(${z[V.PRERELEASEIDENTIFIER]}(?:\\.${z[V.PRERELEASEIDENTIFIER]})*))`);Oe("PRERELEASELOOSE",`(?:-?(${z[V.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${z[V.PRERELEASEIDENTIFIERLOOSE]})*))`);Oe("BUILDIDENTIFIER",`${oj}+`);Oe("BUILD",`(?:\\+(${z[V.BUILDIDENTIFIER]}(?:\\.${z[V.BUILDIDENTIFIER]})*))`);Oe("FULLPLAIN",`v?${z[V.MAINVERSION]}${z[V.PRERELEASE]}?${z[V.BUILD]}?`);Oe("FULL",`^${z[V.FULLPLAIN]}$`);Oe("LOOSEPLAIN",`[v=\\s]*${z[V.MAINVERSIONLOOSE]}${z[V.PRERELEASELOOSE]}?${z[V.BUILD]}?`);Oe("LOOSE",`^${z[V.LOOSEPLAIN]}$`);Oe("GTLT","((?:<|>)?=?)");Oe("XRANGEIDENTIFIERLOOSE",`${z[V.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Oe("XRANGEIDENTIFIER",`${z[V.NUMERICIDENTIFIER]}|x|X|\\*`);Oe("XRANGEPLAIN",`[v=\\s]*(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:\\.(${z[V.XRANGEIDENTIFIER]})(?:${z[V.PRERELEASE]})?${z[V.BUILD]}?)?)?`);Oe("XRANGEPLAINLOOSE",`[v=\\s]*(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:\\.(${z[V.XRANGEIDENTIFIERLOOSE]})(?:${z[V.PRERELEASELOOSE]})?${z[V.BUILD]}?)?)?`);Oe("XRANGE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAIN]}$`);Oe("XRANGELOOSE",`^${z[V.GTLT]}\\s*${z[V.XRANGEPLAINLOOSE]}$`);Oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${sj}})(?:\\.(\\d{1,${sj}}))?(?:\\.(\\d{1,${sj}}))?`);Oe("COERCE",`${z[V.COERCEPLAIN]}(?:$|[^\\d])`);Oe("COERCEFULL",z[V.COERCEPLAIN]+`(?:${z[V.PRERELEASE]})?(?:${z[V.BUILD]})?(?:$|[^\\d])`);Oe("COERCERTL",z[V.COERCE],!0);Oe("COERCERTLFULL",z[V.COERCEFULL],!0);Oe("LONETILDE","(?:~>?)");Oe("TILDETRIM",`(\\s*)${z[V.LONETILDE]}\\s+`,!0);Yc.tildeTrimReplace="$1~";Oe("TILDE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAIN]}$`);Oe("TILDELOOSE",`^${z[V.LONETILDE]}${z[V.XRANGEPLAINLOOSE]}$`);Oe("LONECARET","(?:\\^)");Oe("CARETTRIM",`(\\s*)${z[V.LONECARET]}\\s+`,!0);Yc.caretTrimReplace="$1^";Oe("CARET",`^${z[V.LONECARET]}${z[V.XRANGEPLAIN]}$`);Oe("CARETLOOSE",`^${z[V.LONECARET]}${z[V.XRANGEPLAINLOOSE]}$`);Oe("COMPARATORLOOSE",`^${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]})$|^$`);Oe("COMPARATOR",`^${z[V.GTLT]}\\s*(${z[V.FULLPLAIN]})$|^$`);Oe("COMPARATORTRIM",`(\\s*)${z[V.GTLT]}\\s*(${z[V.LOOSEPLAIN]}|${z[V.XRANGEPLAIN]})`,!0);Yc.comparatorTrimReplace="$1$2$3";Oe("HYPHENRANGE",`^\\s*(${z[V.XRANGEPLAIN]})\\s+-\\s+(${z[V.XRANGEPLAIN]})\\s*$`);Oe("HYPHENRANGELOOSE",`^\\s*(${z[V.XRANGEPLAINLOOSE]})\\s+-\\s+(${z[V.XRANGEPLAINLOOSE]})\\s*$`);Oe("STAR","(<|>)?=?\\s*\\*");Oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var bv=w((Bbr,dwe)=>{"use strict";var rNt=Object.freeze({loose:!0}),nNt=Object.freeze({}),sNt=i(t=>t?typeof t!="object"?rNt:t:nNt,"parseOptions");dwe.exports=sNt});var ij=w((Nbr,mwe)=>{"use strict";var pwe=/^[0-9]+$/,fwe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=pwe.test(t),n=pwe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),oNt=i((t,e)=>fwe(e,t),"rcompareIdentifiers");mwe.exports={compareIdentifiers:fwe,rcompareIdentifiers:oNt}});var Un=w((_br,Awe)=>{"use strict";var Bv=Pb(),{MAX_LENGTH:hwe,MAX_SAFE_INTEGER:Rv}=Ky(),{safeRe:Nv,t:Tv}=Xy(),iNt=bv(),{compareIdentifiers:aj}=ij(),aNt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(aj(t[n],r[n])!==0)return!1;return!0},"isPrereleaseIdentifier"),cj=class t{static{i(this,"SemVer")}constructor(e,r){if(r=iNt(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>hwe)throw new TypeError(`version is longer than ${hwe} characters`);Bv("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?Nv[Tv.LOOSE]:Nv[Tv.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>Rv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Rv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Rv||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<Rv)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(Bv("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(Bv("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 aj(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(Bv("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 aj(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?Nv[Tv.PRERELEASELOOSE]:Nv[Tv.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]),aNt(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}};Awe.exports=cj});var vp=w((vbr,ywe)=>{"use strict";var gwe=Un(),cNt=i((t,e,r=!1)=>{if(t instanceof gwe)return t;try{return new gwe(t,e)}catch(n){if(!r)return null;throw n}},"parse");ywe.exports=cNt});var Cwe=w((Dbr,Ewe)=>{"use strict";var lNt=vp(),uNt=i((t,e)=>{let r=lNt(t,e);return r?r.version:null},"valid");Ewe.exports=uNt});var Swe=w((Obr,Iwe)=>{"use strict";var dNt=vp(),pNt=i((t,e)=>{let r=dNt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");Iwe.exports=pNt});var bwe=w((Mbr,xwe)=>{"use strict";var wwe=Un(),fNt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new wwe(t instanceof wwe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");xwe.exports=fNt});var Nwe=w((Ubr,Rwe)=>{"use strict";var Bwe=vp(),mNt=i((t,e)=>{let r=Bwe(t,null,!0),n=Bwe(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");Rwe.exports=mNt});var _we=w((qbr,Twe)=>{"use strict";var hNt=Un(),ANt=i((t,e)=>new hNt(t,e).major,"major");Twe.exports=ANt});var vwe=w((Gbr,Pwe)=>{"use strict";var gNt=Un(),yNt=i((t,e)=>new gNt(t,e).minor,"minor");Pwe.exports=yNt});var Dwe=w((Vbr,Qwe)=>{"use strict";var ENt=Un(),CNt=i((t,e)=>new ENt(t,e).patch,"patch");Qwe.exports=CNt});var Owe=w((jbr,kwe)=>{"use strict";var INt=vp(),SNt=i((t,e)=>{let r=INt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");kwe.exports=SNt});var $i=w((Ybr,Mwe)=>{"use strict";var Lwe=Un(),wNt=i((t,e,r)=>new Lwe(t,r).compare(new Lwe(e,r)),"compare");Mwe.exports=wNt});var Uwe=w((Xbr,Fwe)=>{"use strict";var xNt=$i(),bNt=i((t,e,r)=>xNt(e,t,r),"rcompare");Fwe.exports=bNt});var qwe=w((e0r,$we)=>{"use strict";var BNt=$i(),RNt=i((t,e)=>BNt(t,e,!0),"compareLoose");$we.exports=RNt});var _v=w((r0r,Gwe)=>{"use strict";var Hwe=Un(),NNt=i((t,e,r)=>{let n=new Hwe(t,r),s=new Hwe(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Gwe.exports=NNt});var Vwe=w((s0r,zwe)=>{"use strict";var TNt=_v(),_Nt=i((t,e)=>t.sort((r,n)=>TNt(r,n,e)),"sort");zwe.exports=_Nt});var jwe=w((i0r,Wwe)=>{"use strict";var PNt=_v(),vNt=i((t,e)=>t.sort((r,n)=>PNt(n,r,e)),"rsort");Wwe.exports=vNt});var vb=w((c0r,Jwe)=>{"use strict";var QNt=$i(),DNt=i((t,e,r)=>QNt(t,e,r)>0,"gt");Jwe.exports=DNt});var Pv=w((u0r,Ywe)=>{"use strict";var kNt=$i(),ONt=i((t,e,r)=>kNt(t,e,r)<0,"lt");Ywe.exports=ONt});var lj=w((p0r,Kwe)=>{"use strict";var LNt=$i(),MNt=i((t,e,r)=>LNt(t,e,r)===0,"eq");Kwe.exports=MNt});var uj=w((m0r,Xwe)=>{"use strict";var FNt=$i(),UNt=i((t,e,r)=>FNt(t,e,r)!==0,"neq");Xwe.exports=UNt});var vv=w((A0r,Zwe)=>{"use strict";var $Nt=$i(),qNt=i((t,e,r)=>$Nt(t,e,r)>=0,"gte");Zwe.exports=qNt});var Qv=w((y0r,exe)=>{"use strict";var HNt=$i(),GNt=i((t,e,r)=>HNt(t,e,r)<=0,"lte");exe.exports=GNt});var dj=w((C0r,txe)=>{"use strict";var zNt=lj(),VNt=uj(),WNt=vb(),jNt=vv(),JNt=Pv(),YNt=Qv(),KNt=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 zNt(t,r,n);case"!=":return VNt(t,r,n);case">":return WNt(t,r,n);case">=":return jNt(t,r,n);case"<":return JNt(t,r,n);case"<=":return YNt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");txe.exports=KNt});var nxe=w((S0r,rxe)=>{"use strict";var XNt=Un(),ZNt=vp(),{safeRe:Dv,t:kv}=Xy(),eTt=i((t,e)=>{if(t instanceof XNt)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?Dv[kv.COERCEFULL]:Dv[kv.COERCE]);else{let l=e.includePrerelease?Dv[kv.COERCERTLFULL]:Dv[kv.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 ZNt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");rxe.exports=eTt});var oxe=w((x0r,sxe)=>{"use strict";var tTt=vp(),rTt=Ky(),nTt=Un(),sTt=i((t,e,r)=>{if(!rTt.RELEASE_TYPES.includes(e))return null;let n=oTt(t,r);return n&&iTt(n,e)},"truncate"),oTt=i((t,e)=>{let r=t instanceof nTt?t.version:t;return tTt(r,e)},"cloneInputVersion"),iTt=i((t,e)=>{if(aTt(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"),aTt=i(t=>t.startsWith("pre"),"isPrerelease");sxe.exports=sTt});var axe=w((B0r,ixe)=>{"use strict";var pj=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}};ixe.exports=pj});var qi=w((N0r,dxe)=>{"use strict";var cTt=/\s+/g,fj=class t{static{i(this,"Range")}constructor(e,r){if(r=uTt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof mj)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(cTt," "),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=>!lxe(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&&ETt(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(yTt,"");let n=((this.options.includePrerelease&&ATt)|(this.options.loose&&gTt))+":"+e,s=cxe.get(n);if(s)return s;let o=this.options.loose,a=o?_s[$n.HYPHENRANGELOOSE]:_s[$n.HYPHENRANGE];e=e.replace(a,_Tt(this.options.includePrerelease)),jt("hyphen replace",e),e=e.replace(_s[$n.COMPARATORTRIM],fTt),jt("comparator trim",e),e=e.replace(_s[$n.TILDETRIM],mTt),jt("tilde trim",e),e=e.replace(_s[$n.CARETTRIM],hTt),jt("caret trim",e);let c=e.split(" ").map(p=>CTt(p,this.options)).join(" ").split(/\s+/).map(p=>TTt(p,this.options));o&&(c=c.filter(p=>(jt("loose invalid filter",p,this.options),!!p.match(_s[$n.COMPARATORLOOSE])))),jt("range list",c);let l=new Map,u=c.map(p=>new mj(p,this.options));for(let p of u){if(lxe(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return cxe.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>uxe(n,r)&&e.set.some(s=>uxe(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 dTt(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(PTt(this.set[r],e,this.options))return!0;return!1}};dxe.exports=fj;var lTt=axe(),cxe=new lTt,uTt=bv(),mj=Qb(),jt=Pb(),dTt=Un(),{safeRe:_s,src:pTt,t:$n,comparatorTrimReplace:fTt,tildeTrimReplace:mTt,caretTrimReplace:hTt}=Xy(),{FLAG_INCLUDE_PRERELEASE:ATt,FLAG_LOOSE:gTt}=Ky(),yTt=new RegExp(pTt[$n.BUILD],"g"),lxe=i(t=>t.value==="<0.0.0-0","isNullSet"),ETt=i(t=>t.value==="","isAny"),uxe=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"),CTt=i((t,e)=>(t=t.replace(_s[$n.BUILD],""),jt("comp",t,e),t=xTt(t,e),jt("caret",t),t=STt(t,e),jt("tildes",t),t=BTt(t,e),jt("xrange",t),t=NTt(t,e),jt("stars",t),t),"parseComparator"),tn=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),ITt=i((t,e,r)=>tn(t)&&!tn(e)||tn(e)&&r&&!tn(r),"invalidXRangeOrder"),STt=i((t,e)=>t.trim().split(/\s+/).map(r=>wTt(r,e)).join(" "),"replaceTildes"),wTt=i((t,e)=>{let r=e.loose?_s[$n.TILDELOOSE]:_s[$n.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{jt("tilde",t,s,o,a,c,l);let u;return tn(o)?u="":tn(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:tn(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(jt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,jt("tilde return",u),u})},"replaceTilde"),xTt=i((t,e)=>t.trim().split(/\s+/).map(r=>bTt(r,e)).join(" "),"replaceCarets"),bTt=i((t,e)=>{jt("caret",t,e);let r=e.loose?_s[$n.CARETLOOSE]:_s[$n.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{jt("caret",t,s,o,a,c,l);let u;return tn(o)?u="":tn(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:tn(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(jt("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`):(jt("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`),jt("caret return",u),u})},"replaceCaret"),BTt=i((t,e)=>(jt("replaceXRanges",t,e),t.split(/\s+/).map(r=>RTt(r,e)).join(" ")),"replaceXRanges"),RTt=i((t,e)=>{t=t.trim();let r=e.loose?_s[$n.XRANGELOOSE]:_s[$n.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(jt("xRange",t,n,s,o,a,c,l),ITt(o,a,c))return t;let u=tn(o),d=u||tn(a),p=d||tn(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`),jt("xRange return",n),n})},"replaceXRange"),NTt=i((t,e)=>(jt("replaceStars",t,e),t.trim().replace(_s[$n.STAR],"")),"replaceStars"),TTt=i((t,e)=>(jt("replaceGTE0",t,e),t.trim().replace(_s[e.includePrerelease?$n.GTE0PRE:$n.GTE0],"")),"replaceGTE0"),_Tt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(tn(n)?r="":tn(s)?r=`>=${n}.0.0${t?"-0":""}`:tn(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,tn(u)?l="":tn(d)?l=`<${+u+1}.0.0-0`:tn(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"),PTt=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(jt(t[n].semver),t[n].semver!==mj.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 Qb=w((_0r,gxe)=>{"use strict";var Db=Symbol("SemVer ANY"),gj=class t{static{i(this,"Comparator")}static get ANY(){return Db}constructor(e,r){if(r=pxe(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Aj("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===Db?this.value="":this.value=this.operator+this.semver.version,Aj("comp",this)}parse(e){let r=this.options.loose?fxe[mxe.COMPARATORLOOSE]:fxe[mxe.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 hxe(n[2],this.options.loose):this.semver=Db}toString(){return this.value}test(e){if(Aj("Comparator.test",e,this.options.loose),this.semver===Db||e===Db)return!0;if(typeof e=="string")try{e=new hxe(e,this.options)}catch{return!1}return hj(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 Axe(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new Axe(this.value,r).test(e.semver):(r=pxe(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("=")||hj(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||hj(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};gxe.exports=gj;var pxe=bv(),{safeRe:fxe,t:mxe}=Xy(),hj=dj(),Aj=Pb(),hxe=Un(),Axe=qi()});var kb=w((v0r,yxe)=>{"use strict";var vTt=qi(),QTt=i((t,e,r)=>{try{e=new vTt(e,r)}catch{return!1}return e.test(t)},"satisfies");yxe.exports=QTt});var Cxe=w((D0r,Exe)=>{"use strict";var DTt=qi(),kTt=i((t,e)=>new DTt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");Exe.exports=kTt});var Sxe=w((O0r,Ixe)=>{"use strict";var OTt=Un(),LTt=qi(),MTt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new LTt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new OTt(n,r))}),n},"maxSatisfying");Ixe.exports=MTt});var xxe=w((M0r,wxe)=>{"use strict";var FTt=Un(),UTt=qi(),$Tt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new UTt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new FTt(n,r))}),n},"minSatisfying");wxe.exports=$Tt});var Rxe=w((U0r,Bxe)=>{"use strict";var yj=Un(),qTt=qi(),bxe=vb(),HTt=i((t,e)=>{t=new qTt(t,e);let r=new yj("0.0.0");if(t.test(r)||(r=new yj("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 yj(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||bxe(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||bxe(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Bxe.exports=HTt});var Txe=w((q0r,Nxe)=>{"use strict";var GTt=qi(),zTt=i((t,e)=>{try{return new GTt(t,e).range||"*"}catch{return null}},"validRange");Nxe.exports=zTt});var Ov=w((G0r,Qxe)=>{"use strict";var VTt=Un(),vxe=Qb(),{ANY:WTt}=vxe,jTt=qi(),JTt=kb(),_xe=vb(),Pxe=Pv(),YTt=Qv(),KTt=vv(),XTt=i((t,e,r,n)=>{t=new VTt(t,n),e=new jTt(e,n);let s,o,a,c,l;switch(r){case">":s=_xe,o=YTt,a=Pxe,c=">",l=">=";break;case"<":s=Pxe,o=KTt,a=_xe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(JTt(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===WTt&&(m=new vxe(">=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");Qxe.exports=XTt});var kxe=w((V0r,Dxe)=>{"use strict";var ZTt=Ov(),e_t=i((t,e,r)=>ZTt(t,e,">",r),"gtr");Dxe.exports=e_t});var Lxe=w((j0r,Oxe)=>{"use strict";var t_t=Ov(),r_t=i((t,e,r)=>t_t(t,e,"<",r),"ltr");Oxe.exports=r_t});var Uxe=w((Y0r,Fxe)=>{"use strict";var Mxe=qi(),n_t=i((t,e,r)=>(t=new Mxe(t,r),e=new Mxe(e,r),t.intersects(e,r)),"intersects");Fxe.exports=n_t});var qxe=w((X0r,$xe)=>{"use strict";var s_t=kb(),o_t=$i();$xe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>o_t(d,p,r));for(let d of a)s_t(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 jxe=w((Z0r,Wxe)=>{"use strict";var Hxe=qi(),Ij=Qb(),{ANY:Ej}=Ij,Cj=kb(),Sj=$i(),i_t=i((t,e,r={})=>{if(t===e)return!0;t=new Hxe(t,r),e=new Hxe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=c_t(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),a_t=[new Ij(">=0.0.0-0")],Gxe=[new Ij(">=0.0.0")],c_t=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Ej){if(e.length===1&&e[0].semver===Ej)return!0;r.includePrerelease?t=a_t:t=Gxe}if(e.length===1&&e[0].semver===Ej){if(r.includePrerelease)return!0;e=Gxe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=zxe(s,m,r):m.operator==="<"||m.operator==="<="?o=Vxe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Sj(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&&!Cj(m,String(s),r)||o&&!Cj(m,String(o),r))return null;for(let h of e)if(!Cj(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=zxe(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=Vxe(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"),zxe=i((t,e,r)=>{if(!t)return e;let n=Sj(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),Vxe=i((t,e,r)=>{if(!t)return e;let n=Sj(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");Wxe.exports=i_t});var Xxe=w((tBr,Kxe)=>{"use strict";var wj=Xy(),Jxe=Ky(),l_t=Un(),Yxe=ij(),u_t=vp(),d_t=Cwe(),p_t=Swe(),f_t=bwe(),m_t=Nwe(),h_t=_we(),A_t=vwe(),g_t=Dwe(),y_t=Owe(),E_t=$i(),C_t=Uwe(),I_t=qwe(),S_t=_v(),w_t=Vwe(),x_t=jwe(),b_t=vb(),B_t=Pv(),R_t=lj(),N_t=uj(),T_t=vv(),__t=Qv(),P_t=dj(),v_t=nxe(),Q_t=oxe(),D_t=Qb(),k_t=qi(),O_t=kb(),L_t=Cxe(),M_t=Sxe(),F_t=xxe(),U_t=Rxe(),$_t=Txe(),q_t=Ov(),H_t=kxe(),G_t=Lxe(),z_t=Uxe(),V_t=qxe(),W_t=jxe();Kxe.exports={parse:u_t,valid:d_t,clean:p_t,inc:f_t,diff:m_t,major:h_t,minor:A_t,patch:g_t,prerelease:y_t,compare:E_t,rcompare:C_t,compareLoose:I_t,compareBuild:S_t,sort:w_t,rsort:x_t,gt:b_t,lt:B_t,eq:R_t,neq:N_t,gte:T_t,lte:__t,cmp:P_t,coerce:v_t,truncate:Q_t,Comparator:D_t,Range:k_t,satisfies:O_t,toComparators:L_t,maxSatisfying:M_t,minSatisfying:F_t,minVersion:U_t,validRange:$_t,outside:q_t,gtr:H_t,ltr:G_t,intersects:z_t,simplifyRange:V_t,subset:W_t,SemVer:l_t,re:wj.re,src:wj.src,tokens:wj.t,SEMVER_SPEC_VERSION:Jxe.SEMVER_SPEC_VERSION,RELEASE_TYPES:Jxe.RELEASE_TYPES,compareIdentifiers:Yxe.compareIdentifiers,rcompareIdentifiers:Yxe.rcompareIdentifiers}});var $be=w((oNr,Ube)=>{var oE=1e3,iE=oE*60,aE=iE*60,Qh=aE*24,TPt=Qh*7,_Pt=Qh*365.25;Ube.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return PPt(t);if(r==="number"&&isFinite(t))return e.long?QPt(t):vPt(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function PPt(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*_Pt;case"weeks":case"week":case"w":return r*TPt;case"days":case"day":case"d":return r*Qh;case"hours":case"hour":case"hrs":case"hr":case"h":return r*aE;case"minutes":case"minute":case"mins":case"min":case"m":return r*iE;case"seconds":case"second":case"secs":case"sec":case"s":return r*oE;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(PPt,"parse");function vPt(t){var e=Math.abs(t);return e>=Qh?Math.round(t/Qh)+"d":e>=aE?Math.round(t/aE)+"h":e>=iE?Math.round(t/iE)+"m":e>=oE?Math.round(t/oE)+"s":t+"ms"}i(vPt,"fmtShort");function QPt(t){var e=Math.abs(t);return e>=Qh?cQ(t,e,Qh,"day"):e>=aE?cQ(t,e,aE,"hour"):e>=iE?cQ(t,e,iE,"minute"):e>=oE?cQ(t,e,oE,"second"):t+" ms"}i(QPt,"fmtLong");function cQ(t,e,r,n){var s=e>=r*1.5;return Math.round(t/r)+" "+n+(s?"s":"")}i(cQ,"plural")});var jj=w((aNr,qbe)=>{function DPt(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=s,r.enabled=a,r.humanize=$be(),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 g(...y){if(!g.enabled)return;let E=g,C=Number(new Date),S=C-(p||C);E.diff=S,E.prev=p,E.curr=C,p=C,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(_==="%%")return"%";b++;let J=r.formatters[v];if(typeof J=="function"){let Pe=y[b];_=J.call(E,Pe),y.splice(b,1),b--}return _}),r.formatArgs.call(E,y),(E.log||r.log).apply(E,y)}return i(g,"debug"),g.namespace=d,g.useColors=r.useColors(),g.color=r.selectColor(d),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"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(g),g}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(DPt,"setup");qbe.exports=DPt});var Hbe=w((ni,lQ)=>{ni.formatArgs=OPt;ni.save=LPt;ni.load=MPt;ni.useColors=kPt;ni.storage=FPt();ni.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`."))}})();ni.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 kPt(){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(kPt,"useColors");function OPt(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+lQ.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(OPt,"formatArgs");ni.log=console.debug||console.log||(()=>{});function LPt(t){try{t?ni.storage.setItem("debug",t):ni.storage.removeItem("debug")}catch{}}i(LPt,"save");function MPt(){let t;try{t=ni.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}i(MPt,"load");function FPt(){try{return localStorage}catch{}}i(FPt,"localstorage");lQ.exports=jj()(ni);var{formatters:UPt}=lQ.exports;UPt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var zbe=w((uNr,Gbe)=>{"use strict";Gbe.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 jbe=w((dNr,Wbe)=>{"use strict";var $Pt=require("os"),Vbe=require("tty"),Gi=zbe(),{env:Cn}=process,kp;Gi("no-color")||Gi("no-colors")||Gi("color=false")||Gi("color=never")?kp=0:(Gi("color")||Gi("colors")||Gi("color=true")||Gi("color=always"))&&(kp=1);"FORCE_COLOR"in Cn&&(Cn.FORCE_COLOR==="true"?kp=1:Cn.FORCE_COLOR==="false"?kp=0:kp=Cn.FORCE_COLOR.length===0?1:Math.min(parseInt(Cn.FORCE_COLOR,10),3));function Jj(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}i(Jj,"translateLevel");function Yj(t,e){if(kp===0)return 0;if(Gi("color=16m")||Gi("color=full")||Gi("color=truecolor"))return 3;if(Gi("color=256"))return 2;if(t&&!e&&kp===void 0)return 0;let r=kp||0;if(Cn.TERM==="dumb")return r;if(process.platform==="win32"){let n=$Pt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Cn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Cn)||Cn.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Cn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Cn.TEAMCITY_VERSION)?1:0;if(Cn.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Cn){let n=parseInt((Cn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Cn.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Cn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Cn.TERM)||"COLORTERM"in Cn?1:r}i(Yj,"supportsColor");function qPt(t){let e=Yj(t,t&&t.isTTY);return Jj(e)}i(qPt,"getSupportLevel");Wbe.exports={supportsColor:qPt,stdout:Jj(Yj(!0,Vbe.isatty(1))),stderr:Jj(Yj(!0,Vbe.isatty(2)))}});var Ybe=w((qn,dQ)=>{var HPt=require("tty"),uQ=require("util");qn.init=YPt;qn.log=WPt;qn.formatArgs=zPt;qn.save=jPt;qn.load=JPt;qn.useColors=GPt;qn.destroy=uQ.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");qn.colors=[6,2,3,4,5,1];try{let t=jbe();t&&(t.stderr||t).level>=2&&(qn.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{}qn.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 GPt(){return"colors"in qn.inspectOpts?!!qn.inspectOpts.colors:HPt.isatty(process.stderr.fd)}i(GPt,"useColors");function zPt(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+"+dQ.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=VPt()+e+" "+t[0]}i(zPt,"formatArgs");function VPt(){return qn.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(VPt,"getDate");function WPt(...t){return process.stderr.write(uQ.format(...t)+`
`)}i(WPt,"log");function jPt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(jPt,"save");function JPt(){return process.env.DEBUG}i(JPt,"load");function YPt(t){t.inspectOpts={};let e=Object.keys(qn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=qn.inspectOpts[e[r]]}i(YPt,"init");dQ.exports=jj()(qn);var{formatters:Jbe}=dQ.exports;Jbe.o=function(t){return this.inspectOpts.colors=this.useColors,uQ.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Jbe.O=function(t){return this.inspectOpts.colors=this.useColors,uQ.inspect(t,this.inspectOpts)}});var Dh=w((mNr,Kj)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Kj.exports=Hbe():Kj.exports=Ybe()});var Zbe=w(ao=>{"use strict";var KPt=ao&&ao.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get: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]})),XPt=ao&&ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kbe=ao&&ao.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&KPt(e,t,r);return XPt(e,t),e};Object.defineProperty(ao,"__esModule",{value:!0});ao.req=ao.json=ao.toBuffer=void 0;var ZPt=Kbe(require("http")),evt=Kbe(require("https"));async function Xbe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Xbe,"toBuffer");ao.toBuffer=Xbe;async function tvt(t){let r=(await Xbe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(tvt,"json");ao.json=tvt;function rvt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?evt:ZPt).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(rvt,"req");ao.req=rvt});var n0e=w(si=>{"use strict";var t0e=si&&si.__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]})),nvt=si&&si.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),r0e=si&&si.__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)&&t0e(e,t,r);return nvt(e,t),e},svt=si&&si.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&t0e(e,t,r)};Object.defineProperty(si,"__esModule",{value:!0});si.Agent=void 0;var ovt=r0e(require("net")),e0e=r0e(require("http")),ivt=require("https");svt(Zbe(),si);var el=Symbol("AgentBaseInternalState"),Xj=class extends e0e.Agent{static{i(this,"Agent")}constructor(e){super(e),this[el]={}}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 ovt.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))?ivt.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 e0e.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[el].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[el].currentSocket;if(this[el].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[el].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[el]&&(this[el].defaultPort=e)}get protocol(){return this[el].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[el]&&(this[el].protocol=e)}};si.Agent=Xj});var s0e=w(cE=>{"use strict";var avt=cE&&cE.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cE,"__esModule",{value:!0});cE.parseProxyResponse=void 0;var cvt=avt(Dh()),pQ=(0,cvt.default)("https-proxy-agent:parse-proxy-response");function lvt(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(),pQ("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),pQ("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){pQ("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 g=h.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let S of m){if(!S)continue;let b=S.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${S}"`));let N=S.slice(0,b).toLowerCase(),_=S.slice(b+1).trimStart(),v=C[N];typeof v=="string"?C[N]=[v,_]:Array.isArray(v)?v.push(_):C[N]=_}pQ("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(lvt,"parseProxyResponse");cE.parseProxyResponse=lvt});var u0e=w(zi=>{"use strict";var uvt=zi&&zi.__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]})),dvt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),c0e=zi&&zi.__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)&&uvt(e,t,r);return dvt(e,t),e},l0e=zi&&zi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zi,"__esModule",{value:!0});zi.HttpsProxyAgent=void 0;var fQ=c0e(require("net")),o0e=c0e(require("tls")),pvt=l0e(require("assert")),fvt=l0e(Dh()),mvt=n0e(),hvt=require("url"),Avt=s0e(),zb=(0,fvt.default)("https-proxy-agent"),i0e=i(t=>t.servername===void 0&&t.host&&!fQ.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),mQ=class extends mvt.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new hvt.URL(e):e,this.proxyHeaders=r?.headers??{},zb("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?a0e(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:"?(zb("Creating `tls.Socket`: %o",this.connectOpts),s=o0e.connect(i0e(this.connectOpts))):(zb("Creating `net.Socket`: %o",this.connectOpts),s=fQ.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=fQ.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,Avt.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",gvt),r.secureEndpoint?(zb("Upgrading socket connection to TLS"),o0e.connect({...a0e(i0e(r),"host","path","port"),socket:s})):s;s.destroy();let p=new fQ.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{zb("Replaying proxy buffer for failed request"),(0,pvt.default)(f.listenerCount("data")>0),f.push(d),f.push(null)}),p}};mQ.protocols=["http","https"];zi.HttpsProxyAgent=mQ;function gvt(t){t.resume()}i(gvt,"resume");function a0e(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(a0e,"omit")});var f0e=w(co=>{"use strict";var yvt=co&&co.__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]})),Evt=co&&co.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),d0e=co&&co.__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)&&yvt(e,t,r);return Evt(e,t),e};Object.defineProperty(co,"__esModule",{value:!0});co.req=co.json=co.toBuffer=void 0;var Cvt=d0e(require("http")),Ivt=d0e(require("https"));async function p0e(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(p0e,"toBuffer");co.toBuffer=p0e;async function Svt(t){let r=(await p0e(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}i(Svt,"json");co.json=Svt;function wvt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Ivt:Cvt).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(wvt,"req");co.req=wvt});var A0e=w(oi=>{"use strict";var h0e=oi&&oi.__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]})),xvt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bvt=oi&&oi.__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)&&h0e(e,t,r);return xvt(e,t),e},Bvt=oi&&oi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&h0e(e,t,r)};Object.defineProperty(oi,"__esModule",{value:!0});oi.Agent=void 0;var m0e=bvt(require("http"));Bvt(f0e(),oi);var tl=Symbol("AgentBaseInternalState"),Zj=class extends m0e.Agent{static{i(this,"Agent")}constructor(e){super(e),this[tl]={}}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 m0e.Agent)return o.addRequest(e,s);this[tl].currentSocket=o,super.createSocket(e,r,n)},n)}createConnection(){let e=this[tl].currentSocket;if(this[tl].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[tl].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[tl]&&(this[tl].defaultPort=e)}get protocol(){return this[tl].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[tl]&&(this[tl].protocol=e)}};oi.Agent=Zj});var E0e=w(Vi=>{"use strict";var Rvt=Vi&&Vi.__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]})),Nvt=Vi&&Vi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),y0e=Vi&&Vi.__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)&&Rvt(e,t,r);return Nvt(e,t),e},Tvt=Vi&&Vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.HttpProxyAgent=void 0;var _vt=y0e(require("net")),Pvt=y0e(require("tls")),vvt=Tvt(Dh()),Qvt=require("events"),Dvt=A0e(),g0e=require("url"),lE=(0,vvt.default)("http-proxy-agent"),hQ=class extends Dvt.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new g0e.URL(e):e,this.proxyHeaders=r?.headers??{},lE("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?kvt(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 g0e.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;lE("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(lE("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),lE("Output buffer: %o",e.outputData[0].data));let o;return this.proxy.protocol==="https:"?(lE("Creating `tls.Socket`: %o",this.connectOpts),o=Pvt.connect(this.connectOpts)):(lE("Creating `net.Socket`: %o",this.connectOpts),o=_vt.connect(this.connectOpts)),await(0,Qvt.once)(o,"connect"),o}};hQ.protocols=["http","https"];Vi.HttpProxyAgent=hQ;function kvt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(kvt,"omit")});var $0e=w(TQ=>{"use strict";Object.defineProperty(TQ,"__esModule",{value:!0});TQ.state=void 0;TQ.state={instrumenterImplementation:void 0}});var sBe=w(DQ=>{"use strict";Object.defineProperty(DQ,"__esModule",{value:!0});DQ.state=void 0;DQ.state={operationRequestMap:new WeakMap}});var ONe=w(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});var tMt=require("os"),rMt=require("util");function nMt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(nMt,"_interopDefaultLegacy");var sMt=nMt(rMt);function oMt(t,...e){process.stderr.write(`${sMt.default.format(t,...e)}${tMt.EOL}`)}i(oMt,"log");var BNe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,NNe,P9=[],v9=[],ZD=[];BNe&&Q9(BNe);var TNe=Object.assign(t=>_Ne(t),{enable:Q9,enabled:D9,disable:iMt,log:oMt});function Q9(t){NNe=t,P9=[],v9=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?v9.push(new RegExp(`^${n.substr(1)}$`)):P9.push(new RegExp(`^${n}$`));for(let n of ZD)n.enabled=D9(n.namespace)}i(Q9,"enable");function D9(t){if(t.endsWith("*"))return!0;for(let e of v9)if(e.test(t))return!1;for(let e of P9)if(e.test(t))return!0;return!1}i(D9,"enabled");function iMt(){let t=NNe||"";return Q9(""),t}i(iMt,"disable");function _Ne(t){let e=Object.assign(r,{enabled:D9(t),destroy:aMt,log:TNe.log,namespace:t,extend:cMt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),ZD.push(e),e}i(_Ne,"createDebugger");function aMt(){let t=ZD.indexOf(this);return t>=0?(ZD.splice(t,1),!0):!1}i(aMt,"destroy");function cMt(t){let e=_Ne(`${this.namespace}:${t}`);return e.log=this.log,e}i(cMt,"extend");var v0=TNe,PNe=new Set,KD=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,ek,tk=v0("azure");tk.log=(...t)=>{v0.log(...t)};var k9=["verbose","info","warning","error"];KD&&(kNe(KD)?vNe(KD):console.error(`AZURE_LOG_LEVEL set to unknown log level '${KD}'; logging is not enabled. Acceptable values: ${k9.join(", ")}.`));function vNe(t){if(t&&!kNe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${k9.join(",")}`);ek=t;let e=[];for(let r of PNe)DNe(r)&&e.push(r.namespace);v0.enable(e.join(","))}i(vNe,"setLogLevel");function lMt(){return ek}i(lMt,"getLogLevel");var RNe={verbose:400,info:300,warning:200,error:100};function uMt(t){let e=tk.extend(t);return QNe(tk,e),{error:XD(e,"error"),warning:XD(e,"warning"),info:XD(e,"info"),verbose:XD(e,"verbose")}}i(uMt,"createClientLogger");function QNe(t,e){e.log=(...r)=>{t.log(...r)}}i(QNe,"patchLogMethod");function XD(t,e){let r=Object.assign(t.extend(e),{level:e});if(QNe(t,r),DNe(r)){let n=v0.disable();v0.enable(n+","+r.namespace)}return PNe.add(r),r}i(XD,"createLogger");function DNe(t){return!!(ek&&RNe[t.level]<=RNe[ek])}i(DNe,"shouldEnable");function kNe(t){return k9.includes(t)}i(kNe,"isAzureLogLevel");RE.AzureLogger=tk;RE.createClientLogger=uMt;RE.getLogLevel=lMt;RE.setLogLevel=vNe});var M9=w(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});var NE=new WeakMap,rk=new WeakMap,Q0=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,NE.set(this,[]),rk.set(this,!1)}get aborted(){if(!rk.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return rk.get(this)}static get none(){return new t}addEventListener(e,r){if(!NE.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");NE.get(this).push(r)}removeEventListener(e,r){if(!NE.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=NE.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 LNe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=NE.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),rk.set(t,!0)}i(LNe,"abortSignal");var O9=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},L9=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new Q0,!!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(){LNe(this._signal)}static timeout(e){let r=new Q0,n=setTimeout(LNe,e,r);return typeof n.unref=="function"&&n.unref(),r}};D0.AbortController=L9;D0.AbortError=O9;D0.AbortSignal=Q0});var qNe=w(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var dMt=M9(),q9=require("crypto"),F9,pMt=typeof process<"u"&&!!process.version&&!!(!((F9=process.versions)===null||F9===void 0)&&F9.node);function MNe(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new dMt.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(MNe,"createAbortablePromise");var fMt="The delay was aborted.";function mMt(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return MNe(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??fMt})}i(mMt,"delay");function hMt(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(hMt,"getRandomIntegerInclusive");function FNe(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(FNe,"isObject");function UNe(t){if(FNe(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(UNe,"isError");function AMt(t){if(UNe(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(AMt,"getErrorMessage");async function gMt(t,e,r){let n=Buffer.from(t,"base64");return q9.createHmac("sha256",n).update(e).digest(r)}i(gMt,"computeSha256Hmac");async function yMt(t,e){return q9.createHash("sha256").update(t).digest(e)}i(yMt,"computeSha256Hash");function H9(t){return typeof t<"u"&&t!==null}i(H9,"isDefined");function EMt(t,e){if(!H9(t)||typeof t!="object")return!1;for(let r of e)if(!$Ne(t,r))return!1;return!0}i(EMt,"isObjectWithProperties");function $Ne(t,e){return H9(t)&&typeof t=="object"&&e in t}i($Ne,"objectHasProperty");function CMt(){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(CMt,"generateUUID");var U9,$9=typeof((U9=globalThis?.crypto)===null||U9===void 0?void 0:U9.randomUUID)=="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):q9.randomUUID;$9||($9=CMt);function IMt(){return $9()}i(IMt,"randomUUID");Os.computeSha256Hash=yMt;Os.computeSha256Hmac=gMt;Os.createAbortablePromise=MNe;Os.delay=mMt;Os.getErrorMessage=AMt;Os.getRandomIntegerInclusive=hMt;Os.isDefined=H9;Os.isError=UNe;Os.isNode=pMt;Os.isObject=FNe;Os.isObjectWithProperties=EMt;Os.objectHasProperty=$Ne;Os.randomUUID=IMt});var lTe=w(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var SMt=ONe(),HNe=M9(),wMt=qNe(),Xh=SMt.createClientLogger("core-lro"),zNe=2e3,VNe=["succeeded","canceled","failed"];function WNe(t){try{return JSON.parse(t).state}catch{throw new Error(`Unable to deserialize input state: ${t}`)}}i(WNe,"deserializeState");function GNe(t){let{state:e,stateProxy:r,isOperationError:n}=t;return s=>{throw n(s)&&(r.setError(e,s),r.setFailed(e)),s}}i(GNe,"setStateError");function xMt(t,e){let r=t;return r.slice(-1)!=="."&&(r=r+"."),r+" "+e}i(xMt,"appendReadableErrorMessage");function bMt(t){let e=t.message,r=t.code,n=t;for(;n.innererror;)n=n.innererror,r=n.code,e=xMt(e,n.message);return{code:r,message:e}}i(bMt,"simplifyError");function jNe(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}=bMt(u);d=`. ${f}. ${m}`}let p=`The long-running operation has failed${d}`;r.setError(e,new Error(p)),r.setFailed(e),Xh.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,BMt({response:c,state:e,processResult:o}))}i(jNe,"processOperationStatus");function BMt(t){let{processResult:e,response:r,state:n}=t;return e?e(r,n):r}i(BMt,"buildResult");async function JNe(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};Xh.verbose("LRO: Operation description:",p);let f=r.initState(p),m=s({response:d,state:f,operationLocation:c});return jNe({state:f,status:m,stateProxy:r,response:d,setErrorAsResult:a,processResult:n}),f}i(JNe,"initOperation");async function RMt(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(GNe({state:r,stateProxy:n,isOperationError:c})),d=o(u,r);if(Xh.verbose(`LRO: Status:
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${VNe.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let p=a(u,r);if(p!==void 0)return{response:await e(p).catch(GNe({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}i(RMt,"pollOperationHelper");async function YNe(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:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:S}=await RMt({poll:e,getOperationStatus:o,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(jNe({status:S,response:C,state:r,stateProxy:n,isDone:g,processResult:p,getError:f,setErrorAsResult:y}),!VNe.includes(S)){let b=d?.(C);b&&h(b);let N=c?.(C,r);if(N!==void 0){let _=E!==N;r.config.operationLocation=N,u?.(N,_)}else u?.(E,!1)}m?.(r,C)}}i(YNe,"pollOperation");function KNe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(KNe,"getOperationLocationPollingUrl");function XNe(t){return t.headers.location}i(XNe,"getLocationHeader");function ZNe(t){return t.headers["operation-location"]}i(ZNe,"getOperationLocationHeader");function eTe(t){return t.headers["azure-asyncoperation"]}i(eTe,"getAzureAsyncOperationHeader");function NMt(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(NMt,"findResourceLocation");function tTe(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,o=ZNe(e),a=eTe(e),c=KNe({operationLocation:o,azureAsyncOperation:a}),l=XNe(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:NMt({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(tTe,"inferLroMode");function rTe(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 V9(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 Xh.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(rTe,"transformStatus");function TMt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return rTe({status:r,statusCode:t.statusCode})}i(TMt,"getStatus");function _Mt(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 rTe({status:o,statusCode:t.statusCode})}i(_Mt,"getProvisioningState");function V9(t){return t===202?"running":t<300?"succeeded":"failed"}i(V9,"toOperationStatus");function nTe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?PMt(new Date(e)):r*1e3}}i(nTe,"parseRetryAfter");function sTe(t){let e=t.flatResponse.error;if(!e){Xh.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Xh.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(sTe,"getErrorFromResponse");function PMt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(PMt,"calculatePollingIntervalFromDate");function oTe(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 V9(e.rawResponse.statusCode);case"Body":return W9(e,r);default:return"running"}}i(s,"helper");let o=s();return o==="running"&&n===void 0?"succeeded":o}i(oTe,"getStatusFromInitialResponse");async function vMt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:o}=t;return JNe({init:i(async()=>{let a=await s.sendInitialRequest(),c=tTe({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:oTe,setErrorAsResult:o})}i(vMt,"initHttpOperation");function iTe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return KNe({operationLocation:ZNe(t),azureAsyncOperation:eTe(t)});case"ResourceLocation":return XNe(t);default:return}}i(iTe,"getOperationLocation");function W9({rawResponse:t},e){var r;let n=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(n){case"OperationLocation":return TMt(t);case"ResourceLocation":return V9(t.statusCode);case"Body":return _Mt(t);default:throw new Error(`Internal error: Unexpected operation mode: ${n}`)}}i(W9,"getOperationStatus");function aTe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.config.resourceLocation}i(aTe,"getResourceLocation");function cTe(t){return t.name==="RestError"}i(cTe,"isOperationError");async function QMt(t){let{lro:e,stateProxy:r,options:n,processResult:s,updateState:o,setDelay:a,state:c,setErrorAsResult:l}=t;return YNe({state:c,stateProxy:r,setDelay:a,processResult:s?({flatResponse:u},d)=>s(u,d):({flatResponse:u})=>u,getError:sTe,updateState:o,getPollingInterval:nTe,getOperationLocation:iTe,getOperationStatus:W9,isOperationError:cTe,getResourceLocation:aTe,options:n,poll:i(async(u,d)=>e.sendPollRequest(u,d),"poll"),setErrorAsResult:l})}i(QMt,"pollHttpOperation");var DMt=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 kMt(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:g=zNe,restoreFrom:y}=p||{},E=DMt(),C=h?(()=>{let Ue=!1;return(fe,Ve)=>{Ve?h(fe):Ue||h(fe),Ue=!0}})():void 0,S=y?WNe(y):await JNe({init:u,stateProxy:E,processResult:f,getOperationStatus:r,withOperationLocation:C,setErrorAsResult:!l}),b,N=new HNe.AbortController,_=new Map,v=i(async()=>_.forEach(Ue=>Ue(S)),"handleProgressEvents"),J="Operation was canceled",Pe=g,De={getOperationState:i(()=>S,"getOperationState"),getResult:i(()=>S.result,"getResult"),isDone:i(()=>["succeeded","failed","canceled"].includes(S.status),"isDone"),isStopped:i(()=>b===void 0,"isStopped"),stopPolling:i(()=>{N.abort()},"stopPolling"),toString:i(()=>JSON.stringify({state:S}),"toString"),onProgress:i(Ue=>{let fe=Symbol();return _.set(fe,Ue),()=>_.delete(fe)},"onProgress"),pollUntilDone:i(Ue=>b??(b=(async()=>{let{abortSignal:fe}=Ue||{},{signal:Ve}=fe?new HNe.AbortController([fe,N.signal]):N;if(!De.isDone())for(await De.poll({abortSignal:Ve});!De.isDone();)await wMt.delay(Pe,{abortSignal:Ve}),await De.poll({abortSignal:Ve});if(l)return De.getResult();switch(S.status){case"succeeded":return De.getResult();case"canceled":throw new Error(J);case"failed":throw S.error;case"notStarted":case"running":throw new Error("Polling completed without succeeding or failing")}})().finally(()=>{b=void 0})),"pollUntilDone"),async poll(Ue){if(l){if(De.isDone())return}else switch(S.status){case"succeeded":return;case"canceled":throw new Error(J);case"failed":throw S.error}if(await YNe({poll:d,state:S,stateProxy:E,getOperationLocation:e,isOperationError:s,withOperationLocation:C,getPollingInterval:a,getOperationStatus:n,getResourceLocation:o,processResult:f,getError:c,updateState:m,options:Ue,setDelay:i(fe=>{Pe=fe},"setDelay"),setErrorAsResult:!l}),await v(),!l)switch(S.status){case"canceled":throw new Error(J);case"failed":throw S.error}}};return De}}i(kMt,"buildCreatePoller");async function OMt(t,e){let{resourceLocationConfig:r,intervalInMs:n,processResult:s,restoreFrom:o,updateState:a,withOperationLocation:c,resolveOnUnsuccessful:l=!1}=e||{};return kMt({getStatusFromInitialResponse:oTe,getStatusFromPollResponse:W9,isOperationError:cTe,getOperationLocation:iTe,getResourceLocation:aTe,getPollingInterval:nTe,getError:sTe,resolveOnUnsuccessful:l})({init:i(async()=>{let u=await t.sendInitialRequest(),d=tTe({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(OMt,"createHttpPoller");var LMt=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"),G9=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=LMt();this.state.isStarted||(this.state=Object.assign(Object.assign({},this.state),await vMt({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 QMt({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 Xh.error("`cancelOperation` is deprecated because it wasn't implemented"),this}toString(){return JSON.stringify({state:this.state})}},nk=class t extends Error{static{i(this,"PollerStoppedError")}constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,t.prototype)}},sk=class t extends Error{static{i(this,"PollerCancelledError")}constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,t.prototype)}},ok=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 sk("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 nk("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()}},z9=class extends ok{static{i(this,"LroEngine")}constructor(e,r){let{intervalInMs:n=zNe,resumeFrom:s,resolveOnUnsuccessful:o=!1,isDone:a,lroResourceLocationConfig:c,processResult:l,updateState:u}=r||{},d=s?WNe(s):{},p=new G9(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))}};Zh.LroEngine=z9;Zh.Poller=ok;Zh.PollerCancelledError=sk;Zh.PollerStoppedError=nk;Zh.createHttpPoller=OMt});var PTe=w((xzr,s1t)=>{s1t.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 QTe=w((bzr,vTe)=>{var o1t=PTe();vTe.exports={version:o1t.version}});var yk=w(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.isJsonObject=QE.typeofJsonValue=void 0;function f1t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}i(f1t,"typeofJsonValue");QE.typeofJsonValue=f1t;function m1t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}i(m1t,"isJsonObject");QE.isJsonObject=m1t});var Ck=w(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.base64encode=DE.base64decode=void 0;var Id="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ek=[];for(let t=0;t<Id.length;t++)Ek[Id[t].charCodeAt(0)]=t;Ek[45]=Id.indexOf("+");Ek[95]=Id.indexOf("/");function h1t(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=Ek[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(h1t,"base64decode");DE.base64decode=h1t;function A1t(t){let e="",r=0,n,s=0;for(let o=0;o<t.length;o++)switch(n=t[o],r){case 0:e+=Id[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Id[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Id[s|n>>6],e+=Id[n&63],r=0;break}return r&&(e+=Id[s],e+="=",r==1&&(e+="=")),e}i(A1t,"base64encode");DE.base64encode=A1t});var FTe=w(Ik=>{"use strict";Object.defineProperty(Ik,"__esModule",{value:!0});Ik.utf8read=void 0;var sK=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function g1t(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(sK(n)),s=0);return r.length?(s&&r.push(sK(n.slice(0,s))),r.join("")):sK(n.slice(0,s))}i(g1t,"utf8read");Ik.utf8read=g1t});var q0=w(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.WireType=Rl.mergeBinaryOptions=Rl.UnknownFieldHandler=void 0;var y1t;(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")})(y1t=Rl.UnknownFieldHandler||(Rl.UnknownFieldHandler={}));function E1t(t,e){return Object.assign(Object.assign({},t),e)}i(E1t,"mergeBinaryOptions");Rl.mergeBinaryOptions=E1t;var C1t;(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"})(C1t=Rl.WireType||(Rl.WireType={}))});var wk=w(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.varint32read=Ao.varint32write=Ao.int64toString=Ao.int64fromString=Ao.varint64write=Ao.varint64read=void 0;function I1t(){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(I1t,"varint64read");Ao.varint64read=I1t;function S1t(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(S1t,"varint64write");Ao.varint64write=S1t;var Sk=65536*65536;function w1t(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>=Sk&&(s=s+(n/Sk|0),n=n%Sk)}return i(o,"add1e6digit"),o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[e,n,s]}i(w1t,"int64fromString");Ao.int64fromString=w1t;function x1t(t,e){if(e>>>0<=2097151)return""+(Sk*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(x1t,"int64toString");Ao.int64toString=x1t;function b1t(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(b1t,"varint32write");Ao.varint32write=b1t;function B1t(){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(B1t,"varint32read");Ao.varint32read=B1t});var jp=w(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.PbLong=Wp.PbULong=Wp.detectBi=void 0;var H0=wk(),Mt;function UTe(){let t=new DataView(new ArrayBuffer(8));Mt=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(UTe,"detectBi");Wp.detectBi=UTe;UTe();function $Te(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}i($Te,"assertBi");var qTe=/^-?[0-9]+$/,bk=4294967296,xk=2147483648,Bk=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*bk+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}},G0=class t extends Bk{static{i(this,"PbULong")}static from(e){if(Mt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Mt.C(e);case"number":if(e===0)return this.ZERO;e=Mt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Mt.UMIN)throw new Error("signed value for ulong");if(e>Mt.UMAX)throw new Error("ulong too large");return Mt.V.setBigUint64(0,e,!0),new t(Mt.V.getInt32(0,!0),Mt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!qTe.test(e))throw new Error("string is no integer");let[r,n,s]=H0.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/bk)}throw new Error("unknown value "+typeof e)}toString(){return Mt?this.toBigInt().toString():H0.int64toString(this.lo,this.hi)}toBigInt(){return $Te(Mt),Mt.V.setInt32(0,this.lo,!0),Mt.V.setInt32(4,this.hi,!0),Mt.V.getBigUint64(0,!0)}};Wp.PbULong=G0;G0.ZERO=new G0(0,0);var z0=class t extends Bk{static{i(this,"PbLong")}static from(e){if(Mt)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=Mt.C(e);case"number":if(e===0)return this.ZERO;e=Mt.C(e);case"bigint":if(!e)return this.ZERO;if(e<Mt.MIN)throw new Error("signed long too small");if(e>Mt.MAX)throw new Error("signed long too large");return Mt.V.setBigInt64(0,e,!0),new t(Mt.V.getInt32(0,!0),Mt.V.getInt32(4,!0))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=e.trim(),!qTe.test(e))throw new Error("string is no integer");let[r,n,s]=H0.int64fromString(e);if(r){if(s>xk||s==xk&&n!=0)throw new Error("signed long too small")}else if(s>=xk)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/bk):new t(-e,-e/bk).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&xk)!==0}negate(){let e=~this.hi,r=this.lo;return r?r=~r+1:e+=1,new t(r,e)}toString(){if(Mt)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+H0.int64toString(e.lo,e.hi)}return H0.int64toString(this.lo,this.hi)}toBigInt(){return $Te(Mt),Mt.V.setInt32(0,this.lo,!0),Mt.V.setInt32(4,this.hi,!0),Mt.V.getBigInt64(0,!0)}};Wp.PbLong=z0;z0.ZERO=new z0(0,0)});var oK=w(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.BinaryReader=OE.binaryReadOptions=void 0;var kE=q0(),V0=jp(),HTe=wk(),GTe={readUnknownField:!0,readerFactory:i(t=>new Rk(t),"readerFactory")};function R1t(t){return t?Object.assign(Object.assign({},GTe),t):GTe}i(R1t,"binaryReadOptions");OE.binaryReadOptions=R1t;var Rk=class{static{i(this,"BinaryReader")}constructor(e,r){this.varint64=HTe.varint64read,this.uint32=HTe.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 kE.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case kE.WireType.Bit64:this.pos+=4;case kE.WireType.Bit32:this.pos+=4;break;case kE.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case kE.WireType.StartGroup:let s;for(;(s=this.tag()[1])!==kE.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 V0.PbLong(...this.varint64())}uint64(){return new V0.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 V0.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 V0.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new V0.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())}};OE.BinaryReader=Rk});var LE=w(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.assertFloat32=Zi.assertUInt32=Zi.assertInt32=Zi.assertNever=Zi.assert=void 0;function N1t(t,e){if(!t)throw new Error(e)}i(N1t,"assert");Zi.assert=N1t;function T1t(t,e){throw new Error(e??"Unexpected object: "+t)}i(T1t,"assertNever");Zi.assertNever=T1t;var _1t=34028234663852886e22,P1t=-34028234663852886e22,v1t=4294967295,Q1t=2147483647,D1t=-2147483648;function k1t(t){if(typeof t!="number")throw new Error("invalid int 32: "+typeof t);if(!Number.isInteger(t)||t>Q1t||t<D1t)throw new Error("invalid int 32: "+t)}i(k1t,"assertInt32");Zi.assertInt32=k1t;function O1t(t){if(typeof t!="number")throw new Error("invalid uint 32: "+typeof t);if(!Number.isInteger(t)||t>v1t||t<0)throw new Error("invalid uint 32: "+t)}i(O1t,"assertUInt32");Zi.assertUInt32=O1t;function L1t(t){if(typeof t!="number")throw new Error("invalid float 32: "+typeof t);if(Number.isFinite(t)&&(t>_1t||t<P1t))throw new Error("invalid float 32: "+t)}i(L1t,"assertFloat32");Zi.assertFloat32=L1t});var iK=w(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.BinaryWriter=FE.binaryWriteOptions=void 0;var W0=jp(),j0=wk(),ME=LE(),zTe={writeUnknownFields:!0,writerFactory:i(()=>new Nk,"writerFactory")};function M1t(t){return t?Object.assign(Object.assign({},zTe),t):zTe}i(M1t,"binaryWriteOptions");FE.binaryWriteOptions=M1t;var Nk=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(ME.assertUInt32(e);e>127;)this.buf.push(e&127|128),e=e>>>7;return this.buf.push(e),this}int32(e){return ME.assertInt32(e),j0.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){ME.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){ME.assertUInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!0),this.raw(r)}sfixed32(e){ME.assertInt32(e);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,e,!0),this.raw(r)}sint32(e){return ME.assertInt32(e),e=(e<<1^e>>31)>>>0,j0.varint32write(e,this.buf),this}sfixed64(e){let r=new Uint8Array(8),n=new DataView(r.buffer),s=W0.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=W0.PbULong.from(e);return n.setInt32(0,s.lo,!0),n.setInt32(4,s.hi,!0),this.raw(r)}int64(e){let r=W0.PbLong.from(e);return j0.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=W0.PbLong.from(e),n=r.hi>>31,s=r.lo<<1^n,o=(r.hi<<1|r.lo>>>31)^n;return j0.varint64write(s,o,this.buf),this}uint64(e){let r=W0.PbULong.from(e);return j0.varint64write(r.lo,r.hi,this.buf),this}};FE.BinaryWriter=Nk});var aK=w(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.mergeJsonOptions=Jp.jsonWriteOptions=Jp.jsonReadOptions=void 0;var VTe={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},WTe={ignoreUnknownFields:!1};function F1t(t){return t?Object.assign(Object.assign({},WTe),t):WTe}i(F1t,"jsonReadOptions");Jp.jsonReadOptions=F1t;function U1t(t){return t?Object.assign(Object.assign({},VTe),t):VTe}i(U1t,"jsonWriteOptions");Jp.jsonWriteOptions=U1t;function $1t(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($1t,"mergeJsonOptions");Jp.mergeJsonOptions=$1t});var J0=w(Tk=>{"use strict";Object.defineProperty(Tk,"__esModule",{value:!0});Tk.MESSAGE_TYPE=void 0;Tk.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")});var cK=w(_k=>{"use strict";Object.defineProperty(_k,"__esModule",{value:!0});_k.lowerCamelCase=void 0;function q1t(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(q1t,"lowerCamelCase");_k.lowerCamelCase=q1t});var Ka=w(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.readMessageOption=an.readFieldOption=an.readFieldOptions=an.normalizeFieldInfo=an.RepeatType=an.LongType=an.ScalarType=void 0;var jTe=cK(),H1t;(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"})(H1t=an.ScalarType||(an.ScalarType={}));var G1t;(function(t){t[t.BIGINT=0]="BIGINT",t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER"})(G1t=an.LongType||(an.LongType={}));var JTe;(function(t){t[t.NO=0]="NO",t[t.PACKED=1]="PACKED",t[t.UNPACKED=2]="UNPACKED"})(JTe=an.RepeatType||(an.RepeatType={}));function z1t(t){var e,r,n,s;return t.localName=(e=t.localName)!==null&&e!==void 0?e:jTe.lowerCamelCase(t.name),t.jsonName=(r=t.jsonName)!==null&&r!==void 0?r:jTe.lowerCamelCase(t.name),t.repeat=(n=t.repeat)!==null&&n!==void 0?n:JTe.NO,t.opt=(s=t.opt)!==null&&s!==void 0?s:t.repeat||t.oneof?!1:t.kind=="message",t}i(z1t,"normalizeFieldInfo");an.normalizeFieldInfo=z1t;function V1t(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(V1t,"readFieldOptions");an.readFieldOptions=V1t;function W1t(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(W1t,"readFieldOption");an.readFieldOption=W1t;function j1t(t,e,r){let s=t.options[e];return s===void 0?s:r?r.fromJson(s):s}i(j1t,"readMessageOption");an.readMessageOption=j1t});var lK=w(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.getSelectedOneofValue=go.clearOneofValue=go.setUnknownOneofValue=go.setOneofValue=go.getOneofValue=go.isOneofGroup=void 0;function J1t(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(J1t,"isOneofGroup");go.isOneofGroup=J1t;function Y1t(t,e){return t[e]}i(Y1t,"getOneofValue");go.getOneofValue=Y1t;function K1t(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&(t[e]=r)}i(K1t,"setOneofValue");go.setOneofValue=K1t;function X1t(t,e,r){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=e,r!==void 0&&e!==void 0&&(t[e]=r)}i(X1t,"setUnknownOneofValue");go.setUnknownOneofValue=X1t;function Z1t(t){t.oneofKind!==void 0&&delete t[t.oneofKind],t.oneofKind=void 0}i(Z1t,"clearOneofValue");go.clearOneofValue=Z1t;function eFt(t){if(t.oneofKind!==void 0)return t[t.oneofKind]}i(eFt,"getSelectedOneofValue");go.getSelectedOneofValue=eFt});var dK=w(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Pk.ReflectionTypeCheck=void 0;var xr=Ka(),tFt=lK(),uK=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(!tFt.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,xr.ScalarType.INT32,s):this.scalar(e,xr.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),xr.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 xr.ScalarType.UINT64:case xr.ScalarType.FIXED64:case xr.ScalarType.INT64:case xr.ScalarType.SFIXED64:case xr.ScalarType.SINT64:switch(n){case xr.LongType.BIGINT:return s=="bigint";case xr.LongType.NUMBER:return s=="number"&&!isNaN(e);default:return s=="string"}case xr.ScalarType.BOOL:return s=="boolean";case xr.ScalarType.STRING:return s=="string";case xr.ScalarType.BYTES:return e instanceof Uint8Array;case xr.ScalarType.DOUBLE:case xr.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 xr.ScalarType.INT32:case xr.ScalarType.FIXED32:case xr.ScalarType.SFIXED32:case xr.ScalarType.SINT32:case xr.ScalarType.UINT32:return this.scalars(s.slice(0,n).map(o=>parseInt(o)),r,n);case xr.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,xr.LongType.STRING)}}};Pk.ReflectionTypeCheck=uK});var Qk=w(vk=>{"use strict";Object.defineProperty(vk,"__esModule",{value:!0});vk.reflectionLongConvert=void 0;var YTe=Ka();function rFt(t,e){switch(e){case YTe.LongType.BIGINT:return t.toBigInt();case YTe.LongType.NUMBER:return t.toNumber();default:return t.toString()}}i(rFt,"reflectionLongConvert");vk.reflectionLongConvert=rFt});var fK=w(Ok=>{"use strict";Object.defineProperty(Ok,"__esModule",{value:!0});Ok.ReflectionJsonReader=void 0;var KTe=yk(),nFt=Ck(),cn=Ka(),Dk=jp(),tA=LE(),kk=Qk(),pK=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=KTe.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(KTe.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==cn.ScalarType.BOOL&&(h=h=="true"?!0:h=="false"?!1:h),h=this.scalar(h,c.K,cn.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"&&tA.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 tA.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:(tA.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${r}".`),a)}tA.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 cn.ScalarType.DOUBLE:case cn.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==cn.ScalarType.FLOAT&&tA.assertFloat32(a),a;case cn.ScalarType.INT32:case cn.ScalarType.FIXED32:case cn.ScalarType.SFIXED32:case cn.ScalarType.SINT32:case cn.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==cn.ScalarType.UINT32?tA.assertUInt32(c):tA.assertInt32(c),c;case cn.ScalarType.INT64:case cn.ScalarType.SFIXED64:case cn.ScalarType.SINT64:if(e===null)return kk.reflectionLongConvert(Dk.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return kk.reflectionLongConvert(Dk.PbLong.from(e),n);case cn.ScalarType.FIXED64:case cn.ScalarType.UINT64:if(e===null)return kk.reflectionLongConvert(Dk.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return kk.reflectionLongConvert(Dk.PbULong.from(e),n);case cn.ScalarType.BOOL:if(e===null)return!1;if(typeof e!="boolean")break;return e;case cn.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 cn.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!="string")break;return nFt.base64decode(e)}}catch(a){o=a.message}this.assert(!1,s+(o?" - "+o:""),e)}};Ok.ReflectionJsonReader=pK});var hK=w(Lk=>{"use strict";Object.defineProperty(Lk,"__esModule",{value:!0});Lk.ReflectionJsonWriter=void 0;var sFt=Ck(),XTe=jp(),Ls=Ka(),or=LE(),mK=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);or.assert(l!==void 0),n[r.useProtoFieldName?o.name:o.jsonName]=l}return n}field(e,r,n){let s;if(e.kind=="map"){or.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);or.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);or.assert(d!==void 0),o[l.toString()]=d}break;case"enum":let c=e.V.T();for(let[l,u]of Object.entries(r)){or.assert(u===void 0||typeof u=="number");let d=this.enum(c,u,e.name,!1,!0,n.enumAsInteger);or.assert(d!==void 0),o[l.toString()]=d}break}(n.emitDefaultValues||Object.keys(o).length>0)&&(s=o)}else if(e.repeat){or.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);or.assert(u!==void 0),o.push(u)}break;case"enum":let a=e.T();for(let l=0;l<r.length;l++){or.assert(r[l]===void 0||typeof r[l]=="number");let u=this.enum(a,r[l],e.name,e.opt,!0,n.enumAsInteger);or.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);or.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){or.assert(s);return}if(!(r===0&&!o&&!s))return or.assert(typeof r=="number"),or.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){or.assert(s);return}let a=o||s;switch(e){case Ls.ScalarType.INT32:case Ls.ScalarType.SFIXED32:case Ls.ScalarType.SINT32:return r===0?a?0:void 0:(or.assertInt32(r),r);case Ls.ScalarType.FIXED32:case Ls.ScalarType.UINT32:return r===0?a?0:void 0:(or.assertUInt32(r),r);case Ls.ScalarType.FLOAT:or.assertFloat32(r);case Ls.ScalarType.DOUBLE:return r===0?a?0:void 0:(or.assert(typeof r=="number"),Number.isNaN(r)?"NaN":r===Number.POSITIVE_INFINITY?"Infinity":r===Number.NEGATIVE_INFINITY?"-Infinity":r);case Ls.ScalarType.STRING:return r===""?a?"":void 0:(or.assert(typeof r=="string"),r);case Ls.ScalarType.BOOL:return r===!1?a?!1:void 0:(or.assert(typeof r=="boolean"),r);case Ls.ScalarType.UINT64:case Ls.ScalarType.FIXED64:or.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let c=XTe.PbULong.from(r);return c.isZero()&&!a?void 0:c.toString();case Ls.ScalarType.INT64:case Ls.ScalarType.SFIXED64:case Ls.ScalarType.SINT64:or.assert(typeof r=="number"||typeof r=="string"||typeof r=="bigint");let l=XTe.PbLong.from(r);return l.isZero()&&!a?void 0:l.toString();case Ls.ScalarType.BYTES:return or.assert(r instanceof Uint8Array),r.byteLength?sFt.base64encode(r):a?"":void 0}}};Lk.ReflectionJsonWriter=mK});var Fk=w(Mk=>{"use strict";Object.defineProperty(Mk,"__esModule",{value:!0});Mk.reflectionScalarDefault=void 0;var Xa=Ka(),ZTe=Qk(),e_e=jp();function oFt(t,e=Xa.LongType.STRING){switch(t){case Xa.ScalarType.BOOL:return!1;case Xa.ScalarType.UINT64:case Xa.ScalarType.FIXED64:return ZTe.reflectionLongConvert(e_e.PbULong.ZERO,e);case Xa.ScalarType.INT64:case Xa.ScalarType.SFIXED64:case Xa.ScalarType.SINT64:return ZTe.reflectionLongConvert(e_e.PbLong.ZERO,e);case Xa.ScalarType.DOUBLE:case Xa.ScalarType.FLOAT:return 0;case Xa.ScalarType.BYTES:return new Uint8Array(0);case Xa.ScalarType.STRING:return"";default:return 0}}i(oFt,"reflectionScalarDefault");Mk.reflectionScalarDefault=oFt});var gK=w(Uk=>{"use strict";Object.defineProperty(Uk,"__esModule",{value:!0});Uk.ReflectionBinaryReader=void 0;var t_e=q0(),Mr=Ka(),Y0=Qk(),r_e=Fk(),AK=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?t_e.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"?Mr.ScalarType.INT32:l.T,m=l.kind=="scalar"?l.L:void 0;if(d){let y=u[p];if(c==t_e.WireType.LengthDelimited&&f!=Mr.ScalarType.STRING&&f!=Mr.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,g]=this.mapEntry(l,e,n);u[p][h]=g;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==Mr.ScalarType.BOOL?a=r.bool().toString():a=this.scalar(r,e.K,Mr.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=r_e.reflectionScalarDefault(e.K);a=e.K==Mr.ScalarType.BOOL?l.toString():l}if(c===void 0)switch(e.V.kind){case"scalar":c=r_e.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 Mr.ScalarType.INT32:return e.int32();case Mr.ScalarType.STRING:return e.string();case Mr.ScalarType.BOOL:return e.bool();case Mr.ScalarType.DOUBLE:return e.double();case Mr.ScalarType.FLOAT:return e.float();case Mr.ScalarType.INT64:return Y0.reflectionLongConvert(e.int64(),n);case Mr.ScalarType.UINT64:return Y0.reflectionLongConvert(e.uint64(),n);case Mr.ScalarType.FIXED64:return Y0.reflectionLongConvert(e.fixed64(),n);case Mr.ScalarType.FIXED32:return e.fixed32();case Mr.ScalarType.BYTES:return e.bytes();case Mr.ScalarType.UINT32:return e.uint32();case Mr.ScalarType.SFIXED32:return e.sfixed32();case Mr.ScalarType.SFIXED64:return Y0.reflectionLongConvert(e.sfixed64(),n);case Mr.ScalarType.SINT32:return e.sint32();case Mr.ScalarType.SINT64:return Y0.reflectionLongConvert(e.sint64(),n)}}};Uk.ReflectionBinaryReader=AK});var EK=w($k=>{"use strict";Object.defineProperty($k,"__esModule",{value:!0});$k.ReflectionBinaryWriter=void 0;var di=q0(),$t=Ka(),UE=LE(),K0=jp(),yK=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(UE.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?UE.assert(o.opt):this.scalar(r,d,o.no,a,c||o.opt);break;case"message":if(l){UE.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":UE.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?di.UnknownFieldHandler.onWrite:s)(this.info.typeName,e,r)}mapEntry(e,r,n,s,o){e.tag(n.no,di.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:UE.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,di.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;UE.assert(r!==$t.ScalarType.BYTES&&r!==$t.ScalarType.STRING),e.tag(n,di.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=di.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=di.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=di.WireType.Bit64,s="double";break;case $t.ScalarType.FLOAT:n=di.WireType.Bit32,s="float";break;case $t.ScalarType.INT64:a=o||K0.PbLong.from(r).isZero(),s="int64";break;case $t.ScalarType.UINT64:a=o||K0.PbULong.from(r).isZero(),s="uint64";break;case $t.ScalarType.FIXED64:a=o||K0.PbULong.from(r).isZero(),n=di.WireType.Bit64,s="fixed64";break;case $t.ScalarType.BYTES:a=o||!r.byteLength,n=di.WireType.LengthDelimited,s="bytes";break;case $t.ScalarType.FIXED32:n=di.WireType.Bit32,s="fixed32";break;case $t.ScalarType.SFIXED32:n=di.WireType.Bit32,s="sfixed32";break;case $t.ScalarType.SFIXED64:a=o||K0.PbLong.from(r).isZero(),n=di.WireType.Bit64,s="sfixed64";break;case $t.ScalarType.SINT32:s="sint32";break;case $t.ScalarType.SINT64:a=o||K0.PbLong.from(r).isZero(),s="sint64";break}return[n,s,o||a]}};$k.ReflectionBinaryWriter=yK});var CK=w(qk=>{"use strict";Object.defineProperty(qk,"__esModule",{value:!0});qk.reflectionCreate=void 0;var iFt=Fk(),aFt=J0();function cFt(t){let e=t.messagePrototype?Object.create(t.messagePrototype):Object.defineProperty({},aFt.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]=iFt.reflectionScalarDefault(r.T,r.L);break;case"enum":e[n]=0;break;case"map":e[n]={};break}}return e}i(cFt,"reflectionCreate");qk.reflectionCreate=cFt});var IK=w(Hk=>{"use strict";Object.defineProperty(Hk,"__esModule",{value:!0});Hk.reflectionMergePartial=void 0;function lFt(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(lFt,"reflectionMergePartial");Hk.reflectionMergePartial=lFt});var wK=w(zk=>{"use strict";Object.defineProperty(zk,"__esModule",{value:!0});zk.reflectionEquals=void 0;var SK=Ka();function uFt(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"?SK.ScalarType.INT32:n.T;if(!(n.repeat?n_e(c,o,a):o_e(c,o,a)))return!1;break;case"map":if(!(n.V.kind=="message"?s_e(n.V.T(),Gk(o),Gk(a)):n_e(n.V.kind=="enum"?SK.ScalarType.INT32:n.V.T,Gk(o),Gk(a))))return!1;break;case"message":let l=n.T();if(!(n.repeat?s_e(l,o,a):l.equals(o,a)))return!1;break}}return!0}i(uFt,"reflectionEquals");zk.reflectionEquals=uFt;var Gk=Object.values;function o_e(t,e,r){if(e===r)return!0;if(t!==SK.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(o_e,"primitiveEq");function n_e(t,e,r){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!o_e(t,e[n],r[n]))return!1;return!0}i(n_e,"repeatedPrimitiveEq");function s_e(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(s_e,"repeatedMsgEq")});var c_e=w(Vk=>{"use strict";Object.defineProperty(Vk,"__esModule",{value:!0});Vk.MessageType=void 0;var dFt=J0(),pFt=Ka(),fFt=dK(),mFt=fK(),hFt=hK(),AFt=gK(),gFt=EK(),yFt=CK(),xK=IK(),EFt=yk(),i_e=aK(),CFt=wK(),IFt=iK(),SFt=oK(),a_e=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),wFt=a_e[dFt.MESSAGE_TYPE]={},bK=class{static{i(this,"MessageType")}constructor(e,r,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=r.map(pFt.normalizeFieldInfo),this.options=n??{},wFt.value=this,this.messagePrototype=Object.create(null,a_e),this.refTypeCheck=new fFt.ReflectionTypeCheck(this),this.refJsonReader=new mFt.ReflectionJsonReader(this),this.refJsonWriter=new hFt.ReflectionJsonWriter(this),this.refBinReader=new AFt.ReflectionBinaryReader(this),this.refBinWriter=new gFt.ReflectionBinaryWriter(this)}create(e){let r=yFt.reflectionCreate(this);return e!==void 0&&xK.reflectionMergePartial(this,r,e),r}clone(e){let r=this.create();return xK.reflectionMergePartial(this,r,e),r}equals(e,r){return CFt.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){xK.reflectionMergePartial(this,e,r)}fromBinary(e,r){let n=SFt.binaryReadOptions(r);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,r){return this.internalJsonRead(e,i_e.jsonReadOptions(r))}fromJsonString(e,r){let n=JSON.parse(e);return this.fromJson(n,r)}toJson(e,r){return this.internalJsonWrite(e,i_e.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=IFt.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 ${EFt.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}};Vk.MessageType=bK});var l_e=w(Wk=>{"use strict";Object.defineProperty(Wk,"__esModule",{value:!0});Wk.containsMessageType=void 0;var xFt=J0();function bFt(t){return t[xFt.MESSAGE_TYPE]!=null}i(bFt,"containsMessageType");Wk.containsMessageType=bFt});var d_e=w(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.listEnumNumbers=Nl.listEnumNames=Nl.listEnumValues=Nl.isEnumObject=void 0;function u_e(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(u_e,"isEnumObject");Nl.isEnumObject=u_e;function BK(t){if(!u_e(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(BK,"listEnumValues");Nl.listEnumValues=BK;function BFt(t){return BK(t).map(e=>e.name)}i(BFt,"listEnumNames");Nl.listEnumNames=BFt;function RFt(t){return BK(t).map(e=>e.number).filter((e,r,n)=>n.indexOf(e)==r)}i(RFt,"listEnumNumbers");Nl.listEnumNumbers=RFt});var Fr=w(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});var p_e=yk();Object.defineProperty(pe,"typeofJsonValue",{enumerable:!0,get:i(function(){return p_e.typeofJsonValue},"get")});Object.defineProperty(pe,"isJsonObject",{enumerable:!0,get:i(function(){return p_e.isJsonObject},"get")});var f_e=Ck();Object.defineProperty(pe,"base64decode",{enumerable:!0,get:i(function(){return f_e.base64decode},"get")});Object.defineProperty(pe,"base64encode",{enumerable:!0,get:i(function(){return f_e.base64encode},"get")});var NFt=FTe();Object.defineProperty(pe,"utf8read",{enumerable:!0,get:i(function(){return NFt.utf8read},"get")});var RK=q0();Object.defineProperty(pe,"WireType",{enumerable:!0,get:i(function(){return RK.WireType},"get")});Object.defineProperty(pe,"mergeBinaryOptions",{enumerable:!0,get:i(function(){return RK.mergeBinaryOptions},"get")});Object.defineProperty(pe,"UnknownFieldHandler",{enumerable:!0,get:i(function(){return RK.UnknownFieldHandler},"get")});var m_e=oK();Object.defineProperty(pe,"BinaryReader",{enumerable:!0,get:i(function(){return m_e.BinaryReader},"get")});Object.defineProperty(pe,"binaryReadOptions",{enumerable:!0,get:i(function(){return m_e.binaryReadOptions},"get")});var h_e=iK();Object.defineProperty(pe,"BinaryWriter",{enumerable:!0,get:i(function(){return h_e.BinaryWriter},"get")});Object.defineProperty(pe,"binaryWriteOptions",{enumerable:!0,get:i(function(){return h_e.binaryWriteOptions},"get")});var A_e=jp();Object.defineProperty(pe,"PbLong",{enumerable:!0,get:i(function(){return A_e.PbLong},"get")});Object.defineProperty(pe,"PbULong",{enumerable:!0,get:i(function(){return A_e.PbULong},"get")});var NK=aK();Object.defineProperty(pe,"jsonReadOptions",{enumerable:!0,get:i(function(){return NK.jsonReadOptions},"get")});Object.defineProperty(pe,"jsonWriteOptions",{enumerable:!0,get:i(function(){return NK.jsonWriteOptions},"get")});Object.defineProperty(pe,"mergeJsonOptions",{enumerable:!0,get:i(function(){return NK.mergeJsonOptions},"get")});var TFt=J0();Object.defineProperty(pe,"MESSAGE_TYPE",{enumerable:!0,get:i(function(){return TFt.MESSAGE_TYPE},"get")});var _Ft=c_e();Object.defineProperty(pe,"MessageType",{enumerable:!0,get:i(function(){return _Ft.MessageType},"get")});var rA=Ka();Object.defineProperty(pe,"ScalarType",{enumerable:!0,get:i(function(){return rA.ScalarType},"get")});Object.defineProperty(pe,"LongType",{enumerable:!0,get:i(function(){return rA.LongType},"get")});Object.defineProperty(pe,"RepeatType",{enumerable:!0,get:i(function(){return rA.RepeatType},"get")});Object.defineProperty(pe,"normalizeFieldInfo",{enumerable:!0,get:i(function(){return rA.normalizeFieldInfo},"get")});Object.defineProperty(pe,"readFieldOptions",{enumerable:!0,get:i(function(){return rA.readFieldOptions},"get")});Object.defineProperty(pe,"readFieldOption",{enumerable:!0,get:i(function(){return rA.readFieldOption},"get")});Object.defineProperty(pe,"readMessageOption",{enumerable:!0,get:i(function(){return rA.readMessageOption},"get")});var PFt=dK();Object.defineProperty(pe,"ReflectionTypeCheck",{enumerable:!0,get:i(function(){return PFt.ReflectionTypeCheck},"get")});var vFt=CK();Object.defineProperty(pe,"reflectionCreate",{enumerable:!0,get:i(function(){return vFt.reflectionCreate},"get")});var QFt=Fk();Object.defineProperty(pe,"reflectionScalarDefault",{enumerable:!0,get:i(function(){return QFt.reflectionScalarDefault},"get")});var DFt=IK();Object.defineProperty(pe,"reflectionMergePartial",{enumerable:!0,get:i(function(){return DFt.reflectionMergePartial},"get")});var kFt=wK();Object.defineProperty(pe,"reflectionEquals",{enumerable:!0,get:i(function(){return kFt.reflectionEquals},"get")});var OFt=gK();Object.defineProperty(pe,"ReflectionBinaryReader",{enumerable:!0,get:i(function(){return OFt.ReflectionBinaryReader},"get")});var LFt=EK();Object.defineProperty(pe,"ReflectionBinaryWriter",{enumerable:!0,get:i(function(){return LFt.ReflectionBinaryWriter},"get")});var MFt=fK();Object.defineProperty(pe,"ReflectionJsonReader",{enumerable:!0,get:i(function(){return MFt.ReflectionJsonReader},"get")});var FFt=hK();Object.defineProperty(pe,"ReflectionJsonWriter",{enumerable:!0,get:i(function(){return FFt.ReflectionJsonWriter},"get")});var UFt=l_e();Object.defineProperty(pe,"containsMessageType",{enumerable:!0,get:i(function(){return UFt.containsMessageType},"get")});var X0=lK();Object.defineProperty(pe,"isOneofGroup",{enumerable:!0,get:i(function(){return X0.isOneofGroup},"get")});Object.defineProperty(pe,"setOneofValue",{enumerable:!0,get:i(function(){return X0.setOneofValue},"get")});Object.defineProperty(pe,"getOneofValue",{enumerable:!0,get:i(function(){return X0.getOneofValue},"get")});Object.defineProperty(pe,"clearOneofValue",{enumerable:!0,get:i(function(){return X0.clearOneofValue},"get")});Object.defineProperty(pe,"getSelectedOneofValue",{enumerable:!0,get:i(function(){return X0.getSelectedOneofValue},"get")});var jk=d_e();Object.defineProperty(pe,"listEnumValues",{enumerable:!0,get:i(function(){return jk.listEnumValues},"get")});Object.defineProperty(pe,"listEnumNames",{enumerable:!0,get:i(function(){return jk.listEnumNames},"get")});Object.defineProperty(pe,"listEnumNumbers",{enumerable:!0,get:i(function(){return jk.listEnumNumbers},"get")});Object.defineProperty(pe,"isEnumObject",{enumerable:!0,get:i(function(){return jk.isEnumObject},"get")});var $Ft=cK();Object.defineProperty(pe,"lowerCamelCase",{enumerable:!0,get:i(function(){return $Ft.lowerCamelCase},"get")});var Z0=LE();Object.defineProperty(pe,"assert",{enumerable:!0,get:i(function(){return Z0.assert},"get")});Object.defineProperty(pe,"assertNever",{enumerable:!0,get:i(function(){return Z0.assertNever},"get")});Object.defineProperty(pe,"assertInt32",{enumerable:!0,get:i(function(){return Z0.assertInt32},"get")});Object.defineProperty(pe,"assertUInt32",{enumerable:!0,get:i(function(){return Z0.assertUInt32},"get")});Object.defineProperty(pe,"assertFloat32",{enumerable:!0,get:i(function(){return Z0.assertFloat32},"get")})});var TK=w(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.readServiceOption=Tl.readMethodOption=Tl.readMethodOptions=Tl.normalizeMethodInfo=void 0;var qFt=Fr();function HFt(t,e){var r,n,s;let o=t;return o.service=e,o.localName=(r=o.localName)!==null&&r!==void 0?r:qFt.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(HFt,"normalizeMethodInfo");Tl.normalizeMethodInfo=HFt;function GFt(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(GFt,"readMethodOptions");Tl.readMethodOptions=GFt;function zFt(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(zFt,"readMethodOption");Tl.readMethodOption=zFt;function VFt(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(VFt,"readServiceOption");Tl.readServiceOption=VFt});var g_e=w(Jk=>{"use strict";Object.defineProperty(Jk,"__esModule",{value:!0});Jk.ServiceType=void 0;var WFt=TK(),_K=class{static{i(this,"ServiceType")}constructor(e,r,n){this.typeName=e,this.methods=r.map(s=>WFt.normalizeMethodInfo(s,this)),this.options=n??{}}};Jk.ServiceType=_K});var vK=w(Yk=>{"use strict";Object.defineProperty(Yk,"__esModule",{value:!0});Yk.RpcError=void 0;var PK=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(`
`)}};Yk.RpcError=PK});var QK=w(Xk=>{"use strict";Object.defineProperty(Xk,"__esModule",{value:!0});Xk.mergeRpcOptions=void 0;var y_e=Fr();function jFt(t,e){if(!e)return t;let r={};Kk(t,r),Kk(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=y_e.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=y_e.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Kk(t.meta,r.meta),Kk(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}i(jFt,"mergeRpcOptions");Xk.mergeRpcOptions=jFt;function Kk(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(Kk,"copy")});var kK=w(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.Deferred=nA.DeferredState=void 0;var _l;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(_l=nA.DeferredState||(nA.DeferredState={}));var DK=class{static{i(this,"Deferred")}constructor(e=!0){this._state=_l.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!==_l.PENDING)throw new Error(`cannot resolve ${_l[this.state].toLowerCase()}`);this._resolve(e),this._state=_l.RESOLVED}reject(e){if(this.state!==_l.PENDING)throw new Error(`cannot reject ${_l[this.state].toLowerCase()}`);this._reject(e),this._state=_l.REJECTED}resolvePending(e){this._state===_l.PENDING&&this.resolve(e)}rejectPending(e){this._state===_l.PENDING&&this.reject(e)}};nA.Deferred=DK});var LK=w(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0});Zk.RpcOutputStreamController=void 0;var E_e=kK(),sA=Fr(),OK=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){sA.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){sA.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){sA.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(){sA.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;sA.assert(e,"bad state"),sA.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 E_e.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;sA.assert(n.state==E_e.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Zk.RpcOutputStreamController=OK});var FK=w($E=>{"use strict";var JFt=$E&&$E.__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($E,"__esModule",{value:!0});$E.UnaryCall=void 0;var MK=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 JFt(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}})}};$E.UnaryCall=MK});var $K=w(qE=>{"use strict";var YFt=qE&&qE.__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(qE,"__esModule",{value:!0});qE.ServerStreamingCall=void 0;var UK=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 YFt(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}})}};qE.ServerStreamingCall=UK});var HK=w(HE=>{"use strict";var KFt=HE&&HE.__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(HE,"__esModule",{value:!0});HE.ClientStreamingCall=void 0;var qK=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 KFt(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}})}};HE.ClientStreamingCall=qK});var zK=w(GE=>{"use strict";var XFt=GE&&GE.__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(GE,"__esModule",{value:!0});GE.DuplexStreamingCall=void 0;var GK=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 XFt(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}})}};GE.DuplexStreamingCall=GK});var I_e=w(WE=>{"use strict";var ZFt=WE&&WE.__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(WE,"__esModule",{value:!0});WE.TestTransport=void 0;var ea=vK(),eO=Fr(),C_e=LK(),eUt=QK(),tUt=FK(),rUt=$K(),nUt=HK(),sUt=zK(),VE=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 zE?this.lastInput.sent:typeof this.lastInput=="object"?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof zE?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 ea.RpcError?Promise.reject(r):Promise.resolve(r)}promiseSingleResponse(e){if(this.data.response instanceof ea.RpcError)return Promise.reject(this.data.response);let r;return Array.isArray(this.data.response)?(eO.assert(this.data.response.length>0),r=this.data.response[0]):this.data.response!==void 0?r=this.data.response:r=e.O.create(),eO.assert(e.O.is(r)),Promise.resolve(r)}streamResponses(e,r,n){return ZFt(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)eO.assert(e.O.is(o)),s.push(o);else this.data.response instanceof ea.RpcError||(eO.assert(e.O.is(this.data.response)),s.push(this.data.response));try{yield bn(this.responseDelay,n)(void 0)}catch(o){r.notifyError(o);return}if(this.data.response instanceof ea.RpcError){r.notifyError(this.data.response);return}for(let o of s){r.notifyMessage(o);try{yield bn(this.betweenResponseDelay,n)(void 0)}catch(a){r.notifyError(a);return}}if(this.data.status instanceof ea.RpcError){r.notifyError(this.data.status);return}if(this.data.trailers instanceof ea.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 ea.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 ea.RpcError?Promise.reject(r):Promise.resolve(r)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let r of e)r.catch(()=>{})}mergeOptions(e){return eUt.mergeRpcOptions({},e)}unary(e,r,n){var s;let o=(s=n.meta)!==null&&s!==void 0?s:{},a=this.promiseHeaders().then(bn(this.headerDelay,n.abort)),c=a.catch(d=>{}).then(bn(this.responseDelay,n.abort)).then(d=>this.promiseSingleResponse(e)),l=c.catch(d=>{}).then(bn(this.afterResponseDelay,n.abort)).then(d=>this.promiseStatus()),u=c.catch(d=>{}).then(bn(this.afterResponseDelay,n.abort)).then(d=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:r},new tUt.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(bn(this.headerDelay,n.abort)),c=new C_e.RpcOutputStreamController,l=a.then(bn(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,c,n.abort)).then(bn(this.afterResponseDelay,n.abort)),u=l.then(()=>this.promiseStatus()),d=l.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(u,d),this.lastInput={single:r},new rUt.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(bn(this.headerDelay,r.abort)),a=o.catch(u=>{}).then(bn(this.responseDelay,r.abort)).then(u=>this.promiseSingleResponse(e)),c=a.catch(u=>{}).then(bn(this.afterResponseDelay,r.abort)).then(u=>this.promiseStatus()),l=a.catch(u=>{}).then(bn(this.afterResponseDelay,r.abort)).then(u=>this.promiseTrailers());return this.maybeSuppressUncaught(c,l),this.lastInput=new zE(this.data,r.abort),new nUt.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(bn(this.headerDelay,r.abort)),a=new C_e.RpcOutputStreamController,c=o.then(bn(this.responseDelay,r.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,r.abort)).then(bn(this.afterResponseDelay,r.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput=new zE(this.data,r.abort),new sUt.DuplexStreamingCall(e,s,this.lastInput,o,a,l,u)}};WE.TestTransport=VE;VE.defaultHeaders={responseHeader:"test"};VE.defaultStatus={code:"OK",detail:"all good"};VE.defaultTrailers={responseTrailer:"test"};function bn(t,e){return r=>new Promise((n,s)=>{if(e?.aborted)s(new ea.RpcError("user cancel","CANCELLED"));else{let o=setTimeout(()=>n(r),t);e&&e.addEventListener("abort",a=>{clearTimeout(o),s(new ea.RpcError("user cancel","CANCELLED"))})}})}i(bn,"delay");var zE=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 ea.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(bn(r,this.abort))}complete(){if(this.data.inputComplete instanceof ea.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(bn(e,this.abort))}}});var S_e=w(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.stackDuplexStreamingInterceptors=ta.stackClientStreamingInterceptors=ta.stackServerStreamingInterceptors=ta.stackUnaryInterceptors=ta.stackIntercept=void 0;var oUt=Fr();function eB(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)}oUt.assertNever(t)}i(eB,"stackIntercept");ta.stackIntercept=eB;function iUt(t,e,r,n){return eB("unary",t,e,n,r)}i(iUt,"stackUnaryInterceptors");ta.stackUnaryInterceptors=iUt;function aUt(t,e,r,n){return eB("serverStreaming",t,e,n,r)}i(aUt,"stackServerStreamingInterceptors");ta.stackServerStreamingInterceptors=aUt;function cUt(t,e,r){return eB("clientStreaming",t,e,r)}i(cUt,"stackClientStreamingInterceptors");ta.stackClientStreamingInterceptors=cUt;function lUt(t,e,r){return eB("duplex",t,e,r)}i(lUt,"stackDuplexStreamingInterceptors");ta.stackDuplexStreamingInterceptors=lUt});var w_e=w(tO=>{"use strict";Object.defineProperty(tO,"__esModule",{value:!0});tO.ServerCallContextController=void 0;var VK=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)}}};tO.ServerCallContextController=VK});var b_e=w(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});var uUt=g_e();Object.defineProperty(br,"ServiceType",{enumerable:!0,get:i(function(){return uUt.ServiceType},"get")});var WK=TK();Object.defineProperty(br,"readMethodOptions",{enumerable:!0,get:i(function(){return WK.readMethodOptions},"get")});Object.defineProperty(br,"readMethodOption",{enumerable:!0,get:i(function(){return WK.readMethodOption},"get")});Object.defineProperty(br,"readServiceOption",{enumerable:!0,get:i(function(){return WK.readServiceOption},"get")});var dUt=vK();Object.defineProperty(br,"RpcError",{enumerable:!0,get:i(function(){return dUt.RpcError},"get")});var pUt=QK();Object.defineProperty(br,"mergeRpcOptions",{enumerable:!0,get:i(function(){return pUt.mergeRpcOptions},"get")});var fUt=LK();Object.defineProperty(br,"RpcOutputStreamController",{enumerable:!0,get:i(function(){return fUt.RpcOutputStreamController},"get")});var mUt=I_e();Object.defineProperty(br,"TestTransport",{enumerable:!0,get:i(function(){return mUt.TestTransport},"get")});var x_e=kK();Object.defineProperty(br,"Deferred",{enumerable:!0,get:i(function(){return x_e.Deferred},"get")});Object.defineProperty(br,"DeferredState",{enumerable:!0,get:i(function(){return x_e.DeferredState},"get")});var hUt=zK();Object.defineProperty(br,"DuplexStreamingCall",{enumerable:!0,get:i(function(){return hUt.DuplexStreamingCall},"get")});var AUt=HK();Object.defineProperty(br,"ClientStreamingCall",{enumerable:!0,get:i(function(){return AUt.ClientStreamingCall},"get")});var gUt=$K();Object.defineProperty(br,"ServerStreamingCall",{enumerable:!0,get:i(function(){return gUt.ServerStreamingCall},"get")});var yUt=FK();Object.defineProperty(br,"UnaryCall",{enumerable:!0,get:i(function(){return yUt.UnaryCall},"get")});var tB=S_e();Object.defineProperty(br,"stackIntercept",{enumerable:!0,get:i(function(){return tB.stackIntercept},"get")});Object.defineProperty(br,"stackDuplexStreamingInterceptors",{enumerable:!0,get:i(function(){return tB.stackDuplexStreamingInterceptors},"get")});Object.defineProperty(br,"stackClientStreamingInterceptors",{enumerable:!0,get:i(function(){return tB.stackClientStreamingInterceptors},"get")});Object.defineProperty(br,"stackServerStreamingInterceptors",{enumerable:!0,get:i(function(){return tB.stackServerStreamingInterceptors},"get")});Object.defineProperty(br,"stackUnaryInterceptors",{enumerable:!0,get:i(function(){return tB.stackUnaryInterceptors},"get")});var EUt=w_e();Object.defineProperty(br,"ServerCallContextController",{enumerable:!0,get:i(function(){return EUt.ServerCallContextController},"get")})});var oC=w((B4r,DPe)=>{"use strict";var W$t="2.0.0",j$t=Number.MAX_SAFE_INTEGER||9007199254740991,J$t=16,Y$t=250,K$t=["major","premajor","minor","preminor","patch","prepatch","prerelease"];DPe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:J$t,MAX_SAFE_BUILD_LENGTH:Y$t,MAX_SAFE_INTEGER:j$t,RELEASE_TYPES:K$t,SEMVER_SPEC_VERSION:W$t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var iB=w((R4r,kPe)=>{"use strict";var X$t=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};kPe.exports=X$t});var iC=w((Ql,OPe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:qX,MAX_SAFE_BUILD_LENGTH:Z$t,MAX_LENGTH:eqt}=oC(),tqt=iB();Ql=OPe.exports={};var rqt=Ql.re=[],nqt=Ql.safeRe=[],W=Ql.src=[],sqt=Ql.safeSrc=[],j=Ql.t={},oqt=0,HX="[a-zA-Z0-9-]",iqt=[["\\s",1],["\\d",eqt],[HX,Z$t]],aqt=i(t=>{for(let[e,r]of iqt)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Fe=i((t,e,r)=>{let n=aqt(e),s=oqt++;tqt(t,s,e),j[t]=s,W[s]=e,sqt[s]=n,rqt[s]=new RegExp(e,r?"g":void 0),nqt[s]=new RegExp(n,r?"g":void 0)},"createToken");Fe("NUMERICIDENTIFIER","0|[1-9]\\d*");Fe("NUMERICIDENTIFIERLOOSE","\\d+");Fe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${HX}*`);Fe("MAINVERSION",`(${W[j.NUMERICIDENTIFIER]})\\.(${W[j.NUMERICIDENTIFIER]})\\.(${W[j.NUMERICIDENTIFIER]})`);Fe("MAINVERSIONLOOSE",`(${W[j.NUMERICIDENTIFIERLOOSE]})\\.(${W[j.NUMERICIDENTIFIERLOOSE]})\\.(${W[j.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASEIDENTIFIER",`(?:${W[j.NONNUMERICIDENTIFIER]}|${W[j.NUMERICIDENTIFIER]})`);Fe("PRERELEASEIDENTIFIERLOOSE",`(?:${W[j.NONNUMERICIDENTIFIER]}|${W[j.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASE",`(?:-(${W[j.PRERELEASEIDENTIFIER]}(?:\\.${W[j.PRERELEASEIDENTIFIER]})*))`);Fe("PRERELEASELOOSE",`(?:-?(${W[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${W[j.PRERELEASEIDENTIFIERLOOSE]})*))`);Fe("BUILDIDENTIFIER",`${HX}+`);Fe("BUILD",`(?:\\+(${W[j.BUILDIDENTIFIER]}(?:\\.${W[j.BUILDIDENTIFIER]})*))`);Fe("FULLPLAIN",`v?${W[j.MAINVERSION]}${W[j.PRERELEASE]}?${W[j.BUILD]}?`);Fe("FULL",`^${W[j.FULLPLAIN]}$`);Fe("LOOSEPLAIN",`[v=\\s]*${W[j.MAINVERSIONLOOSE]}${W[j.PRERELEASELOOSE]}?${W[j.BUILD]}?`);Fe("LOOSE",`^${W[j.LOOSEPLAIN]}$`);Fe("GTLT","((?:<|>)?=?)");Fe("XRANGEIDENTIFIERLOOSE",`${W[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Fe("XRANGEIDENTIFIER",`${W[j.NUMERICIDENTIFIER]}|x|X|\\*`);Fe("XRANGEPLAIN",`[v=\\s]*(${W[j.XRANGEIDENTIFIER]})(?:\\.(${W[j.XRANGEIDENTIFIER]})(?:\\.(${W[j.XRANGEIDENTIFIER]})(?:${W[j.PRERELEASE]})?${W[j.BUILD]}?)?)?`);Fe("XRANGEPLAINLOOSE",`[v=\\s]*(${W[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${W[j.XRANGEIDENTIFIERLOOSE]})(?:${W[j.PRERELEASELOOSE]})?${W[j.BUILD]}?)?)?`);Fe("XRANGE",`^${W[j.GTLT]}\\s*${W[j.XRANGEPLAIN]}$`);Fe("XRANGELOOSE",`^${W[j.GTLT]}\\s*${W[j.XRANGEPLAINLOOSE]}$`);Fe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${qX}})(?:\\.(\\d{1,${qX}}))?(?:\\.(\\d{1,${qX}}))?`);Fe("COERCE",`${W[j.COERCEPLAIN]}(?:$|[^\\d])`);Fe("COERCEFULL",W[j.COERCEPLAIN]+`(?:${W[j.PRERELEASE]})?(?:${W[j.BUILD]})?(?:$|[^\\d])`);Fe("COERCERTL",W[j.COERCE],!0);Fe("COERCERTLFULL",W[j.COERCEFULL],!0);Fe("LONETILDE","(?:~>?)");Fe("TILDETRIM",`(\\s*)${W[j.LONETILDE]}\\s+`,!0);Ql.tildeTrimReplace="$1~";Fe("TILDE",`^${W[j.LONETILDE]}${W[j.XRANGEPLAIN]}$`);Fe("TILDELOOSE",`^${W[j.LONETILDE]}${W[j.XRANGEPLAINLOOSE]}$`);Fe("LONECARET","(?:\\^)");Fe("CARETTRIM",`(\\s*)${W[j.LONECARET]}\\s+`,!0);Ql.caretTrimReplace="$1^";Fe("CARET",`^${W[j.LONECARET]}${W[j.XRANGEPLAIN]}$`);Fe("CARETLOOSE",`^${W[j.LONECARET]}${W[j.XRANGEPLAINLOOSE]}$`);Fe("COMPARATORLOOSE",`^${W[j.GTLT]}\\s*(${W[j.LOOSEPLAIN]})$|^$`);Fe("COMPARATOR",`^${W[j.GTLT]}\\s*(${W[j.FULLPLAIN]})$|^$`);Fe("COMPARATORTRIM",`(\\s*)${W[j.GTLT]}\\s*(${W[j.LOOSEPLAIN]}|${W[j.XRANGEPLAIN]})`,!0);Ql.comparatorTrimReplace="$1$2$3";Fe("HYPHENRANGE",`^\\s*(${W[j.XRANGEPLAIN]})\\s+-\\s+(${W[j.XRANGEPLAIN]})\\s*$`);Fe("HYPHENRANGELOOSE",`^\\s*(${W[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${W[j.XRANGEPLAINLOOSE]})\\s*$`);Fe("STAR","(<|>)?=?\\s*\\*");Fe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Fe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var gO=w((T4r,LPe)=>{"use strict";var cqt=Object.freeze({loose:!0}),lqt=Object.freeze({}),uqt=i(t=>t?typeof t!="object"?cqt:t:lqt,"parseOptions");LPe.exports=uqt});var GX=w((P4r,UPe)=>{"use strict";var MPe=/^[0-9]+$/,FPe=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=MPe.test(t),n=MPe.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},"compareIdentifiers"),dqt=i((t,e)=>FPe(e,t),"rcompareIdentifiers");UPe.exports={compareIdentifiers:FPe,rcompareIdentifiers:dqt}});var Gn=w((Q4r,qPe)=>{"use strict";var yO=iB(),{MAX_LENGTH:$Pe,MAX_SAFE_INTEGER:EO}=oC(),{safeRe:CO,t:IO}=iC(),pqt=gO(),{compareIdentifiers:zX}=GX(),fqt=i((t,e)=>{let r=e.split(".");if(r.length>t.length)return!1;for(let n=0;n<r.length;n++)if(zX(t[n],r[n])!==0)return!1;return!0},"isPrereleaseIdentifier"),VX=class t{static{i(this,"SemVer")}constructor(e,r){if(r=pqt(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>$Pe)throw new TypeError(`version is longer than ${$Pe} characters`);yO("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?CO[IO.LOOSE]:CO[IO.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>EO||this.major<0)throw new TypeError("Invalid major version");if(this.minor>EO||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>EO||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<EO)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(yO("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(yO("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 zX(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(yO("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 zX(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?CO[IO.PRERELEASELOOSE]:CO[IO.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]),fqt(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}};qPe.exports=VX});var Xp=w((k4r,GPe)=>{"use strict";var HPe=Gn(),mqt=i((t,e,r=!1)=>{if(t instanceof HPe)return t;try{return new HPe(t,e)}catch(n){if(!r)return null;throw n}},"parse");GPe.exports=mqt});var VPe=w((L4r,zPe)=>{"use strict";var hqt=Xp(),Aqt=i((t,e)=>{let r=hqt(t,e);return r?r.version:null},"valid");zPe.exports=Aqt});var jPe=w((F4r,WPe)=>{"use strict";var gqt=Xp(),yqt=i((t,e)=>{let r=gqt(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null},"clean");WPe.exports=yqt});var KPe=w(($4r,YPe)=>{"use strict";var JPe=Gn(),Eqt=i((t,e,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new JPe(t instanceof JPe?t.version:t,r).inc(e,n,s).version}catch{return null}},"inc");YPe.exports=Eqt});var eve=w((H4r,ZPe)=>{"use strict";var XPe=Xp(),Cqt=i((t,e)=>{let r=XPe(t,null,!0),n=XPe(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");ZPe.exports=Cqt});var rve=w((z4r,tve)=>{"use strict";var Iqt=Gn(),Sqt=i((t,e)=>new Iqt(t,e).major,"major");tve.exports=Sqt});var sve=w((W4r,nve)=>{"use strict";var wqt=Gn(),xqt=i((t,e)=>new wqt(t,e).minor,"minor");nve.exports=xqt});var ive=w((J4r,ove)=>{"use strict";var bqt=Gn(),Bqt=i((t,e)=>new bqt(t,e).patch,"patch");ove.exports=Bqt});var cve=w((K4r,ave)=>{"use strict";var Rqt=Xp(),Nqt=i((t,e)=>{let r=Rqt(t,e);return r&&r.prerelease.length?r.prerelease:null},"prerelease");ave.exports=Nqt});var ra=w((Z4r,uve)=>{"use strict";var lve=Gn(),Tqt=i((t,e,r)=>new lve(t,r).compare(new lve(e,r)),"compare");uve.exports=Tqt});var pve=w((t8r,dve)=>{"use strict";var _qt=ra(),Pqt=i((t,e,r)=>_qt(e,t,r),"rcompare");dve.exports=Pqt});var mve=w((n8r,fve)=>{"use strict";var vqt=ra(),Qqt=i((t,e)=>vqt(t,e,!0),"compareLoose");fve.exports=Qqt});var SO=w((o8r,Ave)=>{"use strict";var hve=Gn(),Dqt=i((t,e,r)=>{let n=new hve(t,r),s=new hve(e,r);return n.compare(s)||n.compareBuild(s)},"compareBuild");Ave.exports=Dqt});var yve=w((a8r,gve)=>{"use strict";var kqt=SO(),Oqt=i((t,e)=>t.sort((r,n)=>kqt(r,n,e)),"sort");gve.exports=Oqt});var Cve=w((l8r,Eve)=>{"use strict";var Lqt=SO(),Mqt=i((t,e)=>t.sort((r,n)=>Lqt(n,r,e)),"rsort");Eve.exports=Mqt});var aB=w((d8r,Ive)=>{"use strict";var Fqt=ra(),Uqt=i((t,e,r)=>Fqt(t,e,r)>0,"gt");Ive.exports=Uqt});var wO=w((f8r,Sve)=>{"use strict";var $qt=ra(),qqt=i((t,e,r)=>$qt(t,e,r)<0,"lt");Sve.exports=qqt});var WX=w((h8r,wve)=>{"use strict";var Hqt=ra(),Gqt=i((t,e,r)=>Hqt(t,e,r)===0,"eq");wve.exports=Gqt});var jX=w((g8r,xve)=>{"use strict";var zqt=ra(),Vqt=i((t,e,r)=>zqt(t,e,r)!==0,"neq");xve.exports=Vqt});var xO=w((E8r,bve)=>{"use strict";var Wqt=ra(),jqt=i((t,e,r)=>Wqt(t,e,r)>=0,"gte");bve.exports=jqt});var bO=w((I8r,Bve)=>{"use strict";var Jqt=ra(),Yqt=i((t,e,r)=>Jqt(t,e,r)<=0,"lte");Bve.exports=Yqt});var JX=w((w8r,Rve)=>{"use strict";var Kqt=WX(),Xqt=jX(),Zqt=aB(),eHt=xO(),tHt=wO(),rHt=bO(),nHt=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 Kqt(t,r,n);case"!=":return Xqt(t,r,n);case">":return Zqt(t,r,n);case">=":return eHt(t,r,n);case"<":return tHt(t,r,n);case"<=":return rHt(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}},"cmp");Rve.exports=nHt});var Tve=w((b8r,Nve)=>{"use strict";var sHt=Gn(),oHt=Xp(),{safeRe:BO,t:RO}=iC(),iHt=i((t,e)=>{if(t instanceof sHt)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?BO[RO.COERCEFULL]:BO[RO.COERCE]);else{let l=e.includePrerelease?BO[RO.COERCERTLFULL]:BO[RO.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 oHt(`${n}.${s}.${o}${a}${c}`,e)},"coerce");Nve.exports=iHt});var Pve=w((R8r,_ve)=>{"use strict";var aHt=Xp(),cHt=oC(),lHt=Gn(),uHt=i((t,e,r)=>{if(!cHt.RELEASE_TYPES.includes(e))return null;let n=dHt(t,r);return n&&pHt(n,e)},"truncate"),dHt=i((t,e)=>{let r=t instanceof lHt?t.version:t;return aHt(r,e)},"cloneInputVersion"),pHt=i((t,e)=>{if(fHt(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"),fHt=i(t=>t.startsWith("pre"),"isPrerelease");_ve.exports=uHt});var Qve=w((T8r,vve)=>{"use strict";var YX=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}};vve.exports=YX});var na=w((P8r,Lve)=>{"use strict";var mHt=/\s+/g,KX=class t{static{i(this,"Range")}constructor(e,r){if(r=AHt(r),e instanceof t)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new t(e.raw,r);if(e instanceof XX)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(mHt," "),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=>!kve(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&&bHt(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(xHt,"");let n=((this.options.includePrerelease&&SHt)|(this.options.loose&&wHt))+":"+e,s=Dve.get(n);if(s)return s;let o=this.options.loose,a=o?Fs[zn.HYPHENRANGELOOSE]:Fs[zn.HYPHENRANGE];e=e.replace(a,OHt(this.options.includePrerelease)),Jt("hyphen replace",e),e=e.replace(Fs[zn.COMPARATORTRIM],EHt),Jt("comparator trim",e),e=e.replace(Fs[zn.TILDETRIM],CHt),Jt("tilde trim",e),e=e.replace(Fs[zn.CARETTRIM],IHt),Jt("caret trim",e);let c=e.split(" ").map(p=>BHt(p,this.options)).join(" ").split(/\s+/).map(p=>kHt(p,this.options));o&&(c=c.filter(p=>(Jt("loose invalid filter",p,this.options),!!p.match(Fs[zn.COMPARATORLOOSE])))),Jt("range list",c);let l=new Map,u=c.map(p=>new XX(p,this.options));for(let p of u){if(kve(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let d=[...l.values()];return Dve.set(n,d),d}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(n=>Ove(n,r)&&e.set.some(s=>Ove(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 gHt(e,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(LHt(this.set[r],e,this.options))return!0;return!1}};Lve.exports=KX;var hHt=Qve(),Dve=new hHt,AHt=gO(),XX=cB(),Jt=iB(),gHt=Gn(),{safeRe:Fs,src:yHt,t:zn,comparatorTrimReplace:EHt,tildeTrimReplace:CHt,caretTrimReplace:IHt}=iC(),{FLAG_INCLUDE_PRERELEASE:SHt,FLAG_LOOSE:wHt}=oC(),xHt=new RegExp(yHt[zn.BUILD],"g"),kve=i(t=>t.value==="<0.0.0-0","isNullSet"),bHt=i(t=>t.value==="","isAny"),Ove=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"),BHt=i((t,e)=>(t=t.replace(Fs[zn.BUILD],""),Jt("comp",t,e),t=_Ht(t,e),Jt("caret",t),t=NHt(t,e),Jt("tildes",t),t=vHt(t,e),Jt("xrange",t),t=DHt(t,e),Jt("stars",t),t),"parseComparator"),ln=i(t=>!t||t.toLowerCase()==="x"||t==="*","isX"),RHt=i((t,e,r)=>ln(t)&&!ln(e)||ln(e)&&r&&!ln(r),"invalidXRangeOrder"),NHt=i((t,e)=>t.trim().split(/\s+/).map(r=>THt(r,e)).join(" "),"replaceTildes"),THt=i((t,e)=>{let r=e.loose?Fs[zn.TILDELOOSE]:Fs[zn.TILDE],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Jt("tilde",t,s,o,a,c,l);let u;return ln(o)?u="":ln(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ln(c)?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:l?(Jt("replaceTilde pr",l),u=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`):u=`>=${o}.${a}.${c} <${o}.${+a+1}.0-0`,Jt("tilde return",u),u})},"replaceTilde"),_Ht=i((t,e)=>t.trim().split(/\s+/).map(r=>PHt(r,e)).join(" "),"replaceCarets"),PHt=i((t,e)=>{Jt("caret",t,e);let r=e.loose?Fs[zn.CARETLOOSE]:Fs[zn.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(s,o,a,c,l)=>{Jt("caret",t,s,o,a,c,l);let u;return ln(o)?u="":ln(a)?u=`>=${o}.0.0${n} <${+o+1}.0.0-0`:ln(c)?o==="0"?u=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:u=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(Jt("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`):(Jt("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`),Jt("caret return",u),u})},"replaceCaret"),vHt=i((t,e)=>(Jt("replaceXRanges",t,e),t.split(/\s+/).map(r=>QHt(r,e)).join(" ")),"replaceXRanges"),QHt=i((t,e)=>{t=t.trim();let r=e.loose?Fs[zn.XRANGELOOSE]:Fs[zn.XRANGE];return t.replace(r,(n,s,o,a,c,l)=>{if(Jt("xRange",t,n,s,o,a,c,l),RHt(o,a,c))return t;let u=ln(o),d=u||ln(a),p=d||ln(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`),Jt("xRange return",n),n})},"replaceXRange"),DHt=i((t,e)=>(Jt("replaceStars",t,e),t.trim().replace(Fs[zn.STAR],"")),"replaceStars"),kHt=i((t,e)=>(Jt("replaceGTE0",t,e),t.trim().replace(Fs[e.includePrerelease?zn.GTE0PRE:zn.GTE0],"")),"replaceGTE0"),OHt=i(t=>(e,r,n,s,o,a,c,l,u,d,p,f)=>(ln(n)?r="":ln(s)?r=`>=${n}.0.0${t?"-0":""}`:ln(o)?r=`>=${n}.${s}.0${t?"-0":""}`:a?r=`>=${r}`:r=`>=${r}${t?"-0":""}`,ln(u)?l="":ln(d)?l=`<${+u+1}.0.0-0`:ln(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"),LHt=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(Jt(t[n].semver),t[n].semver!==XX.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 cB=w((Q8r,Hve)=>{"use strict";var lB=Symbol("SemVer ANY"),t7=class t{static{i(this,"Comparator")}static get ANY(){return lB}constructor(e,r){if(r=Mve(r),e instanceof t){if(e.loose===!!r.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),e7("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===lB?this.value="":this.value=this.operator+this.semver.version,e7("comp",this)}parse(e){let r=this.options.loose?Fve[Uve.COMPARATORLOOSE]:Fve[Uve.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 $ve(n[2],this.options.loose):this.semver=lB}toString(){return this.value}test(e){if(e7("Comparator.test",e,this.options.loose),this.semver===lB||e===lB)return!0;if(typeof e=="string")try{e=new $ve(e,this.options)}catch{return!1}return ZX(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 qve(e.value,r).test(this.value):e.operator===""?e.value===""?!0:new qve(this.value,r).test(e.semver):(r=Mve(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("=")||ZX(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||ZX(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};Hve.exports=t7;var Mve=gO(),{safeRe:Fve,t:Uve}=iC(),ZX=JX(),e7=iB(),$ve=Gn(),qve=na()});var uB=w((k8r,Gve)=>{"use strict";var MHt=na(),FHt=i((t,e,r)=>{try{e=new MHt(e,r)}catch{return!1}return e.test(t)},"satisfies");Gve.exports=FHt});var Vve=w((L8r,zve)=>{"use strict";var UHt=na(),$Ht=i((t,e)=>new UHt(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" ")),"toComparators");zve.exports=$Ht});var jve=w((F8r,Wve)=>{"use strict";var qHt=Gn(),HHt=na(),GHt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new HHt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new qHt(n,r))}),n},"maxSatisfying");Wve.exports=GHt});var Yve=w(($8r,Jve)=>{"use strict";var zHt=Gn(),VHt=na(),WHt=i((t,e,r)=>{let n=null,s=null,o=null;try{o=new VHt(e,r)}catch{return null}return t.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new zHt(n,r))}),n},"minSatisfying");Jve.exports=WHt});var Zve=w((H8r,Xve)=>{"use strict";var r7=Gn(),jHt=na(),Kve=aB(),JHt=i((t,e)=>{t=new jHt(t,e);let r=new r7("0.0.0");if(t.test(r)||(r=new r7("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 r7(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||Kve(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!r||Kve(r,o))&&(r=o)}return r&&t.test(r)?r:null},"minVersion");Xve.exports=JHt});var tQe=w((z8r,eQe)=>{"use strict";var YHt=na(),KHt=i((t,e)=>{try{return new YHt(t,e).range||"*"}catch{return null}},"validRange");eQe.exports=KHt});var NO=w((W8r,oQe)=>{"use strict";var XHt=Gn(),sQe=cB(),{ANY:ZHt}=sQe,eGt=na(),tGt=uB(),rQe=aB(),nQe=wO(),rGt=bO(),nGt=xO(),sGt=i((t,e,r,n)=>{t=new XHt(t,n),e=new eGt(e,n);let s,o,a,c,l;switch(r){case">":s=rQe,o=rGt,a=nQe,c=">",l=">=";break;case"<":s=nQe,o=nGt,a=rQe,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tGt(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===ZHt&&(m=new sQe(">=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");oQe.exports=sGt});var aQe=w((J8r,iQe)=>{"use strict";var oGt=NO(),iGt=i((t,e,r)=>oGt(t,e,">",r),"gtr");iQe.exports=iGt});var lQe=w((K8r,cQe)=>{"use strict";var aGt=NO(),cGt=i((t,e,r)=>aGt(t,e,"<",r),"ltr");cQe.exports=cGt});var pQe=w((Z8r,dQe)=>{"use strict";var uQe=na(),lGt=i((t,e,r)=>(t=new uQe(t,r),e=new uQe(e,r),t.intersects(e,r)),"intersects");dQe.exports=lGt});var mQe=w((tWr,fQe)=>{"use strict";var uGt=uB(),dGt=ra();fQe.exports=(t,e,r)=>{let n=[],s=null,o=null,a=t.sort((d,p)=>dGt(d,p,r));for(let d of a)uGt(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 CQe=w((rWr,EQe)=>{"use strict";var hQe=na(),o7=cB(),{ANY:n7}=o7,s7=uB(),i7=ra(),pGt=i((t,e,r={})=>{if(t===e)return!0;t=new hQe(t,r),e=new hQe(e,r);let n=!1;e:for(let s of t.set){for(let o of e.set){let a=mGt(s,o,r);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},"subset"),fGt=[new o7(">=0.0.0-0")],AQe=[new o7(">=0.0.0")],mGt=i((t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===n7){if(e.length===1&&e[0].semver===n7)return!0;r.includePrerelease?t=fGt:t=AQe}if(e.length===1&&e[0].semver===n7){if(r.includePrerelease)return!0;e=AQe}let n=new Set,s,o;for(let m of t)m.operator===">"||m.operator===">="?s=gQe(s,m,r):m.operator==="<"||m.operator==="<="?o=yQe(o,m,r):n.add(m.semver);if(n.size>1)return null;let a;if(s&&o){if(a=i7(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&&!s7(m,String(s),r)||o&&!s7(m,String(o),r))return null;for(let h of e)if(!s7(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=gQe(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=yQe(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"),gQe=i((t,e,r)=>{if(!t)return e;let n=i7(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},"higherGT"),yQe=i((t,e,r)=>{if(!t)return e;let n=i7(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t},"lowerLT");EQe.exports=pGt});var xQe=w((sWr,wQe)=>{"use strict";var a7=iC(),IQe=oC(),hGt=Gn(),SQe=GX(),AGt=Xp(),gGt=VPe(),yGt=jPe(),EGt=KPe(),CGt=eve(),IGt=rve(),SGt=sve(),wGt=ive(),xGt=cve(),bGt=ra(),BGt=pve(),RGt=mve(),NGt=SO(),TGt=yve(),_Gt=Cve(),PGt=aB(),vGt=wO(),QGt=WX(),DGt=jX(),kGt=xO(),OGt=bO(),LGt=JX(),MGt=Tve(),FGt=Pve(),UGt=cB(),$Gt=na(),qGt=uB(),HGt=Vve(),GGt=jve(),zGt=Yve(),VGt=Zve(),WGt=tQe(),jGt=NO(),JGt=aQe(),YGt=lQe(),KGt=pQe(),XGt=mQe(),ZGt=CQe();wQe.exports={parse:AGt,valid:gGt,clean:yGt,inc:EGt,diff:CGt,major:IGt,minor:SGt,patch:wGt,prerelease:xGt,compare:bGt,rcompare:BGt,compareLoose:RGt,compareBuild:NGt,sort:TGt,rsort:_Gt,gt:PGt,lt:vGt,eq:QGt,neq:DGt,gte:kGt,lte:OGt,cmp:LGt,coerce:MGt,truncate:FGt,Comparator:UGt,Range:$Gt,satisfies:qGt,toComparators:HGt,maxSatisfying:GGt,minSatisfying:zGt,minVersion:VGt,validRange:WGt,outside:jGt,gtr:JGt,ltr:YGt,intersects:KGt,simplifyRange:XGt,subset:ZGt,SemVer:hGt,re:a7.re,src:a7.src,tokens:a7.t,SEMVER_SPEC_VERSION:IQe.SEMVER_SPEC_VERSION,RELEASE_TYPES:IQe.RELEASE_TYPES,compareIdentifiers:SQe.compareIdentifiers,rcompareIdentifiers:SQe.rcompareIdentifiers}});var BQe=w((aWr,bQe)=>{function sa(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(sa,"RetryOperation");bQe.exports=sa;sa.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};sa.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};sa.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};sa.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)};sa.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};sa.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};sa.prototype.start=sa.prototype.try;sa.prototype.errors=function(){return this._errors};sa.prototype.attempts=function(){return this._attempts};sa.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 RQe=w(dA=>{var ezt=BQe();dA.operation=function(t){var e=dA.timeouts(t);return new ezt(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};dA.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};dA.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};dA.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=dA.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 TQe=w((dWr,NQe)=>{NQe.exports=RQe()});var PQe=w((pWr,_Qe)=>{var tzt=TQe();function rzt(t,e){function r(n,s){var o=e||{},a;"randomize"in o||(o.randomize=!0),a=tzt.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(rzt,"retry");_Qe.exports=rzt});var JQe=w((mWr,wd)=>{var vt=require("fs"),PO=require("os"),un=require("path"),vQe=require("crypto"),Dl={fs:vt.constants,os:PO.constants},QQe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",LQe=/XXXXXX/,nzt=3,MQe=(Dl.O_CREAT||Dl.fs.O_CREAT)|(Dl.O_EXCL||Dl.fs.O_EXCL)|(Dl.O_RDWR||Dl.fs.O_RDWR),szt=PO.platform()==="win32",ozt=Dl.EBADF||Dl.os.errno.EBADF,izt=Dl.ENOENT||Dl.os.errno.ENOENT,FQe=448,UQe=384,azt="exit",aC=[],$Qe=vt.rmdirSync.bind(vt),qQe=!1;function czt(t,e){return vt.rm(t,{recursive:!0},e)}i(czt,"rimraf");function HQe(t){return vt.rmSync(t,{recursive:!0})}i(HQe,"FN_RIMRAF_SYNC");function d7(t,e){let r=cC(t,e),n=r[0],s=r[1];yzt(n,function(o,a){if(o)return s(o);let c=a.tries;i((function l(){try{let u=zQe(a);vt.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(d7,"tmpName");function p7(t){let e=cC(t),r=e[0],n=Ezt(r),s=n.tries;do{let o=zQe(n);try{vt.statSync(o)}catch{return o}}while(s-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}i(p7,"tmpNameSync");function lzt(t,e){let r=cC(t,e),n=r[0],s=r[1];d7(n,i(function(a,c){if(a)return s(a);vt.open(c,MQe,n.mode||UQe,i(function(u,d){if(u)return s(u);if(n.discardDescriptor)return vt.close(d,i(function(f){return s(f,c,void 0,l7(c,-1,n,!1))},"_discardCallback"));{let p=n.discardDescriptor||n.detachDescriptor;s(null,c,d,l7(c,p?-1:d,n,!1))}},"_fileCreated"))},"_tmpNameCreated"))}i(lzt,"file");function uzt(t){let e=cC(t),r=e[0],n=r.discardDescriptor||r.detachDescriptor,s=p7(r),o=vt.openSync(s,MQe,r.mode||UQe);return r.discardDescriptor&&(vt.closeSync(o),o=void 0),{name:s,fd:o,removeCallback:l7(s,n?-1:o,r,!0)}}i(uzt,"fileSync");function dzt(t,e){let r=cC(t,e),n=r[0],s=r[1];d7(n,i(function(a,c){if(a)return s(a);vt.mkdir(c,n.mode||FQe,i(function(u){if(u)return s(u);s(null,c,GQe(c,n,!1))},"_dirCreated"))},"_tmpNameCreated"))}i(dzt,"dir");function pzt(t){let e=cC(t),r=e[0],n=p7(r);return vt.mkdirSync(n,r.mode||FQe),{name:n,removeCallback:GQe(n,r,!0)}}i(pzt,"dirSync");function fzt(t,e){let r=i(function(n){if(n&&!u7(n))return e(n);e()},"_handler");0<=t[0]?vt.close(t[0],function(){vt.unlink(t[1],r)}):vt.unlink(t[1],r)}i(fzt,"_removeFileAsync");function mzt(t){let e=null;try{0<=t[0]&&vt.closeSync(t[0])}catch(r){if(!Czt(r)&&!u7(r))throw r}finally{try{vt.unlinkSync(t[1])}catch(r){u7(r)||(e=r)}}if(e!==null)throw e}i(mzt,"_removeFileSync");function l7(t,e,r,n){let s=_O(mzt,[e,t],n),o=_O(fzt,[e,t],n,s);return r.keep||aC.unshift(s),n?s:o}i(l7,"_prepareTmpFileRemoveCallback");function GQe(t,e,r){let n=e.unsafeCleanup?czt:vt.rmdir.bind(vt),s=e.unsafeCleanup?HQe:$Qe,o=_O(s,t,r),a=_O(n,t,r,o);return e.keep||aC.unshift(o),r?o:a}i(GQe,"_prepareTmpDirRemoveCallback");function _O(t,e,r,n){let s=!1;return i(function o(a){if(!s){let c=n||o,l=aC.indexOf(c);return l>=0&&aC.splice(l,1),s=!0,r||t===$Qe||t===HQe?t(e):t(e,a||function(){})}},"_cleanupCallback")}i(_O,"_prepareRemoveCallback");function hzt(){if(qQe)for(;aC.length;)try{aC[0]()}catch{}}i(hzt,"_garbageCollector");function DQe(t){let e=[],r=null;try{r=vQe.randomBytes(t)}catch{r=vQe.pseudoRandomBytes(t)}for(let n=0;n<t;n++)e.push(QQe[r[n]%QQe.length]);return e.join("")}i(DQe,"_randomChars");function Eo(t){return typeof t>"u"}i(Eo,"_isUndefined");function cC(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(cC,"_parseArguments");function Azt(t,e,r){let n=un.isAbsolute(t)?t:un.join(e,t);vt.stat(n,function(s){s?vt.realpath(un.dirname(n),function(o,a){if(o)return r(o);r(null,un.join(a,un.basename(n)))}):vt.realpath(n,r)})}i(Azt,"_resolvePath");function gzt(t,e){let r=un.isAbsolute(t)?t:un.join(e,t);try{return vt.statSync(r),vt.realpathSync(r)}catch{let s=vt.realpathSync(un.dirname(r));return un.join(s,un.basename(r))}}i(gzt,"_resolvePathSync");function zQe(t){let e=t.tmpdir;if(!Eo(t.name))return un.join(e,t.dir,t.name);if(!Eo(t.template))return un.join(e,t.dir,t.template).replace(LQe,DQe(6));let r=[t.prefix?t.prefix:"tmp","-",process.pid,"-",DQe(12),t.postfix?"-"+t.postfix:""].join("");return un.join(e,t.dir,r)}i(zQe,"_generateTmpName");function c7(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(c7,"_assertPath");function VQe(t){if(!Eo(t.name)){let e=t.name;if(un.isAbsolute(e))throw new Error(`name option must not contain an absolute path, found "${e}".`);let r=un.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(LQe))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||nzt:1,t.keep=!!t.keep,t.detachDescriptor=!!t.detachDescriptor,t.discardDescriptor=!!t.discardDescriptor,t.unsafeCleanup=!!t.unsafeCleanup,t.prefix=Eo(t.prefix)?"":c7("prefix",t.prefix),t.postfix=Eo(t.postfix)?"":c7("postfix",t.postfix),t.template=Eo(t.template)?void 0:c7("template",t.template)}i(VQe,"_assertOptionsBase");function kQe(t,e,r,n){if(Eo(e))return n(null);Azt(e,r,function(s,o){if(s)return n(s);let a=un.relative(r,o);if(a.startsWith("..")||un.isAbsolute(a))return n(new Error(`${t} option must be relative to "${r}", found "${a}".`));n(null,a)})}i(kQe,"_getRelativePath");function OQe(t,e,r){if(Eo(e))return;let n=gzt(e,r),s=un.relative(r,n);if(s.startsWith("..")||un.isAbsolute(s))throw new Error(`${t} option must be relative to "${r}", found "${s}".`);return s}i(OQe,"_getRelativePathSync");function yzt(t,e){Szt(t,function(r,n){if(r)return e(r);t.tmpdir=n;try{VQe(t,n)}catch(s){return e(s)}kQe("dir",t.dir,n,function(s,o){if(s)return e(s);t.dir=Eo(o)?"":o,kQe("template",t.template,n,function(a,c){if(a)return e(a);t.template=c,e(null,t)})})})}i(yzt,"_assertAndSanitizeOptions");function Ezt(t){let e=t.tmpdir=jQe(t);VQe(t,e);let r=OQe("dir",t.dir,e);return t.dir=Eo(r)?"":r,t.template=OQe("template",t.template,e),t}i(Ezt,"_assertAndSanitizeOptionsSync");function Czt(t){return WQe(t,-ozt,"EBADF")}i(Czt,"_isEBADF");function u7(t){return WQe(t,-izt,"ENOENT")}i(u7,"_isENOENT");function WQe(t,e,r){return szt?t.code===r:t.code===r&&t.errno===e}i(WQe,"_isExpectedError");function Izt(){qQe=!0}i(Izt,"setGracefulCleanup");function Szt(t,e){return vt.realpath(t&&t.tmpdir||PO.tmpdir(),e)}i(Szt,"_getTmpDir");function jQe(t){return vt.realpathSync(t&&t.tmpdir||PO.tmpdir())}i(jQe,"_getTmpDirSync");process.addListener(azt,hzt);Object.defineProperty(wd.exports,"tmpdir",{enumerable:!0,configurable:!1,get:i(function(){return jQe()},"get")});wd.exports.dir=dzt;wd.exports.dirSync=pzt;wd.exports.file=lzt;wd.exports.fileSync=uzt;wd.exports.tmpName=d7;wd.exports.tmpNameSync=p7;wd.exports.setGracefulCleanup=Izt});var us=w(mi=>{"use strict";mi.__esModule=!0;mi.extend=ZQe;mi.indexOf=Rzt;mi.escapeExpression=Nzt;mi.isEmpty=Tzt;mi.createFrame=_zt;mi.blockParams=Pzt;mi.appendContextPath=vzt;var wzt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},xzt=/[&<>"'`=]/g,bzt=/[&<>"'`=]/;function Bzt(t){return wzt[t]}i(Bzt,"escapeChar");function ZQe(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(ZQe,"extend");var h7=Object.prototype.toString;mi.toString=h7;var m7=i(function(e){return typeof e=="function"},"isFunction");m7(/x/)&&(mi.isFunction=m7=i(function(t){return typeof t=="function"&&h7.call(t)==="[object Function]"},"isFunction"));mi.isFunction=m7;var eDe=Array.isArray||function(t){return t&&typeof t=="object"?h7.call(t)==="[object Array]":!1};mi.isArray=eDe;function Rzt(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}i(Rzt,"indexOf");function Nzt(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 bzt.test(t)?t.replace(xzt,Bzt):t}i(Nzt,"escapeExpression");function Tzt(t){return!t&&t!==0?!0:!!(eDe(t)&&t.length===0)}i(Tzt,"isEmpty");function _zt(t){var e=ZQe({},t);return e._parent=t,e}i(_zt,"createFrame");function Pzt(t,e){return t.path=e,t}i(Pzt,"blockParams");function vzt(t,e){return(t?t+".":"")+e}i(vzt,"appendContextPath")});var oa=w((QO,tDe)=>{"use strict";QO.__esModule=!0;var A7=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function g7(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<A7.length;l++)this[A7[l]]=c[A7[l]];Error.captureStackTrace&&Error.captureStackTrace(this,g7);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(g7,"Exception");g7.prototype=new Error;QO.default=g7;tDe.exports=QO.default});var nDe=w((DO,rDe)=>{"use strict";DO.__esModule=!0;var y7=us();DO.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(y7.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=y7.createFrame(r.data);o.contextPath=y7.appendContextPath(r.data.contextPath,r.name),r={data:o}}return s(e,r)})};rDe.exports=DO.default});var oDe=w((kO,sDe)=>{"use strict";kO.__esModule=!0;function Qzt(t){return t&&t.__esModule?t:{default:t}}i(Qzt,"_interopRequireDefault");var lC=us(),Dzt=oa(),kzt=Qzt(Dzt);function Ozt(t){try{var e=t.return;lC.isFunction(e)&&e.call(t)}catch{}}i(Ozt,"closeIterator");kO.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new kzt.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=lC.appendContextPath(r.data.contextPath,r.ids[0])+"."),lC.isFunction(e)&&(e=e.call(this)),r.data&&(c=lC.createFrame(r.data));function u(h,g,y,E){c&&(c.key=h,c.index=g,c.first=g===0,c.last=!!y,l&&(c.contextPath=l+h)),a=a+n(E,{data:c,blockParams:lC.blockParams([E,h],[l+h,null])})}if(i(u,"execIteration"),e&&typeof e=="object")if(lC.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||Ozt(p),h}f=m,o++}else(function(){var h=void 0;Object.keys(e).forEach(function(g){h!==void 0&&u(h,o-1,!1,e[h]),h=g,o++}),h!==void 0&&u(h,o-1,!0,e[h])})();return o===0&&(a=s(this)),a})};sDe.exports=kO.default});var aDe=w((OO,iDe)=>{"use strict";OO.__esModule=!0;function Lzt(t){return t&&t.__esModule?t:{default:t}}i(Lzt,"_interopRequireDefault");var Mzt=oa(),Fzt=Lzt(Mzt);OO.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Fzt.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};iDe.exports=OO.default});var dDe=w((LO,uDe)=>{"use strict";LO.__esModule=!0;function Uzt(t){return t&&t.__esModule?t:{default:t}}i(Uzt,"_interopRequireDefault");var cDe=us(),$zt=oa(),lDe=Uzt($zt);LO.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new lDe.default("#if requires exactly one argument");return cDe.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||cDe.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new lDe.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};uDe.exports=LO.default});var fDe=w((MO,pDe)=>{"use strict";MO.__esModule=!0;MO.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)})};pDe.exports=MO.default});var hDe=w((FO,mDe)=>{"use strict";FO.__esModule=!0;FO.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};mDe.exports=FO.default});var gDe=w((UO,ADe)=>{"use strict";UO.__esModule=!0;function qzt(t){return t&&t.__esModule?t:{default:t}}i(qzt,"_interopRequireDefault");var dB=us(),Hzt=oa(),Gzt=qzt(Hzt);UO.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new Gzt.default("#with requires exactly one argument");dB.isFunction(e)&&(e=e.call(this));var n=r.fn;if(dB.isEmpty(e))return r.inverse(this);var s=r.data;return r.data&&r.ids&&(s=dB.createFrame(r.data),s.contextPath=dB.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:s,blockParams:dB.blockParams([e],[s&&s.contextPath])})})};ADe.exports=UO.default});var E7=w($O=>{"use strict";$O.__esModule=!0;$O.registerDefaultHelpers=o3t;$O.moveHelperToHooks=i3t;function pA(t){return t&&t.__esModule?t:{default:t}}i(pA,"_interopRequireDefault");var zzt=nDe(),Vzt=pA(zzt),Wzt=oDe(),jzt=pA(Wzt),Jzt=aDe(),Yzt=pA(Jzt),Kzt=dDe(),Xzt=pA(Kzt),Zzt=fDe(),e3t=pA(Zzt),t3t=hDe(),r3t=pA(t3t),n3t=gDe(),s3t=pA(n3t);function o3t(t){Vzt.default(t),jzt.default(t),Yzt.default(t),Xzt.default(t),e3t.default(t),r3t.default(t),s3t.default(t)}i(o3t,"registerDefaultHelpers");function i3t(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}i(i3t,"moveHelperToHooks")});var EDe=w((qO,yDe)=>{"use strict";qO.__esModule=!0;var a3t=us();qO.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=a3t.extend({},l,r.partials);var u=e(a,c);return n.partials=l,u},"ret")),r.partials[s.args[0]]=s.fn,o})};yDe.exports=qO.default});var CDe=w(C7=>{"use strict";C7.__esModule=!0;C7.registerDefaultDecorators=d3t;function c3t(t){return t&&t.__esModule?t:{default:t}}i(c3t,"_interopRequireDefault");var l3t=EDe(),u3t=c3t(l3t);function d3t(t){u3t.default(t)}i(d3t,"registerDefaultDecorators")});var I7=w((HO,IDe)=>{"use strict";HO.__esModule=!0;var p3t=us(),uC={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:i(function(e){if(typeof e=="string"){var r=p3t.indexOf(uC.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},"lookupLevel"),log:i(function(e){if(e=uC.lookupLevel(e),typeof console<"u"&&uC.lookupLevel(uC.level)<=e){var r=uC.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")};HO.default=uC;IDe.exports=HO.default});var S7=w(dC=>{"use strict";dC.__esModule=!0;dC.createProtoAccessControl=A3t;dC.resultIsAllowed=g3t;dC.isPrototypeConstructor=y3t;dC.resetLoggedProperties=C3t;function f3t(t){return t&&t.__esModule?t:{default:t}}i(f3t,"_interopRequireDefault");var SDe=us(),m3t=I7(),h3t=f3t(m3t),GO=Object.create(null);function A3t(t){var e=Object.create(null);e.__proto__=!1,SDe.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,SDe.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}i(A3t,"createProtoAccessControl");function g3t(t,e,r){return wDe(typeof t=="function"?e.methods:e.properties,r)}i(g3t,"resultIsAllowed");function y3t(t,e,r){return e==="constructor"&&typeof r=="function"&&t===r.prototype}i(y3t,"isPrototypeConstructor");function wDe(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(E3t(e),!1)}i(wDe,"checkWhiteList");function E3t(t){GO[t]!==!0&&(GO[t]=!0,h3t.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(E3t,"logUnexpecedPropertyAccessOnce");function C3t(){Object.keys(GO).forEach(function(t){delete GO[t]})}i(C3t,"resetLoggedProperties")});var VO=w(kl=>{"use strict";kl.__esModule=!0;kl.HandlebarsEnvironment=b7;function xDe(t){return t&&t.__esModule?t:{default:t}}i(xDe,"_interopRequireDefault");var fA=us(),I3t=oa(),w7=xDe(I3t),S3t=E7(),w3t=CDe(),x3t=I7(),zO=xDe(x3t),b3t=S7(),B3t="4.7.10";kl.VERSION=B3t;var R3t=8;kl.COMPILER_REVISION=R3t;var N3t=7;kl.LAST_COMPATIBLE_COMPILER_REVISION=N3t;var T3t={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"};kl.REVISION_CHANGES=T3t;var x7="[object Object]";function b7(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},S3t.registerDefaultHelpers(this),w3t.registerDefaultDecorators(this)}i(b7,"HandlebarsEnvironment");b7.prototype={constructor:b7,logger:zO.default,log:zO.default.log,registerHelper:i(function(e,r){if(fA.toString.call(e)===x7){if(r)throw new w7.default("Arg not supported with multiple helpers");fA.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(fA.toString.call(e)===x7)fA.extend(this.partials,e);else{if(typeof r>"u")throw new w7.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(fA.toString.call(e)===x7){if(r)throw new w7.default("Arg not supported with multiple decorators");fA.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){b3t.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var _3t=zO.default.log;kl.log=_3t;kl.createFrame=fA.createFrame;kl.logger=zO.default});var BDe=w((WO,bDe)=>{"use strict";WO.__esModule=!0;function B7(t){this.string=t}i(B7,"SafeString");B7.prototype.toString=B7.prototype.toHTML=function(){return""+this.string};WO.default=B7;bDe.exports=WO.default});var RDe=w(R7=>{"use strict";R7.__esModule=!0;R7.wrapHelper=P3t;function P3t(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(P3t,"wrapHelper")});var vDe=w(Zp=>{"use strict";Zp.__esModule=!0;Zp.checkRevision=L3t;Zp.template=M3t;Zp.wrapProgram=jO;Zp.resolvePartial=F3t;Zp.invokePartial=U3t;Zp.noop=_De;function v3t(t){return t&&t.__esModule?t:{default:t}}i(v3t,"_interopRequireDefault");function Q3t(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(Q3t,"_interopRequireWildcard");var D3t=us(),mA=Q3t(D3t),k3t=oa(),tc=v3t(k3t),bd=VO(),NDe=E7(),O3t=RDe(),N7=S7();function L3t(t){var e=t&&t[0]||1,r=bd.COMPILER_REVISION;if(!(e>=bd.LAST_COMPATIBLE_COMPILER_REVISION&&e<=bd.COMPILER_REVISION))if(e<bd.LAST_COMPATIBLE_COMPILER_REVISION){var n=bd.REVISION_CHANGES[r],s=bd.REVISION_CHANGES[e];throw new tc.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 tc.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(L3t,"checkRevision");function M3t(t,e){if(!e)throw new tc.default("No environment passed to template");if(!t||!t.main)throw new tc.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=mA.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&&mA.isFunction(a))throw new tc.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new tc.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 tc.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 tc.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)&&!N7.isPrototypeConstructor(c,l,u)||N7.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:mA.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=jO(this,c,m,l,u,d,p):f||(f=this.programs[c]=jO(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=mA.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=$3t(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=PDe(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={};TDe(c,e.helpers,s),TDe(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=mA.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=N7.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;NDe.moveHelperToHooks(s,"helperMissing",l),NDe.moveHelperToHooks(s,"blockHelperMissing",l)}},o._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new tc.default("must pass block params");if(t.useDepths&&!u)throw new tc.default("must pass parent depths");return jO(s,a,t[a],c,0,l,u)},o}i(M3t,"template");function jO(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=PDe(r,c,t,a,n,o),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}i(jO,"wrapProgram");function F3t(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=JO(r.partials,t)):r.name==="@partial-block"?t=JO(r.data,"partial-block"):t=JO(r.partials,r.name),t}i(F3t,"resolvePartial");function U3t(t,e,r){var n=JO(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!==_De&&(function(){r.data=bd.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=bd.createFrame(l.data),l.data["partial-block"]=n,o(c,l)},"partialBlockWrapper"),o.partials&&(r.partials=mA.extend({},r.partials,o.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new tc.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(U3t,"invokePartial");function _De(){return""}i(_De,"noop");function JO(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(JO,"lookupOwnProperty");function $3t(t,e){return(!e||!("root"in e))&&(e=e?bd.createFrame(e):{},e.root=t),e}i($3t,"initData");function PDe(t,e,r,n,s,o){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,o,n),mA.extend(e,a)}return e}i(PDe,"executeDecorators");function TDe(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=q3t(s,r)})}i(TDe,"addHelpers");function q3t(t,e){var r=e.lookupProperty;return O3t.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(q3t,"passLookupPropertyOption")});var T7=w((YO,QDe)=>{"use strict";YO.__esModule=!0;YO.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}};QDe.exports=YO.default});var MDe=w((KO,LDe)=>{"use strict";KO.__esModule=!0;function P7(t){return t&&t.__esModule?t:{default:t}}i(P7,"_interopRequireDefault");function v7(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(v7,"_interopRequireWildcard");var H3t=VO(),DDe=v7(H3t),G3t=BDe(),z3t=P7(G3t),V3t=oa(),W3t=P7(V3t),j3t=us(),_7=v7(j3t),J3t=vDe(),kDe=v7(J3t),Y3t=T7(),K3t=P7(Y3t);function ODe(){var t=new DDe.HandlebarsEnvironment;return _7.extend(t,DDe),t.SafeString=z3t.default,t.Exception=W3t.default,t.Utils=_7,t.escapeExpression=_7.escapeExpression,t.VM=kDe,t.template=function(e){return kDe.template(e,t)},t}i(ODe,"create");var pB=ODe();pB.create=ODe;K3t.default(pB);pB.default=pB;KO.default=pB;LDe.exports=KO.default});var Q7=w((XO,UDe)=>{"use strict";XO.__esModule=!0;var FDe={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&&!FDe.helpers.scopedId(e)&&!e.depth},"simpleId")}};XO.default=FDe;UDe.exports=XO.default});var qDe=w((ZO,$De)=>{"use strict";ZO.__esModule=!0;var X3t=(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,g=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 C(re){a.length=a.length-2*re,c.length=c.length-re,l.length=l.length-re}i(C,"popStack");function S(){var re;return re=o.lexer.lex()||1,typeof re!="number"&&(re=o.symbols_[re]||re),re}i(S,"lex");for(var b,N,_,v,J,Pe,De={},Ue,fe,Ve,D;;){if(_=a[a.length-1],this.defaultActions[_]?v=this.defaultActions[_]:((b===null||typeof b>"u")&&(b=S()),v=u[_]&&u[_][b]),typeof v>"u"||!v.length||!v[0]){var ot="";if(!m){D=[];for(Ue in u[_])this.terminals_[Ue]&&Ue>2&&D.push("'"+this.terminals_[Ue]+"'");this.lexer.showPosition?ot="Parse error on line "+(p+1)+`:
`+this.lexer.showPosition()+`
Expecting `+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":ot="Parse error on line "+(p+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(ot,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:D})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(v[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[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(fe=this.productions_[v[1]][1],De.$=c[c.length-fe],De._$={first_line:l[l.length-(fe||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(fe||1)].first_column,last_column:l[l.length-1].last_column},E&&(De._$.range=[l[l.length-(fe||1)].range[0],l[l.length-1].range[1]]),Pe=this.performAction.call(De,d,f,p,this.yy,v[1],c,l),typeof Pe<"u")return Pe;fe&&(a=a.slice(0,-1*fe*2),c=c.slice(0,-1*fe),l=l.slice(0,-1*fe)),a.push(this.productions_[v[1]][0]),c.push(De.$),l.push(De._$),Ve=u[a[a.length-2]][a[a.length-1]],a.push(Ve);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})();ZO.default=X3t;$De.exports=ZO.default});var k7=w(D7=>{"use strict";D7.__esModule=!0;var Z3t=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];D7.NODE_TYPES=Z3t});var nL=w((rL,VDe)=>{"use strict";rL.__esModule=!0;function eVt(t){return t&&t.__esModule?t:{default:t}}i(eVt,"_interopRequireDefault");var tVt=oa(),O7=eVt(tVt),rVt=us(),nVt=k7();function tL(){this.parents=[]}i(tL,"Visitor");function HDe(t,e){return rVt.indexOf(nVt.NODE_TYPES,e)!==-1||!(e in tL.prototype)&&typeof t[e]=="function"}i(HDe,"isDispatchable");tL.prototype={constructor:tL,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!HDe(this,n.type))throw new O7.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 O7.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(!HDe(this,e.type)||!this[e.type])throw new O7.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:eL,Decorator:eL,BlockStatement:GDe,DecoratorBlock:GDe,PartialStatement:zDe,PartialBlockStatement:i(function(e){zDe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:i(function(){},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:eL,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 eL(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}i(eL,"visitSubExpression");function GDe(t){eL.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}i(GDe,"visitBlock");function zDe(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}i(zDe,"visitPartial");rL.default=tL;VDe.exports=rL.default});var jDe=w((sL,WDe)=>{"use strict";sL.__esModule=!0;function sVt(t){return t&&t.__esModule?t:{default:t}}i(sVt,"_interopRequireDefault");var oVt=nL(),iVt=sVt(oVt);function Ol(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}i(Ol,"WhitespaceControl");Ol.prototype=new iVt.default;Ol.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=L7(n,s,r),u=M7(n,s,r),d=c.openStandalone&&l,p=c.closeStandalone&&u,f=c.inlineStandalone&&l&&u;c.close&&hA(n,s,!0),c.open&&ef(n,s,!0),e&&f&&(hA(n,s),ef(n,s)&&a.type==="PartialStatement"&&(a.indent=/(?:^|[^ \t])([ \t]+)$/.exec(n[s-1].original)[1])),e&&d&&(hA((a.program||a.inverse).body),ef(n,s)),e&&p&&(hA(n,s),ef((a.inverse||a.program).body))}}return t};Ol.prototype.BlockStatement=Ol.prototype.DecoratorBlock=Ol.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:M7(e.body),closeStandalone:L7((n||e).body)};if(t.openStrip.close&&hA(e.body,null,!0),r){var a=t.inverseStrip;a.open&&ef(e.body,null,!0),a.close&&hA(n.body,null,!0),t.closeStrip.open&&ef(s.body,null,!0),!this.options.ignoreStandalone&&L7(e.body)&&M7(n.body)&&(ef(e.body),hA(n.body))}else t.closeStrip.open&&ef(e.body,null,!0);return o};Ol.prototype.Decorator=Ol.prototype.MustacheStatement=function(t){return t.strip};Ol.prototype.PartialStatement=Ol.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function L7(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(L7,"isPrevWhitespace");function M7(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(M7,"isNextWhitespace");function hA(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(hA,"omitRight");function ef(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(ef,"omitLeft");sL.default=Ol;WDe.exports=sL.default});var JDe=w(ia=>{"use strict";ia.__esModule=!0;ia.SourceLocation=lVt;ia.id=uVt;ia.stripFlags=dVt;ia.stripComment=pVt;ia.preparePath=fVt;ia.prepareMustache=mVt;ia.prepareRawBlock=hVt;ia.prepareBlock=AVt;ia.prepareProgram=gVt;ia.preparePartialBlock=yVt;function aVt(t){return t&&t.__esModule?t:{default:t}}i(aVt,"_interopRequireDefault");var cVt=oa(),F7=aVt(cVt);function U7(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new F7.default(t.path.original+" doesn't match "+e,r)}}i(U7,"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 uVt(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}i(uVt,"id");function dVt(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}i(dVt,"stripFlags");function pVt(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}i(pVt,"stripComment");function fVt(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 F7.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(fVt,"preparePath");function mVt(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(mVt,"prepareMustache");function hVt(t,e,r,n){U7(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(hVt,"prepareRawBlock");function AVt(t,e,r,n,s,o){n&&n.path&&U7(t,n);var a=/\*/.test(t.open);e.blockParams=t.blockParams;var c=void 0,l=void 0;if(r){if(a)throw new F7.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(AVt,"prepareBlock");function gVt(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(gVt,"prepareProgram");function yVt(t,e,r,n){return U7(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(yVt,"preparePartialBlock")});var XDe=w(fB=>{"use strict";fB.__esModule=!0;fB.parseWithoutProcessing=KDe;fB.parse=BVt;function EVt(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(EVt,"_interopRequireWildcard");function YDe(t){return t&&t.__esModule?t:{default:t}}i(YDe,"_interopRequireDefault");var CVt=qDe(),$7=YDe(CVt),IVt=jDe(),SVt=YDe(IVt),wVt=JDe(),xVt=EVt(wVt),bVt=us();fB.parser=$7.default;var oL={};bVt.extend(oL,xVt);function KDe(t,e){if(t.type==="Program")return t;$7.default.yy=oL,oL.locInfo=function(n){return new oL.SourceLocation(e&&e.srcName,n)};var r=$7.default.parse(t);return r}i(KDe,"parseWithoutProcessing");function BVt(t,e){var r=KDe(t,e),n=new SVt.default(e);return n.accept(r)}i(BVt,"parse")});var nke=w(hB=>{"use strict";hB.__esModule=!0;hB.Compiler=G7;hB.precompile=PVt;hB.compile=vVt;function eke(t){return t&&t.__esModule?t:{default:t}}i(eke,"_interopRequireDefault");var RVt=oa(),pC=eke(RVt),tf=us(),NVt=Q7(),mB=eke(NVt),TVt=k7(),_Vt=[].slice;function G7(){}i(G7,"Compiler");G7.prototype={compiler:G7,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||!rke(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=tf.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(tf.indexOf(TVt.NODE_TYPES,e.type)===-1||!this[e.type])throw new pC.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){QVt(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){ZDe(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 pC.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 Bd(e,"value must be a string");e.value&&this.opcode("appendContent",e.value)},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:i(function(e){ZDe(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",q7(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 pC.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,mB.default.helpers.simpleId(o))}},"helperSexpr"),PathExpression:i(function(e){var r=q7(e),n=H7(e);this.addDepth(r),this.opcode("getContext",r);var s=n[0],o=mB.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){iL(e),this.opcode("pushString",e.value)},"StringLiteral"),NumberLiteral:i(function(e){iL(e),this.opcode("pushLiteral",e.value)},"NumberLiteral"),BooleanLiteral:i(function(e){iL(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(!tf.isArray(r))throw Bd(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 Bd(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:_Vt.call(arguments,1),loc:this.sourceNode[0].loc})},"opcode"),addDepth:i(function(e){e&&(this.useDepths=!0)},"addDepth"),classifySexpr:i(function(e){H7(e.path);var r=mB.default.helpers.simpleId(e.path),n=r&&!!this.blockParamIndex(e.path.parts[0]),s=!n&&mB.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){iL(e);var r=e.value!=null?e.value:e.original||"",n=q7(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&&!mB.default.helpers.scopedId(e)&&!n&&(s=this.blockParamIndex(H7(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&&tf.indexOf(s,e);if(s&&o>=0)return[r,o]}},"blockParamIndex")};function PVt(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new pC.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(PVt,"precompile");function vVt(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new pC.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=tf.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(vVt,"compile");function Bd(t,e){return new pC.default("Invalid AST: "+t.type+" "+e,t)}i(Bd,"invalidAst");function q7(t){var e=t.depth;if(e==null)return 0;if(typeof e!="number"||!isFinite(e)||Math.floor(e)!==e||e<0)throw Bd(t,"depth must be a non-negative integer");return e}i(q7,"validateDepth");function iL(t){var e=t.value;if(t.type==="StringLiteral"&&typeof e!="string")throw Bd(t,"value must be a string");if(t.type==="NumberLiteral"&&typeof e!="number")throw Bd(t,"value must be a number");if(t.type==="BooleanLiteral"&&typeof e!="boolean")throw Bd(t,"value must be a boolean")}i(iL,"validateLiteral");function tke(t,e,r){if(!tf.isArray(e))throw Bd(t,r+" must be an array");for(var n=0;n<e.length;n++)if(typeof e[n]!="string")throw Bd(t,r+" must only contain strings");return e}i(tke,"validateStringArray");function H7(t){return tke(t,t.parts,"parts")}i(H7,"validateParts");function QVt(t){t.blockParams!=null&&tke(t,t.blockParams,"blockParams")}i(QVt,"validateBlockParams");function rke(t,e){if(t===e)return!0;if(tf.isArray(t)&&tf.isArray(e)&&t.length===e.length){for(var r=0;r<t.length;r++)if(!rke(t[r],e[r]))return!1;return!0}}i(rke,"argEquals");function ZDe(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(ZDe,"transformLiteralToPath")});var oke=w(z7=>{var ske="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");z7.encode=function(t){if(0<=t&&t<ske.length)return ske[t];throw new TypeError("Must be between 0 and 63: "+t)};z7.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 j7=w(W7=>{var ike=oke(),V7=5,ake=1<<V7,cke=ake-1,lke=ake;function DVt(t){return t<0?(-t<<1)+1:(t<<1)+0}i(DVt,"toVLQSigned");function kVt(t){var e=(t&1)===1,r=t>>1;return e?-r:r}i(kVt,"fromVLQSigned");W7.encode=i(function(e){var r="",n,s=DVt(e);do n=s&cke,s>>>=V7,s>0&&(n|=lke),r+=ike.encode(n);while(s>0);return r},"base64VLQ_encode");W7.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=ike.decode(e.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));c=!!(l&lke),l&=cke,o=o+(l<<a),a+=V7}while(c);n.value=kVt(o),n.rest=r},"base64VLQ_decode")});var hC=w(ds=>{function OVt(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(OVt,"getArg");ds.getArg=OVt;var uke=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,LVt=/^data:.+\,.+$/;function AB(t){var e=t.match(uke);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}i(AB,"urlParse");ds.urlParse=AB;function fC(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(fC,"urlGenerate");ds.urlGenerate=fC;function J7(t){var e=t,r=AB(t);if(r){if(!r.path)return t;e=r.path}for(var n=ds.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,fC(r)):e}i(J7,"normalize");ds.normalize=J7;function dke(t,e){t===""&&(t="."),e===""&&(e=".");var r=AB(e),n=AB(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),fC(r);if(r||e.match(LVt))return e;if(n&&!n.host&&!n.path)return n.host=e,fC(n);var s=e.charAt(0)==="/"?e:J7(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=s,fC(n)):s}i(dke,"join");ds.join=dke;ds.isAbsolute=function(t){return t.charAt(0)==="/"||uke.test(t)};function MVt(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(MVt,"relative");ds.relative=MVt;var pke=(function(){var t=Object.create(null);return!("__proto__"in t)})();function fke(t){return t}i(fke,"identity");function FVt(t){return mke(t)?"$"+t:t}i(FVt,"toSetString");ds.toSetString=pke?fke:FVt;function UVt(t){return mke(t)?t.slice(1):t}i(UVt,"fromSetString");ds.fromSetString=pke?fke:UVt;function mke(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(mke,"isProtoString");function $Vt(t,e,r){var n=mC(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:mC(t.name,e.name)}i($Vt,"compareByOriginalPositions");ds.compareByOriginalPositions=$Vt;function qVt(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=mC(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:mC(t.name,e.name)}i(qVt,"compareByGeneratedPositionsDeflated");ds.compareByGeneratedPositionsDeflated=qVt;function mC(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}i(mC,"strcmp");function HVt(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=mC(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:mC(t.name,e.name)}i(HVt,"compareByGeneratedPositionsInflated");ds.compareByGeneratedPositionsInflated=HVt;function GVt(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}i(GVt,"parseSourceMapInput");ds.parseSourceMapInput=GVt;function zVt(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=AB(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=dke(fC(n),e)}return J7(e)}i(zVt,"computeSourceURL");ds.computeSourceURL=zVt});var X7=w(hke=>{var Y7=hC(),K7=Object.prototype.hasOwnProperty,AA=typeof Map<"u";function Rd(){this._array=[],this._set=AA?new Map:Object.create(null)}i(Rd,"ArraySet");Rd.fromArray=i(function(e,r){for(var n=new Rd,s=0,o=e.length;s<o;s++)n.add(e[s],r);return n},"ArraySet_fromArray");Rd.prototype.size=i(function(){return AA?this._set.size:Object.getOwnPropertyNames(this._set).length},"ArraySet_size");Rd.prototype.add=i(function(e,r){var n=AA?e:Y7.toSetString(e),s=AA?this.has(e):K7.call(this._set,n),o=this._array.length;(!s||r)&&this._array.push(e),s||(AA?this._set.set(e,o):this._set[n]=o)},"ArraySet_add");Rd.prototype.has=i(function(e){if(AA)return this._set.has(e);var r=Y7.toSetString(e);return K7.call(this._set,r)},"ArraySet_has");Rd.prototype.indexOf=i(function(e){if(AA){var r=this._set.get(e);if(r>=0)return r}else{var n=Y7.toSetString(e);if(K7.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},"ArraySet_indexOf");Rd.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");Rd.prototype.toArray=i(function(){return this._array.slice()},"ArraySet_toArray");hke.ArraySet=Rd});var yke=w(gke=>{var Ake=hC();function VVt(t,e){var r=t.generatedLine,n=e.generatedLine,s=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=s||Ake.compareByGeneratedPositionsInflated(t,e)<=0}i(VVt,"generatedPositionAfter");function aL(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i(aL,"MappingList");aL.prototype.unsortedForEach=i(function(e,r){this._array.forEach(e,r)},"MappingList_forEach");aL.prototype.add=i(function(e){VVt(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},"MappingList_add");aL.prototype.toArray=i(function(){return this._sorted||(this._array.sort(Ake.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},"MappingList_toArray");gke.MappingList=aL});var Z7=w(Eke=>{var gB=j7(),Wr=hC(),cL=X7().ArraySet,WVt=yke().MappingList;function aa(t){t||(t={}),this._file=Wr.getArg(t,"file",null),this._sourceRoot=Wr.getArg(t,"sourceRoot",null),this._skipValidation=Wr.getArg(t,"skipValidation",!1),this._sources=new cL,this._names=new cL,this._mappings=new WVt,this._sourcesContents=null}i(aa,"SourceMapGenerator");aa.prototype._version=3;aa.fromSourceMap=i(function(e){var r=e.sourceRoot,n=new aa({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=Wr.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=Wr.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");aa.prototype.addMapping=i(function(e){var r=Wr.getArg(e,"generated"),n=Wr.getArg(e,"original",null),s=Wr.getArg(e,"source",null),o=Wr.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");aa.prototype.setSourceContent=i(function(e,r){var n=e;this._sourceRoot!=null&&(n=Wr.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Wr.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Wr.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},"SourceMapGenerator_setSourceContent");aa.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=Wr.relative(o,s));var a=new cL,c=new cL;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=Wr.join(n,l.source)),o!=null&&(l.source=Wr.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=Wr.join(n,l)),o!=null&&(l=Wr.relative(o,l)),this.setSourceContent(l,u))},this)},"SourceMapGenerator_applySourceMap");aa.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");aa.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(!Wr.compareByGeneratedPositionsInflated(u,f[m-1]))continue;l+=","}l+=gB.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(p=this._sources.indexOf(u.source),l+=gB.encode(p-a),a=p,l+=gB.encode(u.originalLine-1-s),s=u.originalLine-1,l+=gB.encode(u.originalColumn-n),n=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=gB.encode(d-o),o=d)),c+=l}return c},"SourceMapGenerator_serializeMappings");aa.prototype._generateSourcesContent=i(function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Wr.relative(r,n));var s=Wr.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)},"SourceMapGenerator_generateSourcesContent");aa.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");aa.prototype.toString=i(function(){return JSON.stringify(this.toJSON())},"SourceMapGenerator_toString");Eke.SourceMapGenerator=aa});var Cke=w(gA=>{gA.GREATEST_LOWER_BOUND=1;gA.LEAST_UPPER_BOUND=2;function eZ(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?eZ(a,e,r,n,s,o):o==gA.LEAST_UPPER_BOUND?e<n.length?e:-1:a:a-t>1?eZ(t,a,r,n,s,o):o==gA.LEAST_UPPER_BOUND?a:t<0?-1:t}i(eZ,"recursiveSearch");gA.search=i(function(e,r,n,s){if(r.length===0)return-1;var o=eZ(-1,r.length,e,r,n,s||gA.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 Ske=w(Ike=>{function tZ(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}i(tZ,"swap");function jVt(t,e){return Math.round(t+Math.random()*(e-t))}i(jVt,"randomIntInRange");function rZ(t,e,r,n){if(r<n){var s=jVt(r,n),o=r-1;tZ(t,s,n);for(var a=t[n],c=r;c<n;c++)e(t[c],a)<=0&&(o+=1,tZ(t,o,c));tZ(t,o+1,c);var l=o+1;rZ(t,e,r,l-1),rZ(t,e,l+1,n)}}i(rZ,"doQuickSort");Ike.quickSort=function(t,e){rZ(t,e,0,t.length-1)}});var xke=w(lL=>{var K=hC(),nZ=Cke(),AC=X7().ArraySet,JVt=j7(),yB=Ske().quickSort;function Yt(t,e){var r=t;return typeof t=="string"&&(r=K.parseSourceMapInput(t)),r.sections!=null?new rc(r,e):new Vn(r,e)}i(Yt,"SourceMapConsumer");Yt.fromSourceMap=function(t,e){return Vn.fromSourceMap(t,e)};Yt.prototype._version=3;Yt.prototype.__generatedMappings=null;Object.defineProperty(Yt.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},"get")});Yt.prototype.__originalMappings=null;Object.defineProperty(Yt.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:i(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},"get")});Yt.prototype._charIsMappingSeparator=i(function(e,r){var n=e.charAt(r);return n===";"||n===","},"SourceMapConsumer_charIsMappingSeparator");Yt.prototype._parseMappings=i(function(e,r){throw new Error("Subclasses must implement _parseMappings")},"SourceMapConsumer_parseMappings");Yt.GENERATED_ORDER=1;Yt.ORIGINAL_ORDER=2;Yt.GREATEST_LOWER_BOUND=1;Yt.LEAST_UPPER_BOUND=2;Yt.prototype.eachMapping=i(function(e,r,n){var s=r||null,o=n||Yt.GENERATED_ORDER,a;switch(o){case Yt.GENERATED_ORDER:a=this._generatedMappings;break;case Yt.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");Yt.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,nZ.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");lL.SourceMapConsumer=Yt;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=AC.fromArray(o.map(String),!0),this._sources=AC.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(Yt.prototype);Vn.prototype.consumer=Yt;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=AC.fromArray(e._names.toArray(),!0),o=n._sources=AC.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 wke;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 yB(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 wke(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i(wke,"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=[],g,y,E,C,S;d<u;)if(e.charAt(d)===";")n++,d++,s=0;else if(e.charAt(d)===",")d++;else{for(g=new wke,g.generatedLine=n,C=d;C<u&&!this._charIsMappingSeparator(e,C);C++);if(y=e.slice(d,C),E=p[y],E)d+=y.length;else{for(E=[];d<C;)JVt.decode(e,d,f),S=f.value,d=f.rest,E.push(S);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}g.generatedColumn=s+E[0],s=g.generatedColumn,E.length>1&&(g.source=c+E[1],c+=E[1],g.originalLine=o+E[2],o=g.originalLine,g.originalLine+=1,g.originalColumn=a+E[3],a=g.originalColumn,E.length>4&&(g.name=l+E[4],l+=E[4])),h.push(g),typeof g.originalLine=="number"&&m.push(g)}yB(h,K.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,yB(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 nZ.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",Yt.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",Yt.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");lL.BasicSourceMapConsumer=Vn;function rc(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 AC,this._names=new AC;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 Yt(K.getArg(a,"map"),e)}})}i(rc,"IndexedSourceMapConsumer");rc.prototype=Object.create(Yt.prototype);rc.prototype.constructor=Yt;rc.prototype._version=3;Object.defineProperty(rc.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")});rc.prototype.originalPositionFor=i(function(e){var r={generatedLine:K.getArg(e,"line"),generatedColumn:K.getArg(e,"column")},n=nZ.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");rc.prototype.hasContentsOfAllSources=i(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},"IndexedSourceMapConsumer_hasContentsOfAllSources");rc.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");rc.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");rc.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)}yB(this.__generatedMappings,K.compareByGeneratedPositionsDeflated),yB(this.__originalMappings,K.compareByOriginalPositions)},"IndexedSourceMapConsumer_parseMappings");lL.IndexedSourceMapConsumer=rc});var Bke=w(bke=>{var YVt=Z7().SourceMapGenerator,uL=hC(),KVt=/(\r?\n)/,XVt=10,gC="$$$isSourceNode$$$";function hi(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[gC]=!0,n!=null&&this.add(n)}i(hi,"SourceNode");hi.fromStringWithSourceMap=i(function(e,r,n){var s=new hi,o=e.split(KVt),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=uL.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?uL.join(n,f.source):f.source;s.add(new hi(f.originalLine,f.originalColumn,h,m,f.name))}}i(p,"addMappingWithCode")},"SourceNode_fromStringWithSourceMap");hi.prototype.add=i(function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[gC]||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");hi.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[gC]||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");hi.prototype.walk=i(function(e){for(var r,n=0,s=this.children.length;n<s;n++)r=this.children[n],r[gC]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})},"SourceNode_walk");hi.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");hi.prototype.replaceRight=i(function(e,r){var n=this.children[this.children.length-1];return n[gC]?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");hi.prototype.setSourceContent=i(function(e,r){this.sourceContents[uL.toSetString(e)]=r},"SourceNode_setSourceContent");hi.prototype.walkSourceContents=i(function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][gC]&&this.children[r].walkSourceContents(e);for(var s=Object.keys(this.sourceContents),r=0,n=s.length;r<n;r++)e(uL.fromSetString(s[r]),this.sourceContents[s[r]])},"SourceNode_walkSourceContents");hi.prototype.toString=i(function(){var e="";return this.walk(function(r){e+=r}),e},"SourceNode_toString");hi.prototype.toStringWithSourceMap=i(function(e){var r={code:"",line:1,column:0},n=new YVt(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)===XVt?(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");bke.SourceNode=hi});var Rke=w(dL=>{dL.SourceMapGenerator=Z7().SourceMapGenerator;dL.SourceMapConsumer=xke().SourceMapConsumer;dL.SourceNode=Bke().SourceNode});var Pke=w(pL=>{"use strict";pL.__esModule=!0;pL.safeJsonLiteral=Tke;var oZ=us(),ZVt=/[\x00-\x1f\\"\u2028\u2029<\ud800-\udfff]/,e4t=/<(?=!--|\/?script)/gi;function t4t(t){return t.replace(e4t,"\\u003C")}i(t4t,"escapeScriptDelimiters");function r4t(t){return"\\u"+t.charCodeAt(0).toString(16)}i(r4t,"escapeSurrogate");function Tke(t){return t4t(JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/[\ud800-\udfff]/g,r4t))}i(Tke,"safeJsonLiteral");var yA=void 0;try{(typeof define!="function"||!define.amd)&&(Nke=Rke(),yA=Nke.SourceNode)}catch{}var Nke;yA||(yA=i(function(t,e,r,n){this.src="",n&&this.add(n)},"SourceNode"),yA.prototype={add:i(function(e){oZ.isArray(e)&&(e=e.join("")),this.src+=e},"add"),prepend:i(function(e){oZ.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 sZ(t,e,r){if(oZ.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(sZ,"castChunk");function _ke(t){this.srcFile=t,this.source=[]}i(_ke,"CodeGen");_ke.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 yA(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 yA?e:(e=sZ(e,this,r),new yA(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+"",ZVt.test(e)?Tke(e):'"'+e+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var a=sZ(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(sZ(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};pL.default=_ke});var Mke=w((fL,Lke)=>{"use strict";fL.__esModule=!0;function Dke(t){return t&&t.__esModule?t:{default:t}}i(Dke,"_interopRequireDefault");var vke=VO(),n4t=oa(),iZ=Dke(n4t),s4t=us(),kke=Pke(),Qke=Dke(kke);function yC(t){this.value=t}i(yC,"Literal");function EC(){}i(EC,"JavaScriptCompiler");EC.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=vke.COMPILER_REVISION,r=vke.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return s4t.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 iZ.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 Qke.default(this.options.srcName),this.decorators=new Qke.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(o4t(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:EC,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 yC||(e=this.source.wrap(e)),this.inlineStack.push(e),e},"push"),pushStackLiteral:i(function(e){this.push(new yC(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 iZ.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof yC)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 yC)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 yC)return n.value;if(!r){if(!this.stackSlot)throw new iZ.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 yC?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=Oke(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=EC.RESERVED_WORDS={},r=0,n=t.length;r<n;r++)e[t[r]]=!0})();EC.isValidJavaScriptVariableName=function(t){return!EC.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)};function Oke(t){var e=t.source.currentLocation;return e?kke.safeJsonLiteral(e):"undefined"}i(Oke,"locationLiteral");function o4t(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]),", ",Oke(e)," )"]:o}i(o4t,"strictLookup");fL.default=EC;Lke.exports=fL.default});var $ke=w((mL,Uke)=>{"use strict";mL.__esModule=!0;function EB(t){return t&&t.__esModule?t:{default:t}}i(EB,"_interopRequireDefault");var i4t=MDe(),a4t=EB(i4t),c4t=Q7(),l4t=EB(c4t),aZ=XDe(),cZ=nke(),u4t=Mke(),d4t=EB(u4t),p4t=nL(),f4t=EB(p4t),m4t=T7(),h4t=EB(m4t),A4t=a4t.default.create;function Fke(){var t=A4t();return t.compile=function(e,r){return cZ.compile(e,r,t)},t.precompile=function(e,r){return cZ.precompile(e,r,t)},t.AST=l4t.default,t.Compiler=cZ.Compiler,t.JavaScriptCompiler=d4t.default,t.Parser=aZ.parser,t.parse=aZ.parse,t.parseWithoutProcessing=aZ.parseWithoutProcessing,t}i(Fke,"create");var CC=Fke();CC.create=Fke;h4t.default(CC);CC.Visitor=f4t.default;CC.default=CC;mL.default=CC;Uke.exports=mL.default});var qke=w(hL=>{"use strict";hL.__esModule=!0;hL.print=C4t;hL.PrintVisitor=Br;function g4t(t){return t&&t.__esModule?t:{default:t}}i(g4t,"_interopRequireDefault");var y4t=nL(),E4t=g4t(y4t);function C4t(t){return new Br().accept(t)}i(C4t,"print");function Br(){this.padding=0}i(Br,"PrintVisitor");Br.prototype=new E4t.default;Br.prototype.pad=function(t){for(var e="",r=0,n=this.padding;r<n;r++)e+=" ";return e+=t+`
`,e};Br.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};Br.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Br.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Br.prototype.BlockStatement=Br.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};Br.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+" }}")};Br.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+" }}")};Br.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Br.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Br.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};Br.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Br.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Br.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Br.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Br.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Br.prototype.NullLiteral=function(){return"NULL"};Br.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(", ")+"}"};Br.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Vke=w((Bjr,zke)=>{var AL=$ke().default,Gke=qke();AL.PrintVisitor=Gke.PrintVisitor;AL.print=Gke.print;zke.exports=AL;function Hke(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=AL.compile(n)}i(Hke,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Hke,require.extensions[".hbs"]=Hke)});var iOe=w(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0});IL.getProxyUrl=x4t;IL.checkBypass=oOe;function x4t(t){let e=t.protocol==="https:";if(oOe(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 CL(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new CL(`http://${r}`)}else return}i(x4t,"getProxyUrl");function oOe(t){if(!t.hostname)return!1;let e=t.hostname;if(b4t(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(oOe,"checkBypass");function b4t(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(b4t,"isLoopbackAddress");var CL=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 cOe=w(ir=>{"use strict";var B4t=ir&&ir.__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]})),R4t=ir&&ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bL=ir&&ir.__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"&&B4t(r,e,n[s]);return R4t(r,e),r}})(),$r=ir&&ir.__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(ir,"__esModule",{value:!0});ir.HttpClient=ir.HttpClientResponse=ir.HttpClientError=ir.MediaTypes=ir.Headers=ir.HttpCodes=void 0;ir.getProxyUrl=T4t;ir.isHttps=k4t;var fZ=bL(require("http")),aOe=bL(require("https")),mZ=bL(iOe()),SL=bL(Wg()),N4t=Ah(),ca;(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"})(ca||(ir.HttpCodes=ca={}));var Us;(function(t){t.Accept="accept",t.ContentType="content-type"})(Us||(ir.Headers=Us={}));var Nd;(function(t){t.ApplicationJson="application/json"})(Nd||(ir.MediaTypes=Nd={}));function T4t(t){let e=mZ.getProxyUrl(new URL(t));return e?e.href:""}i(T4t,"getProxyUrl");var _4t=[ca.MovedPermanently,ca.ResourceMoved,ca.SeeOther,ca.TemporaryRedirect,ca.PermanentRedirect],P4t=[ca.BadGateway,ca.ServiceUnavailable,ca.GatewayTimeout],v4t=["OPTIONS","GET","DELETE","HEAD"],Q4t=10,D4t=5,wL=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}};ir.HttpClientError=wL;var xL=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return $r(this,void 0,void 0,function*(){return new Promise(e=>$r(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 $r(this,void 0,void 0,function*(){return new Promise(e=>$r(this,void 0,void 0,function*(){let r=[];this.message.on("data",n=>{r.push(n)}),this.message.on("end",()=>{e(Buffer.concat(r))})}))})}};ir.HttpClientResponse=xL;function k4t(t){return new URL(t).protocol==="https:"}i(k4t,"isHttps");var hZ=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 $r(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return $r(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return $r(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return $r(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return $r(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return $r(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return $r(this,arguments,void 0,function*(r,n={}){n[Us.Accept]=this._getExistingOrDefaultHeader(n,Us.Accept,Nd.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return $r(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Us.Accept]=this._getExistingOrDefaultHeader(o,Us.Accept,Nd.ApplicationJson),o[Us.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Nd.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return $r(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Us.Accept]=this._getExistingOrDefaultHeader(o,Us.Accept,Nd.ApplicationJson),o[Us.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Nd.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return $r(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[Us.Accept]=this._getExistingOrDefaultHeader(o,Us.Accept,Nd.ApplicationJson),o[Us.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,Nd.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return $r(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&&v4t.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===ca.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&&_4t.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||!P4t.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 $r(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 xL(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=mZ.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?aOe:fZ;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({},wB(this.requestOptions.headers),wB(e||{})):wB(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=wB(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=wB(this.requestOptions.headers)[Us.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[Us.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=mZ.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||fZ.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?SL.httpsOverHttps:SL.httpsOverHttp:l=u?SL.httpOverHttps:SL.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new aOe.Agent(c):new fZ.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 N4t.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 $r(this,void 0,void 0,function*(){e=Math.min(Q4t,e);let r=D4t*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return $r(this,void 0,void 0,function*(){return new Promise((n,s)=>$r(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===ca.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 wL(d,o);p.result=a.result,s(p)}else n(a)}))})}};ir.HttpClient=hZ;var wB=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys")});var _Oe=w(($Jr,bB)=>{"use strict";var TL=i(function(){},"NullObject");TL.prototype=Object.create(null);var RL=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,NL=/\\([\v\u0020-\u00ff])/gu,ROe=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,EA={type:"",parameters:new TL};Object.freeze(EA.parameters);Object.freeze(EA);function NOe(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(ROe.test(r)===!1)throw new TypeError("invalid media type");let n={type:r.toLowerCase(),parameters:new TL};if(e===-1)return n;let s,o,a;for(RL.lastIndex=e;o=RL.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),NL.test(a)&&(a=a.replace(NL,"$1"))),n.parameters[s]=a}if(e!==t.length)throw new TypeError("invalid parameter format");return n}i(NOe,"parse");function TOe(t){if(typeof t!="string")return EA;let e=t.indexOf(";"),r=e!==-1?t.slice(0,e).trim():t.trim();if(ROe.test(r)===!1)return EA;let n={type:r.toLowerCase(),parameters:new TL};if(e===-1)return n;let s,o,a;for(RL.lastIndex=e;o=RL.exec(t);){if(o.index!==e)return EA;e+=o[0].length,s=o[1].toLowerCase(),a=o[2],a[0]==='"'&&(a=a.slice(1,a.length-1),NL.test(a)&&(a=a.replace(NL,"$1"))),n.parameters[s]=a}return e!==t.length?EA:n}i(TOe,"safeParse");bB.exports.default={parse:NOe,safeParse:TOe};bB.exports.parse=NOe;bB.exports.safeParse=TOe;bB.exports.defaultContentType=EA});var RB,Ll,cLe=A(()=>{RB={warningEmitted:!1},Ll=i(t=>{if(t&&!RB.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){RB.warningEmitted=!0;return}let e=parseInt(t.substring(1,t.indexOf("."))),r=22;e<r&&(RB.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 F8t,U8t,lLe,uLe=A(()=>{F8t=i(()=>(t,e)=>async r=>(e.__retryLongPoll=!0,t(r)),"longPollMiddleware"),U8t={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},lLe=i(t=>({applyToStack:i(e=>{e.add(F8t(),U8t)},"applyToStack")}),"getLongPollPlugin")});function of(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var dLe=A(()=>{i(of,"setCredentialFeature")});var pLe,vZ,fLe=A(()=>{pLe=require("node:stream"),vZ=i(t=>t?.body instanceof pLe.Readable||typeof ReadableStream<"u"&&t?.body instanceof ReadableStream,"isStreamingPayload")});var xA,af,cf,mLe,hLe,DL=A(()=>{xA=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),af=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),cf=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>mLe[m.step]-mLe[f.step]||hLe[m.priority||"normal"]-hLe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(h=>{let g=xA(h.name,h.aliases);if(g.includes(p)){f=!0;for(let y of g)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 g of xA(h.name,h.aliases))n.delete(g);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 C of xA(E.name,E.aliases))h[C]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let C of xA(E.name,E.aliases))h[C]=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 ${af(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:g}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=xA(m,g);if(E.length>0){if(E.some(C=>n.has(C))){if(!h)throw new Error(`Duplicate middleware name '${af(m,g)}'`);for(let C of E){let S=t.findIndex(N=>N.name===C||N.aliases?.some(_=>_===C));if(S===-1)continue;let b=t[S];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${af(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${af(m,g)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(S,1)}}for(let C of E)n.add(C)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:h,aliases:g}=f,y={middleware:p,...f},E=xA(m,g);if(E.length>0){if(E.some(C=>n.has(C))){if(!h)throw new Error(`Duplicate middleware name '${af(m,g)}'`);for(let C of E){let S=e.findIndex(N=>N.name===C||N.aliases?.some(_=>_===C));if(S===-1)continue;let b=e[S];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${af(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${af(m,g)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(S,1)}}for(let C of E)n.add(C)}e.push(y)},"addRelativeTo"),clone:i(()=>c(cf()),"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:g,name:y,aliases:E}=h;if(g&&g.includes(p)){let C=xA(y,E);for(let S of C)n.delete(S);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(cf());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 af(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"),mLe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},hLe={high:3,normal:2,low:1}});var qt=w(nc=>{var QZ;(function(t){t.HEADER="header",t.QUERY="query"})(QZ||(QZ={}));var DZ;(function(t){t.HEADER="header",t.QUERY="query"})(DZ||(DZ={}));var kZ;(function(t){t.HTTP="http",t.HTTPS="https"})(kZ||(kZ={}));var NB;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(NB||(NB={}));var $8t=i(t=>{let e=[];return t.sha256!==void 0&&e.push({algorithmId:i(()=>NB.SHA256,"algorithmId"),checksumConstructor:i(()=>t.sha256,"checksumConstructor")}),t.md5!=null&&e.push({algorithmId:i(()=>NB.MD5,"algorithmId"),checksumConstructor:i(()=>t.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),q8t=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},"resolveChecksumRuntimeConfig"),H8t=i(t=>$8t(t),"getDefaultClientConfiguration"),G8t=i(t=>q8t(t),"resolveDefaultRuntimeConfig"),OZ;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(OZ||(OZ={}));var z8t="__smithy_context",LZ;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(LZ||(LZ={}));var MZ;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(MZ||(MZ={}));nc.AlgorithmId=NB;nc.EndpointURLScheme=kZ;nc.FieldPosition=OZ;nc.HttpApiKeyAuthLocation=DZ;nc.HttpAuthLocation=QZ;nc.IniSectionType=LZ;nc.RequestHandlerProtocol=MZ;nc.SMITHY_CONTEXT_KEY=z8t;nc.getDefaultClientConfiguration=H8t;nc.resolveDefaultRuntimeConfig=G8t});var FZ,Qt,ALe=A(()=>{FZ=R(qt()),Qt=i(t=>t[FZ.SMITHY_CONTEXT_KEY]||(t[FZ.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function X(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var UZ=A(()=>{i(X,"hasOwn")});function V8t(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Ke,gLe=A(()=>{Ke=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=V8t(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(V8t,"cloneQuery")});var Rn,yLe=A(()=>{Rn=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 W8t,sc,ELe=A(()=>{W8t=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),sc=i((t,e=!1)=>{if(!e)return W8t.test(t);let r=t.split(".");for(let n of r)if(!sc(n))return!1;return!0},"isValidHostLabel")});function TB(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var CLe=A(()=>{i(TB,"isValidHostname")});var Dt,ILe=A(()=>{Dt=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function _B(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 $Z=A(()=>{i(_B,"parseQueryString")});var Wn,qZ=A(()=>{$Z();Wn=i(t=>{if(typeof t=="string")return Wn(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=_B(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var Ai,SLe=A(()=>{UZ();qZ();Ai=i(t=>{if(typeof t=="object"){if("url"in t){let e=Wn(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 Wn(t)},"toEndpointV1")});var Ce=A(()=>{ALe();UZ();gLe();yLe();ELe();CLe();ILe();$Z();qZ();SLe()});var wLe,xLe=A(()=>{wLe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var bLe,BLe=A(()=>{bLe=i(t=>()=>Promise.reject(t),"invalidProvider")});var NC,HZ=A(()=>{NC=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 RLe,NLe=A(()=>{RLe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var kL,gi,TLe,OL=A(()=>{HZ();kL={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(gi||(gi={}));TLe=i(t=>{if(t.state===gi.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},NC())}`);throw e.name="AbortError",e}else if(t.state===gi.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},NC())}`);throw e.name="TimeoutError",e}else if(t.state!==gi.SUCCESS)throw new Error(`${JSON.stringify(t,NC())}`);return t},"checkExceptions")});var _Le,j8t,J8t,Y8t,K8t,PLe=A(()=>{HZ();NLe();OL();_Le=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=Y8t(u,d,p,f);if(n?.signal?.aborted||o?.aborted){let C="AbortController signal aborted.";return l[C]|=0,l[C]+=1,{state:gi.ABORTED,observedResponses:l}}if(Date.now()+E>f)return{state:gi.TIMEOUT,observedResponses:l};await RLe(E/1e3)}let{state:g,reason:y}=await c(s,a);if(y){let E=J8t(y);l[E]|=0,l[E]+=1}if(g!==gi.RETRY)return{state:g,reason:y,final:y,observedResponses:l};p+=1,!h&&Date.now()>=m&&(j8t(l,s),h=!0)}},"runPolling"),j8t=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"),J8t=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,NC())??"Unknown")},"createMessageFromResponse"),Y8t=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=K8t(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),K8t=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var vLe,QLe=A(()=>{vLe=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 DLe,kLe,OLe=A(()=>{PLe();QLe();OL();DLe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:gi.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"),kLe=i(async(t,e,r)=>{let n={...kL,...t};vLe(n);let s=[_Le(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=DLe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=DLe(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 ps,LLe=A(()=>{DL();ps=class{static{i(this,"Client")}config;middlewareStack=cf();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 Io,GZ=A(()=>{Io=i(t=>typeof t=="function"?t():t,"deref")});var TC,LL=A(()=>{TC=i((t,e,r,n,s)=>({name:e,namespace:t,traits:r,input:n,output:s}),"operation")});var MLe,zZ,FLe=A(()=>{Ce();LL();MLe=i(t=>(e,r)=>async n=>{let{response:s}=await e(n),{operationSchema:o}=Qt(r),[,a,c,l,u,d]=o??[];try{let p=await t.protocol.deserializeResponse(TC(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(Rn.isInstance(s)){let{headers:m={},statusCode:h}=s,g=Object.entries(m);p.$metadata={httpStatusCode:h,requestId:zZ(/^x-[\w-]+-request-?id$/,g),extendedRequestId:zZ(/^x-[\w-]+-id-2$/,g),cfId:zZ(/^x-[\w-]+-cf-id$/,g)}}}catch{}}throw p}},"schemaDeserializationMiddleware"),zZ=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var ULe,$Le=A(()=>{Ce();LL();ULe=i(t=>(e,r)=>async n=>{let{operationSchema:s}=Qt(r),[,o,a,c,l,u]=s??[],d=r.endpointV2?async()=>Ai(r.endpointV2):t.endpoint,p=await t.protocol.serializeRequest(TC(o,a,c,l,u),n.input,{...t,...r,endpoint:d});return e({...n,request:p})},"schemaSerializationMiddleware")});function Ml(t){return{applyToStack:i(e=>{e.add(ULe(t),WZ),e.add(MLe(t),VZ),t.protocol.setSerdeContext(t)},"applyToStack")}}var VZ,WZ,qLe=A(()=>{FLe();$Le();VZ={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},WZ={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(Ml,"getSchemaSerdePlugin")});var Rr,lf=A(()=>{Rr=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 PB,HLe,GLe=A(()=>{lf();PB=class t extends Rr{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=t.symbol},HLe=i((t,e,r,n)=>Rr.assign(new PB,{name:e,namespace:t,traits:r,valueSchema:n}),"list")});var vB,zLe,VLe=A(()=>{lf();vB=class t extends Rr{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=t.symbol},zLe=i((t,e,r,n,s)=>Rr.assign(new vB,{name:e,namespace:t,traits:r,keySchema:n,valueSchema:s}),"map")});var QB,WLe,jLe=A(()=>{lf();QB=class t extends Rr{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");input;output;symbol=t.symbol},WLe=i((t,e,r,n,s)=>Rr.assign(new QB,{name:e,namespace:t,traits:r,input:n,output:s}),"op")});var bA,JLe,jZ=A(()=>{lf();bA=class t extends Rr{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=t.symbol},JLe=i((t,e,r,n,s)=>Rr.assign(new bA,{name:e,namespace:t,traits:r,memberNames:n,memberList:s}),"struct")});var DB,YLe,KLe=A(()=>{lf();jZ();DB=class t extends bA{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=t.symbol},YLe=i((t,e,r,n,s,o)=>Rr.assign(new DB,{name:e,namespace:t,traits:r,memberNames:n,memberList:s,ctor:null}),"error")});function oc(t){if(typeof t=="object")return t;if(t=t|0,kB[t])return kB[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return kB[t]=e}var kB,JZ=A(()=>{kB=[];i(oc,"translateTraits")});function LB(t,e){if(t instanceof O)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=O;return new r(t,e)}var OB,MB,FB,O,YZ,KZ,XLe=A(()=>{GZ();JZ();OB={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},MB=[],FB={},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;YZ(s);)n.push(s[1]),s=s[0],o=Io(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,oc(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=Io(o),KZ(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(MB[e])return MB[e]}else if(typeof e=="string"){if(FB[e])return FB[e]}else if(r&&e[OB.ns])return e[OB.ns];let n=Io(e);if(n instanceof t)return n;if(YZ(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),oc(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[OB.ns]=s:typeof n=="string"?FB[n]=s:typeof n=="number"?MB[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 oc(this.memberTraits)}getOwnTraits(){return oc(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 LB([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 LB([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 LB(YZ(s)?s:[s,0],e)}if(this.isDocumentSchema())return LB([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[OB.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=LB([e[5][s],0],o);yield n[s]=[o,a]}e[OB.it]=n}};i(LB,"member");YZ=i(t=>Array.isArray(t)&&t.length===2,"isMemberSchema"),KZ=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var _C,ZLe,eMe,tMe=A(()=>{lf();_C=class t extends Rr{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=t.symbol},ZLe=i((t,e,r,n)=>Rr.assign(new _C,{name:e,namespace:t,traits:n,schemaRef:r}),"sim"),eMe=i((t,e,r,n)=>Rr.assign(new _C,{name:e,namespace:t,traits:r,schemaRef:n}),"simAdapter")});var rMe,nMe=A(()=>{rMe={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 xt,sMe=A(()=>{xt=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 XZ={};St(XZ,{ErrorSchema:()=>DB,ListSchema:()=>PB,MapSchema:()=>vB,NormalizedSchema:()=>O,OperationSchema:()=>QB,SCHEMA:()=>rMe,Schema:()=>Rr,SimpleSchema:()=>_C,StructureSchema:()=>bA,TypeRegistry:()=>xt,deref:()=>Io,deserializerMiddlewareOption:()=>VZ,error:()=>YLe,getSchemaSerdePlugin:()=>Ml,isStaticSchema:()=>KZ,list:()=>HLe,map:()=>zLe,op:()=>WLe,operation:()=>TC,serializerMiddlewareOption:()=>WZ,sim:()=>ZLe,simAdapter:()=>eMe,simpleSchemaCacheN:()=>MB,simpleSchemaCacheS:()=>FB,struct:()=>JLe,traitsCache:()=>kB,translateTraits:()=>oc});var We=A(()=>{GZ();qLe();GLe();VLe();jLe();LL();KLe();XLe();lf();tMe();jZ();nMe();JZ();sMe()});function PC(t,e){if(e==null)return e;let r=O.of(t);if(r.getMergedTraits().sensitive)return ZZ;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return ZZ}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return ZZ}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=PC(a,n[o]));return s}return e}var ZZ,eee=A(()=>{We();ZZ="***SensitiveInformation***";i(PC,"schemaLogFilter")});var tee,oMe,$s,ree,nee=A(()=>{tee=R(qt());DL();eee();We();oMe=Symbol.for("@smithy/op-event-stream"),$s=class{static{i(this,"Command")}middlewareStack=cf();schema;static classBuilder(){return new ree}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[tee.SMITHY_CONTEXT_KEY],g={logger:m,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[tee.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 C,S=this.schema,b=S?.[oMe];if(b!==void 0)C=b;else if(S&&Array.isArray(S)&&S[0]===9){let[,,,,N,_]=S;C=S[oMe]=!!(O.of(N).getEventStreamMember()||O.of(_).getEventStreamMember())}return C&&(E={isEventStream:C,...E}),f.resolve(N=>y.handle(N.request,E),g)}},ree=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 $s{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?PC.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?PC.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var iMe,aMe=A(()=>{iMe="***SensitiveInformation***"});var Fl,cMe=A(()=>{Fl=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 ua,BA,see=A(()=>{ua=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}},BA=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 oee,lMe,X8t,uMe=A(()=>{see();oee=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=X8t(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw BA(a,e)},"throwDefaultError"),lMe=i(t=>({output:e,parsedBody:r,errorCode:n})=>{oee({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),X8t=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 Ul,dMe=A(()=>{Ul=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 pMe,$l,fMe=A(()=>{pMe=!1,$l=i(t=>{t&&!pMe&&parseInt(t.substring(1,t.indexOf(".")))<16&&(pMe=!0)},"emitWarningIfUnsupportedVersion")});var RA,mMe,ML,FL,iee=A(()=>{Ce();RA=R(qt()),mMe=Object.values(RA.AlgorithmId),ML=i(t=>{let e=[];for(let r in RA.AlgorithmId){if(!X(RA.AlgorithmId,r))continue;let n=RA.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();mMe.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),FL=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();mMe.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var UL,$L,aee=A(()=>{UL=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),$L=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var ic,hMe,ql,AMe=A(()=>{iee();aee();ic=i(t=>Object.assign(ML(t),UL(t)),"getDefaultExtensionConfiguration"),hMe=ic,ql=i(t=>Object.assign(FL(t),$L(t)),"resolveDefaultRuntimeConfig")});var gMe,yMe=A(()=>{gMe=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var NA,EMe=A(()=>{Ce();NA=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]=NA(t[r])));return t},"getValueFromTextNode")});var CMe,IMe=A(()=>{CMe=i(t=>t!=null,"isSerializableHeaderValue")});var So,SMe=A(()=>{So=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function cee(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,Z8t(n,s,o);o=e}for(let a in o)if(X(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}bMe(n,null,o,a)}return n}var wMe,xMe,Z8t,bMe,eWt,tWt,BMe=A(()=>{Ce();i(cee,"map");wMe=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),xMe=i((t,e)=>{let r={};for(let n in e)X(e,n)&&bMe(r,t,e,n);return r},"take"),Z8t=i((t,e,r)=>cee(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"),bMe=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=eWt,l=tWt,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"),eWt=i(t=>t!=null,"nonNullish"),tWt=i(t=>t,"pass")});var RMe,NMe,TMe=A(()=>{RMe=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),NMe=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var qL,_Me=A(()=>{Ce();qL=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(qL);if(typeof t=="object"){let e={};for(let r in t)X(t,r)&&t[r]!=null&&(e[r]=qL(t[r]));return e}return t},"_json")});function Hl(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return $s.classBuilder().ep(d).m(function(p,f,m,h){let g=a.call(this,p,f,m,h);return g.unshift(n(m,p.getEndpointParameterInstructions())),g}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var PMe=A(()=>{nee();i(Hl,"makeBuilder")});var UB={};St(UB,{AlgorithmId:()=>RA.AlgorithmId,Client:()=>ps,Command:()=>$s,NoOpLogger:()=>So,SENSITIVE_STRING:()=>iMe,ServiceException:()=>ua,WaiterState:()=>gi,_json:()=>qL,checkExceptions:()=>TLe,constructStack:()=>cf,convertMap:()=>wMe,createAggregatedClient:()=>Fl,createWaiter:()=>kLe,decorateServiceException:()=>BA,emitWarningIfUnsupportedVersion:()=>$l,getArrayIfSingleItem:()=>gMe,getChecksumConfiguration:()=>ML,getDefaultClientConfiguration:()=>hMe,getDefaultExtensionConfiguration:()=>ic,getRetryConfiguration:()=>UL,getSmithyContext:()=>Qt,getValueFromTextNode:()=>NA,invalidFunction:()=>wLe,invalidProvider:()=>bLe,isSerializableHeaderValue:()=>CMe,loadConfigsForDefaultMode:()=>Ul,makeBuilder:()=>Hl,map:()=>cee,normalizeProvider:()=>Dt,resolveChecksumRuntimeConfig:()=>FL,resolveDefaultRuntimeConfig:()=>ql,resolveRetryRuntimeConfig:()=>$L,schemaLogFilter:()=>PC,serializeDateTime:()=>NMe,serializeFloat:()=>RMe,take:()=>xMe,throwDefaultError:()=>oee,waiterServiceDefaults:()=>kL,withBaseException:()=>lMe});var Ie=A(()=>{DL();Ce();Ce();xLe();BLe();OLe();OL();LLe();nee();aMe();cMe();uMe();dMe();fMe();see();AMe();iee();aee();yMe();EMe();IMe();SMe();BMe();eee();TMe();_Me();PMe()});var HL,lee=A(()=>{HL=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var ac,uf,df=A(()=>{lee();ac=i((t,e=0,r=t.byteLength-e)=>{if(!HL(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),uf=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 rWt,Nr,vMe=A(()=>{df();rWt=/^[A-Za-z0-9+/]*={0,2}$/,Nr=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!rWt.exec(t))throw new TypeError("Invalid base64 string.");let e=uf(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var dn,GL=A(()=>{df();dn=i(t=>{let e=uf(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Ht,uee=A(()=>{df();GL();Ht=i(t=>{let e;if(typeof t=="string"?e=dn(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 ac(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function QMe(t,e,r,n){return class zL extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?zL.mutate(n(o)):zL.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,zL.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var DMe=A(()=>{i(QMe,"bindUint8ArrayBlobAdapter")});var Kt,kMe=A(()=>{df();Kt=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 ac(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function OMe(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,fs[e[0]]+fs[e[1]]+fs[e[2]]+fs[e[3]]+"-"+fs[e[4]]+fs[e[5]]+"-"+fs[e[6]]+fs[e[7]]+"-"+fs[e[8]]+fs[e[9]]+"-"+fs[e[10]]+fs[e[11]]+fs[e[12]]+fs[e[13]]+fs[e[14]]+fs[e[15]]}}var fs,LMe=A(()=>{fs=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(OMe,"bindV4")});var MMe,FMe=A(()=>{MMe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var UMe,$Me,vC,nWt,$B,QC,qMe,VL,WL,jL,dee,sWt,HMe,pee,GMe,YL,qB,zMe,KL,oWt,kC,XL,VMe,WMe,jMe,JMe,fee,YMe,KMe,pf,ZL,JL,DC,mee=A(()=>{Ce();UMe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),$Me=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&DC.warn(JL(`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")&&DC.warn(JL(`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"),vC=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&DC.warn(JL(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),nWt=Math.ceil(2**127*(2-2**-23)),$B=i(t=>{let e=vC(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>nWt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),QC=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),qMe=QC,VL=i(t=>dee(t,32),"expectInt32"),WL=i(t=>dee(t,16),"expectShort"),jL=i(t=>dee(t,8),"expectByte"),dee=i((t,e)=>{let r=QC(t);if(r!==void 0&&sWt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),sWt=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"),HMe=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"),pee=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"),GMe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return DC.warn(JL(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),YL=i(t=>{if(t==null)return;let e=pee(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"),qB=i(t=>vC(typeof t=="string"?kC(t):t),"strictParseDouble"),zMe=qB,KL=i(t=>$B(typeof t=="string"?kC(t):t),"strictParseFloat32"),oWt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,kC=i(t=>{let e=t.match(oWt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),XL=i(t=>typeof t=="string"?JMe(t):vC(t),"limitedParseDouble"),VMe=XL,WMe=XL,jMe=i(t=>typeof t=="string"?JMe(t):$B(t),"limitedParseFloat32"),JMe=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"),fee=i(t=>QC(typeof t=="string"?kC(t):t),"strictParseLong"),YMe=fee,KMe=i(t=>VL(typeof t=="string"?kC(t):t),"strictParseInt32"),pf=i(t=>WL(typeof t=="string"?kC(t):t),"strictParseShort"),ZL=i(t=>jL(typeof t=="string"?kC(t):t),"strictParseByte"),JL=i(t=>String(new TypeError(t).stack||t).split(`
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
`),"stackTraceWarning"),DC={warn:console.warn}});function yi(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`${iWt[n]}, ${l} ${Aee[r]} ${e} ${u}:${d}:${p} GMT`}var iWt,Aee,aWt,XMe,cWt,LC,lWt,uWt,dWt,ff,MC,HB,pWt,fWt,mWt,hee,hWt,AWt,gWt,Gl,yWt,EWt,OC,ZMe=A(()=>{mee();iWt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Aee=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(yi,"dateToUtcString");aWt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),XMe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=aWt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=pf(OC(n)),p=Gl(s,"month",1,12),f=Gl(o,"day",1,31);return HB(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),cWt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),LC=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=cWt.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=pf(OC(n)),f=Gl(s,"month",1,12),m=Gl(o,"day",1,31),h=HB(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-EWt(d)),h},"parseRfc3339DateTimeWithOffset"),lWt=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$/),uWt=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$/),dWt=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})$/),ff=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=lWt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return HB(pf(OC(o)),hee(s),Gl(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=uWt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return mWt(HB(pWt(o),hee(s),Gl(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=dWt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return HB(pf(OC(u)),hee(n),Gl(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),MC=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=qB(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"),HB=i((t,e,r,n)=>{let s=e-1;return AWt(t,s,r),new Date(Date.UTC(t,s,r,Gl(n.hours,"hour",0,23),Gl(n.minutes,"minute",0,59),Gl(n.seconds,"seconds",0,60),yWt(n.fractionalMilliseconds)))},"buildDate"),pWt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+pf(OC(t));return r<e?r+100:r},"parseTwoDigitYear"),fWt=50*365*24*60*60*1e3,mWt=i(t=>t.getTime()-new Date().getTime()>fWt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),hee=i(t=>{let e=Aee.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),hWt=[31,28,31,30,31,30,31,31,30,31,30,31],AWt=i((t,e,r)=>{let n=hWt[e];if(e===1&&gWt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Aee[e]} in ${t}: ${r}`)},"validateDayOfMonth"),gWt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Gl=i((t,e,r,n)=>{let s=ZL(OC(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),yWt=i(t=>t==null?0:KL("0."+t)*1e3,"parseMilliseconds"),EWt=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"),OC=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var jr,e1e=A(()=>{jr=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");jr.from=t=>t&&typeof t=="object"&&(t instanceof jr||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?jr(String(t)):jr(JSON.stringify(t));jr.fromObject=jr.from});function eM(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var t1e=A(()=>{i(eM,"quoteHeader")});function Td(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var gee,yee,Eee,r1e,n1e,CWt,IWt,SWt,wWt,xWt,mf,tM,rM,s1e=A(()=>{gee="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",yee="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",Eee="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",r1e="(\\d?\\d)",n1e="(\\d{4})",CWt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),IWt=new RegExp(`^${gee}, ${r1e} ${yee} ${n1e} ${Eee} GMT$`),SWt=new RegExp(`^${gee}, ${r1e}-${yee}-(\\d\\d) ${Eee} GMT$`),wWt=new RegExp(`^${gee} ${yee} ( [1-9]|\\d\\d) ${Eee} ${n1e}$`),xWt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mf=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"),tM=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=CWt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;Td(n,1,12),Td(s,1,31),Td(o,0,23),Td(a,0,59),Td(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"),rM=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=IWt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=SWt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=wWt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),xWt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Td(e,1,31),Td(s,0,23),Td(o,0,59),Td(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(Td,"range")});function nM(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 o1e=A(()=>{i(nM,"splitEvery")});var FC,i1e=A(()=>{FC=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 sM(t){return new Xe(String(t),"bigDecimal")}var a1e,Xe,c1e=A(()=>{a1e=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Xe=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!a1e.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"&&a1e.test(r.string)}};i(sM,"nv")});function oM(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 Cee)e[r/2]=Cee[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function da(t){let e="";for(let r=0;r<t.byteLength;r++)e+=l1e[t[r]];return e}var l1e,Cee,Iee=A(()=>{l1e={},Cee={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),l1e[t]=e,Cee[e]=t}i(oM,"fromHex");i(da,"toHex")});var UC,zl,u1e=A(()=>{UC=require("node:fs"),zl=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 UC.ReadStream){if(t.path!=null)return(0,UC.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,UC.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var qs,See=A(()=>{GL();qs=i(t=>t instanceof Uint8Array?t:typeof t=="string"?dn(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function Vl(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 GB=A(()=>{i(Vl,"concatBytes")});var iM,wee,xee=A(()=>{Ce();iM=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(Rn.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:wee(/^x-[\w-]+-request-?id$/,u),extendedRequestId:wee(/^x-[\w-]+-id-2$/,u),cfId:wee(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),wee=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var Ei,zB=A(()=>{Ei=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 hf,aM=A(()=>{zB();hf=class t extends Ei{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var cM,d1e=A(()=>{zB();cM=class t extends Ei{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var lM,bee=A(()=>{zB();lM=i((...t)=>async()=>{if(t.length===0)throw new Ei("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 uM,Bee=A(()=>{uM=i(t=>()=>Promise.resolve(t),"fromValue")});var $C,dM=A(()=>{$C=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 Nn,pM=A(()=>{Nn=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 p1e,f1e=A(()=>{p1e=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 Jr,fM=A(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(Jr||(Jr={}))});var m1e,h1e,Ree,bWt,Wl,qC=A(()=>{m1e=require("node:os"),h1e=require("node:path"),Ree={},bWt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Wl=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${h1e.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=bWt();return Ree[s]||(Ree[s]=(0,m1e.homedir)()),Ree[s]},"getHomeDir")});var Nee,Tee,mM,_ee=A(()=>{Nee="AWS_PROFILE",Tee="default",mM=i(t=>t.profile||process.env[Nee]||Tee,"getProfileName")});var A1e,g1e,hM,Pee=A(()=>{A1e=require("node:crypto"),g1e=require("node:path");qC();hM=i(t=>{let r=(0,A1e.createHash)("sha1").update(t).digest("hex");return(0,g1e.join)(Wl(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var y1e,VB,E1e,vee=A(()=>{y1e=require("node:fs/promises");Pee();VB={},E1e=i(async t=>{if(VB[t])return VB[t];let e=hM(t),r=await(0,y1e.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var jl,C1e=A(()=>{jl="."});var Qee,I1e,S1e=A(()=>{Qee=R(qt()),I1e=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(Qee.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===Qee.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var w1e,BWt,AM,Dee=A(()=>{w1e=require("node:path");qC();BWt="AWS_CONFIG_FILE",AM=i(()=>process.env[BWt]||(0,w1e.join)(Wl(),".aws","config"),"getConfigFilepath")});var x1e,RWt,b1e,B1e=A(()=>{x1e=require("node:path");qC();RWt="AWS_SHARED_CREDENTIALS_FILE",b1e=i(()=>process.env[RWt]||(0,x1e.join)(Wl(),".aws","credentials"),"getCredentialsFilepath")});var R1e,NWt,TWt,WB,kee=A(()=>{R1e=R(qt()),NWt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,TWt=["__proto__","profile __proto__"],WB=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=NWt.exec(c);if(l){let[,u,,d]=l;Object.values(R1e.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(TWt.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 N1e,Oee,jB,TA,JB=A(()=>{N1e=require("node:fs/promises"),Oee={},jB={},TA=i((t,e)=>jB[t]!==void 0?jB[t]:((!Oee[t]||e?.ignoreCache)&&(Oee[t]=(0,N1e.readFile)(t,"utf8")),Oee[t]),"readFile")});var Lee,T1e,HC,gM=A(()=>{Lee=require("node:path");S1e();Dee();B1e();qC();kee();JB();T1e=i(()=>({}),"swallowError"),HC=i(async(t={})=>{let{filepath:e=b1e(),configFilepath:r=AM()}=t,n=Wl(),s="~/",o=e;e.startsWith(s)&&(o=(0,Lee.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,Lee.join)(n,r.slice(2)));let c=await Promise.all([TA(a,{ignoreCache:t.ignoreCache}).then(WB).then(I1e).catch(T1e),TA(o,{ignoreCache:t.ignoreCache}).then(WB).catch(T1e)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var _1e,P1e,v1e=A(()=>{_1e=R(qt()),P1e=i(t=>Object.entries(t).filter(([e])=>e.startsWith(_1e.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var _Wt,Q1e,D1e=A(()=>{Dee();v1e();kee();JB();_Wt=i(()=>({}),"swallowError"),Q1e=i(async(t={})=>TA(t.configFilepath??AM()).then(WB).then(P1e).catch(_Wt),"loadSsoSessionData")});var k1e,O1e=A(()=>{k1e=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 L1e,M1e=A(()=>{gM();O1e();L1e=i(async t=>{let e=await HC(t);return k1e(e.configFile,e.credentialsFile)},"parseKnownFiles")});var F1e,U1e=A(()=>{vee();JB();F1e={getFileRecord(){return jB},interceptFile(t,e){jB[t]=Promise.resolve(e)},getTokenRecord(){return VB},interceptToken(t,e){VB[t]=e}}});function yM(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 Mee=A(()=>{i(yM,"getSelectorName")});var $1e,q1e=A(()=>{aM();Mee();$1e=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new hf(r.message||`Not found in ENV: ${yM(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var H1e,G1e=A(()=>{aM();_ee();gM();Mee();H1e=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=mM(r),{configFile:s,credentialsFile:o}=await HC(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 hf(u.message||`Not found in config files w/ profile [${n}]: ${yM(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var PWt,EM,Fee=A(()=>{Bee();PWt=i(t=>typeof t=="function","isFunction"),EM=i(t=>PWt(t)?async()=>await t():uM(t),"fromStatic")});var ve,Uee=A(()=>{bee();dM();q1e();G1e();Fee();ve=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return $C(lM($1e(t,{signingName:s,logger:o}),H1e(e,n),EM(r)))},"loadConfig")});var CM,IM,z1e,Jl,V1e,W1e=A(()=>{pM();fM();CM="AWS_USE_DUALSTACK_ENDPOINT",IM="use_dualstack_endpoint",z1e=!1,Jl={environmentVariableSelector:i(t=>Nn(t,CM,Jr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Nn(t,IM,Jr.CONFIG),"configFileSelector"),default:!1},V1e={environmentVariableSelector:i(t=>Nn(t,CM,Jr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Nn(t,IM,Jr.CONFIG),"configFileSelector"),default:void 0}});var SM,wM,j1e,Yl,J1e,Y1e=A(()=>{pM();fM();SM="AWS_USE_FIPS_ENDPOINT",wM="use_fips_endpoint",j1e=!1,Yl={environmentVariableSelector:i(t=>Nn(t,SM,Jr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Nn(t,wM,Jr.CONFIG),"configFileSelector"),default:!1},J1e={environmentVariableSelector:i(t=>Nn(t,SM,Jr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Nn(t,wM,Jr.CONFIG),"configFileSelector"),default:void 0}});var K1e,X1e=A(()=>{Ie();K1e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:Dt(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:Dt(s??!1)})},"resolveCustomEndpointsConfig")});var Z1e,eFe=A(()=>{Z1e=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 tFe,rFe=A(()=>{Ie();eFe();tFe=i(t=>{let e=Dt(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?Dt(typeof r=="string"?s(r):r):()=>Z1e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var nFe,$ee,qee,sFe,oFe,iFe,aFe,cFe,lFe,Hee=A(()=>{nFe="AWS_EXECUTION_ENV",$ee="AWS_REGION",qee="AWS_DEFAULT_REGION",sFe="AWS_EC2_METADATA_DISABLED",oFe=["in-region","cross-region","mobile","standard","legacy"],iFe="/latest/meta-data/placement/region",aFe="/latest/api/token",cFe="x-aws-ec2-metadata-token",lFe="x-aws-ec2-metadata-token-ttl-seconds"});var uFe,vWt,fFe,xM,dFe,QWt,pFe,Gee=A(()=>{Hee();uFe=1e3,vWt=6e4,fFe=0,xM=i(async()=>{if(!process.env[sFe]&&!(Date.now()<fFe))try{let t=QWt(),e=(await pFe({...t,path:aFe,method:"PUT",headers:{[lFe]:"21600"}})).toString();return(await pFe({...t,path:iFe,method:"GET",headers:{[cFe]:e}})).toString().trim()||dFe()}catch{return dFe()}},"getInstanceMetadataRegion"),dFe=i(()=>{fFe=Date.now()+vWt},"cacheNegativeAndReturnUndefined"),QWt=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"),pFe=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:uFe,signal:AbortSignal.timeout(uFe)});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 GC,zC,jn,Hs,zee=A(()=>{Gee();GC="AWS_REGION",zC="region",jn={environmentVariableSelector:i(t=>t[GC],"environmentVariableSelector"),configFileSelector:i(t=>t[zC],"configFileSelector"),default:i(async()=>{let t=await xM();if(t)return t;throw new Error("Region is missing")},"default")},Hs={preferredFile:"credentials"}});var mFe,hFe,AFe=A(()=>{Ce();mFe=new Set,hFe=i((t,e=sc)=>{if(!mFe.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 mFe.add(t)},"checkRegion")});var bM,Vee=A(()=>{bM=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var gFe,yFe=A(()=>{Vee();gFe=i(t=>bM(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var Ci,EFe=A(()=>{AFe();yFe();Vee();Ci=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=gFe(n);return hFe(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return bM(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var Wee,CFe=A(()=>{Wee=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var IFe,SFe=A(()=>{IFe=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var wFe,xFe=A(()=>{wFe=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var bFe,BFe=A(()=>{bFe=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 RFe,NFe=A(()=>{CFe();SFe();xFe();BFe();RFe=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=wFe(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=Wee(s[c]?.variants,l),d=Wee(o[a]?.variants,l),p=IFe(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=bFe(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 DWt,kWt,TFe,_Fe=A(()=>{DWt="AWS_DEFAULTS_MODE",kWt="defaults_mode",TFe={environmentVariableSelector:i(t=>t[DWt],"environmentVariableSelector"),configFileSelector:i(t=>t[kWt],"configFileSelector"),default:"legacy"}});var Kl,OWt,LWt,PFe=A(()=>{zee();Gee();Uee();dM();Hee();_Fe();Kl=i(({region:t=ve(jn),defaultsMode:e=ve(TFe)}={})=>$C(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return OWt(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 ${oFe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),OWt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await LWt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),LWt=i(async()=>process.env[nFe]&&(process.env[$ee]||process.env[qee])?process.env[$ee]??process.env[qee]:xM(),"inferPhysicalRegion")});var pa={};St(pa,{CONFIG_PREFIX_SEPARATOR:()=>jl,CONFIG_USE_DUALSTACK_ENDPOINT:()=>IM,CONFIG_USE_FIPS_ENDPOINT:()=>wM,CredentialsProviderError:()=>hf,DEFAULT_PROFILE:()=>Tee,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>z1e,DEFAULT_USE_FIPS_ENDPOINT:()=>j1e,ENV_PROFILE:()=>Nee,ENV_USE_DUALSTACK_ENDPOINT:()=>CM,ENV_USE_FIPS_ENDPOINT:()=>SM,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Hs,NODE_REGION_CONFIG_OPTIONS:()=>jn,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>Jl,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>Yl,ProviderError:()=>Ei,REGION_ENV_NAME:()=>GC,REGION_INI_NAME:()=>zC,SelectorType:()=>Jr,TokenProviderError:()=>cM,booleanSelector:()=>Nn,chain:()=>lM,externalDataInterceptor:()=>F1e,fromStatic:()=>EM,fromValue:()=>uM,getHomeDir:()=>Wl,getProfileName:()=>mM,getRegionInfo:()=>RFe,getSSOTokenFilepath:()=>hM,getSSOTokenFromFile:()=>E1e,loadConfig:()=>ve,loadSharedConfigFiles:()=>HC,loadSsoSessionData:()=>Q1e,memoize:()=>$C,nodeDualstackConfigSelectors:()=>V1e,nodeFipsConfigSelectors:()=>J1e,numberSelector:()=>p1e,parseKnownFiles:()=>L1e,readFile:()=>TA,resolveCustomEndpointsConfig:()=>K1e,resolveDefaultsModeConfig:()=>Kl,resolveEndpointsConfig:()=>tFe,resolveRegionConfig:()=>Ci});var kt=A(()=>{zB();aM();d1e();bee();Bee();dM();pM();f1e();fM();qC();_ee();Pee();vee();C1e();gM();D1e();M1e();U1e();JB();Uee();Fee();W1e();Y1e();X1e();rFe();zee();EFe();NFe();PFe()});var vFe,QFe,DFe,kFe=A(()=>{vFe="AWS_ENDPOINT_URL",QFe="endpoint_url",DFe=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[vFe,...r].join("_")];if(n)return n;let s=e[vFe];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("_"),QFe].join(".")];if(c)return c}let n=e[QFe];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var MWt,FWt,OFe,LFe=A(()=>{kt();MWt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",FWt="ignore_configured_endpoint_urls",OFe={environmentVariableSelector:i(t=>Nn(t,MWt,Jr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Nn(t,FWt,Jr.CONFIG),"configFileSelector"),default:!1}});var YB,MFe=A(()=>{kt();kFe();LFe();YB=i(async t=>{if(!await ve(OFe)())return ve(DFe(t??""))()},"getEndpointFromConfig")});var jee,UWt,$Wt,qWt,FFe,UFe,$Fe=A(()=>{jee=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),UFe(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!FFe(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"),UWt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,$Wt=/(\d+\.){3}\d+/,qWt=/\.\./,FFe=i(t=>UWt.test(t)&&!$Wt.test(t)&&!qWt.test(t),"isDnsCompatibleBucketName"),UFe=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 qFe=A(()=>{$Fe()});var HFe,GFe=A(()=>{HFe=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 BM=A(()=>{Ce()});function RM(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(Ai(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await KB(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 KB,NM=A(()=>{qFe();GFe();BM();i(RM,"bindGetEndpointFromInstructions");KB=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 HFe(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 jee(n),n},"resolveParams")});function HWt(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 TM(t){let e=RM(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&HWt(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=Qt(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 Jee=A(()=>{Ce();NM();i(HWt,"setFeature");i(TM,"bindEndpointMiddleware")});function zFe(t){let e=TM(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),Yee)},"applyToStack")})}var GWt,Yee,Kee=A(()=>{Jee();GWt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},Yee={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:GWt.name};i(zFe,"bindGetEndpointPlugin")});function VFe(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>Ai(await Dt(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:Dt(s??!1),useFipsEndpoint:Dt(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var WFe=A(()=>{Ce();BM();i(VFe,"bindResolveEndpointConfig")});var fa,jFe=A(()=>{fa=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 ma,JFe=A(()=>{ma=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 ut,YFe=A(()=>{ut=class extends Error{static{i(this,"EndpointError")}constructor(e){super(e),this.name="EndpointError"}}});var Ii=A(()=>{YFe()});var Xl,KFe=A(()=>{Xl="endpoints"});function Si(t){return typeof t!="object"||t==null?t:"ref"in t?`$${Si(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(Si).join(", ")})`:JSON.stringify(t,null,2)}var XFe=A(()=>{i(Si,"toDebugString")});var XB=A(()=>{KFe();XFe()});var wo,Xee=A(()=>{wo={}});var Zee,ZFe=A(()=>{Zee=i((t,e)=>t===e,"booleanEquals")});function ete(...t){for(let e of t)if(e!=null)return e}var eUe=A(()=>{i(ete,"coalesce")});var tUe,rUe=A(()=>{Ii();tUe=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 ut(`Path: '${t}' does not end with ']'`);let o=n.slice(s+1,-1);if(Number.isNaN(parseInt(o)))throw new ut(`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 ZB,nUe=A(()=>{Ii();rUe();ZB=i((t,e)=>tUe(e).reduce((r,n)=>{if(typeof r!="object")throw new ut(`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 tte,sUe=A(()=>{tte=i(t=>t!=null,"isSet")});function rte(t,e,r){return t?e:r}var oUe=A(()=>{i(rte,"ite")});var nte,iUe=A(()=>{nte=i(t=>!t,"not")});var zWt,_d,ste=A(()=>{zWt=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}$"),_d=i(t=>zWt.test(t)||t.startsWith("[")&&t.endsWith("]"),"isIpAddress")});var _M,ote,ite,aUe=A(()=>{_M=R(qt());ste();ote={[_M.EndpointURLScheme.HTTP]:80,[_M.EndpointURLScheme.HTTPS]:443},ite=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:g="",query:y={}}=t,E=new URL(`${h}//${f}${m?`:${m}`:""}${g}`);return E.search=Object.entries(y).map(([C,S])=>`${C}=${S}`).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(_M.EndpointURLScheme).includes(l))return null;let u=_d(s),d=r.includes(`${n}:${ote[l]}`)||typeof t=="string"&&t.includes(`${n}:${ote[l]}`),p=`${n}${d?`:${ote[l]}`:""}`;return{scheme:l,authority:p,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL")});function ate(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 cUe=A(()=>{i(ate,"split")});var cte,lUe=A(()=>{cte=i((t,e)=>t===e,"stringEquals")});var lte,uUe=A(()=>{lte=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 ute,dUe=A(()=>{ute=i(t=>encodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode")});var dte=A(()=>{ZFe();eUe();nUe();sUe();Ce();oUe();iUe();aUe();cUe();lUe();uUe();dUe()});var pUe,fUe=A(()=>{dte();pUe={booleanEquals:Zee,coalesce:ete,getAttr:ZB,isSet:tte,isValidHostLabel:sc,ite:rte,not:nte,parseURL:ite,split:ate,stringEquals:cte,substring:lte,uriEncode:ute}});var PM,pte=A(()=>{dte();PM=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(ZB(n[u]??s[u],d))}else r.push(n[l]??s[l]);o=c+1}return r.join("")},"evaluateTemplate")});var mUe,hUe=A(()=>{mUe=i(({ref:t},e)=>e.referenceRecord[t]??e.endpointParams[t],"getReferenceValue")});var Pd,vM,AUe,VC=A(()=>{Ii();Xee();fUe();pte();hUe();Pd=i((t,e,r)=>{if(typeof t=="string")return PM(t,r);if(t.fn)return AUe.callFunction(t,r);if(t.ref)return mUe(t,r);throw new ut(`'${e}': ${String(t)} is not a string, function or reference.`)},"evaluateExpression"),vM=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]=AUe.evaluateExpression(c,"arg",r)}let s=t.indexOf(".");if(s!==-1){let c=wo[t.slice(0,s)]?.[t.slice(s+1)];if(typeof c=="function")return c(...n)}let o=pUe[t];if(typeof o=="function")return o(...n);throw new Error(`function ${t} not loaded in endpointFunctions.`)},"callFunction"),AUe={evaluateExpression:Pd,callFunction:vM}});var gUe=A(()=>{VC()});var QM,fte=A(()=>{XB();Ii();gUe();QM=i((t,e)=>{let{assign:r}=t;if(r&&r in e.referenceRecord)throw new ut(`'${r}' is already defined in Reference Record.`);let n=vM(t,e);e.logger?.debug?.(`${Xl} evaluateCondition: ${Si(t)} = ${Si(n)}`);let s=n===""?!0:!!n;return r!=null?{result:s,toAssign:{name:r,value:n}}:{result:s}},"evaluateCondition")});var DM,mte=A(()=>{Ii();VC();DM=i((t,e)=>Object.entries(t??{}).reduce((r,[n,s])=>(r[n]=s.map(o=>{let a=Pd(o,"Header value entry",e);if(typeof a!="string")throw new ut(`Header '${n}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders")});var eR,yUe,EUe,hte=A(()=>{Ii();pte();eR=i((t,e)=>Object.entries(t).reduce((r,[n,s])=>(r[n]=EUe.getEndpointProperty(s,e),r),{}),"getEndpointProperties"),yUe=i((t,e)=>{if(Array.isArray(t))return t.map(r=>yUe(r,e));switch(typeof t){case"string":return PM(t,e);case"object":if(t===null)throw new ut(`Unexpected endpoint property: ${t}`);return EUe.getEndpointProperties(t,e);case"boolean":return t;default:throw new ut(`Unexpected endpoint property type: ${typeof t}`)}},"getEndpointProperty"),EUe={getEndpointProperty:yUe,getEndpointProperties:eR}});var kM,Ate=A(()=>{Ii();VC();kM=i((t,e)=>{let r=Pd(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 ut(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl")});var gte,Zl,CUe=A(()=>{Ii();fte();VC();mte();hte();Ate();gte=1e8,Zl=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<gte;){let u=3*(Math.abs(a)-1),[d,p,f]=[r[u],r[u+1],r[u+2]],[m,h,g]=o[d],y=QM({fn:m,assign:g,argv:h},l);if(y.toAssign){let{name:E,value:C}=y.toAssign;c[E]=C}a=a>=0===y.result?p:f}if(a>=gte){let u=s[a-gte];if(u[0]===-1){let[,m]=u;throw new ut(Pd(m,"Error",l))}let[d,p,f]=u;return{url:kM(d,l),properties:eR(p,l),headers:DM(f??{},l)}}throw new ut("No matching endpoint.")},"decideEndpoint")});var WC,OM=A(()=>{XB();fte();WC=i((t=[],e)=>{let r={},n={...e,referenceRecord:{...e.referenceRecord}},s=!1;for(let o of t){let{result:a,toAssign:c}=QM(o,n);if(!a)return{result:a};c&&(s=!0,r[c.name]=c.value,n.referenceRecord[c.name]=c.value,e.logger?.debug?.(`${Xl} assign: ${c.name} := ${Si(c.value)}`))}return s?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions")});var IUe,SUe=A(()=>{XB();OM();mte();hte();Ate();IUe=i((t,e)=>{let{conditions:r,endpoint:n}=t,{result:s,referenceRecord:o}=WC(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e,{url:c,properties:l,headers:u}=n;e.logger?.debug?.(`${Xl} Resolving endpoint from template: ${Si(n)}`);let d={url:kM(c,a)};return u!=null&&(d.headers=DM(u,a)),l!=null&&(d.properties=eR(l,a)),d},"evaluateEndpointRule")});var wUe,xUe=A(()=>{Ii();OM();VC();wUe=i((t,e)=>{let{conditions:r,error:n}=t,{result:s,referenceRecord:o}=WC(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;throw new ut(Pd(n,"Error",a))},"evaluateErrorRule")});var LM,bUe,yte,BUe=A(()=>{Ii();OM();SUe();xUe();LM=i((t,e)=>{for(let r of t)if(r.type==="endpoint"){let n=IUe(r,e);if(n)return n}else if(r.type==="error")wUe(r,e);else if(r.type==="tree"){let n=yte.evaluateTreeRule(r,e);if(n)return n}else throw new ut(`Unknown endpoint rule: ${r}`);throw new ut("Rules evaluation failed")},"evaluateRules"),bUe=i((t,e)=>{let{conditions:r,rules:n}=t,{result:s,referenceRecord:o}=WC(r,e);if(!s)return;let a=o?{...e,referenceRecord:{...e.referenceRecord,...o}}:e;return yte.evaluateRules(n,a)},"evaluateTreeRule"),yte={evaluateRules:LM,evaluateTreeRule:bUe}});var RUe=A(()=>{BUe()});var tR,NUe=A(()=>{Ce();XB();Ii();RUe();tR=i((t,e)=>{let{endpointParams:r,logger:n}=e,{parameters:s,rules:o}=t;e.logger?.debug?.(`${Xl} Initial EndpointParams: ${Si(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 ut(`Missing required parameter: '${c}'`)}let a=LM(o,{endpointParams:r,logger:n,referenceRecord:{}});return e.logger?.debug?.(`${Xl} Resolved endpoint: ${Si(a)}`),a},"resolveEndpoint")});var TUe,_Ue=A(()=>{TUe=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 Ete={};St(Ete,{BinaryDecisionDiagram:()=>fa,EndpointCache:()=>ma,EndpointError:()=>ut,customEndpointFunctions:()=>wo,decideEndpoint:()=>Zl,endpointMiddleware:()=>WWt,endpointMiddlewareOptions:()=>Yee,getEndpointFromInstructions:()=>VWt,getEndpointPlugin:()=>Qd,isIpAddress:()=>_d,isValidHostLabel:()=>sc,middlewareEndpointToEndpointV1:()=>Ai,resolveEndpoint:()=>tR,resolveEndpointConfig:()=>vd,resolveEndpointRequiredConfig:()=>TUe,resolveParams:()=>KB,toEndpointV1:()=>Ai});var VWt,vd,WWt,Qd,Gt=A(()=>{MFe();NM();Jee();Kee();WFe();Ce();jFe();JFe();CUe();ste();Ce();Xee();NUe();Ii();NM();BM();Kee();_Ue();VWt=RM(YB),vd=VFe(YB),WWt=TM(YB),Qd=zFe(YB)});var MM,Cte=A(()=>{Gt();MM=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>Ai(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 PUe(t,e,r){return{applyToStack:i(n=>{n.add(iM(t,r),Ite),n.add(MM(t,e),Ste)},"applyToStack")}}var Ite,Ste,vUe=A(()=>{xee();Cte();Ite={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Ste={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(PUe,"getSerdePlugin")});function QUe(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?uf(t,e):ArrayBuffer.isView(t)?ac(t.buffer,t.byteOffset,t.byteLength):ac(t)}var UM,FM,DUe=A(()=>{UM=require("node:crypto");df();See();FM=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(qs(QUe(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,UM.createHmac)(this.algorithmIdentifier,QUe(this.secret)):(0,UM.createHash)(this.algorithmIdentifier)}};i(QUe,"castSourceData")});var kUe,jC,wte=A(()=>{kUe=require("node:stream");uee();jC=class extends kUe.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??Ht,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 pn,Af,cc=A(()=>{pn=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),Af=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var OUe,LUe=A(()=>{OUe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var MUe,Xsn,FUe,$M,xte,UUe,$Ue=A(()=>{MUe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xsn=Object.entries(MUe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),FUe=MUe.split(""),$M=6,xte=8,UUe=63});function qM(t){let e;typeof t=="string"?e=OUe(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)*xte,c+=xte;let l=Math.ceil(c/$M);a<<=l*$M-c;for(let u=1;u<=l;u++){let d=(l-u)*$M;s+=FUe[(a&UUe<<d)>>d]}s+="==".slice(0,4-l)}return s}var bte=A(()=>{LUe();$Ue();i(qM,"toBase64")});var jWt,HM,qUe=A(()=>{jWt=typeof ReadableStream=="function"?ReadableStream:function(){},HM=class extends jWt{static{i(this,"ChecksumStream")}}});var HUe,GUe=A(()=>{bte();cc();qUe();HUe=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!pn(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??qM;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,HM.prototype),c},"createChecksumStream")});function zUe(t){return typeof ReadableStream=="function"&&pn(t.source)?HUe(t):new jC(t)}var VUe=A(()=>{cc();wte();GUe();i(zUe,"createChecksumStream")});var _A,Bte=A(()=>{_A=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 WUe(t,e,r){let n=t.getReader(),s=!1,o=0,a=["",new _A(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=PA(a,c);Dd(m)>0&&u.enqueue(m)}u.close()}else{let m=Nte(f,!1);if(c!==m&&(c>=0&&u.enqueue(PA(a,c)),c=m),c===-1){u.enqueue(f);return}let h=Dd(f);o+=h;let g=Dd(a[c]);if(h>=e&&g===0)u.enqueue(f);else{let y=Rte(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(PA(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function Rte(t,e,r){switch(e){case 0:return t[0]+=r,Dd(t[0]);case 1:case 2:return t[e].push(r),Dd(t[e])}}function PA(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 Dd(t){return t?.byteLength??t?.length??0}function Nte(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var jUe=A(()=>{Bte();i(WUe,"createBufferedReadableStream");i(Rte,"merge");i(PA,"flush");i(Dd,"sizeOf");i(Nte,"modeOf")});function YUe(t,e,r){if(pn(t))return WUe(t,e,r);let n=new JUe.Readable({read(){}}),s=!1,o=0,a=["",new _A(l=>new Uint8Array(l)),new _A(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=Nte(l,!0);if(c!==u&&(c>=0&&n.push(PA(a,c)),c=u),c===-1){n.push(l);return}let d=Dd(l);o+=d;let p=Dd(a[c]);if(d>=e&&p===0)n.push(l);else{let f=Rte(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(PA(a,c))}}),t.on("end",()=>{if(c!==-1){let l=PA(a,c);Dd(l)>0&&n.push(l)}n.push(null)}),n}var JUe,KUe=A(()=>{JUe=require("node:stream");Bte();jUe();cc();i(YUe,"createBufferedReadable")});var XUe,ZUe=A(()=>{XUe=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 t2e(t,e){let r=t,n=t;if(pn(n))return XUe(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 e2e.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 e2e,r2e=A(()=>{e2e=require("node:stream");ZUe();cc();i(t2e,"getAwsChunkedEncodingStream")});async function n2e(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 s2e=A(()=>{i(n2e,"headStream")});var o2e,i2e,Tte,a2e=A(()=>{o2e=require("node:stream");GB();s2e();cc();i2e=i((t,e)=>pn(t)?n2e(t,e):new Promise((r,n)=>{let s=new Tte;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=Vl(this.buffers);r(o)})}),"headStream"),Tte=class extends o2e.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 c2e,l2e=A(()=>{c2e=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 _te(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Pte(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 Vl(e,n)}var u2e,vte=A(()=>{GB();cc();u2e=i(async t=>Af(t)?_te(t):Pte(t),"streamCollector");i(_te,"collectBlob");i(Pte,"collectReadableStream")});var d2e,f2e,p2e,m2e=A(()=>{bte();Iee();l2e();vte();cc();d2e="The stream has already been transformed.",f2e=i(t=>{if(!p2e(t)&&!pn(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(d2e);return e=!0,await u2e(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 qM(o);if(s==="hex")return da(o);if(s===void 0||s==="utf8"||s==="utf-8")return c2e(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(d2e);if(e=!0,p2e(t))return n(t);if(pn(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),p2e=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var h2e,GM,Qte,Dte=A(()=>{h2e=require("node:stream");GB();vte();cc();GM=i(t=>Af(t)?_te(t):pn(t)?Pte(t):new Promise((e,r)=>{let n=new Qte,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=Vl(this.bufferedBytes);e(o)})}),"streamCollector"),Qte=class extends h2e.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var zM,A2e,VM,g2e=A(()=>{zM=require("node:stream");df();m2e();Dte();A2e="The stream has already been transformed.",VM=i(t=>{if(!(t instanceof zM.Readable))try{return f2e(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(A2e);return e=!0,await GM(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?ac(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(A2e);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof zM.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,zM.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function y2e(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var E2e=A(()=>{i(y2e,"splitStream")});async function C2e(t){if(pn(t)||Af(t))return y2e(t);let e=new kte.PassThrough,r=new kte.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var kte,I2e=A(()=>{kte=require("node:stream");E2e();cc();i(C2e,"splitStream")});var WM={};St(WM,{ChecksumStream:()=>jC,Hash:()=>FM,LazyJsonString:()=>jr,NumericValue:()=>Xe,Uint8ArrayBlobAdapter:()=>vA,_parseEpochTimestamp:()=>mf,_parseRfc3339DateTimeWithOffset:()=>tM,_parseRfc7231DateTime:()=>rM,calculateBodyLength:()=>zl,concatBytes:()=>Vl,copyDocumentWithTransform:()=>MMe,createBufferedReadable:()=>YUe,createChecksumStream:()=>zUe,dateToUtcString:()=>yi,deserializerMiddleware:()=>iM,deserializerMiddlewareOption:()=>Ite,expectBoolean:()=>$Me,expectByte:()=>jL,expectFloat32:()=>$B,expectInt:()=>qMe,expectInt32:()=>VL,expectLong:()=>QC,expectNonNull:()=>HMe,expectNumber:()=>vC,expectObject:()=>pee,expectShort:()=>WL,expectString:()=>GMe,expectUnion:()=>YL,fromArrayBuffer:()=>ac,fromBase64:()=>Nr,fromHex:()=>oM,fromString:()=>uf,fromUtf8:()=>dn,generateIdempotencyToken:()=>wi,getAwsChunkedEncodingStream:()=>t2e,getSerdePlugin:()=>PUe,handleFloat:()=>VMe,hasOwn:()=>X,headStream:()=>i2e,isArrayBuffer:()=>HL,isBlob:()=>Af,isReadableStream:()=>pn,limitedParseDouble:()=>XL,limitedParseFloat:()=>WMe,limitedParseFloat32:()=>jMe,logger:()=>DC,nv:()=>sM,parseBoolean:()=>UMe,parseEpochTimestamp:()=>MC,parseRfc3339DateTime:()=>XMe,parseRfc3339DateTimeWithOffset:()=>LC,parseRfc7231DateTime:()=>ff,quoteHeader:()=>eM,sdkStreamMixin:()=>VM,serializerMiddleware:()=>MM,serializerMiddlewareOption:()=>Ste,splitEvery:()=>nM,splitHeader:()=>FC,splitStream:()=>C2e,streamCollector:()=>GM,strictParseByte:()=>ZL,strictParseDouble:()=>qB,strictParseFloat:()=>zMe,strictParseFloat32:()=>KL,strictParseInt:()=>YMe,strictParseInt32:()=>KMe,strictParseLong:()=>fee,strictParseShort:()=>pf,toBase64:()=>Ht,toHex:()=>da,toUint8Array:()=>qs,toUtf8:()=>Kt,v4:()=>JC});var S2e,vA,JWt,JC,wi,Te=A(()=>{S2e=require("node:crypto");vMe();uee();DMe();GL();kMe();LMe();FMe();ZMe();e1e();mee();t1e();s1e();o1e();i1e();c1e();Iee();u1e();See();GB();df();lee();xee();vUe();Cte();DUe();wte();VUe();KUe();r2e();a2e();g2e();I2e();cc();Dte();Ce();vA=class extends QMe(Kt,dn,Ht,Nr){static{i(this,"Uint8ArrayBlobAdapter")}},JWt=S2e.getRandomValues,JC=OMe(JWt),wi=JC});var fn,YC=A(()=>{Te();fn=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return vA.mutate(t);if(!t)return vA.mutate(new Uint8Array);let r=e.streamCollector(t);return vA.mutate(await r)},"collectBody")});function lc(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var jM=A(()=>{i(lc,"extendedEncodeURIComponent")});var Tn,KC=A(()=>{Tn=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});async function JM(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 Ote=A(()=>{i(JM,"blobReader")});var w2e,x2e=A(()=>{Ote();w2e=i(async function(e,r){let n=new e;return await JM(r,s=>{n.update(s)}),n.digest()},"blobHasher")});var b2e,XC,Lte=A(()=>{b2e=require("node:stream");Te();XC=class extends b2e.Writable{static{i(this,"HashCalculator")}hash;constructor(e,r){super(r),this.hash=e}_write(e,r,n){try{this.hash.update(qs(e))}catch(s){return n(s)}n()}}});var B2e,R2e,YWt,N2e=A(()=>{B2e=require("node:fs");Lte();R2e=i((t,e)=>new Promise((r,n)=>{if(!YWt(e)){n(new Error("Unable to calculate hash for non-file streams."));return}let s=(0,B2e.createReadStream)(e.path,{start:e.start,end:e.end}),o=new t,a=new XC(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"),YWt=i(t=>typeof t.path=="string","isReadStream")});var T2e,_2e=A(()=>{Lte();T2e=i((t,e)=>{if(e.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new t,n=new XC(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 Mte(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=KWt[(a>>4)*4+(a&3)],f=(r+c&gf)+(u+XWt[a]&gf)&gf;n=n+((f<<p|f>>>32-p)>>>0)&gf,r=d}t[0]=t[0]+r&gf,t[1]=t[1]+n&gf,t[2]=t[2]+s&gf,t[3]=t[3]+o&gf}var ZC,P2e,gf,KWt,XWt,Fte=A(()=>{Te();ZC=class{static{i(this,"Md5Js")}digestLength=16;state=Uint32Array.from(P2e);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(e){let r=qs(e),n=0,s=r.byteLength;for(this.bytesHashed+=s;s>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--s,this.bufferLength===64&&(Mte(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);Mte(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),Mte(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(P2e),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},P2e=[1732584193,4023233417,2562383102,271733878],gf=4294967295,KWt=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),XWt=Array.from({length:64},(t,e)=>Math.abs(Math.sin(e+1))*2**32>>>0);i(Mte,"compress")});function ejt(){return class{static{i(this,"Md5Node")}digestLength=16;hash=(0,YM.createHash)("md5");update(e){this.hash.update(qs(e))}async digest(){let e=this.hash.copy().digest();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}reset(){this.hash=(0,YM.createHash)("md5")}}}var YM,ZWt,Ute,v2e=A(()=>{YM=require("node:crypto");Te();Fte();ZWt=(()=>{try{return(0,YM.createHash)("md5"),!0}catch{return!1}})(),Ute=ZWt?ejt():ZC;i(ejt,"buildNativeClass")});var Q2e,$te,eI,qte=A(()=>{Q2e=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;Q2e[t]=e>>>0}$te=4294967295,eI=class{static{i(this,"Crc32Js")}digestLength=4;checksum=$te;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^Q2e[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^$te)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=$te}}});function tjt(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 Hte,D2e,QA,k2e=A(()=>{Hte=R(require("node:zlib"));qte();D2e=typeof Hte.crc32=="function"?Hte.crc32:void 0,QA=D2e?tjt(D2e):eI;i(tjt,"buildNativeClass")});var Jn,O2e,rjt,kd,L2e,njt,KM=A(()=>{Te();Jn=64,O2e=32,rjt=2**53-1,kd=class t{static{i(this,"Sha256Js")}digestLength=O2e;state=Int32Array.from(L2e);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(Jn*2);for(let a=0;a<Jn;++a)o[a]=54^r[a],o[a+Jn]=92^r[a];n.update(o.subarray(0,Jn)),s.update(o.subarray(Jn))}}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=qs(e),n=0,{byteLength:s}=r;if(this.bytesHashed+=s,this.bytesHashed*8>rjt)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=r[n++],s--,this.bufferLength===Jn&&(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(L2e),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)%Jn>=Jn-8){for(let c=n;c<Jn;++c)o.setUint8(c,0);this.hashBufferWith(e,r),n=0}for(let c=n;c<Jn-8;++c)o.setUint8(c,0);o.setUint32(Jn-8,Math.floor(s/4294967296),!1),o.setUint32(Jn-4,s,!1),this.hashBufferWith(e,r);let a=new Uint8Array(O2e);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=qs(e);if(r.byteLength>Jn){let n=new t;n.update(r);let s=n.digestSync(),o=new Uint8Array(Jn);return o.set(s),o}if(r.byteLength<Jn){let n=new Uint8Array(Jn);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<Jn;++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 g=n[f-2],y=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10;g=n[f-15];let E=(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>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+(njt[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}},L2e=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),njt=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 ojt(){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,rR.createHmac)("sha256",ijt(this.secret)):(0,rR.createHash)("sha256")}}}function ijt(t){return typeof t=="string"?t:ArrayBuffer.isView(t)?Buffer.from(t.buffer,t.byteOffset,t.byteLength):Buffer.from(t)}var rR,sjt,uc,M2e=A(()=>{rR=require("node:crypto");KM();sjt=(()=>{try{return(0,rR.createHash)("sha256"),!0}catch{return!1}})(),uc=sjt?ojt():kd;i(ojt,"buildNativeClass");i(ijt,"toBuffer")});var ajt,cjt,ljt,XM,ujt,ZM,F2e=A(()=>{Te();KM();({digest:ajt,sign:cjt,importKey:ljt}=globalThis?.crypto?.subtle??{}),XM=typeof ajt=="function"&&typeof cjt=="function"&&typeof ljt=="function"?globalThis.crypto.subtle:void 0,ujt=8*1024*1024,ZM=class{static{i(this,"Sha256WebCrypto")}digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(e){e&&(this.secret=qs(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>=ujt&&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=Vl(this.pending);if(XM){if(this.secret){this.finished=!0;let s=await XM.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=await XM.sign("HMAC",s,e);return new Uint8Array(o)}let n=await XM.digest("SHA-256",e);return new Uint8Array(n)}let r=new kd(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 kd(this.secret);for(let r of this.pending)e.update(r);this.fallback=e,this.pending=[],this.pendingBytes=0}}});var Gte={};St(Gte,{Crc32:()=>QA,Crc32Js:()=>eI,Crc32Node:()=>QA,Md5:()=>Ute,Md5Js:()=>ZC,Md5Node:()=>Ute,Sha256:()=>uc,Sha256Js:()=>kd,Sha256Node:()=>uc,Sha256WebCrypto:()=>ZM,blobHasher:()=>w2e,blobReader:()=>JM,fileStreamHasher:()=>R2e,readableStreamHasher:()=>T2e});var Od=A(()=>{x2e();N2e();_2e();Fte();v2e();qte();k2e();KM();M2e();F2e();Ote()});function U2e(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var yf,zte=A(()=>{Te();yf=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&&U2e(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&U2e(e),parseInt(da(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(U2e,"negate")});var tI,$2e,q2e,djt,pjt,fjt,mjt,hjt,Ajt,gjt,yjt,Ejt,e1,Vte=A(()=>{Ce();Te();zte();tI=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>e1)throw new Error(`@smithy/core/event-streams - header value (binary) exceeds ${e1} 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>e1)throw new Error(`@smithy/core/event-streams - header value (string) exceeds ${e1} 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(yf.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!Ejt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(oM(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:q2e,value:!0};break;case 1:r[o]={type:q2e,value:!1};break;case 2:r[o]={type:djt,value:e.getInt8(n++)};break;case 3:r[o]={type:pjt,value:e.getInt16(n,!1)},n+=2;break;case 4:r[o]={type:fjt,value:e.getInt32(n,!1)},n+=4;break;case 5:r[o]={type:mjt,value:new yf(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let a=e.getUint16(n,!1);n+=2,r[o]={type:hjt,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:Ajt,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,c))},n+=c;break;case 8:r[o]={type:gjt,value:new Date(new yf(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:yjt,value:`${da(l.subarray(0,4))}-${da(l.subarray(4,6))}-${da(l.subarray(6,8))}-${da(l.subarray(8,10))}-${da(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"})($2e||($2e={}));q2e="boolean",djt="byte",pjt="short",fjt="integer",mjt="long",hjt="binary",Ajt="string",gjt="timestamp",yjt="uuid",Ejt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,e1=32767});function G2e({byteLength:t,byteOffset:e,buffer:r}){if(t<Cjt)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(H2e,!1),a=n.getUint32(Ef,!1),c=n.getUint32(t-DA,!1),l=new QA;if(l.update(new Uint8Array(r,e,Ef)),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+Ef,t-(Ef+DA))),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+Ef+DA,o),body:new Uint8Array(r,e+Ef+DA+o,s-o-(Ef+DA+DA))}}var H2e,Ef,DA,Cjt,z2e=A(()=>{Od();H2e=4,Ef=H2e*2,DA=4,Cjt=Ef+DA*2;i(G2e,"splitMessage")});var rI,Wte=A(()=>{Od();Vte();z2e();rI=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new tI(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 QA;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}=G2e(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var nI,jte=A(()=>{nI=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 sI,Jte=A(()=>{sI=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 oI,Yte=A(()=>{oI=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 iI,Kte=A(()=>{iI=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 t1(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 Xte=A(()=>{i(t1,"getChunkedStream")});function V2e(t,e){let r=nR(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 nR(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 Zte=A(()=>{i(V2e,"getUnmarshalledStream");i(nR,"getMessageUnmarshaller")});var kA,W2e,ere=A(()=>{Wte();jte();Jte();Yte();Kte();Xte();Zte();kA=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new rI(e,r),this.utfEncoder=e}deserialize(e,r){let n=t1(e);return new oI({messageStream:new nI({inputStream:n,decoder:this.eventStreamCodec}),deserializer:nR(r,this.utfEncoder)})}serialize(e,r){return new sI({messageStream:new iI({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},W2e=i(t=>new kA(t),"eventStreamSerdeProvider")});async function*Ijt(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 j2e,sR,J2e,Y2e=A(()=>{j2e=require("node:stream");ere();sR=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new kA({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:Ijt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return j2e.Readable.from(this.universalMarshaller.serialize(e,r))}},J2e=i(t=>new sR(t),"eventStreamSerdeProvider");i(Ijt,"readableToIterable")});var K2e,X2e,Z2e=A(()=>{K2e=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"),X2e=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 e$e,t$e=A(()=>{e$e=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var r1,r$e=A(()=>{Ce();We();Te();r1=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 S in f)if(X(f,S)&&S!=="__type"){m=S;break}let{additionalHeaders:h,body:g,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:g}})}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 g=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,g);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},C=!1;for(let[S,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(C=C||!!(N||_),_)b.isBlobSchema()?E[S]=g:b.isStringSchema()?E[S]=(this.serdeContext?.utf8Encoder??Kt)(g):b.isStructSchema()&&(E[S]=await this.deserializer.read(b,g));else if(N){let v=m[h].headers[S]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[S]=BigInt(v.toString()):E[S]=Number(v):E[S]=v)}}return{[h]:await this.readEventMember(y,g,C,E)}}return{[h]:await this.deserializer.read(y,g)}}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=xt.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:g,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(g){let E=n[e][m],C="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?C="integer":C="long":h.isTimestampSchema()?C="timestamp":h.isStringSchema()?C="string":h.isBooleanSchema()&&(C="boolean"),E!=null&&(u[m]={type:C,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??dn)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var n$e={};St(n$e,{EventStreamCodec:()=>rI,EventStreamMarshaller:()=>sR,EventStreamSerde:()=>r1,HeaderMarshaller:()=>tI,Int64:()=>yf,MessageDecoderStream:()=>nI,MessageEncoderStream:()=>sI,SmithyMessageDecoderStream:()=>oI,SmithyMessageEncoderStream:()=>iI,UniversalEventStreamMarshaller:()=>kA,eventStreamSerdeProvider:()=>J2e,getChunkedStream:()=>t1,getMessageUnmarshaller:()=>nR,getUnmarshalledStream:()=>V2e,iterableToReadableStream:()=>X2e,readableStreamToIterable:()=>K2e,resolveEventStreamSerdeConfig:()=>e$e,universalEventStreamSerdeProvider:()=>W2e});var s$e=A(()=>{Wte();Vte();zte();jte();Jte();Yte();Kte();Y2e();Z2e();ere();Xte();Zte();t$e();r$e()});var Cf,n1=A(()=>{Ce();We();Ce();KC();Cf=class extends Tn{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new xt(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Ke}getResponseType(){return Rn}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=oc(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(()=>(s$e(),n$e)),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 If,o$e=A(()=>{Ce();We();Te();Ce();n1();YC();jM();If=class extends Cf{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 Ke({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 g=oc(e.traits);if(g.http){h.method=g.http[0];let[y,E]=g.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let C=new URLSearchParams(E??"");for(let[S,b]of C)a[S]=b}}for(let[g,y]of u.structIterator()){let E=y.getMergedTraits()??{},C=s[g];if(C==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${g}+}`)||h.path.includes(`{${g}}`)))throw new Error(`No value provided for input HTTP label: ${g}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[g]&&(m=await this.serializeEventStream({eventStream:s[g],requestSchema:u})):m=C:(o.write(y,C),m=o.flush());else if(E.httpLabel){o.write(y,C);let S=o.flush();h.path.includes(`{${g}+}`)?h.path=h.path.replace(`{${g}+}`,S.split("/").map(lc).join("/")):h.path.includes(`{${g}}`)&&(h.path=h.path.replace(`{${g}}`,lc(S)))}else if(E.httpHeader)o.write(y,C),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let S in C){if(!X(C,S))continue;let b=C[S],N=E.httpPrefixHeaders+S;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,C,a):(f=!0,d.push(g),p.push(y))}if(f&&s){let[g,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],C=[3,g,y,u.getMergedTraits(),d,p,void 0];E?C[6]=E:C.pop(),o.write(C,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 fn(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 fn(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 fn(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]=VM(n.body);else if(n.body){let g=await fn(n.body,r);g.byteLength>0&&(a[p]=await l.read(f,g))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),g=n.headers[h];if(g!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=nM(g,",",2):E=FC(g);let C=[];for(let S of E)C.push(await l.read(y,S.trim()));a[p]=C}else a[p]=await l.read(f,g)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(X(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let g=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,g)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var ha,tre=A(()=>{Ce();We();Ce();n1();YC();ha=class extends Cf{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 Ke({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[g]of l.structIterator())g!==m&&p[g]!=null&&(h[g]=p[g]);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(n.statusCode>=300){let l=await fn(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 fn(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var s1,rre=A(()=>{jM();s1=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=>lc(c)).join("/"):lc(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function o1(t,e){return new oR(t,e)}var oR,i$e=A(()=>{Ce();rre();i(o1,"requestBuilder");oR=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 Ke({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=s1(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 _n(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 Sf=A(()=>{i(_n,"determineTimestampFormat")});var wf,nre=A(()=>{We();Te();KC();Sf();wf=class extends Tn{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=O.of(e);if(n.isListSchema())return FC(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Nr)(r);if(n.isTimestampSchema())switch(_n(n,this.settings)){case 5:return tM(r);case 6:return rM(r);case 7:return mf(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=jr.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Xe(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Kt)((this.serdeContext?.base64Decoder??Nr)(e))}}});var xf,a$e=A(()=>{We();Te();KC();nre();xf=class extends Tn{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new wf(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??Kt;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??dn;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 aI,sre=A(()=>{We();Te();KC();Sf();aI=class extends Tn{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(_n(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=yi(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??Ht)(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:eM(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=jr.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Ht)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=wi():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var bf,c$e=A(()=>{We();sre();bf=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new aI(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 l$e,i1,u$e=A(()=>{l$e=R(qt()),i1=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=l$e.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 a1,d$e=A(()=>{a1=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 eu,tu,p$e=A(()=>{eu=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"),tu=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function ore(t){return e=>async r=>{let n=r.request;if(Ke.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(f$e)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[f$e]:String(a)})}catch{}}return e({...r,request:n})}}var f$e,ire,ru,m$e=A(()=>{Ce();f$e="content-length";i(ore,"contentLengthMiddleware");ire={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},ru=i(t=>({applyToStack:i(e=>{e.add(ore(t.bodyLengthChecker),ire)},"applyToStack")}),"getContentLengthPlugin")});var Bf,Sjt,c1=A(()=>{Bf=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,Sjt),"escapeUri"),Sjt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var h$e,A$e=A(()=>{c1();h$e=i(t=>t.split("/").map(Bf).join("/"),"escapeUriPath")});function g$e(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Bf(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${Bf(n[s])}`);else{let s=r;(n||typeof n=="string")&&(s+=`=${Bf(n)}`),e.push(s)}}return e.join("&")}var y$e=A(()=>{c1();i(g$e,"buildQueryString")});var xo,OA=A(()=>{xo=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var cI,are=A(()=>{cI=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 l1(){if(iR===void 0)try{if(typeof Buffer!="function")iR=!1;else{let t=JSON.parse(Buffer.from([123,125]));iR=t!==null&&typeof t=="object"}}catch{iR=!1}return iR}var iR,cre=A(()=>{i(l1,"detectBufferParsing")});function lI(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?xjt(n,e)?e:new Xe(n,"bigDecimal"):wjt(n)?new Xe(n,"bigDecimal"):/[eE]/.test(n)?bjt(n):BigInt(n)}return e}function wjt(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 xjt(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return lre(t)===lre(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===lre(n):!1}function lre(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 bjt(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 u1=A(()=>{Te();i(lI,"jsonReviver");i(wjt,"isFractionalBigNumeric");i(xjt,"isRepresentable");i(lre,"expandToDecimal");i(bjt,"expandExponentToBigInt")});function uI(t){let e=O.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(ure in r)return r[ure];let n=d1(e,new Set);return r[ure]=n,n}return d1(e,new Set)}function d1(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(d1(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(d1(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var ure,p1=A(()=>{We();ure=Symbol.for("@aws-sdk/reviver");i(uI,"needsReviver");i(d1,"_check")});var E$e,C$e=A(()=>{YC();Te();E$e=i((t,e)=>fn(t,e).then(r=>(e?.utf8Encoder??Kt)(r)),"collectBodyString")});async function Ld(t,e,r){let n;if(l1()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await fn(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await E$e(t,e)),n.length===0)return{};let s=r&&uI(r)?lI: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 f1,I$e,dre,dI,pI,m1,S$e,aR=A(()=>{YC();C$e();cre();u1();p1();i(Ld,"parseJsonBody");f1=i(async(t,e)=>{let r=await Ld(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),I$e=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),dre=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"),dI=i((t,e)=>S$e(t,e,["header","code","type"]),"loadRestJsonErrorCode"),pI=i((t,e,r=!1)=>S$e(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),m1=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"),S$e=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=I$e(t??{},"x-amzn-errortype");if(s!==void 0)return dre(t[s]);break;case"code":let o=I$e(e??{},"code");if(o&&e[o]!==void 0)return dre(e[o]);break;case"type":if(e?.__type!==void 0)return dre(e.__type);break}},"loadErrorCode")});function nu(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var h1=A(()=>{i(nu,"writeKey")});var Rf,pre=A(()=>{Sf();We();Te();OA();are();cre();u1();p1();aR();h1();Ce();Rf=class extends xo{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=uI(e)?lI:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&l1()){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 Ld(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__"&&nu(c),c[l]=this._read(a,c[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Nr(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?jr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(_n(s,this.settings)){case 5:return LC(r);case 6:return ff(r);case 7:return MC(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 Xe)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Xe(a.string,a.type):new Xe(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 Xe||(r[a]=this._read(s,c))}else{let a=r;for(let c in a){if(!X(a,c))continue;c==="__proto__"&&nu(a);let l=a[c];l instanceof Xe||(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 cI(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 A1,w$e,x$e=A(()=>{Te();A1=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>w$e+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."),w$e=e),this.string=Kt(this)}return this.string}},w$e=0});function fre(t){return A1.allocUnsafe(t)}var g1,b$e,B$e,Bjt,Rjt,fI,y1,E1,R$e,Njt,Tjt,_jt,su,N$e,Nf,mre=A(()=>{Sf();We();Te();OA();Ce();x$e();g1=new TextEncoder,b$e=123,B$e=125,Bjt=91,Rjt=93,fI=34,y1=58,E1=44,R$e=92,Njt=new Uint8Array([116,114,117,101]),Tjt=new Uint8Array([102,97,108,115,101]),_jt=new Uint8Array([110,117,108,108]),su=new Array(128).fill(null);su[8]="b";su[9]="t";su[10]="n";su[12]="f";su[13]="r";su[34]='"';su[92]="\\";for(let t=0;t<32;t++)su[t]===null&&(su[t]="u00"+t.toString(16).padStart(2,"0"));N$e=2048;i(fre,"alloc");Nf=class t extends xo{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=fre(N$e)}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),g1.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=fre(N$e),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=fre(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++]=fI;for(let o=0;o<r;++o)n[s++]=e.charCodeAt(o);n[s++]=fI,this.i=s}writeJsonString(e){let r=e.length;this.ensure(r*3+2),this.json[this.i++]=fI;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=su[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=R$e;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}=g1.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++]=fI}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=R$e,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++]=fI;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++]=fI,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&O.of(e).isIdempotencyToken()){this.writeAsciiQuoted(wi());return}return}this.ensure(4),this.json.set(_jt,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(jr.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Xe?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 Xe){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??Ht)(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(Njt,a),a+=4):(c.set(Tjt,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++]=b$e;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++]=E1),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++]=y1,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++]=y1,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++]=E1),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=y1,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=B$e}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+=g1.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=Bjt;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++]=E1),this.writeValue(o,l,void 0),a=!0)}this.ensure(1),this.json[this.i++]=Rjt}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+=g1.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=b$e;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++]=E1),a=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=y1,this.writeValue(o,l,void 0))}this.ensure(1),this.json[this.i++]=B$e}writeTimestamp(e,r){switch(_n(e,this.settings)){case 5:{let s=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(yi(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 Aa,hre=A(()=>{OA();pre();mre();Aa=class extends xo{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Nf(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Rf(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var C1,T$e=A(()=>{tre();We();Ce();hre();aR();C1=class extends ha{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new Aa({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()}),Io(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=Qt(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=m1(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=xt.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let S=xt.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(S);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",g=new m({}),y={},E=this.codec.createDeserializer();for(let[C,S]of f.structIterator())s[C]!=null&&(y[C]=E.readObject(S,s[C]));throw Object.assign(g,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var Tf,Are=A(()=>{Sf();We();Te();Te();Ce();OA();are();u1();p1();aR();h1();Tf=class extends xo{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=uI(e)?lI:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await Ld(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 cI(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__"&&nu(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Nr(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?jr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(_n(s,this.settings)){case 5:return LC(r);case 6:return ff(r);case 7:return MC(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 Xe)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Xe(a.string,a.type):new Xe(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__"&&nu(a);let l=r[c];l instanceof Xe?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var _$e,I1,P$e=A(()=>{Te();_$e="\u039D",I1=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 Xe){let n=`${_$e+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${_$e+"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 _f,gre=A(()=>{Sf();We();Te();OA();P$e();h1();Ce();_f=class extends xo{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 I1;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__"&&nu(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__"&&nu(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Ht)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(_n(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return yi(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Xe&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return wi();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?jr.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??Ht)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Ht)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!X(r,c))continue;let l=r[c];c==="__proto__"&&nu(a),l instanceof Xe?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var mI,v$e=A(()=>{OA();Are();gre();mI=class extends xo{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new _f(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Tf(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var cR={};St(cR,{Field:()=>i1,Fields:()=>a1,FromStringShapeDeserializer:()=>wf,HttpBindingProtocol:()=>If,HttpInterceptingShapeDeserializer:()=>xf,HttpInterceptingShapeSerializer:()=>bf,HttpProtocol:()=>Cf,HttpRequest:()=>Ke,HttpResponse:()=>Rn,JsonCodec:()=>mI,JsonCodec2:()=>Aa,JsonShapeDeserializer:()=>Tf,JsonShapeDeserializer2:()=>Rf,JsonShapeSerializer:()=>_f,JsonShapeSerializer2:()=>Nf,RequestBuilder:()=>oR,RpcProtocol:()=>ha,SerdeContext:()=>Tn,SmithyRpcV2JsonProtocol:()=>C1,ToStringShapeSerializer:()=>aI,buildQueryString:()=>g$e,collectBody:()=>fn,contentLengthMiddleware:()=>ore,contentLengthMiddlewareOptions:()=>ire,determineTimestampFormat:()=>_n,escapeUri:()=>Bf,escapeUriPath:()=>h$e,extendedEncodeURIComponent:()=>lc,getContentLengthPlugin:()=>ru,getHttpHandlerExtensionConfiguration:()=>eu,isValidHostname:()=>TB,loadJsonRpcErrorCode:()=>pI,loadRestJsonErrorCode:()=>dI,loadSmithyRpcV2JsonErrorCode:()=>m1,parseJsonBody:()=>Ld,parseJsonErrorBody:()=>f1,parseQueryString:()=>_B,parseUrl:()=>Wn,requestBuilder:()=>o1,resolveHttpHandlerRuntimeConfig:()=>tu,resolvedPath:()=>s1});var Qe=A(()=>{YC();jM();o$e();n1();tre();i$e();rre();nre();a$e();c$e();sre();Sf();KC();u$e();d$e();Ce();Ce();Ce();p$e();m$e();c1();A$e();y$e();Ce();Ce();T$e();aR();v$e();gre();Are();hre();mre();pre()});var Q$e,D$e,k$e,O$e,L$e,M$e,F$e=A(()=>{Q$e=["AccessDeniedException","AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],D$e=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],k$e=["TimeoutError","RequestTimeout","RequestTimeoutException"],O$e=[500,502,503,504],L$e=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],M$e=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]});function Cre(t){return t.code==="ERR_HTTP2_STREAM_ERROR"&&t.message.includes("NGHTTP2_REFUSED_STREAM")}var lR,S1,yre,Ere,ou,Pf,w1,hI=A(()=>{F$e();lR=i(t=>t?.$retryable!==void 0,"isRetryableByTrait"),S1=i(t=>Q$e.includes(t.name),"isClockSkewError"),yre=i(t=>t.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),Ere=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"),ou=i(t=>t.$metadata?.httpStatusCode===429||D$e.includes(t.name)||t.$retryable?.throttling==!0,"isThrottlingError"),Pf=i((t,e=0)=>t?.name!=="AbortError"&&(lR(t)||yre(t)||t.name==="InvalidSignatureException"&&t.message?.includes("Signature expired")||k$e.includes(t.name)||L$e.includes(t?.code||"")||M$e.includes(t?.code||"")||O$e.includes(t.$metadata?.httpStatusCode||0)||Ere(t)||Cre(t)||t.cause!==void 0&&e<=10&&Pf(t.cause,e+1)),"isTransientError"),w1=i(t=>{if(t.$metadata?.httpStatusCode!==void 0){let e=t.$metadata.httpStatusCode;return 500<=e&&e<=599&&!Pf(t)}return!1},"isServerError");i(Cre,"isNodeJsHttp2TransientError")});var x1,uR,b1,AI,Ire,Sre,B1,vf,Qf,dR=A(()=>{x1=100,uR=2e4,b1=500,AI=500,Ire=5,Sre=10,B1=1,vf="amz-sdk-invocation-id",Qf="amz-sdk-request"});function wre(t,e){if(Rn.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=(ff(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 U$e(t,e){return wre(t,e)}var xre=A(()=>{Ce();Qe();Te();i(wre,"parseRetryAfterHeader");i(U$e,"getRetryAfterHint")});var R1,bre=A(()=>{R1=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 Bre(t){return e=>(r,n)=>async s=>{let o=await e.retryStrategy(),a=await e.maxAttempts();if(vjt(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=Ke.isInstance(p);for(f&&(p.headers[vf]=JC());;)try{f&&(p.headers[Qf]=`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=Qjt(m,e.logger);if(l=R1(m),f&&t(p))throw(n.logger instanceof So?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 g=c.getRetryDelay();d+=(c?.$retryLog?.acquisitionDelay??0)+g,g>0&&await Pjt(g)}}else return o=o,o?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(r,s)}}function $$e(t){let e=Bre(t);return r=>({applyToStack:i(n=>{n.add(e(r),Rre)},"applyToStack")})}var Pjt,vjt,Qjt,Djt,Rre,Nre=A(()=>{Ie();Qe();Te();hI();dR();xre();bre();i(Bre,"bindRetryMiddleware");Pjt=i(t=>new Promise(e=>setTimeout(e,t)),"cooldown"),vjt=i(t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u","isRetryStrategyV2"),Qjt=i((t,e)=>{let r={error:t,errorType:Djt(t)},n=wre(t.$response,e);return n&&(r.retryAfterHint=n),r},"getRetryErrorInfo"),Djt=i(t=>ou(t)?"THROTTLING":Pf(t)?"TRANSIENT":w1(t)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),Rre={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};i($$e,"bindGetRetryPlugin")});var Df,N1=A(()=>{hI();Df=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"||ou(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 qr,gI=A(()=>{qr=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 T1,q$e=A(()=>{gI();T1=class{static{i(this,"DefaultRetryBackoffStrategy")}x=qr.delay();computeNextBackoffDelay(e){let s=Math.random()*Math.min(this.x*2**e,2e4);return Math.floor(s)}setDelayBase(e){this.x=e}}});var pR,H$e=A(()=>{pR=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 Pn,dc,ga,LA=A(()=>{(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Pn||(Pn={}));dc=3,ga=Pn.STANDARD});var _1,pc,fR=A(()=>{q$e();H$e();LA();gI();_1={incompatible:1,attempts:2,capacity:3},pc=class{static{i(this,"StandardRetryStrategy")}mode=Pn.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()=>dc,this.baseDelay??=qr.delay(),this.retryBackoffStrategy??=new T1}async acquireInitialRetryToken(e){return new pR(qr.delay(),0,void 0,qr.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"?qr.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 pR(0,e.getRetryCount()+1,d,e.isLongPoll?.()??!1);return await new Promise(f=>setTimeout(f,u)),p.$retryLog.acquisitionDelay=u,p}else{let d=qr.v2026&&s===_1.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 ${dc}`),dc}}retryCode(e,r,n){let s=e.getRetryCount()+1,o=this.isRetryableError(r.errorType)?0:_1.incompatible,a=s<n?0:_1.attempts,c=this.capacity>=this.getCapacityCost(r.errorType)?0:_1.capacity;return o||a||c}getCapacityCost(e){return e===qr.modifiedCostType()?qr.throttlingCost():qr.cost()}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}});var yI,Tre=A(()=>{N1();fR();LA();yI=class{static{i(this,"AdaptiveRetryStrategy")}mode=Pn.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,r){let{rateLimiter:n}=r??{};this.rateLimiter=n??new Df,this.standardRetryStrategy=r?new pc({maxAttempts:typeof e=="number"?e:3,...r}):new pc(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 P1,G$e=A(()=>{fR();gI();P1=class extends pc{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(e,r=qr.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 z$e,V$e=A(()=>{z$e=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 v1,_re=A(()=>{v1=i((t,e)=>Math.floor(Math.min(2e4,Math.random()*2**e*t)),"defaultDelayDecider")});var Q1,Pre=A(()=>{hI();Q1=i(t=>t?lR(t)||S1(t)||ou(t)||Pf(t):!1,"defaultRetryDecider")});var EI,kjt,vre=A(()=>{Qe();Te();hI();LA();dR();bre();V$e();_re();Pre();EI=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=Pn.STANDARD;constructor(e,r){this.maxAttemptsProvider=e,this.retryDecider=r?.retryDecider??Q1,this.delayDecider=r?.delayDecider??v1,this.retryQuota=r?.retryQuota??z$e(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=dc}return e}async retry(e,r,n){let s,o=0,a=0,c=await this.getMaxAttempts(),{request:l}=r;for(Ke.isInstance(l)&&(l.headers[vf]=JC());;)try{Ke.isInstance(l)&&(l.headers[Qf]=`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=R1(u);if(o++,this.shouldRetry(d,o,c)){s=this.retryQuota.retrieveRetryTokens(d);let p=this.delayDecider(ou(d)?500:100,o),f=kjt(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}}},kjt=i(t=>{if(!Rn.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 D1,W$e=A(()=>{N1();LA();vre();D1=class extends EI{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(e,r){let{rateLimiter:n,...s}=r??{};super(e,s),this.rateLimiter=n??new Df,this.mode=Pn.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 k1,O1,iu,au,Qre,Dre,cu,j$e=A(()=>{Ie();Tre();fR();LA();gI();k1="AWS_MAX_ATTEMPTS",O1="max_attempts",iu={environmentVariableSelector:i(t=>{let e=t[k1];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Environment variable ${k1} mast be a number, got "${e}"`);return r},"environmentVariableSelector"),configFileSelector:i(t=>{let e=t[O1];if(!e)return;let r=parseInt(e);if(Number.isNaN(r))throw new Error(`Shared config file entry ${O1} mast be a number, got "${e}"`);return r},"configFileSelector"),default:dc},au=i((t,e)=>{let{retryStrategy:r,retryMode:n}=t,{defaultMaxAttempts:s=dc,defaultBaseDelay:o=qr.delay()}=e??{},a=Dt(t.maxAttempts??s),c=r?Promise.resolve(r):void 0,l=i(async()=>{let u=await a();return await Dt(n)()===Pn.ADAPTIVE?new yI(a,{maxAttempts:u,baseDelay:o}):new pc({maxAttempts:u,baseDelay:o})},"getDefault");return Object.assign(t,{maxAttempts:a,retryStrategy:i(()=>c??=l(),"retryStrategy")})},"resolveRetryConfig"),Qre="AWS_RETRY_MODE",Dre="retry_mode",cu={environmentVariableSelector:i(t=>t[Qre],"environmentVariableSelector"),configFileSelector:i(t=>t[Dre],"configFileSelector"),default:ga}});var kre,Ore,J$e,Y$e=A(()=>{Qe();dR();kre=i(()=>t=>async e=>{let{request:r}=e;return Ke.isInstance(r)&&(delete r.headers[vf],delete r.headers[Qf]),t(e)},"omitRetryHeadersMiddleware"),Ore={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},J$e=i(t=>({applyToStack:i(e=>{e.addRelativeTo(kre(),Ore)},"applyToStack")}),"getOmitRetryHeadersPlugin")});var Lre={};St(Lre,{AdaptiveRetryStrategy:()=>yI,CONFIG_MAX_ATTEMPTS:()=>O1,CONFIG_RETRY_MODE:()=>Dre,ConfiguredRetryStrategy:()=>P1,DEFAULT_MAX_ATTEMPTS:()=>dc,DEFAULT_RETRY_DELAY_BASE:()=>x1,DEFAULT_RETRY_MODE:()=>ga,DefaultRateLimiter:()=>Df,DeprecatedAdaptiveRetryStrategy:()=>D1,DeprecatedStandardRetryStrategy:()=>EI,ENV_MAX_ATTEMPTS:()=>k1,ENV_RETRY_MODE:()=>Qre,INITIAL_RETRY_TOKENS:()=>AI,INVOCATION_ID_HEADER:()=>vf,MAXIMUM_RETRY_DELAY:()=>uR,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>iu,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>cu,NO_RETRY_INCREMENT:()=>B1,REQUEST_HEADER:()=>Qf,RETRY_COST:()=>Ire,RETRY_MODES:()=>Pn,Retry:()=>qr,StandardRetryStrategy:()=>pc,THROTTLING_RETRY_DELAY_BASE:()=>b1,TIMEOUT_RETRY_COST:()=>Sre,defaultDelayDecider:()=>v1,defaultRetryDecider:()=>Q1,getOmitRetryHeadersPlugin:()=>J$e,getRetryAfterHint:()=>U$e,getRetryPlugin:()=>Md,isBrowserNetworkError:()=>Ere,isClockSkewCorrectedError:()=>yre,isClockSkewError:()=>S1,isNodeJsHttp2TransientError:()=>Cre,isRetryableByTrait:()=>lR,isServerError:()=>w1,isThrottlingError:()=>ou,isTransientError:()=>Pf,omitRetryHeadersMiddleware:()=>kre,omitRetryHeadersMiddlewareOptions:()=>Ore,resolveRetryConfig:()=>au,retryMiddleware:()=>Ojt,retryMiddlewareOptions:()=>Rre});var Ojt,Md,xi=A(()=>{fLe();Nre();hI();Tre();G$e();N1();fR();LA();dR();gI();W$e();vre();_re();Pre();j$e();Y$e();Nre();xre();Ojt=Bre(vZ),Md=$$e(vZ)});function ya(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 Mre=A(()=>{xi();qr.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(ya,"setFeature")});function K$e(t,e,r){return t.$source||(t.$source={}),t.$source[e]=r,t}var X$e=A(()=>{i(K$e,"setTokenFeature")});function CI(t){return t}var Fre,Ure,lu,Z$e=A(()=>{Qe();i(CI,"resolveHostHeaderConfig");Fre=i(t=>e=>async r=>{if(!Ke.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"),Ure={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},lu=i(t=>({applyToStack:i(e=>{e.add(Fre(t),Ure)},"applyToStack")}),"getHostHeaderPlugin")});var $re,qre,uu,eqe=A(()=>{$re=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"),qre={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},uu=i(t=>({applyToStack:i(e=>{e.add($re(),qre)},"applyToStack")}),"getLoggerPlugin")});var L1,Hre=A(()=>{L1={step:"build",tags:["RECURSION_DETECTION","TRACE_CONTEXT_PROPAGATION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"}});var kf,Gre,M1,zre,Vre,mR,tqe=A(()=>{kf={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")},Gre=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");Gre||(globalThis.awslambda=globalThis.awslambda||{});M1=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=kf;isProtectedKey(e){return Object.values(kf).includes(e)}getRequestId(){return this.get(kf.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(kf.X_RAY_TRACE_ID)}getTenantId(){return this.get(kf.TENANT_ID)}getTraceparent(){return this.get(kf.TRACEPARENT)}getTracestate(){return this.get(kf.TRACESTATE)}getBaggage(){return this.get(kf.BAGGAGE)}},zre=class extends M1{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()}},Vre=class t extends M1{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 Vre.create():new zre;return!Gre&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!Gre&&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})(mR||(mR={}))});function Fjt(t){for(let e of Object.keys(t)){let r=e.toLowerCase();e!==r&&(r===jre||r===rqe||r===nqe)&&(t[r]=t[e],delete t[e])}}var Ljt,Mjt,Wre,jre,rqe,nqe,F1,Jre=A(()=>{tqe();Qe();Ljt="AWS_LAMBDA_FUNCTION_NAME",Mjt="_X_AMZN_TRACE_ID",Wre="X-Amzn-Trace-Id",jre="traceparent",rqe="tracestate",nqe="baggage",F1=i(()=>t=>async e=>{let{request:r}=e;if(!Ke.isInstance(r))return t(e);let n;{let s=Object.keys(r.headers??{}).find(o=>o.toLowerCase()===Wre.toLowerCase())??Wre;if(!r.headers.hasOwnProperty(s)){let o=process.env[Ljt],a=process.env[Mjt];n??=await mR.getInstanceAsync();let l=n?.getXRayTraceId()??a,u=i(d=>typeof d=="string"&&d.length>0,"nonEmptyString");u(o)&&u(l)&&(r.headers[Wre]=l)}}if(Fjt(r.headers),!r.headers[jre]){let o=(n??=await mR.getInstanceAsync())?.getTraceparent?.();if(o){r.headers[jre]=o;let a=n?.getTracestate?.();a&&(r.headers[rqe]=a);let c=n?.getBaggage?.();c&&(r.headers[nqe]=c)}}return t(e)},"recursionDetectionMiddleware");i(Fjt,"sanitizeTraceHeaders")});var du,sqe=A(()=>{Hre();Jre();du=i(t=>({applyToStack:i(e=>{e.add(F1(),L1)},"applyToStack")}),"getRecursionDetectionPlugin")});var oqe,iqe=A(()=>{oqe=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 Ujt(t){let e=new Map;for(let r of t)e.set(r.schemeId,r);return e}var MA,U1=A(()=>{Ce();iqe();i(Ujt,"convertHttpAuthSchemesToMap");MA=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=oqe(o,a),l=Ujt(t.httpAuthSchemes),u=Qt(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:g={}}=p.propertiesExtractor?.(t,n)||{};p.identityProperties=Object.assign(p.identityProperties||{},h),p.signingProperties=Object.assign(p.signingProperties||{},g),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 $1,fc,aqe=A(()=>{U1();$1={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},fc=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(MA(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),$1)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var q1,Yre,cqe=A(()=>{U1();q1={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},Yre=i((t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:i(n=>{n.addRelativeTo(MA(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),q1)},"applyToStack")}),"getHttpAuthSchemePlugin")});var lqe=A(()=>{U1();aqe();cqe()});var $jt,qjt,hR,Kre=A(()=>{Qe();Ce();$jt=i(t=>e=>{throw e},"defaultErrorHandler"),qjt=i((t,e)=>{},"defaultSuccessHandler"),hR=i(t=>(e,r)=>async n=>{if(!Ke.isInstance(n.request))return e(n);let o=Qt(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||$jt)(a));return(l.successHandler||qjt)(u.response,a),u},"httpSigningMiddleware")});var H1,mc,uqe=A(()=>{Kre();H1={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},mc=i(t=>({applyToStack:i(e=>{e.addRelativeTo(hR(t),H1)},"applyToStack")}),"getHttpSigningPlugin")});var dqe=A(()=>{Kre();uqe()});var Ea,pqe=A(()=>{Ea=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function fqe(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 Hjt(e,a.client,c,a.withCommand,...l);else throw new Error(`Invalid client, expected instance of ${t.name}`);yield f;let m=d;d=Gjt(f,n),p=!!(d&&(!a.stopOnSameToken||d!==m))}return void 0},"paginateOperation")}var Hjt,Gjt,mqe=A(()=>{Hjt=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(fqe,"createPaginator");Gjt=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 hqe(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 Aqe=A(()=>{i(hqe,"setFeature")});var bi,gqe=A(()=>{Ce();bi=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 Xre,II,yqe=A(()=>{Qe();Xre=R(qt()),II=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=Ke.clone(e);if(n.in===Xre.HttpApiKeyAuthLocation.QUERY)s.query[n.name]=r.apiKey;else if(n.in===Xre.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 SI,Eqe=A(()=>{Qe();SI=class{static{i(this,"HttpBearerAuthSigner")}async sign(e,r,n){let s=Ke.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 ms,Cqe=A(()=>{ms=class{static{i(this,"NoAuthSigner")}async sign(e,r,n){return e}}});var Iqe=A(()=>{yqe();Eqe();Cqe()});var G1,z1,AR,wI,gR,Sqe=A(()=>{G1=i(t=>i(function(r){return wI(r)&&r.expiration.getTime()-Date.now()<t},"isIdentityExpired"),"createIsIdentityExpiredFunction"),z1=3e5,AR=G1(z1),wI=i(t=>t.expiration!==void 0,"doesIdentityRequireRefresh"),gR=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 wqe=A(()=>{gqe();Iqe();Sqe()});var Zre={};St(Zre,{DefaultIdentityProviderConfig:()=>bi,EXPIRATION_MS:()=>z1,HttpApiKeyAuthSigner:()=>II,HttpBearerAuthSigner:()=>SI,NoAuthSigner:()=>ms,createIsIdentityExpiredFunction:()=>G1,createPaginator:()=>fqe,doesIdentityRequireRefresh:()=>wI,getHttpAuthSchemeEndpointRuleSetPlugin:()=>fc,getHttpAuthSchemePlugin:()=>Yre,getHttpSigningPlugin:()=>mc,getSmithyContext:()=>Qt,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>$1,httpAuthSchemeMiddleware:()=>MA,httpAuthSchemeMiddlewareOptions:()=>q1,httpSigningMiddleware:()=>hR,httpSigningMiddlewareOptions:()=>H1,isIdentityExpired:()=>AR,memoizeIdentityProvider:()=>gR,normalizeProvider:()=>Ea,requestBuilder:()=>o1,setFeature:()=>hqe});var Gs=A(()=>{Ce();lqe();dqe();pqe();mqe();Qe();Aqe();wqe()});function zjt(t){return t===void 0?!0:typeof t=="string"&&t.length<=50}function pu(t){let e=Ea(t.userAgentAppId??yR),{customUserAgent:r}=t;return Object.assign(t,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let n=await e();if(!zjt(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 yR,ene=A(()=>{Gs();yR=void 0;i(zjt,"isValidUserAgentAppId");i(pu,"resolveUserAgentConfig")});var tne,xqe=A(()=>{tne={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 bqe,Bqe,V1,rne,Rqe,W1,j1=A(()=>{xqe();bqe=tne,Bqe="",V1=i(t=>{let{partitions:e}=bqe;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"),rne=i((t,e="")=>{bqe=t,Bqe=e},"setPartitionInfo"),Rqe=i(()=>{rne(tne,"")},"useDefaultPartitionInfo"),W1=i(()=>Bqe,"getUserAgentPrefix")});async function Nqe(t,e,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&ya(t,"PROTOCOL_RPC_V2_CBOR","M"),typeof e.retryStrategy=="function"){let o=await e.retryStrategy();if(typeof o.mode=="string")switch(o.mode){case Pn.ADAPTIVE:ya(t,"RETRY_MODE_ADAPTIVE","F");break;case Pn.STANDARD:ya(t,"RETRY_MODE_STANDARD","E");break}}if(typeof e.accountIdEndpointMode=="function"){let o=t.endpointV2;switch(String(o?.url?.hostname).match(Vjt)&&ya(t,"ACCOUNT_ID_ENDPOINT","O"),await e.accountIdEndpointMode?.()){case"disabled":ya(t,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":ya(t,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":ya(t,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let s=t.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){let o=s;o.accountId&&ya(t,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(o.$source??{}))ya(t,a,c)}}var Vjt,Tqe=A(()=>{xi();Mre();Vjt=/\d{12}\.ddb/;i(Nqe,"checkFeatures")});var nne,J1,_qe,Pqe,vqe=A(()=>{nne="user-agent",J1="x-amz-user-agent",_qe=/[^!$%&'*+\-.^_`|~\w]/g,Pqe=/[^!$%&'*+\-.^_`|~\w#]/g});function Qqe(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 Dqe=A(()=>{i(Qqe,"encodeFeatures")});var one,Y1,ine,fu,Lqe=A(()=>{Qe();j1();Tqe();vqe();Dqe();one=i(t=>(e,r)=>async n=>{let{request:s}=n;if(!Ke.isInstance(s))return e(n);let{headers:o}=s,a=r?.userAgent?.map(Y1)||[],c=(await t.defaultUserAgentProvider()).map(Y1);await Nqe(r,t,n);let l=r;c.push(`m/${Qqe(Object.assign({},r.__smithy_context?.features,l.__aws_sdk_context?.features))}`);let u=t?.customUserAgent?.map(Y1)||[],d=await t.userAgentAppId();d&&c.push(Y1(["app",`${d}`]));let p=W1(),f=(p?[p]:[]).concat([...c,...a,...u]).join(" "),m=[...c.filter(h=>h.startsWith("aws-sdk-")),...u].join(" ");return t.runtime!=="browser"?(m&&(o[J1]=o[J1]?`${o[nne]} ${m}`:m),o[nne]=f):o[J1]=f,e({...n,request:s})},"userAgentMiddleware"),Y1=i(t=>{let e=t[0].split("/").map(a=>a.replace(_qe,"-")).join("/"),r=t[1]?.replace(Pqe,"-"),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"),ine={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},fu=i(t=>({applyToStack:i(e=>{e.add(one(t),ine)},"applyToStack")}),"getUserAgentPlugin")});var K1,Mqe,Fqe=A(()=>{K1=require("node:process"),Mqe=i(()=>{let t=["deno","bun","llrt"];for(let e of t)if(K1.versions[e])return[`md/${e}`,K1.versions[e]];return["md/nodejs",K1.versions.node]},"getRuntimeUserAgentPair")});var ER,ane=A(()=>{ER={isCrtAvailable:!1}});var Uqe,$qe=A(()=>{ane();Uqe=i(()=>ER.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable")});var X1,cne,hc,qqe,Hqe=A(()=>{X1=require("node:os"),cne=require("node:process");Fqe();$qe();ane();hc=i(({serviceId:t,clientVersion:e})=>{let r=Mqe();return async n=>{let s=[["aws-sdk-js",e],["ua","2.1"],[`os/${(0,X1.platform)()}`,(0,X1.release)()],["lang/js"],r],o=Uqe();o&&s.push(o),t&&s.push([`api/${t}`,e]),cne.env.AWS_EXECUTION_ENV&&s.push([`exec-env/${cne.env.AWS_EXECUTION_ENV}`]);let a=await n?.userAgentAppId?.();return a?[...s,[`app/${a}`]]:[...s]}},"createDefaultUserAgentProvider"),qqe=hc});var lne,une,Wjt,mu,Gqe=A(()=>{ene();lne="AWS_SDK_UA_APP_ID",une="sdk_ua_app_id",Wjt="sdk-ua-app-id",mu={environmentVariableSelector:i(t=>t[lne],"environmentVariableSelector"),configFileSelector:i(t=>t[une]??t[Wjt],"configFileSelector"),default:yR}});var zqe=w((CR,dne)=>{(function(t,e){typeof CR=="object"&&typeof dne=="object"?dne.exports=e():typeof define=="function"&&define.amd?define([],e):typeof CR=="object"?CR.bowser=e():t.bowser=e()})(CR,(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 g=p-o.getVersionPrecision(h),y=h+new Array(g+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(g){u[g]=h[g]}))},"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(g){return f.test(g)}));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(g){return f.test(g)}));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(g){return f.test(g)}));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(g){return f.test(g)}));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={},g=0,y={},E=0;if(Object.keys(f).forEach((function(Pe){var De=f[Pe];typeof De=="string"?(y[Pe]=De,E+=1):typeof De=="object"&&(h[Pe]=De,g+=1)})),g>0){var C=Object.keys(h),S=c.default.find(C,(function(Pe){return m.isOS(Pe)}));if(S){var b=this.satisfies(h[S]);if(b!==void 0)return b}var N=c.default.find(C,(function(Pe){return m.isPlatform(Pe)}));if(N){var _=this.satisfies(h[N]);if(_!==void 0)return _}}if(E>0){var v=Object.keys(y),J=c.default.find(v,(function(Pe){return m.isBrowser(Pe,!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(),g=f.toLowerCase(),y=c.default.getBrowserTypeByAlias(g);return m&&y&&(g=y.toLowerCase()),g===h},p.compareVersion=function(f){var m=[0],h=f,g=!1,y=this.getBrowserVersion();if(typeof y=="string")return f[0]===">"||f[0]==="<"?(h=f.substr(1),f[1]==="="?(g=!0,h=f.substr(2)):m=[],f[0]===">"?m.push(1):m.push(-1)):f[0]==="="?h=f.substr(1):f[0]==="~"&&(g=!0,h=f.substr(1)),m.indexOf(c.default.compareVersions(y,h,g))>-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 Vqe,Wqe=A(()=>{Vqe=i(({serviceId:t,clientVersion:e})=>async r=>{let n=await Promise.resolve().then(()=>R(zqe())),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 jqe,Jqe=A(()=>{jqe={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 pne=A(()=>{Gt()});var IR,fne=A(()=>{Gt();pne();IR=i((t,e=!1)=>{if(e){for(let r of t.split("."))if(!IR(r))return!1;return!0}return!(!sc(t)||t.length<3||t.length>63||t!==t.toLowerCase()||_d(t))},"isVirtualHostableS3Bucket")});var Z1,mne=A(()=>{Z1=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 Ac,Yqe=A(()=>{Gt();fne();mne();j1();Ac={isVirtualHostableS3Bucket:IR,parseArn:Z1,partition:V1};wo.aws=Ac});var Kqe=A(()=>{Gt()});var Xqe,hne,Zqe=A(()=>{Qe();Xqe=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()=>hne(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"),hne=i(t=>Wn(t.url),"toEndpointV1")});var eHe=A(()=>{Gt()});var tHe=A(()=>{kt();kt()});function eF(t={}){return ve({...jn,async default(){return Ane.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"}},{...Hs,...t})}var Ane,rHe=A(()=>{kt();i(eF,"stsRegionDefaultResolver");Ane={silence:!1}});var hu,Au,nHe=A(()=>{hu=i(t=>({setRegion(e){t.region=e},region(){return t.region}}),"getAwsRegionExtensionConfiguration"),Au=i(t=>({region:t.region()}),"resolveAwsRegionExtensionConfiguration")});var gc={};St(gc,{DEFAULT_UA_APP_ID:()=>yR,EndpointError:()=>ut,NODE_APP_ID_CONFIG_OPTIONS:()=>mu,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Hs,NODE_REGION_CONFIG_OPTIONS:()=>jn,REGION_ENV_NAME:()=>GC,REGION_INI_NAME:()=>zC,UA_APP_ID_ENV_NAME:()=>lne,UA_APP_ID_INI_NAME:()=>une,awsEndpointFunctions:()=>Ac,createDefaultUserAgentProvider:()=>hc,createUserAgentStringParsingProvider:()=>Vqe,crtAvailability:()=>ER,defaultUserAgent:()=>qqe,emitWarningIfUnsupportedVersion:()=>Ll,fallback:()=>jqe,getAwsRegionExtensionConfiguration:()=>hu,getHostHeaderPlugin:()=>lu,getLoggerPlugin:()=>uu,getLongPollPlugin:()=>lLe,getRecursionDetectionPlugin:()=>du,getUserAgentMiddlewareOptions:()=>ine,getUserAgentPlugin:()=>fu,getUserAgentPrefix:()=>W1,hostHeaderMiddleware:()=>Fre,hostHeaderMiddlewareOptions:()=>Ure,isIpAddress:()=>_d,isVirtualHostableS3Bucket:()=>IR,loggerMiddleware:()=>$re,loggerMiddlewareOptions:()=>qre,parseArn:()=>Z1,partition:()=>V1,recursionDetectionMiddleware:()=>F1,recursionDetectionMiddlewareOptions:()=>L1,resolveAwsRegionExtensionConfiguration:()=>Au,resolveDefaultAwsRegionalEndpointsConfig:()=>Xqe,resolveEndpoint:()=>tR,resolveHostHeaderConfig:()=>CI,resolveRegionConfig:()=>Ci,resolveUserAgentConfig:()=>pu,setCredentialFeature:()=>of,setFeature:()=>ya,setPartitionInfo:()=>rne,setTokenFeature:()=>K$e,state:()=>RB,stsRegionDefaultResolver:()=>eF,stsRegionWarning:()=>Ane,toEndpointV1:()=>hne,useDefaultPartitionInfo:()=>Rqe,userAgentMiddleware:()=>one});var bt=A(()=>{cLe();uLe();dLe();Mre();X$e();Z$e();eqe();Hre();sqe();Jre();ene();Lqe();Hqe();Gqe();Jqe();Wqe();Yqe();Kqe();Zqe();pne();fne();mne();j1();eHe();tHe();rHe();nHe()});var tF,rF,sHe=A(()=>{Qe();tF=i(t=>Rn.isInstance(t)?t.headers?.date??t.headers?.Date:void 0,"getDateHeader"),rF=i(t=>Rn.isInstance(t)?t.headers?.age??t.headers?.Age:void 0,"getAgeHeader")});var SR,oHe=A(()=>{SR=i(t=>new Date(Date.now()+t),"getSkewCorrectedDate")});var nF,iHe=A(()=>{nF=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:r!==void 0?s-(r+o)/2:s-o},"getUpdatedSystemClockOffset")});var gne=A(()=>{sHe();oHe();iHe()});var aHe,wR,jjt,xI,vn,yne,Ene=A(()=>{Qe();aHe=R(qt());gne();wR=i((t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},"throwSigningPropertyError"),jjt=i(t=>t.context?.[aHe.SMITHY_CONTEXT_KEY]?.eventStream?.output===!0,"hasEventStreamOutput"),xI=i(async t=>{let e=wR("context",t.context),r=wR("config",t.config),n=e.endpointV2?.properties?.authSchemes?.[0],o=await wR("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"),vn=class{static{i(this,"AwsSdkSigV4Signer")}async sign(e,r,n){if(!Ke.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let s=await xI(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||jjt(n);return n._skipClockSkewSampling=p,p||(n._preRequestSystemClockOffset=o.systemClockOffset,n._requestSentAt=Date.now()),await a.sign(e,{signingDate:d?new Date:SR(o.systemClockOffset),signingRegion:c,signingService:l})}errorHandler(e){return r=>{let n=r;if(!e._skipClockSkewSampling&&!e._disableClockSkewCorrection){let s=n.ServerTime??tF(n.$response);if(s){let o=wR("config",e.config),a=e._preRequestSystemClockOffset,c=e._requestSentAt,l=rF(n.$response),u=nF(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=tF(e);if(n){let s=wR("config",r.config),o=r._requestSentAt,a=rF(e);s.systemClockOffset=nF(n,s.systemClockOffset,o,a)}}},yne=vn});var Fd,cHe=A(()=>{Qe();gne();Ene();Fd=class extends vn{static{i(this,"AwsSdkSigV4ASigner")}async sign(e,r,n){if(!Ke.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 xI(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:SR(s.systemClockOffset),signingRegion:d,signingService:l})}}});var Cne,lHe=A(()=>{Cne=i(t=>typeof t=="string"&&t.length>0?t.split(",").map(e=>e.trim()):[],"getArrayForCommaSeparatedString")});var sF,Ine=A(()=>{sF=i(t=>`AWS_BEARER_TOKEN_${t.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var uHe,dHe,yc,pHe=A(()=>{lHe();Ine();uHe="AWS_AUTH_SCHEME_PREFERENCE",dHe="auth_scheme_preference",yc={environmentVariableSelector:i((t,e)=>{if(e?.signingName&&sF(e.signingName)in t)return["httpBearerAuth"];if(uHe in t)return Cne(t[uHe])},"environmentVariableSelector"),configFileSelector:i(t=>{if(dHe in t)return Cne(t[dHe])},"configFileSelector"),default:[]}});var xR,bR,fHe=A(()=>{Gs();kt();xR=i(t=>(t.sigv4aSigningRegionSet=Ea(t.sigv4aSigningRegionSet),t),"resolveAwsSdkSigV4AConfig"),bR={environmentVariableSelector(t){if(t.AWS_SIGV4A_SIGNING_REGION_SET)return t.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(e=>e.trim());throw new Ei("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 Ei("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var oF,Sne=A(()=>{oF=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var Ec,Of,Lf=A(()=>{Sne();Ec=i((t,e=0,r=t.byteLength-e)=>{if(!oF(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),Of=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 Jjt,gu,mHe=A(()=>{Lf();Jjt=/^[A-Za-z0-9+/]*={0,2}$/,gu=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Jjt.exec(t))throw new TypeError("Invalid base64 string.");let e=Of(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var Cc,iF=A(()=>{Lf();Cc=i(t=>{let e=Of(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var bo,wne=A(()=>{Lf();iF();bo=i(t=>{let e;if(typeof t=="string"?e=Cc(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 Ec(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function hHe(t,e,r,n){return class aF extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?aF.mutate(n(o)):aF.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,aF.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var AHe=A(()=>{i(hHe,"bindUint8ArrayBlobAdapter")});var Bi,gHe=A(()=>{Lf();Bi=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 Ec(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function yHe(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,hs[e[0]]+hs[e[1]]+hs[e[2]]+hs[e[3]]+"-"+hs[e[4]]+hs[e[5]]+"-"+hs[e[6]]+hs[e[7]]+"-"+hs[e[8]]+hs[e[9]]+"-"+hs[e[10]]+hs[e[11]]+hs[e[12]]+hs[e[13]]+hs[e[14]]+hs[e[15]]}}var hs,EHe=A(()=>{hs=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(yHe,"bindV4")});var CHe,IHe=A(()=>{CHe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var xne,FA,SHe=A(()=>{xne=R(qt()),FA=i(t=>t[xne.SMITHY_CONTEXT_KEY]||(t[xne.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function Be(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var bne=A(()=>{i(Be,"hasOwn")});function Yjt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var zs,wHe=A(()=>{zs=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=Yjt(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(Yjt,"cloneQuery")});var Ud,xHe=A(()=>{Ud=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"}}});function BR(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var bHe=A(()=>{i(BR,"isValidHostname")});var UA,BHe=A(()=>{UA=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function RR(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 Bne=A(()=>{i(RR,"parseQueryString")});var $A,Rne=A(()=>{Bne();$A=i(t=>{if(typeof t=="string")return $A(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=RR(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var $d,RHe=A(()=>{bne();Rne();$d=i(t=>{if(typeof t=="object"){if("url"in t){let e=$A(t.url);if(t.headers){e.headers={};for(let r in t.headers)Be(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return $A(t)},"toEndpointV1")});var dt=A(()=>{SHe();bne();wHe();xHe();bHe();BHe();Bne();Rne();RHe()});var NHe,THe,bI,Kjt,NR,BI,_He,cF,lF,uF,Nne,Xjt,PHe,Tne,vHe,QHe,TR,DHe,pF,Zjt,NI,fF,kHe,OHe,LHe,MHe,_ne,FHe,UHe,Mf,mF,dF,RI,Pne=A(()=>{dt();NHe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),THe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&RI.warn(dF(`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")&&RI.warn(dF(`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"),bI=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&RI.warn(dF(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),Kjt=Math.ceil(2**127*(2-2**-23)),NR=i(t=>{let e=bI(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>Kjt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),BI=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),_He=BI,cF=i(t=>Nne(t,32),"expectInt32"),lF=i(t=>Nne(t,16),"expectShort"),uF=i(t=>Nne(t,8),"expectByte"),Nne=i((t,e)=>{let r=BI(t);if(r!==void 0&&Xjt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),Xjt=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"),PHe=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"),Tne=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"),vHe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return RI.warn(dF(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),QHe=i(t=>{if(t==null)return;let e=Tne(t),r=[];for(let n in e)Be(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"),TR=i(t=>bI(typeof t=="string"?NI(t):t),"strictParseDouble"),DHe=TR,pF=i(t=>NR(typeof t=="string"?NI(t):t),"strictParseFloat32"),Zjt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,NI=i(t=>{let e=t.match(Zjt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),fF=i(t=>typeof t=="string"?MHe(t):bI(t),"limitedParseDouble"),kHe=fF,OHe=fF,LHe=i(t=>typeof t=="string"?MHe(t):NR(t),"limitedParseFloat32"),MHe=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"),_ne=i(t=>BI(typeof t=="string"?NI(t):t),"strictParseLong"),FHe=_ne,UHe=i(t=>cF(typeof t=="string"?NI(t):t),"strictParseInt32"),Mf=i(t=>lF(typeof t=="string"?NI(t):t),"strictParseShort"),mF=i(t=>uF(typeof t=="string"?NI(t):t),"strictParseByte"),dF=i(t=>String(new TypeError(t).stack||t).split(`
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
`),"stackTraceWarning"),RI={warn:console.warn}});function Ff(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`${eJt[n]}, ${l} ${Qne[r]} ${e} ${u}:${d}:${p} GMT`}var eJt,Qne,tJt,$He,rJt,_I,nJt,sJt,oJt,PI,vI,_R,iJt,aJt,cJt,vne,lJt,uJt,dJt,yu,pJt,fJt,TI,qHe=A(()=>{Pne();eJt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Qne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Ff,"dateToUtcString");tJt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),$He=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=tJt.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=Mf(TI(n)),p=yu(s,"month",1,12),f=yu(o,"day",1,31);return _R(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),rJt=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),_I=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=rJt.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=Mf(TI(n)),f=yu(s,"month",1,12),m=yu(o,"day",1,31),h=_R(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-fJt(d)),h},"parseRfc3339DateTimeWithOffset"),nJt=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$/),sJt=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$/),oJt=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})$/),PI=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=nJt.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return _R(Mf(TI(o)),vne(s),yu(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=sJt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return cJt(_R(iJt(o),vne(s),yu(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=oJt.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return _R(Mf(TI(u)),vne(n),yu(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),vI=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=TR(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"),_R=i((t,e,r,n)=>{let s=e-1;return uJt(t,s,r),new Date(Date.UTC(t,s,r,yu(n.hours,"hour",0,23),yu(n.minutes,"minute",0,59),yu(n.seconds,"seconds",0,60),pJt(n.fractionalMilliseconds)))},"buildDate"),iJt=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+Mf(TI(t));return r<e?r+100:r},"parseTwoDigitYear"),aJt=50*365*24*60*60*1e3,cJt=i(t=>t.getTime()-new Date().getTime()>aJt?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),vne=i(t=>{let e=Qne.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),lJt=[31,28,31,30,31,30,31,31,30,31,30,31],uJt=i((t,e,r)=>{let n=lJt[e];if(e===1&&dJt(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Qne[e]} in ${t}: ${r}`)},"validateDayOfMonth"),dJt=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),yu=i((t,e,r,n)=>{let s=mF(TI(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),pJt=i(t=>t==null?0:pF("0."+t)*1e3,"parseMilliseconds"),fJt=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"),TI=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var Yr,HHe=A(()=>{Yr=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Yr.from=t=>t&&typeof t=="object"&&(t instanceof Yr||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Yr(String(t)):Yr(JSON.stringify(t));Yr.fromObject=Yr.from});function hF(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var GHe=A(()=>{i(hF,"quoteHeader")});function qd(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var Dne,kne,One,zHe,VHe,mJt,hJt,AJt,gJt,yJt,AF,gF,yF,WHe=A(()=>{Dne="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",kne="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",One="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",zHe="(\\d?\\d)",VHe="(\\d{4})",mJt=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),hJt=new RegExp(`^${Dne}, ${zHe} ${kne} ${VHe} ${One} GMT$`),AJt=new RegExp(`^${Dne}, ${zHe}-${kne}-(\\d\\d) ${One} GMT$`),gJt=new RegExp(`^${Dne} ${kne} ( [1-9]|\\d\\d) ${One} ${VHe}$`),yJt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],AF=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"),gF=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=mJt.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;qd(n,1,12),qd(s,1,31),qd(o,0,23),qd(a,0,59),qd(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"),yF=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=hJt.exec(t))?[,e,r,n,s,o,a,c]=l:(l=AJt.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=gJt.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),yJt.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);qd(e,1,31),qd(s,0,23),qd(o,0,59),qd(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(qd,"range")});function EF(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 jHe=A(()=>{i(EF,"splitEvery")});var QI,JHe=A(()=>{QI=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 KHe(t){return new Bt(String(t),"bigDecimal")}var YHe,Bt,XHe=A(()=>{YHe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Bt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!YHe.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"&&YHe.test(r.string)}};i(KHe,"nv")});function CF(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 Lne)e[r/2]=Lne[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function Ca(t){let e="";for(let r=0;r<t.byteLength;r++)e+=ZHe[t[r]];return e}var ZHe,Lne,Mne=A(()=>{ZHe={},Lne={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),ZHe[t]=e,Lne[e]=t}i(CF,"fromHex");i(Ca,"toHex")});var DI,eGe,tGe=A(()=>{DI=require("node:fs"),eGe=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 DI.ReadStream){if(t.path!=null)return(0,DI.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,DI.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var IF,Fne=A(()=>{iF();IF=i(t=>t instanceof Uint8Array?t:typeof t=="string"?Cc(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function Uf(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 PR=A(()=>{i(Uf,"concatBytes")});var SF,Une,$ne=A(()=>{dt();SF=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(Ud.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:Une(/^x-[\w-]+-request-?id$/,u),extendedRequestId:Une(/^x-[\w-]+-id-2$/,u),cfId:Une(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),Une=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var kI,qne=A(()=>{kI=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 OI,Hne=A(()=>{qne();OI=class t extends kI{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var rGe,nGe=A(()=>{qne();rGe=i((...t)=>async()=>{if(t.length===0)throw new kI("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 sGe,oGe=A(()=>{sGe=i(t=>()=>Promise.resolve(t),"fromValue")});var iGe,aGe=A(()=>{iGe=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 wF,cGe=A(()=>{wF=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 LI,lGe=A(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(LI||(LI={}))});var uGe,dGe,Gne,EJt,MI,xF=A(()=>{uGe=require("node:os"),dGe=require("node:path"),Gne={},EJt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),MI=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${dGe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=EJt();return Gne[s]||(Gne[s]=(0,uGe.homedir)()),Gne[s]},"getHomeDir")});var CJt,IJt,pGe,fGe=A(()=>{CJt="AWS_PROFILE",IJt="default",pGe=i(t=>t.profile||process.env[CJt]||IJt,"getProfileName")});var zne,mGe,hGe=A(()=>{zne=R(qt()),mGe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(zne.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===zne.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var AGe,SJt,gGe,yGe=A(()=>{AGe=require("node:path");xF();SJt="AWS_CONFIG_FILE",gGe=i(()=>process.env[SJt]||(0,AGe.join)(MI(),".aws","config"),"getConfigFilepath")});var EGe,wJt,CGe,IGe=A(()=>{EGe=require("node:path");xF();wJt="AWS_SHARED_CREDENTIALS_FILE",CGe=i(()=>process.env[wJt]||(0,EGe.join)(MI(),".aws","credentials"),"getCredentialsFilepath")});var SGe,xJt,bJt,Vne,wGe=A(()=>{SGe=R(qt()),xJt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,bJt=["__proto__","profile __proto__"],Vne=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=xJt.exec(c);if(l){let[,u,,d]=l;Object.values(SGe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(bJt.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 bGe,Wne,xGe,jne,BGe=A(()=>{bGe=require("node:fs/promises"),Wne={},xGe={},jne=i((t,e)=>xGe[t]!==void 0?xGe[t]:((!Wne[t]||e?.ignoreCache)&&(Wne[t]=(0,bGe.readFile)(t,"utf8")),Wne[t]),"readFile")});var Jne,RGe,NGe,TGe=A(()=>{Jne=require("node:path");hGe();yGe();IGe();xF();wGe();BGe();RGe=i(()=>({}),"swallowError"),NGe=i(async(t={})=>{let{filepath:e=CGe(),configFilepath:r=gGe()}=t,n=MI(),s="~/",o=e;e.startsWith(s)&&(o=(0,Jne.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,Jne.join)(n,r.slice(2)));let c=await Promise.all([jne(a,{ignoreCache:t.ignoreCache}).then(Vne).then(mGe).catch(RGe),jne(o,{ignoreCache:t.ignoreCache}).then(Vne).catch(RGe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});function bF(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 Yne=A(()=>{i(bF,"getSelectorName")});var _Ge,PGe=A(()=>{Hne();Yne();_Ge=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new OI(r.message||`Not found in ENV: ${bF(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var vGe,QGe=A(()=>{Hne();fGe();TGe();Yne();vGe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=pGe(r),{configFile:s,credentialsFile:o}=await NGe(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 OI(u.message||`Not found in config files w/ profile [${n}]: ${bF(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var BJt,DGe,kGe=A(()=>{oGe();BJt=i(t=>typeof t=="function","isFunction"),DGe=i(t=>BJt(t)?async()=>await t():sGe(t),"fromStatic")});var BF,OGe=A(()=>{nGe();aGe();PGe();QGe();kGe();BF=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return iGe(rGe(_Ge(t,{signingName:s,logger:o}),vGe(e,n),DGe(r)))},"loadConfig")});var qA,$f,qf,LGe,MGe,RF=A(()=>{qA=i((t,e)=>{let r=[];if(t&&r.push(t),e)for(let n of e)r.push(n);return r},"getAllAliases"),$f=i((t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,"getMiddlewareNameWithAliases"),qf=i(()=>{let t=[],e=[],r=!1,n=new Set,s=i(p=>p.sort((f,m)=>LGe[m.step]-LGe[f.step]||MGe[m.priority||"normal"]-MGe[f.priority||"normal"]),"sort"),o=i(p=>{let f=!1,m=i(h=>{let g=qA(h.name,h.aliases);if(g.includes(p)){f=!0;for(let y of g)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 g of qA(h.name,h.aliases))n.delete(g);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 C of qA(E.name,E.aliases))h[C]=E;f.push(E)}),e.forEach(y=>{let E={...y,before:[],after:[]};for(let C of qA(E.name,E.aliases))h[C]=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 ${$f(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:g}=f,y={step:"initialize",priority:"normal",middleware:p,...f},E=qA(m,g);if(E.length>0){if(E.some(C=>n.has(C))){if(!h)throw new Error(`Duplicate middleware name '${$f(m,g)}'`);for(let C of E){let S=t.findIndex(N=>N.name===C||N.aliases?.some(_=>_===C));if(S===-1)continue;let b=t[S];if(b.step!==y.step||y.priority!==b.priority)throw new Error(`"${$f(b.name,b.aliases)}" middleware with ${b.priority} priority in ${b.step} step cannot be overridden by "${$f(m,g)}" middleware with ${y.priority} priority in ${y.step} step.`);t.splice(S,1)}}for(let C of E)n.add(C)}t.push(y)},"add"),addRelativeTo:i((p,f)=>{let{name:m,override:h,aliases:g}=f,y={middleware:p,...f},E=qA(m,g);if(E.length>0){if(E.some(C=>n.has(C))){if(!h)throw new Error(`Duplicate middleware name '${$f(m,g)}'`);for(let C of E){let S=e.findIndex(N=>N.name===C||N.aliases?.some(_=>_===C));if(S===-1)continue;let b=e[S];if(b.toMiddleware!==y.toMiddleware||b.relation!==y.relation)throw new Error(`"${$f(b.name,b.aliases)}" middleware ${b.relation} "${b.toMiddleware}" middleware cannot be overridden by "${$f(m,g)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);e.splice(S,1)}}for(let C of E)n.add(C)}e.push(y)},"addRelativeTo"),clone:i(()=>c(qf()),"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:g,name:y,aliases:E}=h;if(g&&g.includes(p)){let C=qA(y,E);for(let S of C)n.delete(S);return f=!0,!1}return!0},"filterCb");return t=t.filter(m),e=e.filter(m),f},"removeByTag"),concat:i(p=>{let f=c(qf());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 $f(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"),LGe={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},MGe={high:3,normal:2,low:1}});var FGe,UGe=A(()=>{FGe=i(t=>()=>{throw new Error(t)},"invalidFunction")});var $Ge,qGe=A(()=>{$Ge=i(t=>()=>Promise.reject(t),"invalidProvider")});var FI,Kne=A(()=>{FI=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 HGe,GGe=A(()=>{HGe=i(t=>new Promise(e=>setTimeout(e,t*1e3)),"sleep")});var NF,Ri,zGe,TF=A(()=>{Kne();NF={minDelay:2,maxDelay:120};(function(t){t.ABORTED="ABORTED",t.FAILURE="FAILURE",t.SUCCESS="SUCCESS",t.RETRY="RETRY",t.TIMEOUT="TIMEOUT"})(Ri||(Ri={}));zGe=i(t=>{if(t.state===Ri.ABORTED){let e=new Error(`${JSON.stringify({...t,reason:"Request was aborted"},FI())}`);throw e.name="AbortError",e}else if(t.state===Ri.TIMEOUT){let e=new Error(`${JSON.stringify({...t,reason:"Waiter has timed out"},FI())}`);throw e.name="TimeoutError",e}else if(t.state!==Ri.SUCCESS)throw new Error(`${JSON.stringify(t,FI())}`);return t},"checkExceptions")});var VGe,RJt,NJt,TJt,_Jt,WGe=A(()=>{Kne();GGe();TF();VGe=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=TJt(u,d,p,f);if(n?.signal?.aborted||o?.aborted){let C="AbortController signal aborted.";return l[C]|=0,l[C]+=1,{state:Ri.ABORTED,observedResponses:l}}if(Date.now()+E>f)return{state:Ri.TIMEOUT,observedResponses:l};await HGe(E/1e3)}let{state:g,reason:y}=await c(s,a);if(y){let E=NJt(y);l[E]|=0,l[E]+=1}if(g!==Ri.RETRY)return{state:g,reason:y,final:y,observedResponses:l};p+=1,!h&&Date.now()>=m&&(RJt(l,s),h=!0)}},"runPolling"),RJt=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"),NJt=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,FI())??"Unknown")},"createMessageFromResponse"),TJt=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=_Jt(t,a);if(Date.now()+c>n){let l=n-Date.now();return Math.max(0,l-500)}return c},"exponentialBackoffWithJitter"),_Jt=i((t,e)=>t+Math.random()*(e-t),"randomInRange")});var jGe,JGe=A(()=>{jGe=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 YGe,KGe,XGe=A(()=>{WGe();JGe();TF();YGe=i(t=>{let e,r=new Promise(n=>{e=i(()=>n({state:Ri.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"),KGe=i(async(t,e,r)=>{let n={...NF,...t};jGe(n);let s=[VGe(n,e,r)],o=[];if(t.abortSignal){let{aborted:a,clearListener:c}=YGe(t.abortSignal);o.push(c),s.push(a)}if(t.abortController?.signal){let{aborted:a,clearListener:c}=YGe(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 _F,ZGe=A(()=>{RF();_F=class{static{i(this,"Client")}config;middlewareStack=qf();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 HA,Xne=A(()=>{HA=i(t=>typeof t=="function"?t():t,"deref")});function Eu(t){if(typeof t=="object")return t;if(t=t|0,PF[t])return PF[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return PF[t]=e}var PF,Zne=A(()=>{PF=[];i(Eu,"translateTraits")});function DR(t,e){if(t instanceof Ge)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=Ge;return new r(t,e)}var QR,vF,QF,Ge,ese,eze,tze=A(()=>{Xne();Zne();QR={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},vF=[],QF={},Ge=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;ese(s);)n.push(s[1]),s=s[0],o=HA(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,Eu(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=HA(o),eze(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(vF[e])return vF[e]}else if(typeof e=="string"){if(QF[e])return QF[e]}else if(r&&e[QR.ns])return e[QR.ns];let n=HA(e);if(n instanceof t)return n;if(ese(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Eu(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[QR.ns]=s:typeof n=="string"?QF[n]=s:typeof n=="number"?vF[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 Eu(this.memberTraits)}getOwnTraits(){return Eu(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 DR([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 DR([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 DR(ese(s)?s:[s,0],e)}if(this.isDocumentSchema())return DR([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[QR.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=DR([e[5][s],0],o);yield n[s]=[o,a]}e[QR.it]=n}};i(DR,"member");ese=i(t=>Array.isArray(t)&&t.length===2,"isMemberSchema"),eze=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Cu,rze=A(()=>{Cu=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 As=A(()=>{Xne();tze();Zne();rze()});function UI(t,e){if(e==null)return e;let r=Ge.of(t);if(r.getMergedTraits().sensitive)return tse;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return tse}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return tse}else if(r.isStructSchema()&&typeof e=="object"){let n=e,s={};for(let[o,a]of r.structIterator())n[o]!=null&&(s[o]=UI(a,n[o]));return s}return e}var tse,rse=A(()=>{As();tse="***SensitiveInformation***";i(UI,"schemaLogFilter")});var nse,GA,sse,ose=A(()=>{nse=R(qt());RF();rse();GA=class{static{i(this,"Command")}middlewareStack=qf();schema;static classBuilder(){return new sse}resolveMiddlewareWithContext(e,r,n,{middlewareFn:s,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,smithyContext:u,additionalContext:d,CommandCtor:p}){for(let C of s.bind(this)(p,e,r,n))this.middlewareStack.use(C);let f=e.concat(this.middlewareStack),{logger:m}=r,h=d[nse.SMITHY_CONTEXT_KEY],g={logger:m,clientName:o,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:l,...d,[nse.SMITHY_CONTEXT_KEY]:{...h,commandInstance:this,...u,...n?.metricsRecorder===void 0?{}:{metricsRecorder:n.metricsRecorder}}},{requestHandler:y}=r,E=n??{};return E.metricsRecorder&&(E={...E},delete E.metricsRecorder),u.eventStream&&(E={isEventStream:!0,...E}),f.resolve(C=>y.handle(C.request,E),g)}},sse=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 GA{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?UI.bind(null,c):u=>u),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?UI.bind(null,l):u=>u),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}});var nze,sze=A(()=>{nze="***SensitiveInformation***"});var oze,ize=A(()=>{oze=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 DF,kF,ise=A(()=>{DF=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}},kF=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 ase,aze,PJt,cze=A(()=>{ise();ase=i(({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{let s=PJt(t),o=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new r({name:e?.code||e?.Code||n||o||"UnknownError",$fault:"client",$metadata:s});throw kF(a,e)},"throwDefaultError"),aze=i(t=>({output:e,parsedBody:r,errorCode:n})=>{ase({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},"withBaseException"),PJt=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 lze,uze=A(()=>{lze=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 dze,pze,fze=A(()=>{dze=!1,pze=i(t=>{t&&!dze&&parseInt(t.substring(1,t.indexOf(".")))<16&&(dze=!0)},"emitWarningIfUnsupportedVersion")});var zA,mze,OF,LF,cse=A(()=>{dt();zA=R(qt()),mze=Object.values(zA.AlgorithmId),OF=i(t=>{let e=[];for(let r in zA.AlgorithmId){if(!Be(zA.AlgorithmId,r))continue;let n=zA.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();mze.includes(n)?t.checksumAlgorithms[n.toUpperCase()]=s:t.checksumAlgorithms[n]=s,e.push(r)},checksumAlgorithms(){return e}}},"getChecksumConfiguration"),LF=i(t=>{let e={};return t.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();mze.includes(n)&&(e[n]=r.checksumConstructor())}),e},"resolveChecksumRuntimeConfig")});var MF,FF,lse=A(()=>{MF=i(t=>({setRetryStrategy(e){t.retryStrategy=e},retryStrategy(){return t.retryStrategy}}),"getRetryConfiguration"),FF=i(t=>{let e={};return e.retryStrategy=t.retryStrategy(),e},"resolveRetryRuntimeConfig")});var use,hze,Aze,gze=A(()=>{cse();lse();use=i(t=>Object.assign(OF(t),MF(t)),"getDefaultExtensionConfiguration"),hze=use,Aze=i(t=>Object.assign(LF(t),FF(t)),"resolveDefaultRuntimeConfig")});var yze,Eze=A(()=>{yze=i(t=>Array.isArray(t)?t:[t],"getArrayIfSingleItem")});var dse,Cze=A(()=>{dt();dse=i(t=>{let e="#text";for(let r in t)Be(t,r)&&(t[r][e]!==void 0?t[r]=t[r][e]:typeof t[r]=="object"&&t[r]!==null&&(t[r]=dse(t[r])));return t},"getValueFromTextNode")});var Ize,Sze=A(()=>{Ize=i(t=>t!=null,"isSerializableHeaderValue")});var UF,wze=A(()=>{UF=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}}});function pse(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,vJt(n,s,o);o=e}for(let a in o)if(Be(o,a)){if(!Array.isArray(o[a])){n[a]=o[a];continue}Bze(n,null,o,a)}return n}var xze,bze,vJt,Bze,QJt,DJt,Rze=A(()=>{dt();i(pse,"map");xze=i(t=>{let e={};for(let[r,n]of Object.entries(t||{}))e[r]=[,n];return e},"convertMap"),bze=i((t,e)=>{let r={};for(let n in e)Be(e,n)&&Bze(r,t,e,n);return r},"take"),vJt=i((t,e,r)=>pse(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"),Bze=i((t,e,r,n)=>{if(e!==null){let a=r[n];typeof a=="function"&&(a=[,a]);let[c=QJt,l=DJt,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"),QJt=i(t=>t!=null,"nonNullish"),DJt=i(t=>t,"pass")});var Nze,Tze,_ze=A(()=>{Nze=i(t=>{if(t!==t)return"NaN";switch(t){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return t}},"serializeFloat"),Tze=i(t=>t.toISOString().replace(".000Z","Z"),"serializeDateTime")});var $F,Pze=A(()=>{dt();$F=i(t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map($F);if(typeof t=="object"){let e={};for(let r in t)Be(t,r)&&t[r]!=null&&(e[r]=$F(t[r]));return e}return t},"_json")});function vze(t,e,r,n){return i(function(o,a,c,l,u={}){let d=Object.assign({},t,o);return GA.classBuilder().ep(d).m(function(p,f,m,h){let g=a.call(this,p,f,m,h);return g.unshift(n(m,p.getEndpointParameterInstructions())),g}).s(e,c,u).n(r,c.charAt(0).toUpperCase()+c.slice(1)+"Command").sc(l).build()},"makeCommand")}var Qze=A(()=>{ose();i(vze,"makeBuilder")});var Dze={};St(Dze,{AlgorithmId:()=>zA.AlgorithmId,Client:()=>_F,Command:()=>GA,NoOpLogger:()=>UF,SENSITIVE_STRING:()=>nze,ServiceException:()=>DF,WaiterState:()=>Ri,_json:()=>$F,checkExceptions:()=>zGe,constructStack:()=>qf,convertMap:()=>xze,createAggregatedClient:()=>oze,createWaiter:()=>KGe,decorateServiceException:()=>kF,emitWarningIfUnsupportedVersion:()=>pze,getArrayIfSingleItem:()=>yze,getChecksumConfiguration:()=>OF,getDefaultClientConfiguration:()=>hze,getDefaultExtensionConfiguration:()=>use,getRetryConfiguration:()=>MF,getSmithyContext:()=>FA,getValueFromTextNode:()=>dse,invalidFunction:()=>FGe,invalidProvider:()=>$Ge,isSerializableHeaderValue:()=>Ize,loadConfigsForDefaultMode:()=>lze,makeBuilder:()=>vze,map:()=>pse,normalizeProvider:()=>UA,resolveChecksumRuntimeConfig:()=>LF,resolveDefaultRuntimeConfig:()=>Aze,resolveRetryRuntimeConfig:()=>FF,schemaLogFilter:()=>UI,serializeDateTime:()=>Tze,serializeFloat:()=>Nze,take:()=>bze,throwDefaultError:()=>ase,waiterServiceDefaults:()=>NF,withBaseException:()=>aze});var kze=A(()=>{RF();dt();dt();UGe();qGe();XGe();TF();ZGe();ose();sze();ize();cze();uze();fze();ise();gze();cse();lse();Eze();Cze();Sze();wze();Rze();rse();_ze();Pze();Qze()});var fse=A(()=>{cGe();lGe();OGe()});var Oze,Lze,Mze,Fze=A(()=>{Oze="AWS_ENDPOINT_URL",Lze="endpoint_url",Mze=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[Oze,...r].join("_")];if(n)return n;let s=e[Oze];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("_"),Lze].join(".")];if(c)return c}let n=e[Lze];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var kJt,OJt,Uze,$ze=A(()=>{fse();kJt="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",OJt="ignore_configured_endpoint_urls",Uze={environmentVariableSelector:i(t=>wF(t,kJt,LI.ENV),"environmentVariableSelector"),configFileSelector:i(t=>wF(t,OJt,LI.CONFIG),"configFileSelector"),default:!1}});var kR,qze=A(()=>{fse();Fze();$ze();kR=i(async t=>{if(!await BF(Uze)())return BF(Mze(t??""))()},"getEndpointFromConfig")});var mse,LJt,MJt,FJt,Hze,Gze,zze=A(()=>{mse=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Gze(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Hze(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"),LJt=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,MJt=/(\d+\.){3}\d+/,FJt=/\.\./,Hze=i(t=>LJt.test(t)&&!MJt.test(t)&&!FJt.test(t),"isDnsCompatibleBucketName"),Gze=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 Vze=A(()=>{zze()});var Wze,jze=A(()=>{Wze=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 hse=A(()=>{dt()});function qF(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($d(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await UJt(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 UJt,Ase=A(()=>{Vze();jze();hse();i(qF,"bindGetEndpointFromInstructions");UJt=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 Wze(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 mse(n),n},"resolveParams")});function $Jt(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 HF(t){let e=qF(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&$Jt(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=FA(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 gse=A(()=>{dt();Ase();i($Jt,"setFeature");i(HF,"bindEndpointMiddleware")});function Jze(t){let e=HF(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),HJt)},"applyToStack")})}var qJt,HJt,Yze=A(()=>{gse();qJt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},HJt={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:qJt.name};i(Jze,"bindGetEndpointPlugin")});function Kze(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>$d(await UA(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:UA(s??!1),useFipsEndpoint:UA(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var Xze=A(()=>{dt();hse();i(Kze,"bindResolveEndpointConfig")});var dxn,pxn,fxn,mxn,Zze=A(()=>{qze();Ase();gse();Yze();Xze();dt();dxn=qF(kR),pxn=Kze(kR),fxn=HF(kR),mxn=Jze(kR)});var GF,yse=A(()=>{Zze();GF=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>$d(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 e3e(t,e,r){return{applyToStack:i(n=>{n.add(SF(t,r),Ese),n.add(GF(t,e),Cse)},"applyToStack")}}var Ese,Cse,t3e=A(()=>{$ne();yse();Ese={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Cse={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(e3e,"getSerdePlugin")});function r3e(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?Of(t,e):ArrayBuffer.isView(t)?Ec(t.buffer,t.byteOffset,t.byteLength):Ec(t)}var VF,zF,n3e=A(()=>{VF=require("node:crypto");Lf();Fne();zF=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(IF(r3e(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,VF.createHmac)(this.algorithmIdentifier,r3e(this.secret)):(0,VF.createHash)(this.algorithmIdentifier)}};i(r3e,"castSourceData")});var s3e,$I,Ise=A(()=>{s3e=require("node:stream");wne();$I=class extends s3e.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??bo,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 mn,Hf,Ic=A(()=>{mn=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),Hf=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var o3e,i3e=A(()=>{o3e=i(t=>new TextEncoder().encode(t),"fromUtf8")});var a3e,kxn,c3e,WF,Sse,l3e,u3e=A(()=>{a3e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kxn=Object.entries(a3e).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),c3e=a3e.split(""),WF=6,Sse=8,l3e=63});function jF(t){let e;typeof t=="string"?e=o3e(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)*Sse,c+=Sse;let l=Math.ceil(c/WF);a<<=l*WF-c;for(let u=1;u<=l;u++){let d=(l-u)*WF;s+=c3e[(a&l3e<<d)>>d]}s+="==".slice(0,4-l)}return s}var wse=A(()=>{i3e();u3e();i(jF,"toBase64")});var GJt,JF,d3e=A(()=>{GJt=typeof ReadableStream=="function"?ReadableStream:function(){},JF=class extends GJt{static{i(this,"ChecksumStream")}}});var p3e,f3e=A(()=>{wse();Ic();d3e();p3e=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!mn(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??jF;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,JF.prototype),c},"createChecksumStream")});function m3e(t){return typeof ReadableStream=="function"&&mn(t.source)?p3e(t):new $I(t)}var h3e=A(()=>{Ic();Ise();f3e();i(m3e,"createChecksumStream")});var VA,xse=A(()=>{VA=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 A3e(t,e,r){let n=t.getReader(),s=!1,o=0,a=["",new VA(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=WA(a,c);Hd(m)>0&&u.enqueue(m)}u.close()}else{let m=Bse(f,!1);if(c!==m&&(c>=0&&u.enqueue(WA(a,c)),c=m),c===-1){u.enqueue(f);return}let h=Hd(f);o+=h;let g=Hd(a[c]);if(h>=e&&g===0)u.enqueue(f);else{let y=bse(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(WA(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function bse(t,e,r){switch(e){case 0:return t[0]+=r,Hd(t[0]);case 1:case 2:return t[e].push(r),Hd(t[e])}}function WA(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 Hd(t){return t?.byteLength??t?.length??0}function Bse(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var g3e=A(()=>{xse();i(A3e,"createBufferedReadableStream");i(bse,"merge");i(WA,"flush");i(Hd,"sizeOf");i(Bse,"modeOf")});function E3e(t,e,r){if(mn(t))return A3e(t,e,r);let n=new y3e.Readable({read(){}}),s=!1,o=0,a=["",new VA(l=>new Uint8Array(l)),new VA(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=Bse(l,!0);if(c!==u&&(c>=0&&n.push(WA(a,c)),c=u),c===-1){n.push(l);return}let d=Hd(l);o+=d;let p=Hd(a[c]);if(d>=e&&p===0)n.push(l);else{let f=bse(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(WA(a,c))}}),t.on("end",()=>{if(c!==-1){let l=WA(a,c);Hd(l)>0&&n.push(l)}n.push(null)}),n}var y3e,C3e=A(()=>{y3e=require("node:stream");xse();g3e();Ic();i(E3e,"createBufferedReadable")});var I3e,S3e=A(()=>{I3e=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 x3e(t,e){let r=t,n=t;if(mn(n))return I3e(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 w3e.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 w3e,b3e=A(()=>{w3e=require("node:stream");S3e();Ic();i(x3e,"getAwsChunkedEncodingStream")});async function B3e(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 R3e=A(()=>{i(B3e,"headStream")});var N3e,T3e,Rse,_3e=A(()=>{N3e=require("node:stream");PR();R3e();Ic();T3e=i((t,e)=>mn(t)?B3e(t,e):new Promise((r,n)=>{let s=new Rse;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=Uf(this.buffers);r(o)})}),"headStream"),Rse=class extends N3e.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 P3e,v3e=A(()=>{P3e=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 Nse(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Tse(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 Uf(e,n)}var Q3e,_se=A(()=>{PR();Ic();Q3e=i(async t=>Hf(t)?Nse(t):Tse(t),"streamCollector");i(Nse,"collectBlob");i(Tse,"collectReadableStream")});var D3e,O3e,k3e,L3e=A(()=>{wse();Mne();v3e();_se();Ic();D3e="The stream has already been transformed.",O3e=i(t=>{if(!k3e(t)&&!mn(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(D3e);return e=!0,await Q3e(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 jF(o);if(s==="hex")return Ca(o);if(s===void 0||s==="utf8"||s==="utf-8")return P3e(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(D3e);if(e=!0,k3e(t))return n(t);if(mn(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),k3e=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var M3e,YF,Pse,vse=A(()=>{M3e=require("node:stream");PR();_se();Ic();YF=i(t=>Hf(t)?Nse(t):mn(t)?Tse(t):new Promise((e,r)=>{let n=new Pse,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=Uf(this.bufferedBytes);e(o)})}),"streamCollector"),Pse=class extends M3e.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var KF,F3e,XF,U3e=A(()=>{KF=require("node:stream");Lf();L3e();vse();F3e="The stream has already been transformed.",XF=i(t=>{if(!(t instanceof KF.Readable))try{return O3e(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(F3e);return e=!0,await YF(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?Ec(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(F3e);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof KF.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,KF.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function $3e(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var q3e=A(()=>{i($3e,"splitStream")});async function H3e(t){if(mn(t)||Hf(t))return $3e(t);let e=new Qse.PassThrough,r=new Qse.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var Qse,G3e=A(()=>{Qse=require("node:stream");q3e();Ic();i(H3e,"splitStream")});var W3e={};St(W3e,{ChecksumStream:()=>$I,Hash:()=>zF,LazyJsonString:()=>Yr,NumericValue:()=>Bt,Uint8ArrayBlobAdapter:()=>jA,_parseEpochTimestamp:()=>AF,_parseRfc3339DateTimeWithOffset:()=>gF,_parseRfc7231DateTime:()=>yF,calculateBodyLength:()=>eGe,concatBytes:()=>Uf,copyDocumentWithTransform:()=>CHe,createBufferedReadable:()=>E3e,createChecksumStream:()=>m3e,dateToUtcString:()=>Ff,deserializerMiddleware:()=>SF,deserializerMiddlewareOption:()=>Ese,expectBoolean:()=>THe,expectByte:()=>uF,expectFloat32:()=>NR,expectInt:()=>_He,expectInt32:()=>cF,expectLong:()=>BI,expectNonNull:()=>PHe,expectNumber:()=>bI,expectObject:()=>Tne,expectShort:()=>lF,expectString:()=>vHe,expectUnion:()=>QHe,fromArrayBuffer:()=>Ec,fromBase64:()=>gu,fromHex:()=>CF,fromString:()=>Of,fromUtf8:()=>Cc,generateIdempotencyToken:()=>JA,getAwsChunkedEncodingStream:()=>x3e,getSerdePlugin:()=>e3e,handleFloat:()=>kHe,hasOwn:()=>Be,headStream:()=>T3e,isArrayBuffer:()=>oF,isBlob:()=>Hf,isReadableStream:()=>mn,limitedParseDouble:()=>fF,limitedParseFloat:()=>OHe,limitedParseFloat32:()=>LHe,logger:()=>RI,nv:()=>KHe,parseBoolean:()=>NHe,parseEpochTimestamp:()=>vI,parseRfc3339DateTime:()=>$He,parseRfc3339DateTimeWithOffset:()=>_I,parseRfc7231DateTime:()=>PI,quoteHeader:()=>hF,sdkStreamMixin:()=>XF,serializerMiddleware:()=>GF,serializerMiddlewareOption:()=>Cse,splitEvery:()=>EF,splitHeader:()=>QI,splitStream:()=>H3e,streamCollector:()=>YF,strictParseByte:()=>mF,strictParseDouble:()=>TR,strictParseFloat:()=>DHe,strictParseFloat32:()=>pF,strictParseInt:()=>FHe,strictParseInt32:()=>UHe,strictParseLong:()=>_ne,strictParseShort:()=>Mf,toBase64:()=>bo,toHex:()=>Ca,toUint8Array:()=>IF,toUtf8:()=>Bi,v4:()=>V3e});var z3e,jA,zJt,V3e,JA,hn=A(()=>{z3e=require("node:crypto");mHe();wne();AHe();iF();gHe();EHe();IHe();qHe();HHe();Pne();GHe();WHe();jHe();JHe();XHe();Mne();tGe();Fne();PR();Lf();Sne();$ne();t3e();yse();n3e();Ise();h3e();C3e();b3e();_3e();U3e();G3e();Ic();vse();dt();jA=class extends hHe(Bi,Cc,bo,gu){static{i(this,"Uint8ArrayBlobAdapter")}},zJt=z3e.getRandomValues,V3e=yHe(zJt),JA=V3e});var Bo,qI=A(()=>{hn();Bo=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return jA.mutate(t);if(!t)return jA.mutate(new Uint8Array);let r=e.streamCollector(t);return jA.mutate(await r)},"collectBody")});function Gf(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var ZF=A(()=>{i(Gf,"extendedEncodeURIComponent")});var Ia,HI=A(()=>{Ia=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var j3e,Dse,eU,J3e=A(()=>{j3e=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;j3e[t]=e>>>0}Dse=4294967295,eU=class{static{i(this,"Crc32Js")}digestLength=4;checksum=Dse;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^j3e[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Dse)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Dse}}});function VJt(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 kse,Y3e,GI,K3e=A(()=>{kse=R(require("node:zlib"));J3e();Y3e=typeof kse.crc32=="function"?kse.crc32:void 0,GI=Y3e?VJt(Y3e):eU;i(VJt,"buildNativeClass")});var Ose=A(()=>{K3e()});function X3e(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var zf,Lse=A(()=>{hn();zf=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&&X3e(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&X3e(e),parseInt(Ca(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(X3e,"negate")});var zI,Z3e,eVe,WJt,jJt,JJt,YJt,KJt,XJt,ZJt,eYt,tYt,Mse=A(()=>{dt();hn();Lse();zI=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(!Be(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(zf.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!tYt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(CF(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:eVe,value:!0};break;case 1:r[o]={type:eVe,value:!1};break;case 2:r[o]={type:WJt,value:e.getInt8(n++)};break;case 3:r[o]={type:jJt,value:e.getInt16(n,!1)},n+=2;break;case 4:r[o]={type:JJt,value:e.getInt32(n,!1)},n+=4;break;case 5:r[o]={type:YJt,value:new zf(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let a=e.getUint16(n,!1);n+=2,r[o]={type:KJt,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:XJt,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,c))},n+=c;break;case 8:r[o]={type:ZJt,value:new Date(new zf(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:eYt,value:`${Ca(l.subarray(0,4))}-${Ca(l.subarray(4,6))}-${Ca(l.subarray(6,8))}-${Ca(l.subarray(8,10))}-${Ca(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"})(Z3e||(Z3e={}));eVe="boolean",WJt="byte",jJt="short",JJt="integer",YJt="long",KJt="binary",XJt="string",ZJt="timestamp",eYt="uuid",tYt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function rVe({byteLength:t,byteOffset:e,buffer:r}){if(t<rYt)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(tVe,!1),a=n.getUint32(Vf,!1),c=n.getUint32(t-YA,!1),l=new GI;if(l.update(new Uint8Array(r,e,Vf)),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+Vf,t-(Vf+YA))),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+Vf+YA,o),body:new Uint8Array(r,e+Vf+YA+o,s-o-(Vf+YA+YA))}}var tVe,Vf,YA,rYt,nVe=A(()=>{Ose();tVe=4,Vf=tVe*2,YA=4,rYt=Vf+YA*2;i(rVe,"splitMessage")});var VI,Fse=A(()=>{Ose();Mse();nVe();VI=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new zI(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 GI;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}=rVe(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var WI,Use=A(()=>{WI=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 jI,$se=A(()=>{jI=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 JI,qse=A(()=>{JI=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 YI,Hse=A(()=>{YI=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 tU(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 Gse=A(()=>{i(tU,"getChunkedStream")});function sVe(t,e){let r=OR(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 OR(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 zse=A(()=>{i(sVe,"getUnmarshalledStream");i(OR,"getMessageUnmarshaller")});var KA,oVe,Vse=A(()=>{Fse();Use();$se();qse();Hse();Gse();zse();KA=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new VI(e,r),this.utfEncoder=e}deserialize(e,r){let n=tU(e);return new JI({messageStream:new WI({inputStream:n,decoder:this.eventStreamCodec}),deserializer:OR(r,this.utfEncoder)})}serialize(e,r){return new jI({messageStream:new YI({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},oVe=i(t=>new KA(t),"eventStreamSerdeProvider")});async function*nYt(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 iVe,LR,aVe,cVe=A(()=>{iVe=require("node:stream");Vse();LR=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new KA({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:nYt(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return iVe.Readable.from(this.universalMarshaller.serialize(e,r))}},aVe=i(t=>new LR(t),"eventStreamSerdeProvider");i(nYt,"readableToIterable")});var lVe,uVe,dVe=A(()=>{lVe=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"),uVe=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 pVe,fVe=A(()=>{pVe=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var rU,mVe=A(()=>{dt();As();hn();rU=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 S in f)if(Be(f,S)&&S!=="__type"){m=S;break}let{additionalHeaders:h,body:g,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:g}})}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(Be(m,y)&&y!=="__type"){h=y;break}let g=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,g);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},C=!1;for(let[S,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(C=C||!!(N||_),_)b.isBlobSchema()?E[S]=g:b.isStringSchema()?E[S]=(this.serdeContext?.utf8Encoder??Bi)(g):b.isStructSchema()&&(E[S]=await this.deserializer.read(b,g));else if(N){let v=m[h].headers[S]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[S]=BigInt(v.toString()):E[S]=Number(v):E[S]=v)}}return{[h]:await this.readEventMember(y,g,C,E)}}return{[h]:await this.deserializer.read(y,g)}}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)Be(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=Cu.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:g,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(g){let E=n[e][m],C="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?C="integer":C="long":h.isTimestampSchema()?C="timestamp":h.isStringSchema()?C="string":h.isBooleanSchema()&&(C="boolean"),E!=null&&(u[m]={type:C,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??Cc)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var hVe={};St(hVe,{EventStreamCodec:()=>VI,EventStreamMarshaller:()=>LR,EventStreamSerde:()=>rU,HeaderMarshaller:()=>zI,Int64:()=>zf,MessageDecoderStream:()=>WI,MessageEncoderStream:()=>jI,SmithyMessageDecoderStream:()=>JI,SmithyMessageEncoderStream:()=>YI,UniversalEventStreamMarshaller:()=>KA,eventStreamSerdeProvider:()=>aVe,getChunkedStream:()=>tU,getMessageUnmarshaller:()=>OR,getUnmarshalledStream:()=>sVe,iterableToReadableStream:()=>uVe,readableStreamToIterable:()=>lVe,resolveEventStreamSerdeConfig:()=>pVe,universalEventStreamSerdeProvider:()=>oVe});var AVe=A(()=>{Fse();Mse();Lse();Use();$se();qse();Hse();cVe();dVe();Vse();Gse();zse();fVe();mVe()});var Wf,nU=A(()=>{dt();As();dt();HI();Wf=class extends Ia{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Cu(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return zs}getResponseType(){return Ud}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)Be(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)Be(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=Ge.of(r.input),o=Eu(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,!BR(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(()=>(AVe(),hVe)),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 sU,gVe=A(()=>{dt();As();hn();dt();nU();qI();ZF();sU=class extends Wf{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=Ge.of(e?.input),d=[],p=[],f=!1,m,h=new zs({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 g=Eu(e.traits);if(g.http){h.method=g.http[0];let[y,E]=g.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let C=new URLSearchParams(E??"");for(let[S,b]of C)a[S]=b}}for(let[g,y]of u.structIterator()){let E=y.getMergedTraits()??{},C=s[g];if(C==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${g}+}`)||h.path.includes(`{${g}}`)))throw new Error(`No value provided for input HTTP label: ${g}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[g]&&(m=await this.serializeEventStream({eventStream:s[g],requestSchema:u})):m=C:(o.write(y,C),m=o.flush());else if(E.httpLabel){o.write(y,C);let S=o.flush();h.path.includes(`{${g}+}`)?h.path=h.path.replace(`{${g}+}`,S.split("/").map(Gf).join("/")):h.path.includes(`{${g}}`)&&(h.path=h.path.replace(`{${g}}`,Gf(S)))}else if(E.httpHeader)o.write(y,C),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let S in C){if(!Be(C,S))continue;let b=C[S],N=E.httpPrefixHeaders+S;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,C,a):(f=!0,d.push(g),p.push(y))}if(f&&s){let[g,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],C=[3,g,y,u.getMergedTraits(),d,p,void 0];E?C[6]=E:C.pop(),o.write(C,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(Be(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=Ge.of(e.output),a={};if(n.statusCode>=300){let l=await Bo(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(!Be(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 Bo(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 Bo(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=Ge.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]=XF(n.body);else if(n.body){let g=await Bo(n.body,r);g.byteLength>0&&(a[p]=await l.read(f,g))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),g=n.headers[h];if(g!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=EF(g,",",2):E=QI(g);let C=[];for(let S of E)C.push(await l.read(y,S.trim()));a[p]=C}else a[p]=await l.read(f,g)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(Be(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let g=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,g)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var KI,Wse=A(()=>{dt();As();dt();nU();qI();KI=class extends Wf{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=Ge.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new zs({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[g]of l.structIterator())g!==m&&p[g]!=null&&(h[g]=p[g]);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=Ge.of(e.output),a={};if(n.statusCode>=300){let l=await Bo(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(!Be(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 Bo(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var oU,jse=A(()=>{ZF();oU=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=>Gf(c)).join("/"):Gf(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function yVe(t,e){return new MR(t,e)}var MR,EVe=A(()=>{dt();jse();i(yVe,"requestBuilder");MR=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 zs({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=oU(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 Ro(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 jf=A(()=>{i(Ro,"determineTimestampFormat")});var XI,Jse=A(()=>{As();hn();HI();jf();XI=class extends Ia{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=Ge.of(e);if(n.isListSchema())return QI(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??gu)(r);if(n.isTimestampSchema())switch(Ro(n,this.settings)){case 5:return gF(r);case 6:return yF(r);case 7:return AF(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=Yr.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Bt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Bi)((this.serdeContext?.base64Decoder??gu)(e))}}});var iU,CVe=A(()=>{As();hn();HI();Jse();iU=class extends Ia{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new XI(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=Ge.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Bi;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??Cc;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 ZI,Yse=A(()=>{As();hn();HI();jf();ZI=class extends Ia{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=Ge.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(Ro(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Ff(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??bo)(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:hF(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=Yr.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??bo)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=JA():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var aU,IVe=A(()=>{As();Yse();aU=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new ZI(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=Ge.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 SVe,cU,wVe=A(()=>{SVe=R(qt()),cU=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=SVe.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 lU,xVe=A(()=>{lU=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 bVe,BVe,RVe=A(()=>{bVe=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"),BVe=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function Kse(t){return e=>async r=>{let n=r.request;if(zs.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(NVe)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[NVe]:String(a)})}catch{}}return e({...r,request:n})}}var NVe,Xse,TVe,_Ve=A(()=>{dt();NVe="content-length";i(Kse,"contentLengthMiddleware");Xse={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},TVe=i(t=>({applyToStack:i(e=>{e.add(Kse(t.bodyLengthChecker),Xse)},"applyToStack")}),"getContentLengthPlugin")});var Jf,sYt,uU=A(()=>{Jf=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,sYt),"escapeUri"),sYt=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var PVe,vVe=A(()=>{uU();PVe=i(t=>t.split("/").map(Jf).join("/"),"escapeUriPath")});function QVe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Jf(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${Jf(n[s])}`);else{let s=r;(n||typeof n=="string")&&(s+=`=${Jf(n)}`),e.push(s)}}return e.join("&")}var DVe=A(()=>{uU();i(QVe,"buildQueryString")});var No,XA=A(()=>{No=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var eS,Zse=A(()=>{eS=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 dU(){if(FR===void 0)try{if(typeof Buffer!="function")FR=!1;else{let t=JSON.parse(Buffer.from([123,125]));FR=t!==null&&typeof t=="object"}}catch{FR=!1}return FR}var FR,eoe=A(()=>{i(dU,"detectBufferParsing")});function tS(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?iYt(n,e)?e:new Bt(n,"bigDecimal"):oYt(n)?new Bt(n,"bigDecimal"):/[eE]/.test(n)?aYt(n):BigInt(n)}return e}function oYt(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 iYt(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return toe(t)===toe(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===toe(n):!1}function toe(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 aYt(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 pU=A(()=>{hn();i(tS,"jsonReviver");i(oYt,"isFractionalBigNumeric");i(iYt,"isRepresentable");i(toe,"expandToDecimal");i(aYt,"expandExponentToBigInt")});function rS(t){let e=Ge.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(roe in r)return r[roe];let n=fU(e,new Set);return r[roe]=n,n}return fU(e,new Set)}function fU(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(fU(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(fU(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var roe,mU=A(()=>{As();roe=Symbol.for("@aws-sdk/reviver");i(rS,"needsReviver");i(fU,"_check")});var kVe,OVe=A(()=>{qI();hn();kVe=i((t,e)=>Bo(t,e).then(r=>(e?.utf8Encoder??Bi)(r)),"collectBodyString")});async function ZA(t,e,r){let n;if(dU()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await Bo(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await kVe(t,e)),n.length===0)return{};let s=r&&rS(r)?tS: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 MVe,LVe,noe,FVe,UVe,hU,$Ve,UR=A(()=>{qI();OVe();eoe();pU();mU();i(ZA,"parseJsonBody");MVe=i(async(t,e)=>{let r=await ZA(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),LVe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),noe=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"),FVe=i((t,e)=>$Ve(t,e,["header","code","type"]),"loadRestJsonErrorCode"),UVe=i((t,e,r=!1)=>$Ve(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),hU=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"),$Ve=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=LVe(t??{},"x-amzn-errortype");if(s!==void 0)return noe(t[s]);break;case"code":let o=LVe(e??{},"code");if(o&&e[o]!==void 0)return noe(e[o]);break;case"type":if(e?.__type!==void 0)return noe(e.__type);break}},"loadErrorCode")});function Iu(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var AU=A(()=>{i(Iu,"writeKey")});var nS,soe=A(()=>{jf();As();hn();XA();Zse();eoe();pU();mU();UR();AU();dt();nS=class extends No{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=rS(e)?tS:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&dU()){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 ZA(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=Ge.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)Be(c,l)&&(l==="__proto__"&&Iu(c),c[l]=this._read(a,c[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return gu(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Yr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(Ro(s,this.settings)){case 5:return _I(r);case 6:return PI(r);case 7:return vI(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 Bt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Bt(a.string,a.type):new Bt(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 Bt||(r[a]=this._read(s,c))}else{let a=r;for(let c in a){if(!Be(a,c))continue;c==="__proto__"&&Iu(a);let l=a[c];l instanceof Bt||(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 eS(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(!Be(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 gU,qVe,HVe=A(()=>{hn();gU=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>qVe+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."),qVe=e),this.string=Bi(this)}return this.string}},qVe=0});function ooe(t){return gU.allocUnsafe(t)}var yU,GVe,zVe,cYt,lYt,sS,EU,CU,VVe,uYt,dYt,pYt,Su,WVe,oS,ioe=A(()=>{jf();As();hn();XA();dt();HVe();yU=new TextEncoder,GVe=123,zVe=125,cYt=91,lYt=93,sS=34,EU=58,CU=44,VVe=92,uYt=new Uint8Array([116,114,117,101]),dYt=new Uint8Array([102,97,108,115,101]),pYt=new Uint8Array([110,117,108,108]),Su=new Array(128).fill(null);Su[8]="b";Su[9]="t";Su[10]="n";Su[12]="f";Su[13]="r";Su[34]='"';Su[92]="\\";for(let t=0;t<32;t++)Su[t]===null&&(Su[t]="u00"+t.toString(16).padStart(2,"0"));WVe=2048;i(ooe,"alloc");oS=class t extends No{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=ooe(WVe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=Ge.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=Ge.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),yU.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=ooe(WVe),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=ooe(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++]=sS;for(let o=0;o<r;++o)n[s++]=e.charCodeAt(o);n[s++]=sS,this.i=s}writeJsonString(e){let r=e.length;this.ensure(r*3+2),this.json[this.i++]=sS;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=Su[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=VVe;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}=yU.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++]=sS}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=VVe,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++]=sS;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++]=sS,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&Ge.of(e).isIdempotencyToken()){this.writeAsciiQuoted(JA());return}return}this.ensure(4),this.json.set(pYt,this.i),this.i+=4;return}let s=Ge.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Yr.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Bt?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 Bt){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??bo)(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(uYt,a),a+=4):(c.set(dYt,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++]=GVe;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++]=CU),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++]=EU,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++]=EU,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++]=CU),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=EU,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=zVe}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+=yU.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=cYt;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++]=CU),this.writeValue(o,l,void 0),a=!0)}this.ensure(1),this.json[this.i++]=lYt}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(!Be(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+=yU.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=GVe;let a=!0;for(let c in r){if(!Be(r,c))continue;let l=r[c];(n?l===void 0:l==null&&!s)||(a||(this.ensure(1),this.json[this.i++]=CU),a=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=EU,this.writeValue(o,l,void 0))}this.ensure(1),this.json[this.i++]=zVe}writeTimestamp(e,r){switch(Ro(e,this.settings)){case 5:{let s=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(Ff(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 iS,aoe=A(()=>{XA();soe();ioe();iS=class extends No{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new oS(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new nS(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var IU,jVe=A(()=>{Wse();As();dt();aoe();UR();IU=class extends KI{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new iS({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()}),HA(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=FA(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=hU(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=Cu.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let S=Cu.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(S);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=Ge.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",g=new m({}),y={},E=this.codec.createDeserializer();for(let[C,S]of f.structIterator())s[C]!=null&&(y[C]=E.readObject(S,s[C]));throw Object.assign(g,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var aS,coe=A(()=>{jf();As();hn();hn();dt();XA();Zse();pU();mU();UR();AU();aS=class extends No{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=rS(e)?tS:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await ZA(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=Ge.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 eS(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(!Be(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)Be(r,l)&&(l==="__proto__"&&Iu(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return gu(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Yr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(Ro(s,this.settings)){case 5:return _I(r);case 6:return PI(r);case 7:return vI(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 Bt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Bt(a.string,a.type):new Bt(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(!Be(r,c))continue;c==="__proto__"&&Iu(a);let l=r[c];l instanceof Bt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var JVe,SU,YVe=A(()=>{hn();JVe="\u039D",SU=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 Bt){let n=`${JVe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${JVe+"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 cS,loe=A(()=>{jf();As();hn();XA();YVe();AU();dt();cS=class extends No{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=Ge.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 SU;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=Ge.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=Ge.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__"&&Iu(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!Be(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(!Be(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Iu(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??bo)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(Ro(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Ff(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Bt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return JA();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Yr.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??bo)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??bo)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!Be(r,c))continue;let l=r[c];c==="__proto__"&&Iu(a),l instanceof Bt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var wU,KVe=A(()=>{XA();coe();loe();wU=class extends No{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new cS(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new aS(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var XVe={};St(XVe,{Field:()=>cU,Fields:()=>lU,FromStringShapeDeserializer:()=>XI,HttpBindingProtocol:()=>sU,HttpInterceptingShapeDeserializer:()=>iU,HttpInterceptingShapeSerializer:()=>aU,HttpProtocol:()=>Wf,HttpRequest:()=>zs,HttpResponse:()=>Ud,JsonCodec:()=>wU,JsonCodec2:()=>iS,JsonShapeDeserializer:()=>aS,JsonShapeDeserializer2:()=>nS,JsonShapeSerializer:()=>cS,JsonShapeSerializer2:()=>oS,RequestBuilder:()=>MR,RpcProtocol:()=>KI,SerdeContext:()=>Ia,SmithyRpcV2JsonProtocol:()=>IU,ToStringShapeSerializer:()=>ZI,buildQueryString:()=>QVe,collectBody:()=>Bo,contentLengthMiddleware:()=>Kse,contentLengthMiddlewareOptions:()=>Xse,determineTimestampFormat:()=>Ro,escapeUri:()=>Jf,escapeUriPath:()=>PVe,extendedEncodeURIComponent:()=>Gf,getContentLengthPlugin:()=>TVe,getHttpHandlerExtensionConfiguration:()=>bVe,isValidHostname:()=>BR,loadJsonRpcErrorCode:()=>UVe,loadRestJsonErrorCode:()=>FVe,loadSmithyRpcV2JsonErrorCode:()=>hU,parseJsonBody:()=>ZA,parseJsonErrorBody:()=>MVe,parseQueryString:()=>RR,parseUrl:()=>$A,requestBuilder:()=>yVe,resolveHttpHandlerRuntimeConfig:()=>BVe,resolvedPath:()=>oU});var ZVe=A(()=>{qI();ZF();gVe();nU();Wse();EVe();jse();Jse();CVe();IVe();Yse();jf();HI();wVe();xVe();dt();dt();dt();RVe();_Ve();uU();vVe();DVe();dt();dt();jVe();UR();KVe();loe();coe();aoe();ioe();soe()});var Ioe=w(ze=>{var{hasOwn:uS,fromUtf8:e4e,fromHex:fYt,toHex:eg,toUint8Array:$R,isArrayBuffer:mYt}=(hn(),Z(W3e)),{normalizeProvider:t4e}=(kze(),Z(Dze)),{escapeUri:xU,HttpRequest:o4e}=(ZVe(),Z(XVe)),uoe=class{static{i(this,"HeaderFormatter")}format(e){let r=[];for(let o in e){if(!uS(e,o))continue;let a=e4e(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=e4e(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(doe.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!hYt.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(fYt(e.value.replace(/-/g,"")),1),p}}},r4e;(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"})(r4e||(r4e={}));var hYt=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,doe=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&&n4e(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&n4e(e),parseInt(eg(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function n4e(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}i(n4e,"negate");var i4e="X-Amz-Algorithm",a4e="X-Amz-Credential",hoe="X-Amz-Date",c4e="X-Amz-SignedHeaders",l4e="X-Amz-Expires",Aoe="X-Amz-Signature",goe="X-Amz-Security-Token",AYt="X-Amz-Region-Set",yoe="authorization",Eoe=hoe.toLowerCase(),u4e="date",d4e=[yoe,Eoe,u4e],p4e=Aoe.toLowerCase(),TU="x-amz-content-sha256",f4e=goe.toLowerCase(),gYt="host",m4e={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},h4e=/^proxy-/,A4e=/^sec-/,yYt=[/^proxy-/i,/^sec-/i],bU="AWS4-HMAC-SHA256",EYt="AWS4-ECDSA-P256-SHA256",g4e="AWS4-HMAC-SHA256-PAYLOAD",y4e="UNSIGNED-PAYLOAD",E4e=50,Coe="aws4_request",C4e=3600*24*7,I4e=i(({query:t={}})=>{let e=[],r={};for(let n in t){if(!uS(t,n)||n.toLowerCase()===p4e)continue;let s=xU(n);e.push(s);let o=t[n];typeof o=="string"?r[s]=`${s}=${xU(o)}`:Array.isArray(o)&&(r[s]=o.slice(0).reduce((a,c)=>a.concat([`${s}=${xU(c)}`]),[]).sort().join("&"))}return e.sort().map(n=>r[n]).filter(n=>n).join("&")},"getCanonicalQuery"),CYt=i(t=>IYt(t).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),IYt=i(t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t,"toDate"),_U=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=t4e(n),this.credentialProvider=t4e(r)}createCanonicalRequest(e,r,n){let s=Object.keys(r).sort();return`${e.method}
${this.getCanonicalPath(e)}
${I4e(e)}
${s.map(o=>`${o}:${r[o]}`).join(`
`)}
${s.join(";")}
${n}`}async createStringToSign(e,r,n,s){let o=new this.sha256;o.update($R(n));let a=await o.digest();return`${s}
${e}
${r}
${eg(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 xU(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=CYt(e).replace(/[-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}},lS={},BU=[],RU=i((t,e,r)=>`${t}/${e}/${r}/${Coe}`,"createScope"),S4e=i(async(t,e,r,n,s)=>{let o=await s4e(t,e.secretAccessKey,e.accessKeyId),a=`${r}:${n}:${s}:${eg(o)}:${e.sessionToken}`;if(a in lS)return lS[a];for(BU.push(a);BU.length>E4e;)delete lS[BU.shift()];let c=`AWS4${e.secretAccessKey}`;for(let l of[r,n,s,Coe])c=await s4e(t,c,l);return lS[a]=c},"getSigningKey"),SYt=i(()=>{BU.length=0,Object.keys(lS).forEach(t=>{delete lS[t]})},"clearCredentialCache"),s4e=i((t,e,r)=>{let n=new t(e);return n.update($R(r)),n.digest()},"hmac"),poe=i(({headers:t},e,r)=>{let n={};for(let s of Object.keys(t).sort()){if(t[s]==null)continue;let o=s.toLowerCase();(o in m4e||e?.has(o)||h4e.test(o)||A4e.test(o))&&(!r||r&&!r.has(o))||(n[o]=t[s].replace(/[\r\n]/g," ").replace(/[ \t]+/g," ").replace(/^ | $/g,""))}return n},"getCanonicalHeaders"),NU=i(async({headers:t,body:e},r)=>{for(let n in t)if(uS(t,n)&&n.toLowerCase()===TU)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||mYt(e)){let n=new r;return n.update($R(e)),eg(await n.digest())}return y4e},"getPayloadHash"),w4e=i((t,e)=>{t=t.toLowerCase();for(let r in e)if(uS(e,r)&&t===r.toLowerCase())return!0;return!1},"hasHeader"),x4e=i((t,e={})=>{let{headers:r,query:n={}}=o4e.clone(t);for(let s in r){if(!uS(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"),foe=i(t=>{t=o4e.clone(t);for(let e in t.headers)uS(t.headers,e)&&d4e.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},"prepareRequest"),moe=class extends _U{static{i(this,"SignatureV4")}headerFormatter=new uoe;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>C4e)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let g=RU(h,f,d??this.service),y=x4e(foe(e),{unhoistableHeaders:a,hoistableHeaders:l});p.sessionToken&&(y.query[goe]=p.sessionToken),y.query[i4e]=bU,y.query[a4e]=`${p.accessKeyId}/${g}`,y.query[hoe]=m,y.query[l4e]=s.toString(10);let E=poe(y,o,c);return y.query[c4e]=this.getCanonicalHeaderList(E),y.query[Aoe]=await this.getSignature(m,g,this.getSigningKey(p,f,h,d),this.createCanonicalRequest(y,E,await NU(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=RU(u,l,a??this.service),f=await NU({headers:{},body:r},this.sha256),m=new this.sha256;m.update(e);let h=eg(await m.digest()),g=[g4e,d,p,s,h,f].join(`
`);return this.signString(g,{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($R(e)),eg(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=foe(e),{longDate:d,shortDate:p}=this.formatDate(r),f=RU(p,l,a??this.service);u.headers[Eoe]=d,c.sessionToken&&(u.headers[f4e]=c.sessionToken);let m=await NU(u,this.sha256);!w4e(TU,u.headers)&&this.applyChecksum&&(u.headers[TU]=m);let h=poe(u,s,n),g=await this.getSignature(d,f,this.getSigningKey(c,l,p,a),this.createCanonicalRequest(u,h,m));return u.headers[yoe]=`${bU} Credential=${c.accessKeyId}/${f}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${g}`,u}async getSignature(e,r,n,s){let o=await this.createStringToSign(e,r,s,bU),a=new this.sha256(await n);return a.update($R(o)),eg(await a.digest())}getSigningKey(e,r,n,s){return S4e(this.sha256,e,n,r,s||this.service)}},wYt={SignatureV4a:null};ze.ALGORITHM_IDENTIFIER=bU;ze.ALGORITHM_IDENTIFIER_V4A=EYt;ze.ALGORITHM_QUERY_PARAM=i4e;ze.ALWAYS_UNSIGNABLE_HEADERS=m4e;ze.AMZ_DATE_HEADER=Eoe;ze.AMZ_DATE_QUERY_PARAM=hoe;ze.AUTH_HEADER=yoe;ze.CREDENTIAL_QUERY_PARAM=a4e;ze.DATE_HEADER=u4e;ze.EVENT_ALGORITHM_IDENTIFIER=g4e;ze.EXPIRES_QUERY_PARAM=l4e;ze.GENERATED_HEADERS=d4e;ze.HOST_HEADER=gYt;ze.KEY_TYPE_IDENTIFIER=Coe;ze.MAX_CACHE_SIZE=E4e;ze.MAX_PRESIGNED_TTL=C4e;ze.PROXY_HEADER_PATTERN=h4e;ze.REGION_SET_PARAM=AYt;ze.SEC_HEADER_PATTERN=A4e;ze.SHA256_HEADER=TU;ze.SIGNATURE_HEADER=p4e;ze.SIGNATURE_QUERY_PARAM=Aoe;ze.SIGNED_HEADERS_QUERY_PARAM=c4e;ze.SignatureV4=moe;ze.SignatureV4Base=_U;ze.TOKEN_HEADER=f4e;ze.TOKEN_QUERY_PARAM=goe;ze.UNSIGNABLE_PATTERNS=yYt;ze.UNSIGNED_PAYLOAD=y4e;ze.clearCredentialCache=SYt;ze.createScope=RU;ze.getCanonicalHeaders=poe;ze.getCanonicalQuery=I4e;ze.getPayloadHash=NU;ze.getSigningKey=S4e;ze.hasHeader=w4e;ze.moveHeadersToQuery=x4e;ze.prepareRequest=foe;ze.signatureV4aContainer=wYt});function xYt(t,{credentials:e,credentialDefaultProvider:r}){let n;return e?e?.memoized?n=e:n=gR(e,AR,wI):r?n=Ea(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 bYt(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 Soe,woe,b4e=A(()=>{bt();Gs();Soe=R(Ioe()),woe=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=xYt(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),f=bYt(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)?of(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=Ea(e.signer):e.regionInfoProvider?l=i(()=>Ea(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},g=e.signerConstructor||Soe.SignatureV4;return new g(h)}),"signer"):l=i(async d=>{d=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Ea(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||Soe.SignatureV4;return new h(m)},"signer"),Object.assign(e,{systemClockOffset:a,signingEscapePath:o,signer:l,disableClockSkewCorrection:Ea(e.disableClockSkewCorrection??t)})},"bindResolveAwsSdkSigV4Config");i(xYt,"normalizeCredentialProvider");i(bYt,"bindCallerConfig")});var xoe=A(()=>{Ene();cHe();pHe();fHe();b4e()});var BYt,RYt,B4e,R4e=A(()=>{kt();BYt="AWS_DISABLE_CLOCK_SKEW_CORRECTION",RYt="disable_clock_skew_correction",B4e={environmentVariableSelector:i(t=>Nn(t,BYt,Jr.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Nn(t,RYt,Jr.CONFIG),"configFileSelector"),default:!1}});var N4e,T4e=A(()=>{kt();R4e();N4e=ve(B4e)});var PU={};St(PU,{AWSSDKSigV4Signer:()=>yne,AwsSdkSigV4ASigner:()=>Fd,AwsSdkSigV4Signer:()=>vn,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>yc,NODE_SIGV4A_CONFIG_OPTIONS:()=>bR,getBearerTokenEnvKey:()=>sF,resolveAWSSDKSigV4Config:()=>NYt,resolveAwsSdkSigV4AConfig:()=>xR,resolveAwsSdkSigV4Config:()=>wu,validateSigningProperties:()=>xI});var wu,NYt,gs=A(()=>{xoe();Ine();xoe();T4e();wu=woe(N4e),NYt=wu});var boe=w(Yf=>{var{setCredentialFeature:TYt}=(bt(),Z(gc)),{CredentialsProviderError:_Yt}=(kt(),Z(pa)),_4e="AWS_ACCESS_KEY_ID",P4e="AWS_SECRET_ACCESS_KEY",v4e="AWS_SESSION_TOKEN",Q4e="AWS_CREDENTIAL_EXPIRATION",D4e="AWS_CREDENTIAL_SCOPE",k4e="AWS_ACCOUNT_ID",PYt=i(t=>async()=>{t?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let e=process.env[_4e],r=process.env[P4e],n=process.env[v4e],s=process.env[Q4e],o=process.env[D4e],a=process.env[k4e];if(e&&r){let c={accessKeyId:e,secretAccessKey:r,...n&&{sessionToken:n},...s&&{expiration:new Date(s)},...o&&{credentialScope:o},...a&&{accountId:a}};return TYt(c,"CREDENTIALS_ENV_VARS","g"),c}throw new _Yt("Unable to find environment variable credentials.",{logger:t?.logger})},"fromEnv");Yf.ENV_ACCOUNT_ID=k4e;Yf.ENV_CREDENTIAL_SCOPE=D4e;Yf.ENV_EXPIRATION=Q4e;Yf.ENV_KEY=_4e;Yf.ENV_SECRET=P4e;Yf.ENV_SESSION=v4e;Yf.fromEnv=PYt});var xu,qR=A(()=>{xu=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 Kf,vU=A(()=>{qR();Kf=class t extends xu{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var QU,O4e=A(()=>{qR();QU=class t extends xu{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var DU,Boe=A(()=>{qR();DU=i((...t)=>async()=>{if(t.length===0)throw new xu("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 kU,Roe=A(()=>{kU=i(t=>()=>Promise.resolve(t),"fromValue")});var dS,OU=A(()=>{dS=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 Sa,LU=A(()=>{Sa=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 L4e,M4e=A(()=>{L4e=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 To,MU=A(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(To||(To={}))});var F4e,U4e,Noe,vYt,bu,pS=A(()=>{F4e=require("node:os"),U4e=require("node:path"),Noe={},vYt=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),bu=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${U4e.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=vYt();return Noe[s]||(Noe[s]=(0,F4e.homedir)()),Noe[s]},"getHomeDir")});var Toe,_oe,FU,Poe=A(()=>{Toe="AWS_PROFILE",_oe="default",FU=i(t=>t.profile||process.env[Toe]||_oe,"getProfileName")});var $4e,q4e,UU,voe=A(()=>{$4e=require("node:crypto"),q4e=require("node:path");pS();UU=i(t=>{let r=(0,$4e.createHash)("sha1").update(t).digest("hex");return(0,q4e.join)(bu(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath")});var H4e,HR,G4e,Qoe=A(()=>{H4e=require("node:fs/promises");voe();HR={},G4e=i(async t=>{if(HR[t])return HR[t];let e=UU(t),r=await(0,H4e.readFile)(e,"utf8");return JSON.parse(r)},"getSSOTokenFromFile")});var Xf,z4e=A(()=>{Xf="."});var Doe,V4e,W4e=A(()=>{Doe=R(qt()),V4e=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(Doe.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===Doe.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var j4e,QYt,$U,koe=A(()=>{j4e=require("node:path");pS();QYt="AWS_CONFIG_FILE",$U=i(()=>process.env[QYt]||(0,j4e.join)(bu(),".aws","config"),"getConfigFilepath")});var J4e,DYt,Y4e,K4e=A(()=>{J4e=require("node:path");pS();DYt="AWS_SHARED_CREDENTIALS_FILE",Y4e=i(()=>process.env[DYt]||(0,J4e.join)(bu(),".aws","credentials"),"getCredentialsFilepath")});var X4e,kYt,OYt,GR,Ooe=A(()=>{X4e=R(qt()),kYt=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,OYt=["__proto__","profile __proto__"],GR=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=kYt.exec(c);if(l){let[,u,,d]=l;Object.values(X4e.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(OYt.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 Z4e,Loe,zR,tg,VR=A(()=>{Z4e=require("node:fs/promises"),Loe={},zR={},tg=i((t,e)=>zR[t]!==void 0?zR[t]:((!Loe[t]||e?.ignoreCache)&&(Loe[t]=(0,Z4e.readFile)(t,"utf8")),Loe[t]),"readFile")});var Moe,e8e,fS,qU=A(()=>{Moe=require("node:path");W4e();koe();K4e();pS();Ooe();VR();e8e=i(()=>({}),"swallowError"),fS=i(async(t={})=>{let{filepath:e=Y4e(),configFilepath:r=$U()}=t,n=bu(),s="~/",o=e;e.startsWith(s)&&(o=(0,Moe.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,Moe.join)(n,r.slice(2)));let c=await Promise.all([tg(a,{ignoreCache:t.ignoreCache}).then(GR).then(V4e).catch(e8e),tg(o,{ignoreCache:t.ignoreCache}).then(GR).catch(e8e)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});var t8e,r8e,n8e=A(()=>{t8e=R(qt()),r8e=i(t=>Object.entries(t).filter(([e])=>e.startsWith(t8e.IniSectionType.SSO_SESSION+".")).reduce((e,[r,n])=>({...e,[r.substring(r.indexOf(".")+1)]:n}),{}),"getSsoSessionData")});var LYt,s8e,o8e=A(()=>{koe();n8e();Ooe();VR();LYt=i(()=>({}),"swallowError"),s8e=i(async(t={})=>tg(t.configFilepath??$U()).then(GR).then(r8e).catch(LYt),"loadSsoSessionData")});var i8e,a8e=A(()=>{i8e=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 c8e,l8e=A(()=>{qU();a8e();c8e=i(async t=>{let e=await fS(t);return i8e(e.configFile,e.credentialsFile)},"parseKnownFiles")});var u8e,d8e=A(()=>{Qoe();VR();u8e={getFileRecord(){return zR},interceptFile(t,e){zR[t]=Promise.resolve(e)},getTokenRecord(){return HR},interceptToken(t,e){HR[t]=e}}});function HU(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 Foe=A(()=>{i(HU,"getSelectorName")});var p8e,f8e=A(()=>{vU();Foe();p8e=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new Kf(r.message||`Not found in ENV: ${HU(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var m8e,h8e=A(()=>{vU();Poe();qU();Foe();m8e=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=FU(r),{configFile:s,credentialsFile:o}=await fS(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 Kf(u.message||`Not found in config files w/ profile [${n}]: ${HU(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var MYt,GU,Uoe=A(()=>{Roe();MYt=i(t=>typeof t=="function","isFunction"),GU=i(t=>MYt(t)?async()=>await t():kU(t),"fromStatic")});var WR,$oe=A(()=>{Boe();OU();f8e();h8e();Uoe();WR=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return dS(DU(p8e(t,{signingName:s,logger:o}),m8e(e,n),GU(r)))},"loadConfig")});var zU,VU,A8e,g8e,y8e,E8e=A(()=>{LU();MU();zU="AWS_USE_DUALSTACK_ENDPOINT",VU="use_dualstack_endpoint",A8e=!1,g8e={environmentVariableSelector:i(t=>Sa(t,zU,To.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Sa(t,VU,To.CONFIG),"configFileSelector"),default:!1},y8e={environmentVariableSelector:i(t=>Sa(t,zU,To.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Sa(t,VU,To.CONFIG),"configFileSelector"),default:void 0}});var WU,jU,C8e,I8e,S8e,w8e=A(()=>{LU();MU();WU="AWS_USE_FIPS_ENDPOINT",jU="use_fips_endpoint",C8e=!1,I8e={environmentVariableSelector:i(t=>Sa(t,WU,To.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Sa(t,jU,To.CONFIG),"configFileSelector"),default:!1},S8e={environmentVariableSelector:i(t=>Sa(t,WU,To.ENV),"environmentVariableSelector"),configFileSelector:i(t=>Sa(t,jU,To.CONFIG),"configFileSelector"),default:void 0}});var qoe,Hoe,x8e=A(()=>{qoe=R(qt()),Hoe=i(t=>t[qoe.SMITHY_CONTEXT_KEY]||(t[qoe.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function ht(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var b8e=A(()=>{i(ht,"hasOwn")});function FYt(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var Vs,B8e=A(()=>{Vs=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=FYt(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(FYt,"cloneQuery")});var rg,R8e=A(()=>{rg=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 UYt,JU,N8e=A(()=>{UYt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),JU=i((t,e=!1)=>{if(!e)return UYt.test(t);let r=t.split(".");for(let n of r)if(!JU(n))return!1;return!0},"isValidHostLabel")});function jR(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var T8e=A(()=>{i(jR,"isValidHostname")});var Zf,_8e=A(()=>{Zf=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function JR(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 Goe=A(()=>{i(JR,"parseQueryString")});var YU,P8e=A(()=>{Goe();YU=i(t=>{if(typeof t=="string")return YU(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=JR(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var fr=A(()=>{x8e();b8e();B8e();R8e();N8e();T8e();_8e();Goe();P8e()});var ng,zoe=A(()=>{ng=i(t=>typeof t=="function"?t():t,"deref")});function Bu(t){if(typeof t=="object")return t;if(t=t|0,KU[t])return KU[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return KU[t]=e}var KU,Voe=A(()=>{KU=[];i(Bu,"translateTraits")});function KR(t,e){if(t instanceof je)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=je;return new r(t,e)}var YR,XU,ZU,je,Woe,v8e,Q8e=A(()=>{zoe();Voe();YR={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},XU=[],ZU={},je=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;Woe(s);)n.push(s[1]),s=s[0],o=ng(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,Bu(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=ng(o),v8e(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(XU[e])return XU[e]}else if(typeof e=="string"){if(ZU[e])return ZU[e]}else if(r&&e[YR.ns])return e[YR.ns];let n=ng(e);if(n instanceof t)return n;if(Woe(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),Bu(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[YR.ns]=s:typeof n=="string"?ZU[n]=s:typeof n=="number"?XU[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 Bu(this.memberTraits)}getOwnTraits(){return Bu(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 KR([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 KR([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 KR(Woe(s)?s:[s,0],e)}if(this.isDocumentSchema())return KR([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[YR.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=KR([e[5][s],0],o);yield n[s]=[o,a]}e[YR.it]=n}};i(KR,"member");Woe=i(t=>Array.isArray(t)&&t.length===2,"isMemberSchema"),v8e=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Ru,D8e=A(()=>{Ru=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 Ws=A(()=>{zoe();Q8e();Voe();D8e()});var joe=A(()=>{fr()});var k8e,O8e=A(()=>{joe();k8e=i(t=>{let{tls:e,endpoint:r,urlParser:n,useDualstackEndpoint:s}=t;return Object.assign(t,{tls:e??!0,endpoint:Zf(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:Zf(s??!1)})},"resolveCustomEndpointsConfig")});var L8e,M8e=A(()=>{L8e=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 F8e,U8e=A(()=>{joe();M8e();F8e=i(t=>{let e=Zf(t.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:s,tls:o}=t;return Object.assign(t,{tls:o??!0,endpoint:r?Zf(typeof r=="string"?s(r):r):()=>L8e({...t,useDualstackEndpoint:e,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:e})},"resolveEndpointsConfig")});var $8e,Joe,Yoe,q8e,H8e,G8e,z8e,V8e,W8e,Koe=A(()=>{$8e="AWS_EXECUTION_ENV",Joe="AWS_REGION",Yoe="AWS_DEFAULT_REGION",q8e="AWS_EC2_METADATA_DISABLED",H8e=["in-region","cross-region","mobile","standard","legacy"],G8e="/latest/meta-data/placement/region",z8e="/latest/api/token",V8e="x-aws-ec2-metadata-token",W8e="x-aws-ec2-metadata-token-ttl-seconds"});var j8e,$Yt,K8e,e2,J8e,qYt,Y8e,Xoe=A(()=>{Koe();j8e=1e3,$Yt=6e4,K8e=0,e2=i(async()=>{if(!process.env[q8e]&&!(Date.now()<K8e))try{let t=qYt(),e=(await Y8e({...t,path:z8e,method:"PUT",headers:{[W8e]:"21600"}})).toString();return(await Y8e({...t,path:G8e,method:"GET",headers:{[V8e]:e}})).toString().trim()||J8e()}catch{return J8e()}},"getInstanceMetadataRegion"),J8e=i(()=>{K8e=Date.now()+$Yt},"cacheNegativeAndReturnUndefined"),qYt=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"),Y8e=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:j8e,signal:AbortSignal.timeout(j8e)});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 Zoe,eie,t2,X8e,tie=A(()=>{Xoe();Zoe="AWS_REGION",eie="region",t2={environmentVariableSelector:i(t=>t[Zoe],"environmentVariableSelector"),configFileSelector:i(t=>t[eie],"configFileSelector"),default:i(async()=>{let t=await e2();if(t)return t;throw new Error("Region is missing")},"default")},X8e={preferredFile:"credentials"}});var Z8e,eWe,tWe=A(()=>{fr();Z8e=new Set,eWe=i((t,e=JU)=>{if(!Z8e.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 Z8e.add(t)},"checkRegion")});var r2,rie=A(()=>{r2=i(t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),"isFipsRegion")});var rWe,nWe=A(()=>{rie();rWe=i(t=>r2(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,"getRealRegion")});var sWe,oWe=A(()=>{tWe();nWe();rie();sWe=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=rWe(n);return eWe(s),s},"region"),useFipsEndpoint:i(async()=>{let n=typeof e=="string"?e:await e();return r2(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig")});var nie,iWe=A(()=>{nie=i((t=[],{useFipsEndpoint:e,useDualstackEndpoint:r})=>t.find(({tags:n})=>e===n.includes("fips")&&r===n.includes("dualstack"))?.hostname,"getHostnameFromVariants")});var aWe,cWe=A(()=>{aWe=i((t,{regionHostname:e,partitionHostname:r})=>e||(r?r.replace("{region}",t):void 0),"getResolvedHostname")});var lWe,uWe=A(()=>{lWe=i((t,{partitionHash:e})=>Object.keys(e||{}).find(r=>e[r].regions.includes(t))??"aws","getResolvedPartition")});var dWe,pWe=A(()=>{dWe=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 fWe,mWe=A(()=>{iWe();cWe();uWe();pWe();fWe=i((t,{useFipsEndpoint:e=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:s,partitionHash:o})=>{let a=lWe(t,{partitionHash:o}),c=t in s?t:o[a]?.endpoint??t,l={useFipsEndpoint:e,useDualstackEndpoint:r},u=nie(s[c]?.variants,l),d=nie(o[a]?.variants,l),p=aWe(c,{regionHostname:u,partitionHostname:d});if(p===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:e,useDualstackEndpoint:r}}`);let f=dWe(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 HYt,GYt,hWe,AWe=A(()=>{HYt="AWS_DEFAULTS_MODE",GYt="defaults_mode",hWe={environmentVariableSelector:i(t=>t[HYt],"environmentVariableSelector"),configFileSelector:i(t=>t[GYt],"configFileSelector"),default:"legacy"}});var gWe,zYt,VYt,yWe=A(()=>{tie();Xoe();$oe();OU();Koe();AWe();gWe=i(({region:t=WR(t2),defaultsMode:e=WR(hWe)}={})=>dS(async()=>{let r=typeof e=="function"?await e():e;switch(r?.toLowerCase()){case"auto":return zYt(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 ${H8e.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),zYt=i(async t=>{if(t){let e=typeof t=="function"?await t():t,r=await VYt();return r?e===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),VYt=i(async()=>process.env[$8e]&&(process.env[Joe]||process.env[Yoe])?process.env[Joe]??process.env[Yoe]:e2(),"inferPhysicalRegion")});var EWe={};St(EWe,{CONFIG_PREFIX_SEPARATOR:()=>Xf,CONFIG_USE_DUALSTACK_ENDPOINT:()=>VU,CONFIG_USE_FIPS_ENDPOINT:()=>jU,CredentialsProviderError:()=>Kf,DEFAULT_PROFILE:()=>_oe,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>A8e,DEFAULT_USE_FIPS_ENDPOINT:()=>C8e,ENV_PROFILE:()=>Toe,ENV_USE_DUALSTACK_ENDPOINT:()=>zU,ENV_USE_FIPS_ENDPOINT:()=>WU,NODE_REGION_CONFIG_FILE_OPTIONS:()=>X8e,NODE_REGION_CONFIG_OPTIONS:()=>t2,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>g8e,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>I8e,ProviderError:()=>xu,REGION_ENV_NAME:()=>Zoe,REGION_INI_NAME:()=>eie,SelectorType:()=>To,TokenProviderError:()=>QU,booleanSelector:()=>Sa,chain:()=>DU,externalDataInterceptor:()=>u8e,fromStatic:()=>GU,fromValue:()=>kU,getHomeDir:()=>bu,getProfileName:()=>FU,getRegionInfo:()=>fWe,getSSOTokenFilepath:()=>UU,getSSOTokenFromFile:()=>G4e,loadConfig:()=>WR,loadSharedConfigFiles:()=>fS,loadSsoSessionData:()=>s8e,memoize:()=>dS,nodeDualstackConfigSelectors:()=>y8e,nodeFipsConfigSelectors:()=>S8e,numberSelector:()=>L4e,parseKnownFiles:()=>c8e,readFile:()=>tg,resolveCustomEndpointsConfig:()=>k8e,resolveDefaultsModeConfig:()=>gWe,resolveEndpointsConfig:()=>F8e,resolveRegionConfig:()=>sWe});var CWe=A(()=>{qR();vU();O4e();Boe();Roe();OU();LU();M4e();MU();pS();Poe();voe();Qoe();z4e();qU();o8e();l8e();d8e();VR();$oe();Uoe();E8e();w8e();O8e();U8e();tie();oWe();mWe();yWe()});var IWe,SWe=A(()=>{IWe=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var mS,n2,hS=A(()=>{SWe();mS=i((t,e=0,r=t.byteLength-e)=>{if(!IWe(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),n2=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 WYt,Gd,wWe=A(()=>{hS();WYt=/^[A-Za-z0-9+/]*={0,2}$/,Gd=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!WYt.exec(t))throw new TypeError("Invalid base64 string.");let e=n2(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var em,sie=A(()=>{hS();em=i(t=>{let e=n2(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Sc,xWe=A(()=>{hS();sie();Sc=i(t=>{let e;if(typeof t=="string"?e=em(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 mS(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function bWe(t,e,r,n){return class s2 extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?s2.mutate(n(o)):s2.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,s2.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var BWe=A(()=>{i(bWe,"bindUint8ArrayBlobAdapter")});var wa,RWe=A(()=>{hS();wa=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 mS(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function NWe(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,ys[e[0]]+ys[e[1]]+ys[e[2]]+ys[e[3]]+"-"+ys[e[4]]+ys[e[5]]+"-"+ys[e[6]]+ys[e[7]]+"-"+ys[e[8]]+ys[e[9]]+"-"+ys[e[10]]+ys[e[11]]+ys[e[12]]+ys[e[13]]+ys[e[14]]+ys[e[15]]}}var ys,TWe=A(()=>{ys=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(NWe,"bindV4")});var oie,jYt,_We,JYt,PWe,vWe,QWe,YYt,DWe,kWe,KYt,o2,XR,OWe,XYt,ZYt,LWe=A(()=>{oie=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&ZYt.warn(XYt(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),jYt=Math.ceil(2**127*(2-2**-23)),_We=i(t=>{let e=oie(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>jYt)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),JYt=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),PWe=i(t=>QWe(t,16),"expectShort"),vWe=i(t=>QWe(t,8),"expectByte"),QWe=i((t,e)=>{let r=JYt(t);if(r!==void 0&&YYt(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),YYt=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"),DWe=i(t=>oie(typeof t=="string"?o2(t):t),"strictParseDouble"),kWe=i(t=>_We(typeof t=="string"?o2(t):t),"strictParseFloat32"),KYt=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,o2=i(t=>{let e=t.match(KYt);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),XR=i(t=>PWe(typeof t=="string"?o2(t):t),"strictParseShort"),OWe=i(t=>vWe(typeof t=="string"?o2(t):t),"strictParseByte"),XYt=i(t=>String(new TypeError(t).stack||t).split(`
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
`),"stackTraceWarning"),ZYt={warn:console.warn}});function sg(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`${e5t[n]}, ${l} ${aie[r]} ${e} ${u}:${d}:${p} GMT`}var e5t,aie,Ukn,t5t,eN,r5t,n5t,s5t,tN,rN,i2,o5t,i5t,a5t,iie,c5t,l5t,u5t,tm,d5t,p5t,ZR,MWe=A(()=>{LWe();e5t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],aie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(sg,"dateToUtcString");Ukn=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),t5t=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),eN=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=t5t.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=XR(ZR(n)),f=tm(s,"month",1,12),m=tm(o,"day",1,31),h=i2(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-p5t(d)),h},"parseRfc3339DateTimeWithOffset"),r5t=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$/),n5t=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$/),s5t=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})$/),tN=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=r5t.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return i2(XR(ZR(o)),iie(s),tm(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=n5t.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return a5t(i2(o5t(o),iie(s),tm(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=s5t.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return i2(XR(ZR(u)),iie(n),tm(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),rN=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=DWe(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"),i2=i((t,e,r,n)=>{let s=e-1;return l5t(t,s,r),new Date(Date.UTC(t,s,r,tm(n.hours,"hour",0,23),tm(n.minutes,"minute",0,59),tm(n.seconds,"seconds",0,60),d5t(n.fractionalMilliseconds)))},"buildDate"),o5t=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+XR(ZR(t));return r<e?r+100:r},"parseTwoDigitYear"),i5t=50*365*24*60*60*1e3,a5t=i(t=>t.getTime()-new Date().getTime()>i5t?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),iie=i(t=>{let e=aie.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),c5t=[31,28,31,30,31,30,31,31,30,31,30,31],l5t=i((t,e,r)=>{let n=c5t[e];if(e===1&&u5t(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${aie[e]} in ${t}: ${r}`)},"validateDayOfMonth"),u5t=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),tm=i((t,e,r,n)=>{let s=OWe(ZR(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),d5t=i(t=>t==null?0:kWe("0."+t)*1e3,"parseMilliseconds"),p5t=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"),ZR=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var An,FWe=A(()=>{An=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");An.from=t=>t&&typeof t=="object"&&(t instanceof An||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?An(String(t)):An(JSON.stringify(t));An.fromObject=An.from});function cie(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var UWe=A(()=>{i(cie,"quoteHeader")});function zd(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var lie,uie,die,$We,qWe,f5t,m5t,h5t,A5t,g5t,pie,fie,mie,HWe=A(()=>{lie="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",uie="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",die="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",$We="(\\d?\\d)",qWe="(\\d{4})",f5t=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),m5t=new RegExp(`^${lie}, ${$We} ${uie} ${qWe} ${die} GMT$`),h5t=new RegExp(`^${lie}, ${$We}-${uie}-(\\d\\d) ${die} GMT$`),A5t=new RegExp(`^${lie} ${uie} ( [1-9]|\\d\\d) ${die} ${qWe}$`),g5t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pie=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"),fie=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=f5t.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;zd(n,1,12),zd(s,1,31),zd(o,0,23),zd(a,0,59),zd(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"),mie=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=m5t.exec(t))?[,e,r,n,s,o,a,c]=l:(l=h5t.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=A5t.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),g5t.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);zd(e,1,31),zd(s,0,23),zd(o,0,59),zd(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(zd,"range")});function hie(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 GWe=A(()=>{i(hie,"splitEvery")});var nN,zWe=A(()=>{nN=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 VWe,Ft,WWe=A(()=>{VWe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Ft=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!VWe.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"&&VWe.test(r.string)}}});function gie(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 Aie)e[r/2]=Aie[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function wc(t){let e="";for(let r=0;r<t.byteLength;r++)e+=jWe[t[r]];return e}var jWe,Aie,yie=A(()=>{jWe={},Aie={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),jWe[t]=e,Aie[e]=t}i(gie,"fromHex");i(wc,"toHex")});function a2(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 Eie=A(()=>{i(a2,"concatBytes")});var sN,c2,l2=A(()=>{sN=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),c2=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var JWe,YWe=A(()=>{JWe=i(t=>new TextEncoder().encode(t),"fromUtf8")});var KWe,lOn,XWe,u2,Cie,ZWe,eje=A(()=>{KWe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lOn=Object.entries(KWe).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),XWe=KWe.split(""),u2=6,Cie=8,ZWe=63});function tje(t){let e;typeof t=="string"?e=JWe(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)*Cie,c+=Cie;let l=Math.ceil(c/u2);a<<=l*u2-c;for(let u=1;u<=l;u++){let d=(l-u)*u2;s+=XWe[(a&ZWe<<d)>>d]}s+="==".slice(0,4-l)}return s}var rje=A(()=>{YWe();eje();i(tje,"toBase64")});var nje,sje=A(()=>{nje=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 Iie(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function Sie(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 a2(e,n)}var oje,wie=A(()=>{Eie();l2();oje=i(async t=>c2(t)?Iie(t):Sie(t),"streamCollector");i(Iie,"collectBlob");i(Sie,"collectReadableStream")});var ije,cje,aje,lje=A(()=>{rje();yie();sje();wie();l2();ije="The stream has already been transformed.",cje=i(t=>{if(!aje(t)&&!sN(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(ije);return e=!0,await oje(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 tje(o);if(s==="hex")return wc(o);if(s===void 0||s==="utf8"||s==="utf-8")return nje(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(ije);if(e=!0,aje(t))return n(t);if(sN(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),aje=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var uje,dje,xie,pje=A(()=>{uje=require("node:stream");Eie();wie();l2();dje=i(t=>c2(t)?Iie(t):sN(t)?Sie(t):new Promise((e,r)=>{let n=new xie,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=a2(this.bufferedBytes);e(o)})}),"streamCollector"),xie=class extends uje.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var d2,fje,bie,mje=A(()=>{d2=require("node:stream");hS();lje();pje();fje="The stream has already been transformed.",bie=i(t=>{if(!(t instanceof d2.Readable))try{return cje(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(fje);return e=!0,await dje(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?mS(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(fje);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof d2.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,d2.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});var hje,AS,y5t,E5t,gS,Qn=A(()=>{hje=require("node:crypto");wWe();xWe();BWe();sie();RWe();TWe();MWe();FWe();UWe();HWe();GWe();zWe();WWe();yie();mje();AS=class extends bWe(wa,em,Sc,Gd){static{i(this,"Uint8ArrayBlobAdapter")}},y5t=hje.getRandomValues,E5t=NWe(y5t),gS=E5t});var _o,yS=A(()=>{Qn();_o=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return AS.mutate(t);if(!t)return AS.mutate(new Uint8Array);let r=e.streamCollector(t);return AS.mutate(await r)},"collectBody")});function rm(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var p2=A(()=>{i(rm,"extendedEncodeURIComponent")});var xa,ES=A(()=>{xa=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var Aje,Bie,f2,gje=A(()=>{Aje=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;Aje[t]=e>>>0}Bie=4294967295,f2=class{static{i(this,"Crc32Js")}digestLength=4;checksum=Bie;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^Aje[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^Bie)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=Bie}}});function C5t(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 Rie,yje,CS,Eje=A(()=>{Rie=R(require("node:zlib"));gje();yje=typeof Rie.crc32=="function"?Rie.crc32:void 0,CS=yje?C5t(yje):f2;i(C5t,"buildNativeClass")});var Nie=A(()=>{Eje()});function Cje(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var nm,Tie=A(()=>{Qn();nm=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&&Cje(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&Cje(e),parseInt(wc(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(Cje,"negate")});var IS,Ije,Sje,I5t,S5t,w5t,x5t,b5t,B5t,R5t,N5t,T5t,_ie=A(()=>{fr();Qn();Tie();IS=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(!ht(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(nm.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!T5t.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(gie(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:Sje,value:!0};break;case 1:r[o]={type:Sje,value:!1};break;case 2:r[o]={type:I5t,value:e.getInt8(n++)};break;case 3:r[o]={type:S5t,value:e.getInt16(n,!1)},n+=2;break;case 4:r[o]={type:w5t,value:e.getInt32(n,!1)},n+=4;break;case 5:r[o]={type:x5t,value:new nm(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let a=e.getUint16(n,!1);n+=2,r[o]={type:b5t,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:B5t,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,c))},n+=c;break;case 8:r[o]={type:R5t,value:new Date(new nm(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:N5t,value:`${wc(l.subarray(0,4))}-${wc(l.subarray(4,6))}-${wc(l.subarray(6,8))}-${wc(l.subarray(8,10))}-${wc(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"})(Ije||(Ije={}));Sje="boolean",I5t="byte",S5t="short",w5t="integer",x5t="long",b5t="binary",B5t="string",R5t="timestamp",N5t="uuid",T5t=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function xje({byteLength:t,byteOffset:e,buffer:r}){if(t<_5t)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(wje,!1),a=n.getUint32(sm,!1),c=n.getUint32(t-og,!1),l=new CS;if(l.update(new Uint8Array(r,e,sm)),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+sm,t-(sm+og))),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+sm+og,o),body:new Uint8Array(r,e+sm+og+o,s-o-(sm+og+og))}}var wje,sm,og,_5t,bje=A(()=>{Nie();wje=4,sm=wje*2,og=4,_5t=sm+og*2;i(xje,"splitMessage")});var SS,Pie=A(()=>{Nie();_ie();bje();SS=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new IS(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 CS;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}=xje(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var wS,vie=A(()=>{wS=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 xS,Qie=A(()=>{xS=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 bS,Die=A(()=>{bS=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 BS,kie=A(()=>{BS=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 m2(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 Oie=A(()=>{i(m2,"getChunkedStream")});function Bje(t,e){let r=oN(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 oN(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 Lie=A(()=>{i(Bje,"getUnmarshalledStream");i(oN,"getMessageUnmarshaller")});var ig,Rje,Mie=A(()=>{Pie();vie();Qie();Die();kie();Oie();Lie();ig=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new SS(e,r),this.utfEncoder=e}deserialize(e,r){let n=m2(e);return new bS({messageStream:new wS({inputStream:n,decoder:this.eventStreamCodec}),deserializer:oN(r,this.utfEncoder)})}serialize(e,r){return new xS({messageStream:new BS({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},Rje=i(t=>new ig(t),"eventStreamSerdeProvider")});async function*P5t(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 Nje,iN,Tje,_je=A(()=>{Nje=require("node:stream");Mie();iN=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new ig({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:P5t(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return Nje.Readable.from(this.universalMarshaller.serialize(e,r))}},Tje=i(t=>new iN(t),"eventStreamSerdeProvider");i(P5t,"readableToIterable")});var Pje,vje,Qje=A(()=>{Pje=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"),vje=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 Dje,kje=A(()=>{Dje=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var h2,Oje=A(()=>{fr();Ws();Qn();h2=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 S in f)if(ht(f,S)&&S!=="__type"){m=S;break}let{additionalHeaders:h,body:g,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:g}})}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(ht(m,y)&&y!=="__type"){h=y;break}let g=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,g);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},C=!1;for(let[S,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(C=C||!!(N||_),_)b.isBlobSchema()?E[S]=g:b.isStringSchema()?E[S]=(this.serdeContext?.utf8Encoder??wa)(g):b.isStructSchema()&&(E[S]=await this.deserializer.read(b,g));else if(N){let v=m[h].headers[S]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[S]=BigInt(v.toString()):E[S]=Number(v):E[S]=v)}}return{[h]:await this.readEventMember(y,g,C,E)}}return{[h]:await this.deserializer.read(y,g)}}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)ht(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=Ru.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:g,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(g){let E=n[e][m],C="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?C="integer":C="long":h.isTimestampSchema()?C="timestamp":h.isStringSchema()?C="string":h.isBooleanSchema()&&(C="boolean"),E!=null&&(u[m]={type:C,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??em)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var Lje={};St(Lje,{EventStreamCodec:()=>SS,EventStreamMarshaller:()=>iN,EventStreamSerde:()=>h2,HeaderMarshaller:()=>IS,Int64:()=>nm,MessageDecoderStream:()=>wS,MessageEncoderStream:()=>xS,SmithyMessageDecoderStream:()=>bS,SmithyMessageEncoderStream:()=>BS,UniversalEventStreamMarshaller:()=>ig,eventStreamSerdeProvider:()=>Tje,getChunkedStream:()=>m2,getMessageUnmarshaller:()=>oN,getUnmarshalledStream:()=>Bje,iterableToReadableStream:()=>vje,readableStreamToIterable:()=>Pje,resolveEventStreamSerdeConfig:()=>Dje,universalEventStreamSerdeProvider:()=>Rje});var Mje=A(()=>{Pie();_ie();Tie();vie();Qie();Die();kie();_je();Qje();Mie();Oie();Lie();kje();Oje()});var om,A2=A(()=>{fr();Ws();fr();ES();om=class extends xa{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Ru(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return Vs}getResponseType(){return rg}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)ht(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)ht(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=je.of(r.input),o=Bu(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,!jR(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(()=>(Mje(),Lje)),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 g2,Fje=A(()=>{fr();Ws();Qn();fr();A2();yS();p2();g2=class extends om{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=je.of(e?.input),d=[],p=[],f=!1,m,h=new Vs({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 g=Bu(e.traits);if(g.http){h.method=g.http[0];let[y,E]=g.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let C=new URLSearchParams(E??"");for(let[S,b]of C)a[S]=b}}for(let[g,y]of u.structIterator()){let E=y.getMergedTraits()??{},C=s[g];if(C==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${g}+}`)||h.path.includes(`{${g}}`)))throw new Error(`No value provided for input HTTP label: ${g}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[g]&&(m=await this.serializeEventStream({eventStream:s[g],requestSchema:u})):m=C:(o.write(y,C),m=o.flush());else if(E.httpLabel){o.write(y,C);let S=o.flush();h.path.includes(`{${g}+}`)?h.path=h.path.replace(`{${g}+}`,S.split("/").map(rm).join("/")):h.path.includes(`{${g}}`)&&(h.path=h.path.replace(`{${g}}`,rm(S)))}else if(E.httpHeader)o.write(y,C),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let S in C){if(!ht(C,S))continue;let b=C[S],N=E.httpPrefixHeaders+S;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,C,a):(f=!0,d.push(g),p.push(y))}if(f&&s){let[g,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],C=[3,g,y,u.getMergedTraits(),d,p,void 0];E?C[6]=E:C.pop(),o.write(C,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(ht(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=je.of(e.output),a={};if(n.statusCode>=300){let l=await _o(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(!ht(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 _o(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 _o(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=je.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]=bie(n.body);else if(n.body){let g=await _o(n.body,r);g.byteLength>0&&(a[p]=await l.read(f,g))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),g=n.headers[h];if(g!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=hie(g,",",2):E=nN(g);let C=[];for(let S of E)C.push(await l.read(y,S.trim()));a[p]=C}else a[p]=await l.read(f,g)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(ht(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let g=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,g)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var RS,Fie=A(()=>{fr();Ws();fr();A2();yS();RS=class extends om{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=je.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new Vs({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[g]of l.structIterator())g!==m&&p[g]!=null&&(h[g]=p[g]);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=je.of(e.output),a={};if(n.statusCode>=300){let l=await _o(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(!ht(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 _o(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var y2,Uie=A(()=>{p2();y2=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=>rm(c)).join("/"):rm(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function Uje(t,e){return new aN(t,e)}var aN,$je=A(()=>{fr();Uie();i(Uje,"requestBuilder");aN=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 Vs({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=y2(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 Po(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 im=A(()=>{i(Po,"determineTimestampFormat")});var NS,$ie=A(()=>{Ws();Qn();ES();im();NS=class extends xa{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=je.of(e);if(n.isListSchema())return nN(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??Gd)(r);if(n.isTimestampSchema())switch(Po(n,this.settings)){case 5:return fie(r);case 6:return mie(r);case 7:return pie(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=An.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Ft(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??wa)((this.serdeContext?.base64Decoder??Gd)(e))}}});var E2,qje=A(()=>{Ws();Qn();ES();$ie();E2=class extends xa{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new NS(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=je.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??wa;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??em;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 TS,qie=A(()=>{Ws();Qn();ES();im();TS=class extends xa{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=je.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(Po(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=sg(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??Sc)(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:cie(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=An.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Sc)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=gS():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var C2,Hje=A(()=>{Ws();qie();C2=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new TS(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=je.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 Gje,I2,zje=A(()=>{Gje=R(qt()),I2=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=Gje.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 S2,Vje=A(()=>{S2=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 Wje,jje,Jje=A(()=>{Wje=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"),jje=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function Hie(t){return e=>async r=>{let n=r.request;if(Vs.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(Yje)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[Yje]:String(a)})}catch{}}return e({...r,request:n})}}var Yje,Gie,Kje,Xje=A(()=>{fr();Yje="content-length";i(Hie,"contentLengthMiddleware");Gie={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Kje=i(t=>({applyToStack:i(e=>{e.add(Hie(t.bodyLengthChecker),Gie)},"applyToStack")}),"getContentLengthPlugin")});var am,v5t,w2=A(()=>{am=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,v5t),"escapeUri"),v5t=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var Zje,eJe=A(()=>{w2();Zje=i(t=>t.split("/").map(am).join("/"),"escapeUriPath")});function tJe(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=am(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${am(n[s])}`);else{let s=r;(n||typeof n=="string")&&(s+=`=${am(n)}`),e.push(s)}}return e.join("&")}var rJe=A(()=>{w2();i(tJe,"buildQueryString")});var vo,ag=A(()=>{vo=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var _S,zie=A(()=>{_S=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 x2(){if(cN===void 0)try{if(typeof Buffer!="function")cN=!1;else{let t=JSON.parse(Buffer.from([123,125]));cN=t!==null&&typeof t=="object"}}catch{cN=!1}return cN}var cN,Vie=A(()=>{i(x2,"detectBufferParsing")});function PS(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?D5t(n,e)?e:new Ft(n,"bigDecimal"):Q5t(n)?new Ft(n,"bigDecimal"):/[eE]/.test(n)?k5t(n):BigInt(n)}return e}function Q5t(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 D5t(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return Wie(t)===Wie(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===Wie(n):!1}function Wie(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 k5t(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 b2=A(()=>{Qn();i(PS,"jsonReviver");i(Q5t,"isFractionalBigNumeric");i(D5t,"isRepresentable");i(Wie,"expandToDecimal");i(k5t,"expandExponentToBigInt")});function vS(t){let e=je.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(jie in r)return r[jie];let n=B2(e,new Set);return r[jie]=n,n}return B2(e,new Set)}function B2(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(B2(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(B2(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var jie,R2=A(()=>{Ws();jie=Symbol.for("@aws-sdk/reviver");i(vS,"needsReviver");i(B2,"_check")});var nJe,sJe=A(()=>{yS();Qn();nJe=i((t,e)=>_o(t,e).then(r=>(e?.utf8Encoder??wa)(r)),"collectBodyString")});async function cg(t,e,r){let n;if(x2()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await _o(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await nJe(t,e)),n.length===0)return{};let s=r&&vS(r)?PS: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 iJe,oJe,Jie,aJe,cJe,N2,lJe,lN=A(()=>{yS();sJe();Vie();b2();R2();i(cg,"parseJsonBody");iJe=i(async(t,e)=>{let r=await cg(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),oJe=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),Jie=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"),aJe=i((t,e)=>lJe(t,e,["header","code","type"]),"loadRestJsonErrorCode"),cJe=i((t,e,r=!1)=>lJe(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),N2=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"),lJe=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=oJe(t??{},"x-amzn-errortype");if(s!==void 0)return Jie(t[s]);break;case"code":let o=oJe(e??{},"code");if(o&&e[o]!==void 0)return Jie(e[o]);break;case"type":if(e?.__type!==void 0)return Jie(e.__type);break}},"loadErrorCode")});function Nu(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var T2=A(()=>{i(Nu,"writeKey")});var QS,Yie=A(()=>{im();Ws();Qn();ag();zie();Vie();b2();R2();lN();T2();fr();QS=class extends vo{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=vS(e)?PS:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&x2()){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 cg(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=je.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)ht(c,l)&&(l==="__proto__"&&Nu(c),c[l]=this._read(a,c[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Gd(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?An.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(Po(s,this.settings)){case 5:return eN(r);case 6:return tN(r);case 7:return rN(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 Ft)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Ft(a.string,a.type):new Ft(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 Ft||(r[a]=this._read(s,c))}else{let a=r;for(let c in a){if(!ht(a,c))continue;c==="__proto__"&&Nu(a);let l=a[c];l instanceof Ft||(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 _S(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(!ht(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 _2,uJe,dJe=A(()=>{Qn();_2=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>uJe+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."),uJe=e),this.string=wa(this)}return this.string}},uJe=0});function Kie(t){return _2.allocUnsafe(t)}var P2,pJe,fJe,O5t,L5t,DS,v2,Q2,mJe,M5t,F5t,U5t,Tu,hJe,kS,Xie=A(()=>{im();Ws();Qn();ag();fr();dJe();P2=new TextEncoder,pJe=123,fJe=125,O5t=91,L5t=93,DS=34,v2=58,Q2=44,mJe=92,M5t=new Uint8Array([116,114,117,101]),F5t=new Uint8Array([102,97,108,115,101]),U5t=new Uint8Array([110,117,108,108]),Tu=new Array(128).fill(null);Tu[8]="b";Tu[9]="t";Tu[10]="n";Tu[12]="f";Tu[13]="r";Tu[34]='"';Tu[92]="\\";for(let t=0;t<32;t++)Tu[t]===null&&(Tu[t]="u00"+t.toString(16).padStart(2,"0"));hJe=2048;i(Kie,"alloc");kS=class t extends vo{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=Kie(hJe)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=je.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=je.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),P2.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=Kie(hJe),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=Kie(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++]=DS;for(let o=0;o<r;++o)n[s++]=e.charCodeAt(o);n[s++]=DS,this.i=s}writeJsonString(e){let r=e.length;this.ensure(r*3+2),this.json[this.i++]=DS;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=Tu[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=mJe;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}=P2.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++]=DS}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=mJe,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++]=DS;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++]=DS,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&je.of(e).isIdempotencyToken()){this.writeAsciiQuoted(gS());return}return}this.ensure(4),this.json.set(U5t,this.i),this.i+=4;return}let s=je.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(An.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Ft?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 Ft){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??Sc)(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(M5t,a),a+=4):(c.set(F5t,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++]=pJe;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++]=Q2),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++]=v2,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++]=v2,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++]=Q2),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=v2,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=fJe}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+=P2.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=O5t;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++]=Q2),this.writeValue(o,l,void 0),a=!0)}this.ensure(1),this.json[this.i++]=L5t}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(!ht(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+=P2.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=pJe;let a=!0;for(let c in r){if(!ht(r,c))continue;let l=r[c];(n?l===void 0:l==null&&!s)||(a||(this.ensure(1),this.json[this.i++]=Q2),a=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=v2,this.writeValue(o,l,void 0))}this.ensure(1),this.json[this.i++]=fJe}writeTimestamp(e,r){switch(Po(e,this.settings)){case 5:{let s=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(sg(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 OS,Zie=A(()=>{ag();Yie();Xie();OS=class extends vo{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new kS(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new QS(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var D2,AJe=A(()=>{Fie();Ws();fr();Zie();lN();D2=class extends RS{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new OS({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()}),ng(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=Hoe(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=N2(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=Ru.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let S=Ru.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(S);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=je.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",g=new m({}),y={},E=this.codec.createDeserializer();for(let[C,S]of f.structIterator())s[C]!=null&&(y[C]=E.readObject(S,s[C]));throw Object.assign(g,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var LS,eae=A(()=>{im();Ws();Qn();Qn();fr();ag();zie();b2();R2();lN();T2();LS=class extends vo{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=vS(e)?PS:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await cg(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=je.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 _S(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(!ht(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)ht(r,l)&&(l==="__proto__"&&Nu(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return Gd(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?An.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(Po(s,this.settings)){case 5:return eN(r);case 6:return tN(r);case 7:return rN(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 Ft)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Ft(a.string,a.type):new Ft(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(!ht(r,c))continue;c==="__proto__"&&Nu(a);let l=r[c];l instanceof Ft?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var gJe,k2,yJe=A(()=>{Qn();gJe="\u039D",k2=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 Ft){let n=`${gJe+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${gJe+"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 MS,tae=A(()=>{im();Ws();Qn();ag();yJe();T2();fr();MS=class extends vo{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=je.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 k2;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=je.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=je.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__"&&Nu(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!ht(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(!ht(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Nu(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Sc)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(Po(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return sg(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Ft&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return gS();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?An.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??Sc)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Sc)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!ht(r,c))continue;let l=r[c];c==="__proto__"&&Nu(a),l instanceof Ft?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var O2,EJe=A(()=>{ag();eae();tae();O2=class extends vo{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new MS(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new LS(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var CJe={};St(CJe,{Field:()=>I2,Fields:()=>S2,FromStringShapeDeserializer:()=>NS,HttpBindingProtocol:()=>g2,HttpInterceptingShapeDeserializer:()=>E2,HttpInterceptingShapeSerializer:()=>C2,HttpProtocol:()=>om,HttpRequest:()=>Vs,HttpResponse:()=>rg,JsonCodec:()=>O2,JsonCodec2:()=>OS,JsonShapeDeserializer:()=>LS,JsonShapeDeserializer2:()=>QS,JsonShapeSerializer:()=>MS,JsonShapeSerializer2:()=>kS,RequestBuilder:()=>aN,RpcProtocol:()=>RS,SerdeContext:()=>xa,SmithyRpcV2JsonProtocol:()=>D2,ToStringShapeSerializer:()=>TS,buildQueryString:()=>tJe,collectBody:()=>_o,contentLengthMiddleware:()=>Hie,contentLengthMiddlewareOptions:()=>Gie,determineTimestampFormat:()=>Po,escapeUri:()=>am,escapeUriPath:()=>Zje,extendedEncodeURIComponent:()=>rm,getContentLengthPlugin:()=>Kje,getHttpHandlerExtensionConfiguration:()=>Wje,isValidHostname:()=>jR,loadJsonRpcErrorCode:()=>cJe,loadRestJsonErrorCode:()=>aJe,loadSmithyRpcV2JsonErrorCode:()=>N2,parseJsonBody:()=>cg,parseJsonErrorBody:()=>iJe,parseQueryString:()=>JR,parseUrl:()=>YU,requestBuilder:()=>Uje,resolveHttpHandlerRuntimeConfig:()=>jje,resolvedPath:()=>y2});var IJe=A(()=>{yS();p2();Fje();A2();Fie();$je();Uie();$ie();qje();Hje();qie();im();ES();zje();Vje();fr();fr();fr();Jje();Xje();w2();eJe();rJe();fr();fr();AJe();lN();EJe();tae();eae();Zie();Xie();Yie()});var M2=w(ba=>{var{ProviderError:rae,CredentialsProviderError:cm,loadConfig:aae}=(CWe(),Z(EWe)),$5t=require("node:http"),{parseUrl:q5t}=(IJe(),Z(CJe)),bJe=i(t=>!!t&&typeof t=="object"&&typeof t.AccessKeyId=="string"&&typeof t.SecretAccessKey=="string"&&typeof t.Token=="string"&&typeof t.Expiration=="string","isImdsCredentials"),BJe=i(t=>({accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:new Date(t.Expiration),...t.AccountId&&{accountId:t.AccountId}}),"fromImdsCredentials"),RJe=1e3,NJe=0,cae=i(({maxRetries:t=NJe,timeout:e=RJe})=>({maxRetries:t,timeout:e}),"providerConfigFromInit");function pN(t){return new Promise((e,r)=>{let n=$5t.request({method:"GET",...t,hostname:t.hostname?.replace(/^\[(.+)\]$/,"$1")});n.on("error",s=>{r(Object.assign(new rae("Unable to connect to instance metadata service"),s)),n.destroy()}),n.on("timeout",()=>{r(new rae("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new rae("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(pN,"httpRequest");var sae=i((t,e)=>{let r=t();for(let n=0;n<e;n++)r=r.catch(t);return r},"retry"),uN="AWS_CONTAINER_CREDENTIALS_FULL_URI",L2="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",oae="AWS_CONTAINER_AUTHORIZATION_TOKEN",H5t=i((t={})=>{let{timeout:e,maxRetries:r}=cae(t);return()=>sae(async()=>{let n=await j5t({logger:t.logger}),s=JSON.parse(await G5t(e,n));if(!bJe(s))throw new cm("Invalid response received from instance metadata service.",{logger:t.logger});return BJe(s)},r)},"fromContainerMetadata"),G5t=i(async(t,e)=>(process.env[oae]&&(e.headers={...e.headers,Authorization:process.env[oae]}),(await pN({...e,timeout:t})).toString()),"requestFromEcsImds"),z5t="169.254.170.2",V5t=new Set(["localhost","127.0.0.1"]),W5t=new Set(["http:","https:"]),j5t=i(async({logger:t})=>{if(process.env[L2])return{hostname:z5t,path:process.env[L2]};if(process.env[uN]){let e;try{e=new URL(process.env[uN])}catch{throw new cm(`${process.env[uN]} is not a valid container metadata service URL`,{tryNextLink:!1,logger:t})}if(!e.hostname||!V5t.has(e.hostname))throw new cm(`${e.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:t});if(!e.protocol||!W5t.has(e.protocol))throw new cm(`${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 cm(`The container metadata credential provider cannot be used unless the ${L2} or ${uN} environment variable is set`,{tryNextLink:!1,logger:t})},"getCmdsUri"),iae=class t extends cm{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(e,r=!0){super(e,r),this.tryNextLink=r,Object.setPrototypeOf(this,t.prototype)}},dN;(function(t){t.IPv4="http://169.254.169.254",t.IPv6="http://[fd00:ec2::254]"})(dN||(dN={}));var J5t="AWS_EC2_METADATA_SERVICE_ENDPOINT",Y5t="ec2_metadata_service_endpoint",K5t={environmentVariableSelector:i(t=>t[J5t],"environmentVariableSelector"),configFileSelector:i(t=>t[Y5t],"configFileSelector"),default:void 0},FS;(function(t){t.IPv4="IPv4",t.IPv6="IPv6"})(FS||(FS={}));var X5t="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",Z5t="ec2_metadata_service_endpoint_mode",e6t={environmentVariableSelector:i(t=>t[X5t],"environmentVariableSelector"),configFileSelector:i(t=>t[Z5t],"configFileSelector"),default:FS.IPv4},TJe=i(async()=>q5t(await t6t()||await r6t()),"getInstanceMetadataEndpoint"),t6t=i(async()=>aae(K5t)(),"getFromEndpointConfig"),r6t=i(async()=>{let t=await aae(e6t)();switch(t){case FS.IPv4:return dN.IPv4;case FS.IPv6:return dN.IPv6;default:throw new Error(`Unsupported endpoint mode: ${t}. Select from ${Object.values(FS)}`)}},"getFromEndpointModeConfig"),n6t=300,s6t=300,o6t="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",SJe=i((t,e)=>{let r=n6t+Math.floor(Math.random()*s6t),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: `+o6t);let s=t.originalExpiration??t.expiration;return{...t,...s?{originalExpiration:s}:{},expiration:n}},"getExtendedInstanceMetadataCredentials"),i6t=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=SJe(s,r))}catch(o){if(n)r.warn("Credential renew failed: ",o),s=SJe(n,r);else throw o}return n=s,s}},"staticStabilityProvider"),_Je="/latest/meta-data/iam/security-credentials/",a6t="/latest/api/token",nae="AWS_EC2_METADATA_V1_DISABLED",wJe="ec2_metadata_v1_disabled",xJe="x-aws-ec2-metadata-token",c6t=i((t={})=>i6t(l6t(t),{logger:t.logger}),"fromInstanceMetadata"),l6t=i((t={})=>{let e=!1,{logger:r,profile:n}=t,{timeout:s,maxRetries:o}=cae(t),a=i(async(c,l)=>{if(e||l.headers?.[xJe]==null){let p=!1,f=!1,m=await aae({environmentVariableSelector:i(h=>{let g=h[nae];if(f=!!g&&g!=="false",g===void 0)throw new cm(`${nae} not set in env, checking config file next.`,{logger:t.logger});return f},"environmentVariableSelector"),configFileSelector:i(h=>{let g=h[wJe];return p=!!g&&g!=="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 (${wJe})`),f&&h.push(`process environment variable (${nae})`),new iae(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${h.join(", ")}].`)}}let d=(await sae(async()=>{let p;try{p=await d6t(l)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)).trim();return sae(async()=>{let p;try{p=await p6t(d,l,t)}catch(f){throw f.statusCode===401&&(e=!1),f}return p},c)},"getCredentials");return async()=>{let c=await TJe();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 u6t({...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:{[xJe]:l},timeout:s})}}},"getInstanceMetadataProvider"),u6t=i(async t=>pN({...t,path:a6t,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),d6t=i(async t=>(await pN({...t,path:_Je})).toString(),"getProfile"),p6t=i(async(t,e,r)=>{let n=JSON.parse((await pN({...e,path:_Je+t})).toString());if(!bJe(n))throw new cm("Invalid response received from instance metadata service.",{logger:r.logger});return BJe(n)},"getCredentialsFromProfile");ba.DEFAULT_MAX_RETRIES=NJe;ba.DEFAULT_TIMEOUT=RJe;ba.ENV_CMDS_AUTH_TOKEN=oae;ba.ENV_CMDS_FULL_URI=uN;ba.ENV_CMDS_RELATIVE_URI=L2;ba.Endpoint=dN;ba.fromContainerMetadata=H5t;ba.fromInstanceMetadata=c6t;ba.getInstanceMetadataEndpoint=TJe;ba.httpRequest=pN;ba.providerConfigFromInit=cae});var F2,lae=A(()=>{F2=i(t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]","isArrayBuffer")});var xc,lm,um=A(()=>{lae();xc=i((t,e=0,r=t.byteLength-e)=>{if(!F2(t))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof t} (${t})`);return Buffer.from(t,e,r)},"fromArrayBuffer"),lm=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 f6t,_u,PJe=A(()=>{um();f6t=/^[A-Za-z0-9+/]*={0,2}$/,_u=i(t=>{if(t.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!f6t.exec(t))throw new TypeError("Invalid base64 string.");let e=lm(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},"fromBase64")});var bc,U2=A(()=>{um();bc=i(t=>{let e=lm(t,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Qo,uae=A(()=>{um();U2();Qo=i(t=>{let e;if(typeof t=="string"?e=bc(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 xc(e.buffer,e.byteOffset,e.byteLength).toString("base64")},"toBase64")});function vJe(t,e,r,n){return class $2 extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(o,a="utf-8"){if(typeof o=="string")return a==="base64"?$2.mutate(n(o)):$2.mutate(e(o));throw new Error(`Unsupported conversion from ${typeof o} to Uint8ArrayBlobAdapter.`)}static mutate(o){return Object.setPrototypeOf(o,$2.prototype),o}transformToString(o="utf-8"){return o==="base64"?r(this):t(this)}}}var QJe=A(()=>{i(vJe,"bindUint8ArrayBlobAdapter")});var Ni,DJe=A(()=>{um();Ni=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 xc(t.buffer,t.byteOffset,t.byteLength).toString("utf8")},"toUtf8")});function kJe(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,OJe=A(()=>{Es=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));i(kJe,"bindV4")});var LJe,MJe=A(()=>{LJe=i((t,e,r=n=>n)=>t,"copyDocumentWithTransform")});var dae,fN,FJe=A(()=>{dae=R(qt()),fN=i(t=>t[dae.SMITHY_CONTEXT_KEY]||(t[dae.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function Ze(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var pae=A(()=>{i(Ze,"hasOwn")});function m6t(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}var js,UJe=A(()=>{js=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=m6t(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(m6t,"cloneQuery")});var Vd,$Je=A(()=>{Vd=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"}}});function mN(t){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(t)}var qJe=A(()=>{i(mN,"isValidHostname")});var hN,HJe=A(()=>{hN=i(t=>{if(typeof t=="function")return t;let e=Promise.resolve(t);return()=>e},"normalizeProvider")});function AN(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 fae=A(()=>{i(AN,"parseQueryString")});var lg,mae=A(()=>{fae();lg=i(t=>{if(typeof t=="string")return lg(new URL(t));let{hostname:e,pathname:r,port:n,protocol:s,search:o}=t,a;return o&&(a=AN(o)),{hostname:e,port:n?parseInt(n):void 0,protocol:s,path:r,query:a}},"parseUrl")});var Wd,GJe=A(()=>{pae();mae();Wd=i(t=>{if(typeof t=="object"){if("url"in t){let e=lg(t.url);if(t.headers){e.headers={};for(let r in t.headers)Ze(t.headers,r)&&(e.headers[r.toLowerCase()]=t.headers[r].join(", "))}return e}return t}return lg(t)},"toEndpointV1")});var Ot=A(()=>{FJe();pae();UJe();$Je();qJe();HJe();fae();mae();GJe()});var zJe,VJe,US,h6t,gN,$S,WJe,q2,H2,G2,hae,A6t,jJe,Aae,JJe,YJe,yN,KJe,V2,g6t,HS,W2,XJe,ZJe,eYe,tYe,gae,rYe,nYe,dm,j2,z2,qS,yae=A(()=>{Ot();zJe=i(t=>{switch(t){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${t}"`)}},"parseBoolean"),VJe=i(t=>{if(t!=null){if(typeof t=="number"){if((t===0||t===1)&&qS.warn(z2(`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")&&qS.warn(z2(`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"),US=i(t=>{if(t!=null){if(typeof t=="string"){let e=parseFloat(t);if(!Number.isNaN(e))return String(e)!==String(t)&&qS.warn(z2(`Expected number but observed string: ${t}`)),e}if(typeof t=="number")return t;throw new TypeError(`Expected number, got ${typeof t}: ${t}`)}},"expectNumber"),h6t=Math.ceil(2**127*(2-2**-23)),gN=i(t=>{let e=US(t);if(e!==void 0&&!Number.isNaN(e)&&e!==1/0&&e!==-1/0&&Math.abs(e)>h6t)throw new TypeError(`Expected 32-bit float, got ${t}`);return e},"expectFloat32"),$S=i(t=>{if(t!=null){if(Number.isInteger(t)&&!Number.isNaN(t))return t;throw new TypeError(`Expected integer, got ${typeof t}: ${t}`)}},"expectLong"),WJe=$S,q2=i(t=>hae(t,32),"expectInt32"),H2=i(t=>hae(t,16),"expectShort"),G2=i(t=>hae(t,8),"expectByte"),hae=i((t,e)=>{let r=$S(t);if(r!==void 0&&A6t(r,e)!==r)throw new TypeError(`Expected ${e}-bit integer, got ${t}`);return r},"expectSizedInt"),A6t=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"),jJe=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"),Aae=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"),JJe=i(t=>{if(t!=null){if(typeof t=="string")return t;if(["boolean","number","bigint"].includes(typeof t))return qS.warn(z2(`Expected string, got ${typeof t}: ${t}`)),String(t);throw new TypeError(`Expected string, got ${typeof t}: ${t}`)}},"expectString"),YJe=i(t=>{if(t==null)return;let e=Aae(t),r=[];for(let n in e)Ze(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"),yN=i(t=>US(typeof t=="string"?HS(t):t),"strictParseDouble"),KJe=yN,V2=i(t=>gN(typeof t=="string"?HS(t):t),"strictParseFloat32"),g6t=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,HS=i(t=>{let e=t.match(g6t);if(e===null||e[0].length!==t.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(t)},"parseNumber"),W2=i(t=>typeof t=="string"?tYe(t):US(t),"limitedParseDouble"),XJe=W2,ZJe=W2,eYe=i(t=>typeof t=="string"?tYe(t):gN(t),"limitedParseFloat32"),tYe=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"),gae=i(t=>$S(typeof t=="string"?HS(t):t),"strictParseLong"),rYe=gae,nYe=i(t=>q2(typeof t=="string"?HS(t):t),"strictParseInt32"),dm=i(t=>H2(typeof t=="string"?HS(t):t),"strictParseShort"),j2=i(t=>G2(typeof t=="string"?HS(t):t),"strictParseByte"),z2=i(t=>String(new TypeError(t).stack||t).split(`
`).slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join(`
`),"stackTraceWarning"),qS={warn:console.warn}});function pm(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`${y6t[n]}, ${l} ${Cae[r]} ${e} ${u}:${d}:${p} GMT`}var y6t,Cae,E6t,sYe,C6t,zS,I6t,S6t,w6t,VS,WS,EN,x6t,b6t,B6t,Eae,R6t,N6t,T6t,Pu,_6t,P6t,GS,oYe=A(()=>{yae();y6t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Cae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(pm,"dateToUtcString");E6t=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),sYe=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=E6t.exec(t);if(!e)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,s,o,a,c,l,u]=e,d=dm(GS(n)),p=Pu(s,"month",1,12),f=Pu(o,"day",1,31);return EN(d,p,f,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})},"parseRfc3339DateTime"),C6t=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),zS=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let e=C6t.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=dm(GS(n)),f=Pu(s,"month",1,12),m=Pu(o,"day",1,31),h=EN(p,f,m,{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&h.setTime(h.getTime()-P6t(d)),h},"parseRfc3339DateTimeWithOffset"),I6t=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$/),S6t=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$/),w6t=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})$/),VS=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let e=I6t.exec(t);if(e){let[r,n,s,o,a,c,l,u]=e;return EN(dm(GS(o)),Eae(s),Pu(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u})}if(e=S6t.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return B6t(EN(x6t(o),Eae(s),Pu(n,"day",1,31),{hours:a,minutes:c,seconds:l,fractionalMilliseconds:u}))}if(e=w6t.exec(t),e){let[r,n,s,o,a,c,l,u]=e;return EN(dm(GS(u)),Eae(n),Pu(s.trimLeft(),"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:l})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),WS=i(t=>{if(t==null)return;let e;if(typeof t=="number")e=t;else if(typeof t=="string")e=yN(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"),EN=i((t,e,r,n)=>{let s=e-1;return N6t(t,s,r),new Date(Date.UTC(t,s,r,Pu(n.hours,"hour",0,23),Pu(n.minutes,"minute",0,59),Pu(n.seconds,"seconds",0,60),_6t(n.fractionalMilliseconds)))},"buildDate"),x6t=i(t=>{let e=new Date().getUTCFullYear(),r=Math.floor(e/100)*100+dm(GS(t));return r<e?r+100:r},"parseTwoDigitYear"),b6t=50*365*24*60*60*1e3,B6t=i(t=>t.getTime()-new Date().getTime()>b6t?new Date(Date.UTC(t.getUTCFullYear()-100,t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())):t,"adjustRfc850Year"),Eae=i(t=>{let e=Cae.indexOf(t);if(e<0)throw new TypeError(`Invalid month: ${t}`);return e+1},"parseMonthByShortName"),R6t=[31,28,31,30,31,30,31,31,30,31,30,31],N6t=i((t,e,r)=>{let n=R6t[e];if(e===1&&T6t(t)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Cae[e]} in ${t}: ${r}`)},"validateDayOfMonth"),T6t=i(t=>t%4===0&&(t%100!==0||t%400===0),"isLeapYear"),Pu=i((t,e,r,n)=>{let s=j2(GS(t));if(s<r||s>n)throw new TypeError(`${e} must be between ${r} and ${n}, inclusive`);return s},"parseDateValue"),_6t=i(t=>t==null?0:V2("0."+t)*1e3,"parseMilliseconds"),P6t=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"),GS=i(t=>{let e=0;for(;e<t.length-1&&t.charAt(e)==="0";)e++;return e===0?t:t.slice(e)},"stripLeadingZeroes")});var Kr,iYe=A(()=>{Kr=i(function(e){return Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}})},"LazyJsonString");Kr.from=t=>t&&typeof t=="object"&&(t instanceof Kr||"deserializeJSON"in t)?t:typeof t=="string"||Object.getPrototypeOf(t)===String.prototype?Kr(String(t)):Kr(JSON.stringify(t));Kr.fromObject=Kr.from});function J2(t){return(t.includes(",")||t.includes('"'))&&(t=`"${t.replace(/"/g,'\\"')}"`),t}var aYe=A(()=>{i(J2,"quoteHeader")});function jd(t,e,r){let n=Number(t);if(n<e||n>r)throw new Error(`Value ${n} out of range [${e}, ${r}]`)}var Iae,Sae,wae,cYe,lYe,v6t,Q6t,D6t,k6t,O6t,Y2,K2,X2,uYe=A(()=>{Iae="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Sae="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",wae="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",cYe="(\\d?\\d)",lYe="(\\d{4})",v6t=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Q6t=new RegExp(`^${Iae}, ${cYe} ${Sae} ${lYe} ${wae} GMT$`),D6t=new RegExp(`^${Iae}, ${cYe}-${Sae}-(\\d\\d) ${wae} GMT$`),k6t=new RegExp(`^${Iae} ${Sae} ( [1-9]|\\d\\d) ${wae} ${lYe}$`),O6t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Y2=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"),K2=i(t=>{if(t==null)return;if(typeof t!="string")throw new TypeError("RFC3339 timestamps must be strings");let e=v6t.exec(t);if(!e)throw new TypeError(`Invalid RFC3339 timestamp format ${t}`);let[,r,n,s,o,a,c,,l,u]=e;jd(n,1,12),jd(s,1,31),jd(o,0,23),jd(a,0,59),jd(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"),X2=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=Q6t.exec(t))?[,e,r,n,s,o,a,c]=l:(l=D6t.exec(t))?([,e,r,n,s,o,a,c]=l,n=(Number(n)+1900).toString()):(l=k6t.exec(t))&&([,r,e,s,o,a,c,n]=l),n&&a){let u=Date.UTC(Number(n),O6t.indexOf(r),Number(e),Number(s),Number(o),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);jd(e,1,31),jd(s,0,23),jd(o,0,59),jd(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(jd,"range")});function Z2(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 dYe=A(()=>{i(Z2,"splitEvery")});var jS,pYe=A(()=>{jS=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 mYe(t){return new Rt(String(t),"bigDecimal")}var fYe,Rt,hYe=A(()=>{fYe=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,Rt=class t{static{i(this,"NumericValue")}string;type;constructor(e,r){if(this.string=e,this.type=r,!fYe.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"&&fYe.test(r.string)}};i(mYe,"nv")});function e$(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 xae)e[r/2]=xae[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return e}function Ba(t){let e="";for(let r=0;r<t.byteLength;r++)e+=AYe[t[r]];return e}var AYe,xae,bae=A(()=>{AYe={},xae={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),AYe[t]=e,xae[e]=t}i(e$,"fromHex");i(Ba,"toHex")});var JS,gYe,yYe=A(()=>{JS=require("node:fs"),gYe=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 JS.ReadStream){if(t.path!=null)return(0,JS.lstatSync)(t.path).size;if(typeof t.fd=="number")return(0,JS.fstatSync)(t.fd).size}throw new Error(`Body Length computation failed for ${t}`)},"calculateBodyLength")});var t$,Bae=A(()=>{U2();t$=i(t=>t instanceof Uint8Array?t:typeof t=="string"?bc(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),"toUint8Array")});function fm(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 CN=A(()=>{i(fm,"concatBytes")});var r$,Rae,Nae=A(()=>{Ot();r$=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(Vd.isInstance(o)){let{headers:l={}}=o,u=Object.entries(l);a.$metadata={httpStatusCode:o.statusCode,requestId:Rae(/^x-[\w-]+-request-?id$/,u),extendedRequestId:Rae(/^x-[\w-]+-id-2$/,u),cfId:Rae(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw a}},"deserializerMiddleware"),Rae=i((t,e)=>(e.find(([r])=>r.match(t))||[void 0,void 0])[1],"findHeader")});var YS,Tae=A(()=>{YS=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 KS,_ae=A(()=>{Tae();KS=class t extends YS{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(e,r=!0){super(e,r),Object.setPrototypeOf(this,t.prototype)}}});var EYe,CYe=A(()=>{Tae();EYe=i((...t)=>async()=>{if(t.length===0)throw new YS("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 IYe,SYe=A(()=>{IYe=i(t=>()=>Promise.resolve(t),"fromValue")});var wYe,xYe=A(()=>{wYe=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 n$,bYe=A(()=>{n$=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 XS,BYe=A(()=>{(function(t){t.ENV="env",t.CONFIG="shared config entry"})(XS||(XS={}))});var RYe,NYe,Pae,L6t,ZS,s$=A(()=>{RYe=require("node:os"),NYe=require("node:path"),Pae={},L6t=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),ZS=i(()=>{let{HOME:t,USERPROFILE:e,HOMEPATH:r,HOMEDRIVE:n=`C:${NYe.sep}`}=process.env;if(t)return t;if(e)return e;if(r)return`${n}${r}`;let s=L6t();return Pae[s]||(Pae[s]=(0,RYe.homedir)()),Pae[s]},"getHomeDir")});var M6t,F6t,TYe,_Ye=A(()=>{M6t="AWS_PROFILE",F6t="default",TYe=i(t=>t.profile||process.env[M6t]||F6t,"getProfileName")});var vae,PYe,vYe=A(()=>{vae=R(qt()),PYe=i(t=>Object.entries(t).filter(([e])=>{let r=e.indexOf(".");return r===-1?!1:Object.values(vae.IniSectionType).includes(e.substring(0,r))}).reduce((e,[r,n])=>{let s=r.indexOf("."),o=r.substring(0,s)===vae.IniSectionType.PROFILE?r.substring(s+1):r;return e[o]=n,e},{...t.default&&{default:t.default}}),"getConfigData")});var QYe,U6t,DYe,kYe=A(()=>{QYe=require("node:path");s$();U6t="AWS_CONFIG_FILE",DYe=i(()=>process.env[U6t]||(0,QYe.join)(ZS(),".aws","config"),"getConfigFilepath")});var OYe,$6t,LYe,MYe=A(()=>{OYe=require("node:path");s$();$6t="AWS_SHARED_CREDENTIALS_FILE",LYe=i(()=>process.env[$6t]||(0,OYe.join)(ZS(),".aws","credentials"),"getCredentialsFilepath")});var FYe,q6t,H6t,Qae,UYe=A(()=>{FYe=R(qt()),q6t=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,H6t=["__proto__","profile __proto__"],Qae=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=q6t.exec(c);if(l){let[,u,,d]=l;Object.values(FYe.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=c;if(H6t.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 qYe,Dae,$Ye,kae,HYe=A(()=>{qYe=require("node:fs/promises"),Dae={},$Ye={},kae=i((t,e)=>$Ye[t]!==void 0?$Ye[t]:((!Dae[t]||e?.ignoreCache)&&(Dae[t]=(0,qYe.readFile)(t,"utf8")),Dae[t]),"readFile")});var Oae,GYe,zYe,VYe=A(()=>{Oae=require("node:path");vYe();kYe();MYe();s$();UYe();HYe();GYe=i(()=>({}),"swallowError"),zYe=i(async(t={})=>{let{filepath:e=LYe(),configFilepath:r=DYe()}=t,n=ZS(),s="~/",o=e;e.startsWith(s)&&(o=(0,Oae.join)(n,e.slice(2)));let a=r;r.startsWith(s)&&(a=(0,Oae.join)(n,r.slice(2)));let c=await Promise.all([kae(a,{ignoreCache:t.ignoreCache}).then(Qae).then(PYe).catch(GYe),kae(o,{ignoreCache:t.ignoreCache}).then(Qae).catch(GYe)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});function o$(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 Lae=A(()=>{i(o$,"getSelectorName")});var WYe,jYe=A(()=>{_ae();Lae();WYe=i((t,e)=>async()=>{try{let r=t(process.env,e);if(r===void 0)throw new Error;return r}catch(r){throw new KS(r.message||`Not found in ENV: ${o$(t.toString())}`,{logger:e?.logger})}},"fromEnv")});var JYe,YYe=A(()=>{_ae();_Ye();VYe();Lae();JYe=i((t,{preferredFile:e="config",...r}={})=>async()=>{let n=TYe(r),{configFile:s,credentialsFile:o}=await zYe(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 KS(u.message||`Not found in config files w/ profile [${n}]: ${o$(t.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var G6t,KYe,XYe=A(()=>{SYe();G6t=i(t=>typeof t=="function","isFunction"),KYe=i(t=>G6t(t)?async()=>await t():IYe(t),"fromStatic")});var i$,ZYe=A(()=>{CYe();xYe();jYe();YYe();XYe();i$=i(({environmentVariableSelector:t,configFileSelector:e,default:r},n={})=>{let{signingName:s,logger:o}=n;return wYe(EYe(WYe(t,{signingName:s,logger:o}),JYe(e,n),KYe(r)))},"loadConfig")});var ug,Mae=A(()=>{ug=i(t=>typeof t=="function"?t():t,"deref")});function vu(t){if(typeof t=="object")return t;if(t=t|0,a$[t])return a$[t];let e={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(t>>r++&1)===1&&(e[n]=1);return a$[t]=e}var a$,Fae=A(()=>{a$=[];i(vu,"translateTraits")});function wN(t,e){if(t instanceof Je)return Object.assign(t,{memberName:e,_isMemberSchema:!0});let r=Je;return new r(t,e)}var SN,c$,l$,Je,Uae,e5e,t5e=A(()=>{Mae();Fae();SN={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},c$=[],l$={},Je=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;Uae(s);)n.push(s[1]),s=s[0],o=ug(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,vu(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=ug(o),e5e(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(c$[e])return c$[e]}else if(typeof e=="string"){if(l$[e])return l$[e]}else if(r&&e[SN.ns])return e[SN.ns];let n=ug(e);if(n instanceof t)return n;if(Uae(n)){let[o,a]=n;if(o instanceof t)return Object.assign(o.getMergedTraits(),vu(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[SN.ns]=s:typeof n=="string"?l$[n]=s:typeof n=="number"?c$[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 vu(this.memberTraits)}getOwnTraits(){return vu(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 wN([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 wN([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 wN(Uae(s)?s:[s,0],e)}if(this.isDocumentSchema())return wN([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[SN.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=wN([e[5][s],0],o);yield n[s]=[o,a]}e[SN.it]=n}};i(wN,"member");Uae=i(t=>Array.isArray(t)&&t.length===2,"isMemberSchema"),e5e=i(t=>Array.isArray(t)&&t.length>=5,"isStaticSchema")});var Qu,r5e=A(()=>{Qu=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 Js=A(()=>{Mae();t5e();Fae();r5e()});var $ae=A(()=>{bYe();BYe();ZYe()});var n5e,s5e,o5e,i5e=A(()=>{n5e="AWS_ENDPOINT_URL",s5e="endpoint_url",o5e=i(t=>({environmentVariableSelector:i(e=>{let r=t.split(" ").map(o=>o.toUpperCase()),n=e[[n5e,...r].join("_")];if(n)return n;let s=e[n5e];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("_"),s5e].join(".")];if(c)return c}let n=e[s5e];if(n)return n},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var z6t,V6t,a5e,c5e=A(()=>{$ae();z6t="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",V6t="ignore_configured_endpoint_urls",a5e={environmentVariableSelector:i(t=>n$(t,z6t,XS.ENV),"environmentVariableSelector"),configFileSelector:i(t=>n$(t,V6t,XS.CONFIG),"configFileSelector"),default:!1}});var xN,l5e=A(()=>{$ae();i5e();c5e();xN=i(async t=>{if(!await i$(a5e)())return i$(o5e(t??""))()},"getEndpointFromConfig")});var qae,W6t,j6t,J6t,u5e,d5e,p5e=A(()=>{qae=i(async t=>{let e=t?.Bucket||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),d5e(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!u5e(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"),W6t=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,j6t=/(\d+\.){3}\d+/,J6t=/\.\./,u5e=i(t=>W6t.test(t)&&!j6t.test(t)&&!J6t.test(t),"isDnsCompatibleBucketName"),d5e=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 f5e=A(()=>{p5e()});var m5e,h5e=A(()=>{m5e=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 Hae=A(()=>{Ot()});function u$(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(Wd(c)),n.isCustomEndpoint=!0,s?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let o=await Y6t(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 Y6t,Gae=A(()=>{f5e();h5e();Hae();i(u$,"bindGetEndpointFromInstructions");Y6t=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 m5e(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 qae(n),n},"resolveParams")});function K6t(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 d$(t){let e=u$(t);return({config:r,instructions:n})=>(s,o)=>async a=>{r.isCustomEndpoint&&K6t(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=fN(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 zae=A(()=>{Ot();Gae();i(K6t,"setFeature");i(d$,"bindEndpointMiddleware")});function A5e(t){let e=d$(t);return(r,n)=>({applyToStack:i(s=>{s.addRelativeTo(e({config:r,instructions:n}),Z6t)},"applyToStack")})}var X6t,Z6t,g5e=A(()=>{zae();X6t={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},Z6t={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:X6t.name};i(A5e,"bindGetEndpointPlugin")});function y5e(t){return e=>{let r=e.tls??!0,{endpoint:n,useDualstackEndpoint:s,useFipsEndpoint:o}=e,a=n!=null?async()=>Wd(await hN(n)()):void 0,l=Object.assign(e,{endpoint:a,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:hN(s??!1),useFipsEndpoint:hN(o??!1),ignoreConfiguredEndpointUrls:!!e.ignoreConfiguredEndpointUrls}),u;return l.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=t(e.serviceId)),u),l}}var E5e=A(()=>{Ot();Hae();i(y5e,"bindResolveEndpointConfig")});var KHn,XHn,ZHn,eGn,C5e=A(()=>{l5e();Gae();zae();g5e();E5e();Ot();KHn=u$(xN),XHn=y5e(xN),ZHn=d$(xN),eGn=A5e(xN)});var p$,Vae=A(()=>{C5e();p$=i((t,e)=>(r,n)=>async s=>{let o=t,a=n.endpointV2?async()=>Wd(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 I5e(t,e,r){return{applyToStack:i(n=>{n.add(r$(t,r),Wae),n.add(p$(t,e),jae)},"applyToStack")}}var Wae,jae,S5e=A(()=>{Nae();Vae();Wae={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},jae={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(I5e,"getSerdePlugin")});function w5e(t,e){return Buffer.isBuffer(t)?t:typeof t=="string"?lm(t,e):ArrayBuffer.isView(t)?xc(t.buffer,t.byteOffset,t.byteLength):xc(t)}var m$,f$,x5e=A(()=>{m$=require("node:crypto");um();Bae();f$=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(t$(w5e(e,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,m$.createHmac)(this.algorithmIdentifier,w5e(this.secret)):(0,m$.createHash)(this.algorithmIdentifier)}};i(w5e,"castSourceData")});var b5e,ew,Jae=A(()=>{b5e=require("node:stream");uae();ew=class extends b5e.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??Qo,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 gn,mm,Bc=A(()=>{gn=i(t=>typeof ReadableStream=="function"&&(t?.constructor?.name===ReadableStream.name||t instanceof ReadableStream),"isReadableStream"),mm=i(t=>typeof Blob=="function"&&(t?.constructor?.name===Blob.name||t instanceof Blob),"isBlob")});var B5e,R5e=A(()=>{B5e=i(t=>new TextEncoder().encode(t),"fromUtf8")});var N5e,IGn,T5e,h$,Yae,_5e,P5e=A(()=>{N5e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",IGn=Object.entries(N5e).reduce((t,[e,r])=>(t[r]=Number(e),t),{}),T5e=N5e.split(""),h$=6,Yae=8,_5e=63});function A$(t){let e;typeof t=="string"?e=B5e(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)*Yae,c+=Yae;let l=Math.ceil(c/h$);a<<=l*h$-c;for(let u=1;u<=l;u++){let d=(l-u)*h$;s+=T5e[(a&_5e<<d)>>d]}s+="==".slice(0,4-l)}return s}var Kae=A(()=>{R5e();P5e();i(A$,"toBase64")});var e9t,g$,v5e=A(()=>{e9t=typeof ReadableStream=="function"?ReadableStream:function(){},g$=class extends e9t{static{i(this,"ChecksumStream")}}});var Q5e,D5e=A(()=>{Kae();Bc();v5e();Q5e=i(({expectedChecksum:t,checksum:e,source:r,checksumSourceLocation:n,base64Encoder:s})=>{if(!gn(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let o=s??A$;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,g$.prototype),c},"createChecksumStream")});function k5e(t){return typeof ReadableStream=="function"&&gn(t.source)?Q5e(t):new ew(t)}var O5e=A(()=>{Bc();Jae();D5e();i(k5e,"createChecksumStream")});var dg,Xae=A(()=>{dg=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 L5e(t,e,r){let n=t.getReader(),s=!1,o=0,a=["",new dg(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=pg(a,c);Jd(m)>0&&u.enqueue(m)}u.close()}else{let m=ece(f,!1);if(c!==m&&(c>=0&&u.enqueue(pg(a,c)),c=m),c===-1){u.enqueue(f);return}let h=Jd(f);o+=h;let g=Jd(a[c]);if(h>=e&&g===0)u.enqueue(f);else{let y=Zae(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(pg(a,c)):await l(u)}}},"pull");return new ReadableStream({pull:l})}function Zae(t,e,r){switch(e){case 0:return t[0]+=r,Jd(t[0]);case 1:case 2:return t[e].push(r),Jd(t[e])}}function pg(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 Jd(t){return t?.byteLength??t?.length??0}function ece(t,e=!0){return e&&typeof Buffer<"u"&&t instanceof Buffer?2:t instanceof Uint8Array?1:typeof t=="string"?0:-1}var M5e=A(()=>{Xae();i(L5e,"createBufferedReadableStream");i(Zae,"merge");i(pg,"flush");i(Jd,"sizeOf");i(ece,"modeOf")});function U5e(t,e,r){if(gn(t))return L5e(t,e,r);let n=new F5e.Readable({read(){}}),s=!1,o=0,a=["",new dg(l=>new Uint8Array(l)),new dg(l=>Buffer.from(new Uint8Array(l)))],c=-1;return t.on("data",l=>{let u=ece(l,!0);if(c!==u&&(c>=0&&n.push(pg(a,c)),c=u),c===-1){n.push(l);return}let d=Jd(l);o+=d;let p=Jd(a[c]);if(d>=e&&p===0)n.push(l);else{let f=Zae(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(pg(a,c))}}),t.on("end",()=>{if(c!==-1){let l=pg(a,c);Jd(l)>0&&n.push(l)}n.push(null)}),n}var F5e,$5e=A(()=>{F5e=require("node:stream");Xae();M5e();Bc();i(U5e,"createBufferedReadable")});var q5e,H5e=A(()=>{q5e=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 z5e(t,e){let r=t,n=t;if(gn(n))return q5e(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 G5e.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 G5e,V5e=A(()=>{G5e=require("node:stream");H5e();Bc();i(z5e,"getAwsChunkedEncodingStream")});async function W5e(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 j5e=A(()=>{i(W5e,"headStream")});var J5e,Y5e,tce,K5e=A(()=>{J5e=require("node:stream");CN();j5e();Bc();Y5e=i((t,e)=>gn(t)?W5e(t,e):new Promise((r,n)=>{let s=new tce;s.limit=e,t.pipe(s),t.on("error",o=>{s.end(),n(o)}),s.on("error",n),s.on("finish",function(){let o=fm(this.buffers);r(o)})}),"headStream"),tce=class extends J5e.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 X5e,Z5e=A(()=>{X5e=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 rce(t){return t.arrayBuffer().then(e=>new Uint8Array(e))}async function nce(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 fm(e,n)}var e6e,sce=A(()=>{CN();Bc();e6e=i(async t=>mm(t)?rce(t):nce(t),"streamCollector");i(rce,"collectBlob");i(nce,"collectReadableStream")});var t6e,n6e,r6e,s6e=A(()=>{Kae();bae();Z5e();sce();Bc();t6e="The stream has already been transformed.",n6e=i(t=>{if(!r6e(t)&&!gn(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(t6e);return e=!0,await e6e(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 A$(o);if(s==="hex")return Ba(o);if(s===void 0||s==="utf8"||s==="utf-8")return X5e(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(t6e);if(e=!0,r6e(t))return n(t);if(gn(t))return t;throw new Error(`Cannot transform payload to web stream, got ${t}`)},"transformToWebStream")})},"sdkStreamMixin"),r6e=i(t=>typeof Blob=="function"&&t instanceof Blob,"isBlobInstance")});var o6e,y$,oce,ice=A(()=>{o6e=require("node:stream");CN();sce();Bc();y$=i(t=>mm(t)?rce(t):gn(t)?nce(t):new Promise((e,r)=>{let n=new oce,s=t;s.pipe(n),s.on("error",o=>{n.end(),r(o)}),n.on("error",r),n.on("finish",function(){let o=fm(this.bufferedBytes);e(o)})}),"streamCollector"),oce=class extends o6e.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(e,r,n){this.bufferedBytes.push(e),n()}}});var E$,i6e,C$,a6e=A(()=>{E$=require("node:stream");um();s6e();ice();i6e="The stream has already been transformed.",C$=i(t=>{if(!(t instanceof E$.Readable))try{return n6e(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(i6e);return e=!0,await y$(t)},"transformToByteArray");return Object.assign(t,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();return n===void 0||Buffer.isEncoding(n)?xc(s.buffer,s.byteOffset,s.byteLength).toString(n):new TextDecoder(n).decode(s)},"transformToString"),transformToWebStream:i(()=>{if(e)throw new Error(i6e);if(t.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof E$.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return e=!0,E$.Readable.toWeb(t)},"transformToWebStream")})},"sdkStreamMixin")});async function c6e(t){return typeof t.stream=="function"&&(t=t.stream()),t.tee()}var l6e=A(()=>{i(c6e,"splitStream")});async function u6e(t){if(gn(t)||mm(t))return c6e(t);let e=new ace.PassThrough,r=new ace.PassThrough;return t.pipe(e),t.pipe(r),[e,r]}var ace,d6e=A(()=>{ace=require("node:stream");l6e();Bc();i(u6e,"splitStream")});var cce={};St(cce,{ChecksumStream:()=>ew,Hash:()=>f$,LazyJsonString:()=>Kr,NumericValue:()=>Rt,Uint8ArrayBlobAdapter:()=>fg,_parseEpochTimestamp:()=>Y2,_parseRfc3339DateTimeWithOffset:()=>K2,_parseRfc7231DateTime:()=>X2,calculateBodyLength:()=>gYe,concatBytes:()=>fm,copyDocumentWithTransform:()=>LJe,createBufferedReadable:()=>U5e,createChecksumStream:()=>k5e,dateToUtcString:()=>pm,deserializerMiddleware:()=>r$,deserializerMiddlewareOption:()=>Wae,expectBoolean:()=>VJe,expectByte:()=>G2,expectFloat32:()=>gN,expectInt:()=>WJe,expectInt32:()=>q2,expectLong:()=>$S,expectNonNull:()=>jJe,expectNumber:()=>US,expectObject:()=>Aae,expectShort:()=>H2,expectString:()=>JJe,expectUnion:()=>YJe,fromArrayBuffer:()=>xc,fromBase64:()=>_u,fromHex:()=>e$,fromString:()=>lm,fromUtf8:()=>bc,generateIdempotencyToken:()=>mg,getAwsChunkedEncodingStream:()=>z5e,getSerdePlugin:()=>I5e,handleFloat:()=>XJe,hasOwn:()=>Ze,headStream:()=>Y5e,isArrayBuffer:()=>F2,isBlob:()=>mm,isReadableStream:()=>gn,limitedParseDouble:()=>W2,limitedParseFloat:()=>ZJe,limitedParseFloat32:()=>eYe,logger:()=>qS,nv:()=>mYe,parseBoolean:()=>zJe,parseEpochTimestamp:()=>WS,parseRfc3339DateTime:()=>sYe,parseRfc3339DateTimeWithOffset:()=>zS,parseRfc7231DateTime:()=>VS,quoteHeader:()=>J2,sdkStreamMixin:()=>C$,serializerMiddleware:()=>p$,serializerMiddlewareOption:()=>jae,splitEvery:()=>Z2,splitHeader:()=>jS,splitStream:()=>u6e,streamCollector:()=>y$,strictParseByte:()=>j2,strictParseDouble:()=>yN,strictParseFloat:()=>KJe,strictParseFloat32:()=>V2,strictParseInt:()=>rYe,strictParseInt32:()=>nYe,strictParseLong:()=>gae,strictParseShort:()=>dm,toBase64:()=>Qo,toHex:()=>Ba,toUint8Array:()=>t$,toUtf8:()=>Ni,v4:()=>f6e});var p6e,fg,t9t,f6e,mg,Xr=A(()=>{p6e=require("node:crypto");PJe();uae();QJe();U2();DJe();OJe();MJe();oYe();iYe();yae();aYe();uYe();dYe();pYe();hYe();bae();yYe();Bae();CN();um();lae();Nae();S5e();Vae();x5e();Jae();O5e();$5e();V5e();K5e();a6e();d6e();Bc();ice();Ot();fg=class extends vJe(Ni,bc,Qo,_u){static{i(this,"Uint8ArrayBlobAdapter")}},t9t=p6e.getRandomValues,f6e=kJe(t9t),mg=f6e});var Do,tw=A(()=>{Xr();Do=i(async(t=new Uint8Array,e)=>{if(t instanceof Uint8Array)return fg.mutate(t);if(!t)return fg.mutate(new Uint8Array);let r=e.streamCollector(t);return fg.mutate(await r)},"collectBody")});function hm(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}var I$=A(()=>{i(hm,"extendedEncodeURIComponent")});var Ra,rw=A(()=>{Ra=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var m6e,lce,S$,h6e=A(()=>{m6e=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;m6e[t]=e>>>0}lce=4294967295,S$=class{static{i(this,"Crc32Js")}digestLength=4;checksum=lce;update(e){for(let r=0;r<e.length;++r)this.checksum=this.checksum>>>8^m6e[(this.checksum^e[r])&255]}digestSync(){return(this.checksum^lce)>>>0}async digest(){let e=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e,!1),r}reset(){this.checksum=lce}}});function r9t(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 uce,A6e,nw,g6e=A(()=>{uce=R(require("node:zlib"));h6e();A6e=typeof uce.crc32=="function"?uce.crc32:void 0,nw=A6e?r9t(A6e):S$;i(r9t,"buildNativeClass")});var dce=A(()=>{g6e()});function y6e(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}var Am,pce=A(()=>{Xr();Am=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&&y6e(r),new t(r)}valueOf(){let e=this.bytes.slice(0),r=e[0]&128;return r&&y6e(e),parseInt(Ba(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}};i(y6e,"negate")});var sw,E6e,C6e,n9t,s9t,o9t,i9t,a9t,c9t,l9t,u9t,d9t,fce=A(()=>{Ot();Xr();pce();sw=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(!Ze(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(Am.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!d9t.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);let p=new Uint8Array(17);return p[0]=9,p.set(e$(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:C6e,value:!0};break;case 1:r[o]={type:C6e,value:!1};break;case 2:r[o]={type:n9t,value:e.getInt8(n++)};break;case 3:r[o]={type:s9t,value:e.getInt16(n,!1)},n+=2;break;case 4:r[o]={type:o9t,value:e.getInt32(n,!1)},n+=4;break;case 5:r[o]={type:i9t,value:new Am(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:let a=e.getUint16(n,!1);n+=2,r[o]={type:a9t,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:c9t,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,c))},n+=c;break;case 8:r[o]={type:l9t,value:new Date(new Am(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:u9t,value:`${Ba(l.subarray(0,4))}-${Ba(l.subarray(4,6))}-${Ba(l.subarray(6,8))}-${Ba(l.subarray(8,10))}-${Ba(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"})(E6e||(E6e={}));C6e="boolean",n9t="byte",s9t="short",o9t="integer",i9t="long",a9t="binary",c9t="string",l9t="timestamp",u9t="uuid",d9t=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function S6e({byteLength:t,byteOffset:e,buffer:r}){if(t<p9t)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(I6e,!1),a=n.getUint32(gm,!1),c=n.getUint32(t-hg,!1),l=new nw;if(l.update(new Uint8Array(r,e,gm)),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+gm,t-(gm+hg))),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+gm+hg,o),body:new Uint8Array(r,e+gm+hg+o,s-o-(gm+hg+hg))}}var I6e,gm,hg,p9t,w6e=A(()=>{dce();I6e=4,gm=I6e*2,hg=4,p9t=gm+hg*2;i(S6e,"splitMessage")});var ow,mce=A(()=>{dce();fce();w6e();ow=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(e,r){this.headerMarshaller=new sw(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 nw;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}=S6e(e);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}});var iw,hce=A(()=>{iw=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 aw,Ace=A(()=>{aw=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 cw,gce=A(()=>{cw=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 lw,yce=A(()=>{lw=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 w$(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 Ece=A(()=>{i(w$,"getChunkedStream")});function x6e(t,e){let r=bN(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 bN(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 Cce=A(()=>{i(x6e,"getUnmarshalledStream");i(bN,"getMessageUnmarshaller")});var Ag,b6e,Ice=A(()=>{mce();hce();Ace();gce();yce();Ece();Cce();Ag=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:r}){this.eventStreamCodec=new ow(e,r),this.utfEncoder=e}deserialize(e,r){let n=w$(e);return new cw({messageStream:new iw({inputStream:n,decoder:this.eventStreamCodec}),deserializer:bN(r,this.utfEncoder)})}serialize(e,r){return new aw({messageStream:new lw({inputStream:e,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},b6e=i(t=>new Ag(t),"eventStreamSerdeProvider")});async function*f9t(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 B6e,BN,R6e,N6e=A(()=>{B6e=require("node:stream");Ice();BN=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:r}){this.universalMarshaller=new Ag({utf8Decoder:r,utf8Encoder:e})}deserialize(e,r){let n=typeof e[Symbol.asyncIterator]=="function"?e:f9t(e);return this.universalMarshaller.deserialize(n,r)}serialize(e,r){return B6e.Readable.from(this.universalMarshaller.serialize(e,r))}},R6e=i(t=>new BN(t),"eventStreamSerdeProvider");i(f9t,"readableToIterable")});var T6e,_6e,P6e=A(()=>{T6e=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"),_6e=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 v6e,Q6e=A(()=>{v6e=i(t=>Object.assign(t,{eventStreamMarshaller:t.eventStreamSerdeProvider(t)}),"resolveEventStreamSerdeConfig")});var x$,D6e=A(()=>{Ot();Js();Xr();x$=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 S in f)if(Ze(f,S)&&S!=="__type"){m=S;break}let{additionalHeaders:h,body:g,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:g}})}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(Ze(m,y)&&y!=="__type"){h=y;break}let g=m[h].body;if(h===(s??"initial-response")){let y=await this.deserializer.read(r,g);return delete y[a],{[u]:!0,...y}}else if(h in l){let y=l[h];if(y.isStructSchema()){let E={},C=!1;for(let[S,b]of y.structIterator()){let{eventHeader:N,eventPayload:_}=b.getMergedTraits();if(C=C||!!(N||_),_)b.isBlobSchema()?E[S]=g:b.isStringSchema()?E[S]=(this.serdeContext?.utf8Encoder??Ni)(g):b.isStructSchema()&&(E[S]=await this.deserializer.read(b,g));else if(N){let v=m[h].headers[S]?.value;v!=null&&(b.isNumericSchema()?v&&typeof v=="object"&&"bytes"in v?E[S]=BigInt(v.toString()):E[S]=Number(v):E[S]=v)}}return{[h]:await this.readEventMember(y,g,C,E)}}return{[h]:await this.deserializer.read(y,g)}}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)Ze(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=Qu.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:g,eventPayload:y}=h.getMergedTraits();if(y)a=m;else if(g){let E=n[e][m],C="binary";h.isNumericSchema()?(-2)**31<=E&&E<=2**31-1?C="integer":C="long":h.isTimestampSchema()?C="timestamp":h.isStringSchema()?C="string":h.isBooleanSchema()&&(C="boolean"),E!=null&&(u[m]={type:C,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??bc)(d):d,eventType:o,explicitPayloadContentType:c,additionalHeaders:u}}}});var k6e={};St(k6e,{EventStreamCodec:()=>ow,EventStreamMarshaller:()=>BN,EventStreamSerde:()=>x$,HeaderMarshaller:()=>sw,Int64:()=>Am,MessageDecoderStream:()=>iw,MessageEncoderStream:()=>aw,SmithyMessageDecoderStream:()=>cw,SmithyMessageEncoderStream:()=>lw,UniversalEventStreamMarshaller:()=>Ag,eventStreamSerdeProvider:()=>R6e,getChunkedStream:()=>w$,getMessageUnmarshaller:()=>bN,getUnmarshalledStream:()=>x6e,iterableToReadableStream:()=>_6e,readableStreamToIterable:()=>T6e,resolveEventStreamSerdeConfig:()=>v6e,universalEventStreamSerdeProvider:()=>b6e});var O6e=A(()=>{mce();fce();pce();hce();Ace();gce();yce();N6e();P6e();Ice();Ece();Cce();Q6e();D6e()});var ym,b$=A(()=>{Ot();Js();Ot();rw();ym=class extends Ra{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=new Qu(e.defaultNamespace);for(let r of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return js}getResponseType(){return Vd}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)Ze(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)Ze(r.headers,n)&&(e.headers[n]=r.headers[n]);return e}}setHostPrefix(e,r,n){if(this.serdeContext?.disableHostPrefix)return;let s=Je.of(r.input),o=vu(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,!mN(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(()=>(O6e(),k6e)),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 B$,L6e=A(()=>{Ot();Js();Xr();Ot();b$();tw();I$();B$=class extends ym{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=Je.of(e?.input),d=[],p=[],f=!1,m,h=new js({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 g=vu(e.traits);if(g.http){h.method=g.http[0];let[y,E]=g.http[1].split("?");h.path=="/"?h.path=y:h.path+=y;let C=new URLSearchParams(E??"");for(let[S,b]of C)a[S]=b}}for(let[g,y]of u.structIterator()){let E=y.getMergedTraits()??{},C=s[g];if(C==null&&!y.isIdempotencyToken()){if(E.httpLabel&&(h.path.includes(`{${g}+}`)||h.path.includes(`{${g}}`)))throw new Error(`No value provided for input HTTP label: ${g}.`);continue}if(E.httpPayload)y.isStreaming()?y.isStructSchema()?s[g]&&(m=await this.serializeEventStream({eventStream:s[g],requestSchema:u})):m=C:(o.write(y,C),m=o.flush());else if(E.httpLabel){o.write(y,C);let S=o.flush();h.path.includes(`{${g}+}`)?h.path=h.path.replace(`{${g}+}`,S.split("/").map(hm).join("/")):h.path.includes(`{${g}}`)&&(h.path=h.path.replace(`{${g}}`,hm(S)))}else if(E.httpHeader)o.write(y,C),c[E.httpHeader.toLowerCase()]=String(o.flush());else if(typeof E.httpPrefixHeaders=="string")for(let S in C){if(!Ze(C,S))continue;let b=C[S],N=E.httpPrefixHeaders+S;o.write([y.getValueSchema(),{httpHeader:N}],b),c[N.toLowerCase()]=o.flush()}else E.httpQuery||E.httpQueryParams?this.serializeQuery(y,C,a):(f=!0,d.push(g),p.push(y))}if(f&&s){let[g,y]=(u.getName(!0)??"#Unknown").split("#"),E=u.getSchema()[6],C=[3,g,y,u.getMergedTraits(),d,p,void 0];E?C[6]=E:C.pop(),o.write(C,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(Ze(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=Je.of(e.output),a={};if(n.statusCode>=300){let l=await Do(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(!Ze(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 Do(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 Do(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=Je.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]=C$(n.body);else if(n.body){let g=await Do(n.body,r);g.byteLength>0&&(a[p]=await l.read(f,g))}}else if(m.httpHeader){let h=String(m.httpHeader).toLowerCase(),g=n.headers[h];if(g!=null)if(f.isListSchema()){let y=f.getValueSchema();y.getMergedTraits().httpHeader=h;let E;y.isTimestampSchema()&&y.getSchema()===4?E=Z2(g,",",2):E=jS(g);let C=[];for(let S of E)C.push(await l.read(y,S.trim()));a[p]=C}else a[p]=await l.read(f,g)}else if(m.httpPrefixHeaders!==void 0){a[p]={};for(let h in n.headers)if(Ze(n.headers,h)&&h.startsWith(m.httpPrefixHeaders)){let g=n.headers[h],y=f.getValueSchema();y.getMergedTraits().httpHeader=h,a[p][h.slice(m.httpPrefixHeaders.length)]=await l.read(y,g)}}else m.httpResponseCode?a[p]=n.statusCode:d.push(p)}return d.discardResponseBody=c,d}}});var uw,Sce=A(()=>{Ot();Js();Ot();b$();tw();uw=class extends ym{static{i(this,"RpcProtocol")}async serializeRequest(e,r,n){let s=this.serializer,o={},a={},c=await n.endpoint(),l=Je.of(e?.input),u=l.getSchema(),d,p=r&&typeof r=="object"?r:{},f=new js({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[g]of l.structIterator())g!==m&&p[g]!=null&&(h[g]=p[g]);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=Je.of(e.output),a={};if(n.statusCode>=300){let l=await Do(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(!Ze(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 Do(n.body,r);l.byteLength>0&&Object.assign(a,await s.read(o,l))}return a.$metadata=this.deserializeMetadata(n),a}}});var R$,wce=A(()=>{I$();R$=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=>hm(c)).join("/"):hm(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return t},"resolvedPath")});function M6e(t,e){return new RN(t,e)}var RN,F6e=A(()=>{Ot();wce();i(M6e,"requestBuilder");RN=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 js({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=R$(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 ko(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 Em=A(()=>{i(ko,"determineTimestampFormat")});var dw,xce=A(()=>{Js();Xr();rw();Em();dw=class extends Ra{static{i(this,"FromStringShapeDeserializer")}settings;constructor(e){super(),this.settings=e}read(e,r){let n=Je.of(e);if(n.isListSchema())return jS(r).map(s=>this.read(n.getValueSchema(),s));if(n.isBlobSchema())return(this.serdeContext?.base64Decoder??_u)(r);if(n.isTimestampSchema())switch(ko(n,this.settings)){case 5:return K2(r);case 6:return X2(r);case 7:return Y2(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=Kr.from(o)),o}return n.isNumericSchema()?Number(r):n.isBigIntegerSchema()?BigInt(r):n.isBigDecimalSchema()?new Rt(r,"bigDecimal"):n.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??Ni)((this.serdeContext?.base64Decoder??_u)(e))}}});var N$,U6e=A(()=>{Js();Xr();rw();xce();N$=class extends Ra{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(e,r){super(),this.codecDeserializer=e,this.stringDeserializer=new dw(r)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,r){let n=Je.of(e),s=n.getMergedTraits(),o=this.serdeContext?.utf8Encoder??Ni;if(s.httpHeader||s.httpResponseCode)return this.stringDeserializer.read(n,o(r));if(s.httpPayload){if(n.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??bc;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 pw,bce=A(()=>{Js();Xr();rw();Em();pw=class extends Ra{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(e){super(),this.settings=e}write(e,r){let n=Je.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(ko(n,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=pm(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??Qo)(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:J2(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=Kr.from(o)),n.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??Qo)(o.toString());return}this.stringBuffer=r;break;default:n.isIdempotencyToken()?this.stringBuffer=mg():this.stringBuffer=String(r)}}flush(){let e=this.stringBuffer;return this.stringBuffer="",e}}});var T$,$6e=A(()=>{Js();bce();T$=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(e,r,n=new pw(r)){this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,r){let n=Je.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 q6e,_$,H6e=A(()=>{q6e=R(qt()),_$=class{static{i(this,"Field")}name;kind;values;constructor({name:e,kind:r=q6e.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 P$,G6e=A(()=>{P$=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 z6e,V6e,W6e=A(()=>{z6e=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"),V6e=i(t=>({requestHandler:t.httpHandler()}),"resolveHttpHandlerRuntimeConfig")});function Bce(t){return e=>async r=>{let n=r.request;if(js.isInstance(n)){let{body:s,headers:o}=n;if(s&&Object.keys(o).map(a=>a.toLowerCase()).indexOf(j6e)===-1)try{let a=t(s);a!=null&&(n.headers={...n.headers,[j6e]:String(a)})}catch{}}return e({...r,request:n})}}var j6e,Rce,J6e,Y6e=A(()=>{Ot();j6e="content-length";i(Bce,"contentLengthMiddleware");Rce={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},J6e=i(t=>({applyToStack:i(e=>{e.add(Bce(t.bodyLengthChecker),Rce)},"applyToStack")}),"getContentLengthPlugin")});var Cm,m9t,v$=A(()=>{Cm=i(t=>encodeURIComponent(t).replace(/[!'()*]/g,m9t),"escapeUri"),m9t=i(t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode")});var K6e,X6e=A(()=>{v$();K6e=i(t=>t.split("/").map(Cm).join("/"),"escapeUriPath")});function Z6e(t){let e=[];for(let r of Object.keys(t).sort()){let n=t[r];if(r=Cm(r),Array.isArray(n))for(let s=0,o=n.length;s<o;s++)e.push(`${r}=${Cm(n[s])}`);else{let s=r;(n||typeof n=="string")&&(s+=`=${Cm(n)}`),e.push(s)}}return e.join("&")}var e9e=A(()=>{v$();i(Z6e,"buildQueryString")});var Oo,gg=A(()=>{Oo=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var fw,Nce=A(()=>{fw=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 Q$(){if(NN===void 0)try{if(typeof Buffer!="function")NN=!1;else{let t=JSON.parse(Buffer.from([123,125]));NN=t!==null&&typeof t=="object"}}catch{NN=!1}return NN}var NN,Tce=A(()=>{i(Q$,"detectBufferParsing")});function mw(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?A9t(n,e)?e:new Rt(n,"bigDecimal"):h9t(n)?new Rt(n,"bigDecimal"):/[eE]/.test(n)?g9t(n):BigInt(n)}return e}function h9t(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 A9t(t,e){if(t===String(e)||Object.is(e,-0))return!0;if(/[eE]/.test(t))return _ce(t)===_ce(String(e));let r=t.replace(/(\.\d*?)0+$/,"$1").replace(/\.$/,""),n=String(e);return r===n?!0:/[eE]/.test(n)?r===_ce(n):!1}function _ce(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 g9t(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 D$=A(()=>{Xr();i(mw,"jsonReviver");i(h9t,"isFractionalBigNumeric");i(A9t,"isRepresentable");i(_ce,"expandToDecimal");i(g9t,"expandExponentToBigInt")});function hw(t){let e=Je.of(t),r=e.getSchema();if(Array.isArray(r)&&e.isStructSchema()){if(Pce in r)return r[Pce];let n=k$(e,new Set);return r[Pce]=n,n}return k$(e,new Set)}function k$(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(k$(n,e))return!0}else if(t.isListSchema()||t.isMapSchema()){if(k$(t.getValueSchema(),e))return!0}else if(t.isDocumentSchema())return!0;return!1}var Pce,O$=A(()=>{Js();Pce=Symbol.for("@aws-sdk/reviver");i(hw,"needsReviver");i(k$,"_check")});var t9e,r9e=A(()=>{tw();Xr();t9e=i((t,e)=>Do(t,e).then(r=>(e?.utf8Encoder??Ni)(r)),"collectBodyString")});async function yg(t,e,r){let n;if(Q$()&&typeof t?.[Symbol.asyncIterator]=="function"){let o=await Do(t,e);typeof Buffer=="function"&&(Buffer.isBuffer(o)?n=o:n=Buffer.from(o.buffer,o.byteOffset,o.byteLength))}if(n||(n=await t9e(t,e)),n.length===0)return{};let s=r&&hw(r)?mw: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 s9e,n9e,vce,o9e,i9e,L$,a9e,TN=A(()=>{tw();r9e();Tce();D$();O$();i(yg,"parseJsonBody");s9e=i(async(t,e)=>{let r=await yg(t,e);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),n9e=i((t,e)=>Object.keys(t).find(r=>r.toLowerCase()===e.toLowerCase()),"findKey"),vce=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"),o9e=i((t,e)=>a9e(t,e,["header","code","type"]),"loadRestJsonErrorCode"),i9e=i((t,e,r=!1)=>a9e(t,e,r?["code","header","type"]:["type","code","header"]),"loadJsonRpcErrorCode"),L$=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"),a9e=i(({headers:t},e,r)=>{for(;r.length>0;)switch(r.shift()){case"header":let s=n9e(t??{},"x-amzn-errortype");if(s!==void 0)return vce(t[s]);break;case"code":let o=n9e(e??{},"code");if(o&&e[o]!==void 0)return vce(e[o]);break;case"type":if(e?.__type!==void 0)return vce(e.__type);break}},"loadErrorCode")});function Du(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var M$=A(()=>{i(Du,"writeKey")});var Aw,Qce=A(()=>{Em();Js();Xr();gg();Nce();Tce();D$();O$();TN();M$();Ot();Aw=class extends Oo{static{i(this,"JsonShapeDeserializer2")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=hw(e)?mw:void 0,s;if(typeof r=="string"){if(r.length===0)return{};s=JSON.parse(r,n)}else if(r instanceof Uint8Array&&Q$()){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 yg(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=Je.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)Ze(c,l)&&(l==="__proto__"&&Du(c),c[l]=this._read(a,c[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return _u(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Kr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(ko(s,this.settings)){case 5:return zS(r);case 6:return VS(r);case 7:return WS(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 Rt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Rt(a.string,a.type):new Rt(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 Rt||(r[a]=this._read(s,c))}else{let a=r;for(let c in a){if(!Ze(a,c))continue;c==="__proto__"&&Du(a);let l=a[c];l instanceof Rt||(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 fw(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(!Ze(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 F$,c9e,l9e=A(()=>{Xr();F$=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>c9e+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."),c9e=e),this.string=Ni(this)}return this.string}},c9e=0});function Dce(t){return F$.allocUnsafe(t)}var U$,u9e,d9e,y9t,E9t,gw,$$,q$,p9e,C9t,I9t,S9t,ku,f9e,yw,kce=A(()=>{Em();Js();Xr();gg();Ot();l9e();U$=new TextEncoder,u9e=123,d9e=125,y9t=91,E9t=93,gw=34,$$=58,q$=44,p9e=92,C9t=new Uint8Array([116,114,117,101]),I9t=new Uint8Array([102,97,108,115,101]),S9t=new Uint8Array([110,117,108,108]),ku=new Array(128).fill(null);ku[8]="b";ku[9]="t";ku[10]="n";ku[12]="f";ku[13]="r";ku[34]='"';ku[92]="\\";for(let t=0;t<32;t++)ku[t]===null&&(ku[t]="u00"+t.toString(16).padStart(2,"0"));f9e=2048;i(Dce,"alloc");yw=class t extends Oo{static{i(this,"JsonShapeSerializer2")}settings;json;i=0;rootSchema;rawValue;passthrough=!1;constructor(e){super(),this.settings=e,this.json=Dce(f9e)}write(e,r){this.i=0,this.rawValue=r,this.rootSchema=Je.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=Je.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),U$.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=Dce(f9e),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=Dce(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++]=gw;for(let o=0;o<r;++o)n[s++]=e.charCodeAt(o);n[s++]=gw,this.i=s}writeJsonString(e){let r=e.length;this.ensure(r*3+2),this.json[this.i++]=gw;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=ku[s];if(o!==null){this.ensure(o.length+1+(r-n-1)*3+1),this.json[this.i++]=p9e;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}=U$.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++]=gw}writeUnicodeEscape(e){let{json:r,i:n}=this;r[n++]=p9e,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++]=gw;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++]=gw,this.i=o}writeValue(e,r,n){if(r==null){if(n?.isStructSchema()){if(r===void 0&&Je.of(e).isIdempotencyToken()){this.writeAsciiQuoted(mg());return}return}this.ensure(4),this.json.set(S9t,this.i),this.i+=4;return}let s=Je.of(e),o=typeof r=="object";if(s.isStringSchema()){let a=s.getMergedTraits().mediaType;if(a&&(a==="application/json"||a.endsWith("+json"))){this.writeJsonString(Kr.from(r).toString());return}}if(this.settings.bigNumberAsString&&r!=null&&(s.isBigIntegerSchema()||s.isBigDecimalSchema())){let a=r instanceof Rt?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 Rt){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??Qo)(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(C9t,a),a+=4):(c.set(I9t,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++]=u9e;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++]=q$),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++]=$$,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++]=$$,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++]=q$),n=!0,this.writeAsciiQuoted(a),this.ensure(1),this.json[this.i++]=$$,this.writeValue(15,c,void 0)}this.ensure(1),this.json[this.i++]=d9e}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+=U$.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=y9t;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++]=q$),this.writeValue(o,l,void 0),a=!0)}this.ensure(1),this.json[this.i++]=E9t}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(!Ze(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+=U$.encodeInto(l,this.json.subarray(this.i)).written;return}this.ensure(2),this.json[this.i++]=u9e;let a=!0;for(let c in r){if(!Ze(r,c))continue;let l=r[c];(n?l===void 0:l==null&&!s)||(a||(this.ensure(1),this.json[this.i++]=q$),a=!1,this.writeJsonString(c),this.ensure(1),this.json[this.i++]=$$,this.writeValue(o,l,void 0))}this.ensure(1),this.json[this.i++]=d9e}writeTimestamp(e,r){switch(ko(e,this.settings)){case 5:{let s=r.toISOString().replace(".000Z","Z");this.writeAsciiQuoted(s);return}case 6:{this.writeAsciiQuoted(pm(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 Ew,Oce=A(()=>{gg();Qce();kce();Ew=class extends Oo{static{i(this,"JsonCodec2")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new yw(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Aw(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var H$,m9e=A(()=>{Sce();Js();Ot();Oce();TN();H$=class extends uw{static{i(this,"SmithyRpcV2JsonProtocol")}codec=new Ew({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()}),ug(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):s.body||(s.body="{}");let{service:o,operation:a}=fN(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=L$(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=Qu.for(l);u.copyFrom(d);let p;try{p=u.getSchema(a)}catch{s.Message&&(s.message=s.Message);let S=Qu.for("smithy.ts.sdk.synthetic."+l);u.copyFrom(S);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=Je.of(p),m=u.getErrorCtor(p),h=s.message??s.Message??"Unknown",g=new m({}),y={},E=this.codec.createDeserializer();for(let[C,S]of f.structIterator())s[C]!=null&&(y[C]=E.readObject(S,s[C]));throw Object.assign(g,c,{$fault:f.getMergedTraits().error,message:h},y)}getDefaultContentType(){return"application/json"}}});var Cw,Lce=A(()=>{Em();Js();Xr();Xr();Ot();gg();Nce();D$();O$();TN();M$();Cw=class extends Oo{static{i(this,"JsonShapeDeserializer")}settings;constructor(e){super(),this.settings=e}async read(e,r){let n=hw(e)?mw:void 0;return this._read(e,typeof r=="string"?JSON.parse(r,n):await yg(r,this.serdeContext,e))}readObject(e,r){return this._read(e,r)}_read(e,r){let n=r!==null&&typeof r=="object",s=Je.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 fw(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(!Ze(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)Ze(r,l)&&(l==="__proto__"&&Du(c),c[l]=this._read(a,r[l]));return c}}if(s.isBlobSchema()&&typeof r=="string")return _u(r);let o=s.getMergedTraits().mediaType;if(s.isStringSchema()&&typeof r=="string"&&o)return o==="application/json"||o.endsWith("+json")?Kr.from(r):r;if(s.isTimestampSchema()&&r!=null)switch(ko(s,this.settings)){case 5:return zS(r);case 6:return VS(r);case 7:return WS(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 Rt)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new Rt(a.string,a.type):new Rt(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(!Ze(r,c))continue;c==="__proto__"&&Du(a);let l=r[c];l instanceof Rt?a[c]=l:a[c]=this._read(s,l)}return a}else return structuredClone(r);return r}}});var h9e,G$,A9e=A(()=>{Xr();h9e="\u039D",G$=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 Rt){let n=`${h9e+"nv"+this.counter++}_`+r.string;return this.values.set(`"${n}"`,r.string),n}if(typeof r=="bigint"){let n=r.toString(),s=`${h9e+"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 Iw,Mce=A(()=>{Em();Js();Xr();gg();A9e();M$();Ot();Iw=class extends Oo{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,r){this.rootSchema=Je.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 G$;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=Je.of(e).getName(!0))}_write(e,r,n){let s=r!==null&&typeof r=="object",o=Je.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__"&&Du(c),c[f]=this._write(15,m)}}else if(typeof a.__type=="string")for(let p in a){if(!Ze(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(!Ze(r,u))continue;let d=r[u];(l||d!=null)&&(u==="__proto__"&&Du(c),c[u]=this._write(a,d))}return c}if(r instanceof Uint8Array&&o.isBlobSchema())return o===this.rootSchema?r:(this.serdeContext?.base64Encoder??Qo)(r);if(r instanceof Date&&(o.isTimestampSchema()||o.isDocumentSchema()))switch(ko(o,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return pm(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof Rt&&(this.useReplacer=!0)}if(!(r===null&&n?.isStructSchema())){if(o.isStringSchema()){if(typeof r>"u"&&o.isIdempotencyToken())return mg();let a=o.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Kr.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??Qo)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),o.isDocumentSchema())if(s){if(r instanceof Uint8Array)return(this.serdeContext?.base64Encoder??Qo)(r);let a=Array.isArray(r)?[]:{};for(let c in r){if(!Ze(r,c))continue;let l=r[c];c==="__proto__"&&Du(a),l instanceof Rt?(this.useReplacer=!0,a[c]=l):a[c]=this._write(o,l)}return a}else return structuredClone(r);return r}}}});var z$,g9e=A(()=>{gg();Lce();Mce();z$=class extends Oo{static{i(this,"JsonCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new Iw(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new Cw(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var y9e={};St(y9e,{Field:()=>_$,Fields:()=>P$,FromStringShapeDeserializer:()=>dw,HttpBindingProtocol:()=>B$,HttpInterceptingShapeDeserializer:()=>N$,HttpInterceptingShapeSerializer:()=>T$,HttpProtocol:()=>ym,HttpRequest:()=>js,HttpResponse:()=>Vd,JsonCodec:()=>z$,JsonCodec2:()=>Ew,JsonShapeDeserializer:()=>Cw,JsonShapeDeserializer2:()=>Aw,JsonShapeSerializer:()=>Iw,JsonShapeSerializer2:()=>yw,RequestBuilder:()=>RN,RpcProtocol:()=>uw,SerdeContext:()=>Ra,SmithyRpcV2JsonProtocol:()=>H$,ToStringShapeSerializer:()=>pw,buildQueryString:()=>Z6e,collectBody:()=>Do,contentLengthMiddleware:()=>Bce,contentLengthMiddlewareOptions:()=>Rce,determineTimestampFormat:()=>ko,escapeUri:()=>Cm,escapeUriPath:()=>K6e,extendedEncodeURIComponent:()=>hm,getContentLengthPlugin:()=>J6e,getHttpHandlerExtensionConfiguration:()=>z6e,isValidHostname:()=>mN,loadJsonRpcErrorCode:()=>i9e,loadRestJsonErrorCode:()=>o9e,loadSmithyRpcV2JsonErrorCode:()=>L$,parseJsonBody:()=>yg,parseJsonErrorBody:()=>s9e,parseQueryString:()=>AN,parseUrl:()=>lg,requestBuilder:()=>M6e,resolveHttpHandlerRuntimeConfig:()=>V6e,resolvedPath:()=>R$});var E9e=A(()=>{tw();I$();L6e();b$();Sce();F6e();wce();xce();U6e();$6e();bce();Em();rw();H6e();G6e();Ot();Ot();Ot();W6e();Y6e();v$();X6e();e9e();Ot();Ot();m9e();TN();g9e();Mce();Lce();Oce();kce();Qce()});var Yd=w(PN=>{var{hasOwn:b9e}=(Xr(),Z(cce)),{streamCollector:w9t}=(Xr(),Z(cce));PN.streamCollector=w9t;var{buildQueryString:B9e,HttpResponse:R9e}=(E9e(),Z(y9e)),V$=require("node:https"),{Readable:x9t}=require("node:stream"),Fce=require("node:http2");function j$(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(j$,"buildAbortError");var b9t=["ECONNRESET","EPIPE","ETIMEDOUT"],N9e=i(t=>{let e={};for(let r in t){if(!b9e(t,r))continue;let n=t[r];e[r]=Array.isArray(n)?n.join(","):n}return e},"getTransformedHeaders"),Yn={setTimeout:i((t,e)=>setTimeout(t,e),"setTimeout"),clearTimeout:i(t=>clearTimeout(t),"clearTimeout")},C9e=1e3,B9t=i((t,e,r=0)=>{if(!r)return-1;let n=i(s=>{let o=Yn.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",()=>{Yn.clearTimeout(o)}):Yn.clearTimeout(o)},"doWithSocket");t.socket?a(t.socket):t.on("socket",a)},"registerTimeout");return r<2e3?(n(0),0):Yn.setTimeout(n.bind(null,C9e),C9e)},"setConnectionTimeout"),R9t=i((t,e,r=0,n,s)=>r?Yn.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"),N9t=3e3,T9t=i((t,{keepAlive:e,keepAliveMsecs:r},n=N9t)=>{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):Yn.setTimeout(s,n)},"setSocketKeepAlive"),I9e=3e3,_9t=i((t,e,r=0)=>{let n=i(s=>{let o=r-s,a=i(()=>{t.destroy(),e(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))},"onTimeout");t.socket?(t.socket.setTimeout(o,a),t.on("close",()=>t.socket?.removeListener("timeout",a))):t.setTimeout(o,a)},"registerTimeout");return 0<r&&r<6e3?(n(0),0):Yn.setTimeout(n.bind(null,r===0?0:I9e),I9e)},"setSocketTimeout"),S9e=6e3;async function T9e(t,e,r=S9e,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(Yn.setTimeout(()=>l(!0),Math.max(S9e,r)))}),new Promise(l=>{t.on("continue",()=>{Yn.clearTimeout(a),l(!0)}),t.on("response",()=>{Yn.clearTimeout(a),l(!1)}),t.on("error",()=>{Yn.clearTimeout(a),l(!1)})})])),c&&P9t(t,e.body)}i(T9e,"writeRequestBody");function P9t(t,e){if(e instanceof x9t){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(P9t,"writeBody");var v9t=0,W$,w9e,Uce=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(!b9e(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,g=i(()=>{Yn.clearTimeout(d),Yn.clearTimeout(p),Yn.clearTimeout(f),Yn.clearTimeout(m),Yn.clearTimeout(h)},"clearTimeouts"),y=i(async D=>{await u,g(),c(D)},"resolve"),E=i(async D=>{await u,g(),l(D)},"reject");if(r?.aborted){let D=j$(r);E(D);return}let C=e.headers,S=C?(C.Expect??C.expect)==="100-continue":!1,b=a?s.httpsAgent:s.httpAgent;S&&!this.externalAgent&&(b=new(a?V$.Agent:W$)({keepAlive:!1,maxSockets:1/0})),d=Yn.setTimeout(()=>{this.socketWarningTimestamp=t.checkSocketUsage(b,this.socketWarningTimestamp,o)},s.socketAcquisitionWarningTimeout??(s.requestTimeout??2e3)+(s.connectionTimeout??1e3));let N=e.query?B9e(e.query):"",_;if(e.username!=null||e.password!=null){let D=e.username??"",ot=e.password??"";_=`${D}:${ot}`}let v=e.path;N&&(v+=`?${N}`),e.fragment&&(v+=`#${e.fragment}`);let J=e.hostname??"";J[0]==="["&&J.endsWith("]")?J=e.hostname.slice(1,-1):J=e.hostname;let Pe={headers:e.headers,host:J,method:e.method,path:v,port:e.port,agent:b,auth:_},Ue=(a?V$.request:w9e)(Pe,D=>{let ot=new R9e({statusCode:D.statusCode||-1,reason:D.statusMessage,headers:N9e(D.headers),body:D});y({response:ot})});if(Ue.on("error",D=>{b9t.includes(D.code)?E(Object.assign(D,{name:"TimeoutError"})):E(D)}),r){let D=i(()=>{Ue.destroy();let ot=j$(r);E(ot)},"onAbort");if(typeof r.addEventListener=="function"){let ot=r;ot.addEventListener("abort",D,{once:!0}),Ue.once("close",()=>ot.removeEventListener("abort",D))}else r.onabort=D}let fe=n??s.requestTimeout;p=B9t(Ue,E,s.connectionTimeout),f=R9t(Ue,E,fe,s.throwOnRequestTimeout,o??console),m=_9t(Ue,E,s.socketTimeout);let Ve=Pe.agent;typeof Ve=="object"&&"keepAlive"in Ve&&(h=T9t(Ue,{keepAlive:Ve.keepAlive,keepAliveMsecs:Ve.keepAliveMsecs})),u=T9e(Ue,e,fe,this.externalAgent).catch(D=>(g(),l(D)))})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>e===Symbol.for("logger")?{...n,logger:n.logger??r}:{...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;return{connectionTimeout:n,requestTimeout:r,socketTimeout:s,socketAcquisitionWarningTimeout:o,throwOnRequestTimeout:l,httpAgentProvider:i(async()=>{let f=require("node:http"),{Agent:m,request:h}=f.default??f;return w9e=h,W$=m,a instanceof W$||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new W$({keepAlive:d,maxSockets:p,...a})},"httpAgentProvider"),httpsAgent:c instanceof V$.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new V$.Agent({keepAlive:d,maxSockets:p,...c}),logger:u}}},Q9t=new Uint16Array(1),_N=class{static{i(this,"ClientHttp2SessionRef")}id=Q9t[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}},$ce=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map(r=>new _N(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()}},qce=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 _N(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 _N(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 $ce;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?Fce.connect(e):Fce.connect(e,this.connectOptions)}},{constants:x9e}=Fce,Hce=class t{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new qce({});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){this.config=await this.configProvider;let{disableConcurrentStreams:u,maxConcurrentStreams:d,nodeHttp2ConnectOptions:p}=this.config;this.connectionManager.setDisableConcurrentStreams(u??!1),d&&this.connectionManager.setMaxConcurrentStreams(d),p&&this.connectionManager.setNodeHttp2ConnectOptions(p)}let{requestTimeout:o,disableConcurrentStreams:a}=this.config,c=a||s,l=n??o;return new Promise((u,d)=>{let p=!1,f,m=i(async D=>{await f,u(D)},"resolve"),h=i(async D=>{await f,d(D)},"reject");if(r?.aborted){p=!0;let D=j$(r);h(D);return}let{hostname:g,method:y,port:E,protocol:C,query:S}=e,b="";if(e.username!=null||e.password!=null){let D=e.username??"",ot=e.password??"";b=`${D}:${ot}@`}let N=`${C}//${b}${g}${E?`:${E}`:""}`,_={destination:new URL(N)},v={requestTimeout:this.config?.sessionTimeout,isEventStream:s},J=c?this.connectionManager.createIsolatedSession(_,v):this.connectionManager.lease(_,v),Pe=J.deref(),De=i(D=>{c&&J.destroy(),p=!0,h(D)},"rejectWithDestroy"),Ue=S?B9e(S):"",fe=e.path;Ue&&(fe+=`?${Ue}`),e.fragment&&(fe+=`#${e.fragment}`);let Ve=Pe.request({...e.headers,[x9e.HTTP2_HEADER_PATH]:fe,[x9e.HTTP2_HEADER_METHOD]:y});if(l&&Ve.setTimeout(l,()=>{Ve.close();let D=new Error(`Stream timed out because of no activity for ${l} ms`);D.name="TimeoutError",De(D)}),r){let D=i(()=>{Ve.close();let ot=j$(r);De(ot)},"onAbort");if(typeof r.addEventListener=="function"){let ot=r;ot.addEventListener("abort",D,{once:!0}),Ve.once("close",()=>ot.removeEventListener("abort",D))}else r.onabort=D}Ve.on("frameError",(D,ot,re)=>{De(new Error(`Frame type id ${D} in stream id ${re} has failed with code ${ot}.`))}),Ve.on("error",De),Ve.on("aborted",()=>{De(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Ve.rstCode}.`))}),Ve.on("response",D=>{let ot=new R9e({statusCode:D[":status"]??-1,headers:N9e(D),body:Ve});p=!0,m({response:ot}),c&&(Pe.close(),Ve.on("end",()=>{J.destroy()}))}),Ve.on("close",()=>{if(c?J.destroy():this.connectionManager.release(_,J),!p){let D=new Error("Unexpected error: http2 request did not get a response");Pe.destroyed&&(D.name="TimeoutError"),De(D)}}),f=T9e(Ve,e,l)})}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>({...n,[e]:r}))}httpHandlerConfigs(){return this.config??{}}};PN.DEFAULT_REQUEST_TIMEOUT=v9t;PN.NodeHttp2Handler=Hce;PN.NodeHttpHandler=Uce});var Gce=w(P9e=>{var{setCredentialFeature:D9t}=(bt(),Z(gc)),{CredentialsProviderError:Eg}=(kt(),Z(pa)),{NodeHttpHandler:k9t}=Yd(),O9t=require("node:fs/promises"),{HttpRequest:L9t}=(Qe(),Z(cR)),{sdkStreamMixin:M9t,parseRfc3339DateTime:F9t}=(Te(),Z(WM)),U9t="169.254.170.2",$9t="169.254.170.23",q9t="[fd00:ec2::23]",H9t=i((t,e)=>{if(t.protocol!=="https:"&&!(t.hostname===U9t||t.hostname===$9t||t.hostname===q9t)){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 Eg(`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 G9t(t){return new L9t({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(G9t,"createGetRequest");async function z9t(t,e){let n=await M9t(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 Eg("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:F9t(s.Expiration)}}if(t.statusCode>=400&&t.statusCode<500){let s={};try{s=JSON.parse(n)}catch{}throw Object.assign(new Eg(`Server responded with status: ${t.statusCode}`,{logger:e}),{Code:s.Code,Message:s.Message})}throw new Eg(`Server responded with status: ${t.statusCode}`,{logger:e})}i(z9t,"getCredentials");var V9t=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"),W9t="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",j9t="http://169.254.170.2",J9t="AWS_CONTAINER_CREDENTIALS_FULL_URI",Y9t="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",K9t="AWS_CONTAINER_AUTHORIZATION_TOKEN",X9t=i((t={})=>{t.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let e,r=t.awsContainerCredentialsRelativeUri??process.env[W9t],n=t.awsContainerCredentialsFullUri??process.env[J9t],s=t.awsContainerAuthorizationToken??process.env[K9t],o=t.awsContainerAuthorizationTokenFile??process.env[Y9t],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=`${j9t}${r}`;else if(n)e=n;else throw new Eg(`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);H9t(c,t.logger);let l=k9t.create({connectionTimeout:t.timeout??1e3}),u=t.timeout??1e3,d=V9t(async()=>{let p=G9t(c);o?p.headers.Authorization=_9e((await O9t.readFile(o)).toString()):s&&(p.headers.Authorization=_9e(s));try{let f=await l.handle(p,{requestTimeout:u});return z9t(f.response).then(m=>D9t(m,"CREDENTIALS_HTTP","z"))}catch(f){throw new Eg(String(f),{logger:t.logger})}},t.maxRetries??3,t.timeout??1e3);return async()=>{try{return await d()}finally{l.destroy?.()}}},"fromHttp"),_9e=i(t=>{if(t.includes(`\r
`))throw new Eg("Authorization token contains invalid \\r\\n sequence.");return t},"validateToken");P9e.fromHttp=X9t});function Z9t(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function eKt(t){return{schemeId:"smithy.api#noAuth"}}var v9e,Q9e,D9e,zce=A(()=>{gs();Ie();v9e=i(async(t,e,r)=>({operation:Qt(e).operation,region:await Dt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(Z9t,"createAwsAuthSigv4HttpAuthOption");i(eKt,"createSmithyApiNoAuthHttpAuthOption");Q9e=i(t=>{let e=[];return t.operation==="CreateToken"?e.push(eKt(t)):e.push(Z9t(t)),e},"defaultSSOOIDCHttpAuthSchemeProvider"),D9e=i(t=>{let e=wu(t);return Object.assign(e,{authSchemePreference:Dt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var k9e,O9e,Vce=A(()=>{k9e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),O9e={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var Im,vN=A(()=>{Im={name:"@aws-sdk/nested-clients",version:"3.997.50",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.978.5","@aws-sdk/signature-v4-multi-region":"^3.996.49","@aws-sdk/types":"^3.975.0","@smithy/core":"^3.36.1","@smithy/fetch-http-handler":"^5.8.0","@smithy/node-http-handler":"^4.12.1","@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 Wce,L9e=A(()=>{Wce=Symbol("@smithy/core/cbor::tagSymbol")});var QN,jce=A(()=>{QN=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 eq(t){let e=t.getSchema(),r=e[M9e];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]=rKt(n[c]);let a={memberNames:n,memberSchemas:s,encodedKeys:o};return e[M9e]=a,a}function rKt(t){let e;tq?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 H9e(t){return tq?Buffer.allocUnsafe(t):new Uint8Array(t)}function bw(t,e,r,n){if(e==null){if(e===void 0&&t.isIdempotencyToken()){Ou(wi());return}Nt(1),$e[Se++]=246;return}if(t.isUnitSchema()){Nt(1),Dn(5,0);return}if(typeof e=="object"){if(t.isBlobSchema()&&e instanceof Uint8Array){J$(e);return}if(t.isTimestampSchema()&&e instanceof Date){Xce(e);return}if(t.isStructSchema()){sKt(t,e,n);return}if(Array.isArray(e)&&(t.isListSchema()||t.isDocumentSchema())){$9e(t,e,t.isDocumentSchema(),n);return}if(t.isMapSchema()){Yce(t,e,!1,n);return}if(e instanceof Date){Xce(e);return}if(e instanceof Uint8Array){J$(e);return}if(e instanceof Xe){V9e(e);return}if(e[Wce]){let o=e;z9e(o.tag,o.value);return}if(t.isDocumentSchema()){Array.isArray(e)?$9e(t,e,!0,n):Yce(t,e,!0,n);return}if(t.isBigDecimalSchema()){Bw(e);return}Yce(t,e,!0,n);return}if(typeof e=="string"){if(t.isBlobSchema()){let o=(n?.base64Decoder??Nr)(e);J$(o);return}Ou(e);return}if(typeof e=="number"){Nt(9),Number.isInteger(e)&&e>=-9007199254740992&&e<=9007199254740991?rq(e):ole(e);return}if(typeof e=="boolean"){Nt(1),$e[Se++]=224|(e?21:20);return}if(typeof e=="bigint"){X$(e);return}Ou(String(e))}function sKt(t,e,r){if(t.isUnionSchema()){let p=!1;for(let[f,m]of t.structIterator()){let h=e[f];if(h!=null){Nt(9),Dn(5,1),Ou(f),bw(m,h,t,r),p=!0;break}}if(!p){let{$unknown:f}=e;Array.isArray(f)?(Nt(9),Dn(5,1),Ou(f[0]),Bw(f[1])):(Nt(9),Dn(5,0))}return}let n=eq(t),{memberNames:s,memberSchemas:o,encodedKeys:a}=n,c=s.length,l;c<24?l=1:c<256?l=2:l=3,Nt(l);let u=Se;Se+=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];Nt(m.length),$e.set(m,Se),Se+=m.length,bw(o[p],f,t,r),++d}if(typeof e.__type=="string")for(let p in e)X(e,p)&&(s.includes(p)||(Ou(p),Bw(e[p]),++d));l===1?$e[u]=160|d:l===2?($e[u]=184,$e[u+1]=d):($e[u]=185,$e[u+1]=d>>8,$e[u+2]=d&255)}function $9e(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)}Nt(9),Dn(4,a.length);for(let c=0;c<a.length;++c)bw(o,a[c],void 0,n)}else{let a=0;for(let c=0;c<e.length;++c)e[c]!=null&&++a;Nt(9),Dn(4,a);for(let c=0;c<e.length;++c)e[c]!=null&&bw(o,e[c],void 0,n)}}function Yce(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)}Nt(9),Dn(5,a.length);for(let c=0;c<a.length;++c){let l=a[c];Ou(l),bw(o,e[l],void 0,n)}}function Bw(t){if(t==null){Nt(1),$e[Se++]=246;return}if(typeof t=="string"){Ou(t);return}if(typeof t=="number"){Nt(9),Number.isInteger(t)&&t>=-9007199254740992&&t<=9007199254740991?rq(t):ole(t);return}if(typeof t=="boolean"){Nt(1),$e[Se++]=224|(t?21:20);return}if(typeof t=="bigint"){X$(t);return}if(t instanceof Uint8Array){J$(t);return}if(t instanceof Date){Xce(t);return}if(t instanceof Xe){V9e(t);return}if(t[Wce]){let e=t;z9e(e.tag,e.value);return}if(Array.isArray(t)){Nt(9),Dn(4,t.length);for(let e=0;e<t.length;++e)Bw(t[e]);return}if(typeof t=="object"){let e=Object.keys(t);Nt(9),Dn(5,e.length);for(let r=0;r<e.length;++r)Ou(e[r]),Bw(t[e[r]]);return}Ou(String(t))}function Nt(t){if(Se+t>$e.length){let e=$e.length*2;for(;e<Se+t;)e*=2;let r=H9e(e);r.set($e.subarray(0,Se)),$e=r,Ig=new DataView(r.buffer,r.byteOffset,r.byteLength)}}function Dn(t,e){if(e<24)$e[Se++]=t<<5|e;else if(e<256)$e[Se++]=t<<5|24,$e[Se++]=e;else if(e<65536)$e[Se++]=t<<5|25,$e[Se++]=e>>8,$e[Se++]=e&255;else if(e<4294967296)$e[Se++]=t<<5|26,Ig.setUint32(Se,e),Se+=4;else{$e[Se++]=t<<5|27;let r=e/4294967296|0,n=e-r*4294967296|0;Ig.setUint32(Se,r),Ig.setUint32(Se+4,n),Se+=8}}function G9e(t,e){let r=Number(e);if(r<4294967296){Dn(t,r);return}$e[Se++]=t<<5|27,Ig.setBigUint64(Se,e),Se+=8}function Ou(t){let e=t.length;if(e<=23){let r=Sw.get(t);if(r){Nt(r.bytes.length),$e.set(r.bytes,Se),Se+=r.bytes.length,r.epoch=Jce;return}let n=Se;q9e(t,e);let s=Se,o=Uint8Array.prototype.slice.call($e,n,s);if(Sw.size>=F9e){if(U9e)return;let a=0;for(let[c,l]of Sw){if(a>=1024)break;l.epoch!==Jce&&(Sw.delete(c),++a)}if(a===0){U9e=!0;return}}Sw.size<F9e&&Sw.set(t,{epoch:Jce,bytes:o});return}q9e(t,e)}function q9e(t,e){if(tq){let r=e*3;Nt(r+9);let n=Buffer.byteLength(t);Dn(3,n),Se+=$e.write(t,Se)}else{let r=e*3;Nt(r+9);let n=Se,o=nKt.encodeInto(t,$e.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&&$e.copyWithin(n+a,n+9,n+9+o),Se=n,Dn(3,o),Se+=o}}function ole(t){Nt(9),$e[Se++]=251,Ig.setFloat64(Se,t),Se+=8}function rq(t){Nt(9);let e=t>=0,r=e?0:1,n=e?t:-t-1;Dn(r,n)}function X$(t){let e=t>=0,r=e?0:1,n=e?t:-t-BigInt(1);if(n<BigInt("18446744073709551616"))Nt(9),G9e(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);Nt(o+16),$e[Se++]=e?194:195,Dn(2,o),$e.set(a,Se),Se+=o}}function J$(t){Nt(t.length+9),Dn(2,t.length),$e.set(t,Se),Se+=t.length}function z9e(t,e){Nt(9),typeof t=="bigint"?G9e(6,t):Dn(6,t),Bw(e)}function V9e(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(".",""));Nt(9),$e[Se++]=196,Dn(4,2),Nt(9),a>=-0x20000000000000n&&a<=0x1fffffffffffffn?rq(Number(a)):X$(a),X$(c)}function Xce(t){Nt(18),Dn(6,1);let e=t.getTime()/1e3;Number.isInteger(e)?rq(e):ole(e)}var K$,M9e,tq,nKt,Kce,$e,Ig,Se,F9e,Sw,Jce,U9e,ile=A(()=>{Ce();Qe();We();Te();L9e();K$=class extends Tn{static{i(this,"CborShapeSerializer2")}write(e,r){Se=0;let n=O.of(e);bw(n,r,void 0,this.serdeContext)}flush(){let e=$e.subarray(0,Se);return Se=0,$e=H9e(Kce),Ig=new DataView($e.buffer,$e.byteOffset,$e.byteLength),e}},M9e=Symbol.for("@smithy/cbor-struct-cache");i(eq,"loadCborStructIterator");i(rKt,"encodeCborStringKey");tq=typeof Buffer<"u",nKt=new TextEncoder,Kce=2048,$e=tq?Buffer.allocUnsafe(Kce):new Uint8Array(Kce),Ig=new DataView($e.buffer,$e.byteOffset,$e.byteLength),Se=0,F9e=2048,Sw=new Map,Jce=0,U9e=!1;i(H9e,"allocUnsafe");i(bw,"writeValue");i(sKt,"writeStruct");i($9e,"writeList");i(Yce,"writeMap");i(Bw,"writeUntypedValue");i(Nt,"ensure");i(Dn,"encodeHeader");i(G9e,"encodeBigHeader");i(Ou,"writeString");i(q9e,"writeStringUncached");i(ole,"writeFloat64");i(rq,"writeInteger");i(X$,"writeBigInt");i(J$,"writeBytes");i(z9e,"writeTag");i(V9e,"writeNumericValue");i(Xce,"writeTimestamp")});function Ti(t){if(te>=kn)throw new Error("unexpected end of CBOR payload.");let e=(Tr[te]&224)>>5;if((Tr[te]&31)===31&&e>=2&&e<=5)return lKt(t,e);switch(e){case 0:return mKt();case 1:return hKt();case 2:return aq();case 3:return Rw();case 4:return oKt(t);case 5:return iKt(t);case 6:return cKt(t);case 7:return gKt();default:throw new Error(`unexpected CBOR major type ${e}.`)}}function oKt(t){let e=iq(),r=t.isListSchema()?t.getValueSchema():t,n=Array(e);for(let s=0;s<e;++s)n[s]=Ti(r);return n}function iKt(t){let e=iq();if(t.isStructSchema())return aKt(t,e,te);let r=t.isMapSchema()?t.getValueSchema():t,n={};for(let s=0;s<e;++s){let o=Rw();n[o]=Ti(r)}return n}function aKt(t,e,r){let n=t.isUnionSchema(),s=eq(t),{memberSchemas:o,encodedKeys:a,memberNames:c}=s,l=a.length,u={},d,p,f=0,m=!1,h=0;for(let g=0;g<e;++g){let y=Y9e(a,l,h);if(y>=0){h=y+1,h>=l&&(h=0);let E=Ti(o[y]);E!=null&&(u[c[y]]=E)}else{let E=Rw(),C=Ti(O.of(15));E==="__type"&&typeof C=="string"?m=!0:(d=E,p=C,++f)}}if(n){let g=!0;for(let y in u)if(X(u,y)){g=!1;break}g&&f===1&&(u.$unknown=[d,p])}else if(m){te=r;let g=O.of(15);for(let y=0;y<e;++y){let E=Rw(),C=Ti(g);E in u||(u[E]=C)}}return u}function cKt(t){let e=oq(),r=typeof e=="bigint"?Number(e):e;if(r===1){let o=O.of(15),a=Ti(o);return mf(a)}if(r===2||r===3){let o=aq(),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=Ti(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 g=c,y="0".repeat(Math.abs(g)+1)+p;m=g===0?y:y.slice(0,y.length+g)+"."+y.slice(g),m=m.replace(/^0+/g,""),m===""&&(m="0"),m[0]==="."&&(m="0"+m),m=f+m}else{let g=BigInt(c);if(p.length===1)m=f+p+"e"+String(g);else{let y=g+BigInt(p.length-1);m=f+p[0]+"."+p.slice(1)+"e"+String(y)}}return sM(m)}let n=O.of(15),s=Ti(n);return{tag:K9e(e),value:s}}function lKt(t,e){switch(e){case 3:return uKt();case 2:return dKt();case 4:return pKt(t);case 5:return fKt(t);default:throw new Error(`unexpected indefinite length for major ${e}.`)}}function uKt(){te+=1;let t=[],e=0;for(;te<kn;){if(Tr[te]===255){te+=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 J9e?Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString("utf-8"):cle.decode(n)}let r=aq();t.push(r),e+=r.length}throw new Error("expected break marker.")}function dKt(){te+=1;let t=[],e=0;for(;te<kn;){if(Tr[te]===255){te+=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=aq();t.push(r),e+=r.length}throw new Error("expected break marker.")}function pKt(t){te+=1;let e=t.isListSchema()?t.getValueSchema():t,r=[];for(;te<kn;){if(Tr[te]===255)return te+=1,r;r.push(Ti(e))}throw new Error("expected break marker.")}function fKt(t){if(te+=1,t.isStructSchema()){let n=eq(t),{memberSchemas:s,encodedKeys:o,memberNames:a}=n,c=o.length,l=t.isUnionSchema(),u={},d,p,f=0,m=0;for(;te<kn;){if(Tr[te]===255){if(te+=1,l){let g=!0;for(let y in u)if(X(u,y)){g=!1;break}g&&f===1&&(u.$unknown=[d,p])}return u}let h=Y9e(o,c,m);if(h>=0){m=h+1,m>=c&&(m=0);let g=Ti(s[h]);g!=null&&(u[a[h]]=g)}else{let g=Rw(),y=Ti(O.of(15));g!=="__type"&&(d=g,p=y,++f)}}throw new Error("expected break marker.")}let e=t.isMapSchema()?t.getValueSchema():t,r={};for(;te<kn;){if(Tr[te]===255)return te+=1,r;let n=Rw();r[n]=Ti(e)}throw new Error("expected break marker.")}function Y9e(t,e,r){let n=t[r];if(te+n.length<=kn&&j9e(te,n))return te+=n.length,r;for(let s=0;s<e;++s){if(s===r)continue;let o=t[s];if(te+o.length<=kn&&j9e(te,o))return te+=o.length,s}return-1}function j9e(t,e){let r=e.length;if(Tr[t]!==e[0])return!1;for(let n=1;n<r;++n)if(Tr[t+n]!==e[n])return!1;return!0}function oq(){let t=Tr[te]&31;if(t<24)return te+=1,t;switch(t){case 24:return kn-te<2&&Kd(1),te+=2,Tr[te-1];case 25:return kn-te<3&&Kd(2),te+=3,Sm.getUint16(te-2);case 26:return kn-te<5&&Kd(4),te+=5,Sm.getUint32(te-4);case 27:{kn-te<9&&Kd(8),te+=9;let e=Sm.getUint32(te-8);return e<2097152?e*4294967296+Sm.getUint32(te-4):Sm.getBigUint64(te-8)}default:throw new Error(`unexpected minor value ${t}.`)}}function iq(){let t=oq();return typeof t=="bigint"?Number(t):t}function mKt(){let t=oq();return K9e(t)}function hKt(){let t=oq();return typeof t=="bigint"?BigInt(-1)-t:-1-t}function aq(){let t=iq();kn-te<t&&Kd(t);let e=te;return te+=t,Tr.subarray(e,e+t)}function Rw(){let t=iq();kn-te<t&&Kd(t);let e=te;return te+=t,t<24?AKt(e,t):lle?Tr.toString("utf-8",e,e+t):cle.decode(Tr.subarray(e,e+t))}function AKt(t,e){let r=e;for(let a=0;a<e;++a)r=r*31+Tr[t+a]|0;let n=r>>>0&ule-1,s=W9e[n];if(s!==void 0&&s.length===e){let a=!0;for(let c=0;c<e;++c)if(s.charCodeAt(c)!==Tr[t+c]){a=!1;break}if(a)return ale[n]=ON,s}let o=lle?Tr.toString("utf-8",t,t+e):cle.decode(Tr.subarray(t,t+e));return ale[n]!==ON&&(W9e[n]=o,ale[n]=ON),o}function gKt(){let t=te,e=Tr[t]&31;switch(e){case 21:return te=t+1,!0;case 20:return te=t+1,!1;case 22:return te=t+1,null;case 23:return te=t+1,null;case 25:return kn-t<3&&Kd(2),te=t+3,yKt(Tr[t+1],Tr[t+2]);case 26:return kn-t<5&&Kd(4),te=t+5,Sm.getFloat32(t+1);case 27:return kn-t<9&&Kd(8),te=t+9,Sm.getFloat64(t+1);default:throw new Error(`unexpected minor value ${e} for major 7.`)}}function yKt(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 K9e(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 Kd(t){throw new Error(`CBOR: length ${t} greater than remaining buffer length.`)}function nq(t,e){if(t.isTimestampSchema()){if(typeof e=="number")return mf(e);if(typeof e=="object"&&e!==null&&e.tag===1&&"value"in e)return mf(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 Xe||t.isDocumentSchema())return e;if(t.isListSchema()){let n=t.getValueSchema(),s=[];for(let o of e)s.push(nq(n,o));return s}let r={};if(t.isMapSchema()){let n=t.getValueSchema();for(let s in e)X(e,s)&&(r[s]=nq(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]=nq(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 sq,J9e,cle,Tr,lle,Sm,te,kn,ule,W9e,ale,ON,X9e=A(()=>{Ce();Qe();We();Te();ile();sq=class extends Tn{static{i(this,"CborShapeDeserializer2")}read(e,r){return Tr=r,lle=J9e&&r instanceof Buffer,Sm=new DataView(r.buffer,r.byteOffset,r.byteLength),te=0,kn=r.length,ON=ON+1&65535,Ti(O.of(e))}readValue(e,r){return nq(O.of(e),r)}},J9e=typeof Buffer<"u",cle=new TextDecoder,Tr=new Uint8Array(0),lle=!1,Sm=new DataView(new ArrayBuffer(0)),te=0,kn=0,ule=2048,W9e=new Array(ule),ale=new Uint16Array(ule),ON=0;i(Ti,"readValue");i(oKt,"readList");i(iKt,"readMap");i(aKt,"readStruct");i(cKt,"readTag");i(lKt,"readIndefinite");i(uKt,"readUtf8StringIndefinite");i(dKt,"readByteStringIndefinite");i(pKt,"readListIndefinite");i(fKt,"readMapIndefinite");i(Y9e,"matchStructKey");i(j9e,"bytesMatch");i(oq,"decodeArgument");i(iq,"decodeCount");i(mKt,"readUnsignedInt");i(hKt,"readNegativeInt");i(aq,"readByteString");i(Rw,"readUtf8String");i(AKt,"decodeUtf8Cached");i(gKt,"readSpecial");i(yKt,"bytesToFloat16");i(K9e,"castBigInt");i(Kd,"overflow");i(nq,"transformObject")});var cq,Z9e=A(()=>{Qe();ile();X9e();cq=class extends Tn{static{i(this,"CborCodec")}createSerializer(){let e=new K$;return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new sq;return e.setSerdeContext(this.serdeContext),e}}});var LN,eKe=A(()=>{Qe();We();Ce();Z9e();jce();LN=class extends ha{static{i(this,"SmithyRpcV2CborProtocol")}codec=new cq;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:r}){super({defaultNamespace:e,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}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-cbor",accept:this.getDefaultContentType()}),Io(e.input)==="unit"?(delete s.body,delete s.headers["content-type"]):(s.body||(this.serializer.write(15,{}),s.body=this.serializer.flush()),s.body instanceof Uint8Array&&(s.headers["content-length"]=String(s.body.byteLength)));let{service:o,operation:a}=Qt(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=QN(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(xt.for(u)),f.push(xt.for(l));let[m,h,g]=this.resolveError(d,c,f);if(g==="native"||g==="synthetic"){s.Message&&(s.message=s.Message);let b=g==="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",C=new h({}),S={};for(let[b,N]of y.structIterator())S[b]=this.deserializer.readValue(N,s[b]);throw Object.assign(C,p,{$fault:y.getMergedTraits().error,message:E},S)}getDefaultContentType(){return"application/cbor"}}});var tKe=A(()=>{jce();eKe()});var Na,Nw=A(()=>{Ie();We();Na=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=xt.for(s),a=xt.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=BA(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 BA(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 lq,rKe=A(()=>{tKe();We();Nw();lq=class extends LN{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:r,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:r}),this.awsQueryCompatible=!!n,this.mixin=new Na(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]:QN(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,g]of u.structIterator())s[h]!=null&&(m[h]=this.deserializer.readValue(g,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 wm,uq=A(()=>{Qe();We();Nw();wm=class extends ha{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 Aa({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!s,this.mixin=new Na(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"),(Io(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=pI(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={},g=this.codec.createDeserializer();for(let[y,E]of d.structIterator())s[y]!=null&&(h[y]=g.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 dq,nKe=A(()=>{uq();dq=class extends wm{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 pq,sKe=A(()=>{uq();pq=class extends wm{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 Lu,oKe=A(()=>{Qe();We();Nw();Lu=class extends If{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new Na;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 Aa(s),this.serializer=new bf(this.codec.createSerializer(),s),this.deserializer=new xf(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=dI(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[g,y]of u.structIterator()){let E=y.getMergedTraits().jsonName??g;m[g]=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 hq=w(mq=>{var EKt=/[&<>"]/g,CKt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function IKt(t){return t.replace(EKt,e=>CKt[e])}i(IKt,"escapeAttribute");var SKt=/[&"'<>\r\n\u0085\u2028]/g,wKt={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","\x85":"&#x85;","\u2028":"&#x2028;"};function xKt(t){return t.replace(SKt,e=>wKt[e])}i(xKt,"escapeElement");var fq=class{static{i(this,"XmlText")}value;constructor(e){this.value=e}toString(){return xKt(""+this.value)}},ple=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 fq(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}="${IKt(""+o)}"`)}return r+=e?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}};function dle(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}i(dle,"writeKey");function bKt(t){return new fle(t).parse()}i(bKt,"parseXML");var fle=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__"&&dle(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__"&&dle(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__"&&dle(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]??"")}};mq.XmlNode=ple;mq.XmlText=fq;mq.parseXML=bKt});var Mu,MN=A(()=>{Mu=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(e){this.serdeContext=e}}});var Aq,iKe=A(()=>{Aq=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 aKe(t){Object.defineProperty(t,"__proto__",{value:void 0,writable:!0,enumerable:!0,configurable:!0})}var cKe=A(()=>{i(aKe,"writeKey")});var lKe,xm,gq=A(()=>{lKe=R(hq());Ie();Qe();We();Te();MN();iKe();cKe();xm=class extends Mu{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(e){super(),this.settings=e,this.stringDeserializer=new wf(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??Kt)(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__"&&aKe(a),a[m]=this.readSchema(l,h)}return a}if(n.isStructSchema()){let c=n.isUnionSchema(),l;c&&(l=new Aq(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,lKe.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]),NA(o)}return{}}}});var Tw,mle=A(()=>{Qe();We();Te();Te();MN();Tw=class extends Mu{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??Ht)(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(wi()));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 Xe?r.string:String(r)));else if(s.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(n),_n(s,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(yi(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(),g=this.getKey("value",h.xmlName,h.ec2QueryName),y=c?`${n}${l}.${g}`:`${n}entry.${l}.${g}`;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+=`&${lc(e)}=`}writeValue(e){this.buffer+=lc(e)}}});var bm,hle=A(()=>{Qe();We();Nw();gq();mle();bm=class extends ha{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new Na;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 Tw(r),this.deserializer=new xm(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",(Io(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 fn(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 fn(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[g,y]of p.structIterator()){let E=y.getMergedTraits().xmlName??g,C=c[E]??s[E];h[g]=this.deserializer.readSchema(y,C)}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 yq,uKe=A(()=>{hle();yq=class extends bm{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 dKe,pKe=A(()=>{Qe();Te();dKe=i((t,e)=>fn(t,e).then(r=>(e?.utf8Encoder??Kt)(r)),"collectBodyString")});var fKe,Ale,mKe,Eq,gle=A(()=>{fKe=R(hq());Ie();pKe();Ale=i((t,e)=>dKe(t,e).then(r=>{if(r.length){let n;try{n=(0,fKe.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]),NA(a)}return{}}),"parseXmlBody"),mKe=i(async(t,e)=>{let r=await Ale(t,e);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),Eq=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 Ys,_w,yle=A(()=>{Ys=R(hq());Qe();We();Te();Te();MN();_w=class extends Mu{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??Nr)(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=Ys.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=Ys.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=Ys.XmlNode.of(d);if(typeof p!="string")if(r instanceof Ys.XmlNode||r instanceof Ys.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 g=this.writeStruct(a,h,p);m.addChildNode(g.withName(u?o.xmlName??e.getMemberName():c.xmlName??"member"))}else{let g=Ys.XmlNode.of(u?o.xmlName??e.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,h,g,p),m.addChildNode(g)}},"writeItem");if(u)for(let m of r)(l||m!=null)&&f(n,m);else{let m=Ys.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,[g,y]=this.getXmlnsAttribute(e,s),E=i((C,S,b)=>{let N=Ys.XmlNode.of(u,S),[_,v]=this.getXmlnsAttribute(c,y);v&&N.addAttribute(_,v),C.addChildNode(N);let J=Ys.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),C.addChildNode(J)},"addKeyValue");if(h)for(let C in r){let S=r[C];if(m||S!=null){let b=Ys.XmlNode.of(a.xmlName??e.getMemberName());E(b,C,S),n.addChildNode(b)}}else{let C;o||(C=Ys.XmlNode.of(a.xmlName??e.getMemberName()),y&&C.addAttribute(g,y),n.addChildNode(C));for(let S in r){let b=r[S];if(m||b!=null){let N=Ys.XmlNode.of("entry");E(N,S,b),(o?n:C).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??Ht)(r);else if(n.isTimestampSchema()&&r instanceof Date)switch(_n(n,this.settings)){case 5:s=r.toISOString().replace(".000Z","Z");break;case 6:s=yi(r);break;case 7:s=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),s=yi(r);break}else{if(n.isBigDecimalSchema()&&r)return r instanceof Xe?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=wi():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 Ys.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 Pw,Ele=A(()=>{MN();gq();yle();Pw=class extends Mu{static{i(this,"XmlCodec")}settings;constructor(e){super(),this.settings=e}createSerializer(){let e=new _w(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){let e=new xm(this.settings);return e.setSerdeContext(this.serdeContext),e}}});var Cq,hKe=A(()=>{Qe();We();Nw();gle();Ele();Cq=class extends If{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new Na;constructor(e){super(e);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new Pw(r),this.serializer=new bf(this.codec.createSerializer(),r),this.deserializer=new xf(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=Eq(n,s)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),s.Error&&typeof s.Error=="object")for(let g of Object.keys(s.Error))s[g]=s.Error[g],g.toLowerCase()==="message"&&(s.message=s.Error[g]);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[g,y]of u.structIterator()){let E=y.getMergedTraits().xmlName??g,C=s.Error?.[E]??s[E];m[g]=h.readSchema(y,C)}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 AKe,gKe=A(()=>{Te();AKe=i(t=>{if(t!=null)return typeof t=="object"&&"__type"in t&&delete t.__type,YL(t)},"awsExpectUnion")});var yKe,EKe,CKe,IKe=A(()=>{yKe=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"),EKe=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"),CKe=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 Cle={};St(Cle,{AwsEc2QueryProtocol:()=>yq,AwsJson1_0Protocol:()=>dq,AwsJson1_1Protocol:()=>pq,AwsJsonRpcProtocol:()=>wm,AwsQueryProtocol:()=>bm,AwsRestJsonProtocol:()=>Lu,AwsRestXmlProtocol:()=>Cq,AwsSmithyRpcV2CborProtocol:()=>lq,JsonCodec:()=>mI,JsonCodec2:()=>Aa,JsonShapeDeserializer:()=>Tf,JsonShapeDeserializer2:()=>Rf,JsonShapeSerializer:()=>_f,JsonShapeSerializer2:()=>Nf,QueryShapeSerializer:()=>Tw,XmlCodec:()=>Pw,XmlShapeDeserializer:()=>xm,XmlShapeSerializer:()=>_w,_toBool:()=>EKe,_toNum:()=>CKe,_toStr:()=>yKe,awsExpectUnion:()=>AKe,loadJsonRpcErrorCode:()=>pI,loadRestJsonErrorCode:()=>dI,loadRestXmlErrorCode:()=>Eq,parseJsonBody:()=>Ld,parseJsonErrorBody:()=>f1,parseXmlBody:()=>Ale,parseXmlErrorBody:()=>mKe});var Sg=A(()=>{rKe();nKe();sKe();uq();oKe();Qe();uKe();hle();mle();hKe();Ele();gq();yle();gle();gKe();IKe()});var FN,wg,Iq,SKe,BKe,Sq,Ile,wKe,Sle,vw,xKe,bKe,BKt,Lo,RKt,RKe,NKe=A(()=>{Gt();FN="ref",wg=-1,Iq=!0,SKe="isSet",BKe="PartitionResult",Sq="booleanEquals",Ile="getAttr",wKe={[FN]:"Endpoint"},Sle={[FN]:BKe},vw={},xKe=[{[FN]:"Region"}],bKe={conditions:[[SKe,[wKe]],[SKe,xKe],["aws.partition",xKe,BKe],[Sq,[{[FN]:"UseFIPS"},Iq]],[Sq,[{[FN]:"UseDualStack"},Iq]],[Sq,[{fn:Ile,argv:[Sle,"supportsDualStack"]},Iq]],[Sq,[{fn:Ile,argv:[Sle,"supportsFIPS"]},Iq]],["stringEquals",[{fn:Ile,argv:[Sle,"name"]},"aws-us-gov"]]],results:[[wg],[wg,"Invalid Configuration: FIPS and custom endpoint are not supported"],[wg,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[wKe,vw],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",vw],[wg,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",vw],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",vw],[wg,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",vw],[wg,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",vw],[wg,"Invalid Configuration: Missing Region"]]},BKt=2,Lo=1e8,RKt=new Int32Array([-1,1,-1,0,13,3,1,4,Lo+12,2,5,Lo+12,3,8,6,4,7,Lo+11,5,Lo+9,Lo+10,4,11,9,6,10,Lo+8,7,Lo+6,Lo+7,5,12,Lo+5,6,Lo+4,Lo+5,3,Lo+1,14,4,Lo+2,Lo+3]),RKe=fa.from(RKt,BKt,bKe.conditions,bKe.results)});var NKt,TKe,_Ke=A(()=>{bt();Gt();NKe();NKt=new ma({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),TKe=i((t,e={})=>NKt.get(t,()=>Zl(RKe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");wo.aws=Ac});var On,wq=A(()=>{Ie();On=class t extends ua{static{i(this,"SSOOIDCServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc#SSOOIDCServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var UN,$N,qN,HN,GN,zN,VN,WN,jN,JN,YN,wle=A(()=>{wq();UN=class t extends On{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}},$N=class t extends On{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}},qN=class t extends On{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}},HN=class t extends On{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}},GN=class t extends On{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}},zN=class t extends On{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}},VN=class t extends On{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}},WN=class t extends On{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}},jN=class t extends On{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}},JN=class t extends On{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}},YN=class t extends On{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 TKt,_Kt,PKt,vKt,QKt,DKt,kKt,OKt,LKt,MKt,FKt,UKt,$Kt,qKt,HKt,GKt,zKt,VKt,WKt,jKt,Fu,JKt,YKt,KKt,XKt,ZKt,_r,eXt,Nc,tXt,rXt,Tc,nXt,PKe,vKe,sXt,QKe,oXt,iXt,aXt,Zr,DKe,kKe,Ta,OKe,LKe,MKe,FKe,UKe,$Ke,qKe,HKe,GKe,zKe,VKe,xle,cXt,lXt,uXt,dXt,WKe,jKe,JKe,ble,xq=A(()=>{We();wle();wq();TKt="AccessDeniedException",_Kt="AuthorizationPendingException",PKt="AccessToken",vKt="ClientSecret",QKt="CreateToken",DKt="CreateTokenRequest",kKt="CreateTokenResponse",OKt="CodeVerifier",LKt="ExpiredTokenException",MKt="InvalidClientException",FKt="InvalidGrantException",UKt="InvalidRequestException",$Kt="InternalServerException",qKt="InvalidScopeException",HKt="IdToken",GKt="RefreshToken",zKt="SlowDownException",VKt="UnauthorizedClientException",WKt="UnsupportedGrantTypeException",jKt="accessToken",Fu="client",JKt="clientId",YKt="clientSecret",KKt="codeVerifier",XKt="code",ZKt="deviceCode",_r="error",eXt="expiresIn",Nc="error_description",tXt="grantType",rXt="http",Tc="httpError",nXt="idToken",PKe="reason",vKe="refreshToken",sXt="redirectUri",QKe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",oXt="scope",iXt="server",aXt="tokenType",Zr="com.amazonaws.ssooidc",DKe=new xt(QKe),kKe=[-3,QKe,"SSOOIDCServiceException",0,[],[]];DKe.registerError(kKe,On);Ta=new xt(Zr),OKe=[-3,Zr,TKt,{[_r]:Fu,[Tc]:400},[_r,PKe,Nc],[0,0,0]];Ta.registerError(OKe,UN);LKe=[-3,Zr,_Kt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError(LKe,$N);MKe=[-3,Zr,LKt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError(MKe,qN);FKe=[-3,Zr,$Kt,{[_r]:iXt,[Tc]:500},[_r,Nc],[0,0]];Ta.registerError(FKe,HN);UKe=[-3,Zr,MKt,{[_r]:Fu,[Tc]:401},[_r,Nc],[0,0]];Ta.registerError(UKe,GN);$Ke=[-3,Zr,FKt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError($Ke,zN);qKe=[-3,Zr,UKt,{[_r]:Fu,[Tc]:400},[_r,PKe,Nc],[0,0,0]];Ta.registerError(qKe,VN);HKe=[-3,Zr,qKt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError(HKe,WN);GKe=[-3,Zr,zKt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError(GKe,jN);zKe=[-3,Zr,VKt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError(zKe,JN);VKe=[-3,Zr,WKt,{[_r]:Fu,[Tc]:400},[_r,Nc],[0,0]];Ta.registerError(VKe,YN);xle=[DKe,Ta],cXt=[0,Zr,PKt,8,0],lXt=[0,Zr,vKt,8,0],uXt=[0,Zr,OKt,8,0],dXt=[0,Zr,HKt,8,0],WKe=[0,Zr,GKt,8,0],jKe=[3,Zr,DKt,0,[JKt,YKt,tXt,ZKt,XKt,vKe,oXt,sXt,KKt],[0,[()=>lXt,0],0,0,0,[()=>WKe,0],64,0,[()=>uXt,0]],3],JKe=[3,Zr,kKt,0,[jKt,aXt,eXt,vKe,nXt],[[()=>cXt,0],0,1,[()=>WKe,0],[()=>dXt,0]]],ble=[9,Zr,QKt,{[rXt]:["POST","/token",200]},()=>jKe,()=>JKe]});var YKe,KKe=A(()=>{gs();Sg();Gs();Od();Ie();Qe();Te();zce();_Ke();xq();YKe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Nr,base64Encoder:t?.base64Encoder??Ht,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??TKe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??Q9e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new vn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ms}],logger:t?.logger??new So,protocol:t?.protocol??Lu,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:xle,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:t?.serviceId??"SSO OIDC",sha256:t?.sha256??uc,urlParser:t?.urlParser??Wn,utf8Decoder:t?.utf8Decoder??dn,utf8Encoder:t?.utf8Encoder??Kt}),"getRuntimeConfig")});var bq,XKe,ZKe=A(()=>{vN();bt();gs();Ie();kt();xi();Te();bq=R(Yd());KKe();XKe=i(t=>{$l(process.version);let e=Kl(t),r=i(()=>e().then(Ul),"defaultConfigProvider"),n=YKe(t);Ll(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(yc,s),bodyLengthChecker:t?.bodyLengthChecker??zl,defaultUserAgentProvider:t?.defaultUserAgentProvider??hc({serviceId:n.serviceId,clientVersion:Im.version}),maxAttempts:t?.maxAttempts??ve(iu,t),region:t?.region??ve(jn,{...Hs,...s}),requestHandler:bq.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...cu,default:i(async()=>(await r()).retryMode||ga,"default")},t),streamCollector:t?.streamCollector??bq.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(Jl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(Yl,s),userAgentAppId:t?.userAgentAppId??ve(mu,s)}},"getRuntimeConfig")});var eXe,tXe,rXe=A(()=>{eXe=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"),tXe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var nXe,sXe=A(()=>{bt();Ie();Qe();rXe();nXe=i((t,e)=>{let r=Object.assign(hu(t),ic(t),eu(t),eXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Au(r),ql(r),tu(r),tXe(r))},"resolveRuntimeExtensions")});var KN,Ble=A(()=>{bt();Gs();Ie();kt();Gt();Qe();xi();We();zce();Vce();ZKe();sXe();KN=class extends ps{static{i(this,"SSOOIDCClient")}config;constructor(...[e]){let r=XKe(e||{});super(r),this.initConfig=r;let n=k9e(r),s=pu(n),o=au(s),a=Ci(o),c=a,l=vd(c),u=D9e(l),d=nXe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ml(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(Md(this.config)),this.middlewareStack.use(ru(this.config)),this.middlewareStack.use(lu(this.config)),this.middlewareStack.use(uu(this.config)),this.middlewareStack.use(du(this.config)),this.middlewareStack.use(fc(this.config,{httpAuthSchemeParametersProvider:v9e,identityProviderConfigProvider:i(async p=>new bi({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(mc(this.config))}destroy(){super.destroy()}}});var oXe,iXe,aXe,cXe=A(()=>{Ie();Gt();Vce();oXe=Hl(O9e,"AWSSSOOIDCService","SSOOIDCClient",Qd),iXe={},aXe=i((t,e,r,n)=>[],"_mw0")});var XN,Rle=A(()=>{cXe();xq();XN=class extends oXe(iXe,aXe,"CreateToken",ble){static{i(this,"CreateTokenCommand")}}});var pXt,Bq,lXe=A(()=>{Ie();Rle();Ble();pXt={CreateTokenCommand:XN},Bq=class extends KN{static{i(this,"SSOOIDC")}};Fl(pXt,Bq)});var uXe=A(()=>{Rle()});var fXt,mXt,dXe=A(()=>{fXt={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},mXt={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var pXe=A(()=>{});var Nle={};St(Nle,{$Command:()=>$s,AccessDeniedException:()=>UN,AccessDeniedException$:()=>OKe,AccessDeniedExceptionReason:()=>fXt,AuthorizationPendingException:()=>$N,AuthorizationPendingException$:()=>LKe,CreateToken$:()=>ble,CreateTokenCommand:()=>XN,CreateTokenRequest$:()=>jKe,CreateTokenResponse$:()=>JKe,ExpiredTokenException:()=>qN,ExpiredTokenException$:()=>MKe,InternalServerException:()=>HN,InternalServerException$:()=>FKe,InvalidClientException:()=>GN,InvalidClientException$:()=>UKe,InvalidGrantException:()=>zN,InvalidGrantException$:()=>$Ke,InvalidRequestException:()=>VN,InvalidRequestException$:()=>qKe,InvalidRequestExceptionReason:()=>mXt,InvalidScopeException:()=>WN,InvalidScopeException$:()=>HKe,SSOOIDC:()=>Bq,SSOOIDCClient:()=>KN,SSOOIDCServiceException:()=>On,SSOOIDCServiceException$:()=>kKe,SlowDownException:()=>jN,SlowDownException$:()=>GKe,UnauthorizedClientException:()=>JN,UnauthorizedClientException$:()=>zKe,UnsupportedGrantTypeException:()=>YN,UnsupportedGrantTypeException$:()=>VKe,__Client:()=>ps,errorTypeRegistries:()=>xle});var Tle=A(()=>{Ble();lXe();uXe();Ie();xq();dXe();wle();pXe();wq()});var AXe=w(ZN=>{var{setTokenFeature:hXt}=(bt(),Z(gc)),{getBearerTokenEnvKey:AXt}=(gs(),Z(PU)),{TokenProviderError:_c,getSSOTokenFilepath:gXt,parseKnownFiles:yXt,getProfileName:EXt,loadSsoSessionData:CXt,getSSOTokenFromFile:IXt,memoize:SXt,chain:wXt}=(kt(),Z(pa)),{promises:xXt}=require("node:fs"),bXt=i(({logger:t,signingName:e}={})=>async()=>{if(t?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!e)throw new _c("Please pass 'signingName' to compute environment variable key",{logger:t});let r=AXt(e);if(!(r in process.env))throw new _c(`Token not present in '${r}' environment variable`,{logger:t});let n={token:process.env[r]};return hXt(n,"BEARER_SERVICE_ENV_VARS","3"),n},"fromEnvSigningName"),BXt=300*1e3,_le="To refresh this SSO session run 'aws sso login' with the corresponding profile.",RXt=i(async(t,e={},r)=>{let{SSOOIDCClient:n}=(Tle(),Z(Nle)),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"),NXt=i(async(t,e,r={},n)=>{let{CreateTokenCommand:s}=(Tle(),Z(Nle));return(await RXt(e,r,n)).send(new s({clientId:t.clientId,clientSecret:t.clientSecret,refreshToken:t.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),fXe=i(t=>{if(t.expiration&&t.expiration.getTime()<Date.now())throw new _c(`Token is expired. ${_le}`,!1)},"validateTokenExpiry"),xg=i((t,e,r=!1)=>{if(typeof e>"u")throw new _c(`Value not present for '${t}' in SSO Token${r?". Cannot refresh":""}. ${_le}`,!1)},"validateTokenKey"),{writeFile:TXt}=xXt,_Xt=i((t,e)=>{let r=gXt(t),n=JSON.stringify(e,null,2);return TXt(r,n)},"writeSSOTokenToFile"),mXe=new Map,Rq=new Map,hXe=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await yXt(t),n=EXt({profile:t.profile??e?.profile}),s=r[n];if(s){if(!s.sso_session)throw new _c(`Profile '${n}' is missing required property 'sso_session'.`)}else throw new _c(`Profile '${n}' could not be found in shared credentials file.`,!1);let o=s.sso_session,a=Rq.get(o);if(a)return await a;let l=(await CXt(t))[o];if(!l)throw new _c(`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 _c(`Sso session '${o}' is missing required property '${E}'.`,!1);l.sso_start_url;let u=l.sso_region,d;try{d=await IXt(o)}catch{throw new _c(`The SSO session token associated with profile=${n} was not found or is invalid. ${_le}`,!1)}xg("accessToken",d.accessToken),xg("expiresAt",d.expiresAt);let{accessToken:p,expiresAt:f}=d,m={token:p,expiration:new Date(f)};if(m.expiration.getTime()-Date.now()>BXt)return m;let h=Rq.get(o);if(h)return await h;let g=mXe.get(o)??0;if(Date.now()-g<30*1e3)return fXe(m),m;xg("clientId",d.clientId,!0),xg("clientSecret",d.clientSecret,!0),xg("refreshToken",d.refreshToken,!0);let y=(async()=>{try{mXe.set(o,Date.now());let E=await NXt(d,u,t,e);xg("accessToken",E.accessToken),xg("expiresIn",E.expiresIn);let C=new Date(Date.now()+E.expiresIn*1e3);try{await _Xt(o,{...d,accessToken:E.accessToken,expiresAt:C.toISOString(),refreshToken:E.refreshToken})}catch{}return{token:E.accessToken,expiration:C}}catch{return fXe(m),m}})();Rq.set(o,y);try{return await y}finally{Rq.delete(o)}},"fromSso"),PXt=i(({token:t,logger:e})=>async()=>{if(e?.debug("@aws-sdk/token-providers - fromStatic"),!t||!t.token)throw new _c("Please pass a valid token to fromStatic",!1);return t},"fromStatic"),vXt=i((t={})=>SXt(wXt(hXe(t),async()=>{throw new _c("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");ZN.fromEnvSigningName=bXt;ZN.fromSso=hXe;ZN.fromStatic=PXt;ZN.nodeProvider=vXt});function QXt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function DXt(t){return{schemeId:"smithy.api#noAuth"}}var gXe,yXe,EXe,Ple=A(()=>{gs();Ie();gXe=i(async(t,e,r)=>({operation:Qt(e).operation,region:await Dt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(QXt,"createAwsAuthSigv4HttpAuthOption");i(DXt,"createSmithyApiNoAuthHttpAuthOption");yXe=i(t=>{let e=[];return t.operation==="GetRoleCredentials"?e.push(DXt(t)):e.push(QXt(t)),e},"defaultSSOHttpAuthSchemeProvider"),EXe=i(t=>{let e=wu(t);return Object.assign(e,{authSchemePreference:Dt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var CXe,IXe,vle=A(()=>{CXe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),IXe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var eT,bg,Nq,SXe,BXe,Tq,Qle,wXe,Dle,Qw,xXe,bXe,kXt,Mo,OXt,RXe,NXe=A(()=>{Gt();eT="ref",bg=-1,Nq=!0,SXe="isSet",BXe="PartitionResult",Tq="booleanEquals",Qle="getAttr",wXe={[eT]:"Endpoint"},Dle={[eT]:BXe},Qw={},xXe=[{[eT]:"Region"}],bXe={conditions:[[SXe,[wXe]],[SXe,xXe],["aws.partition",xXe,BXe],[Tq,[{[eT]:"UseFIPS"},Nq]],[Tq,[{[eT]:"UseDualStack"},Nq]],[Tq,[{fn:Qle,argv:[Dle,"supportsDualStack"]},Nq]],[Tq,[{fn:Qle,argv:[Dle,"supportsFIPS"]},Nq]],["stringEquals",[{fn:Qle,argv:[Dle,"name"]},"aws-us-gov"]]],results:[[bg],[bg,"Invalid Configuration: FIPS and custom endpoint are not supported"],[bg,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[wXe,Qw],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Qw],[bg,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Qw],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Qw],[bg,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Qw],[bg,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Qw],[bg,"Invalid Configuration: Missing Region"]]},kXt=2,Mo=1e8,OXt=new Int32Array([-1,1,-1,0,13,3,1,4,Mo+12,2,5,Mo+12,3,8,6,4,7,Mo+11,5,Mo+9,Mo+10,4,11,9,6,10,Mo+8,7,Mo+6,Mo+7,5,12,Mo+5,6,Mo+4,Mo+5,3,Mo+1,14,4,Mo+2,Mo+3]),RXe=fa.from(OXt,kXt,bXe.conditions,bXe.results)});var LXt,TXe,_Xe=A(()=>{bt();Gt();NXe();LXt=new ma({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),TXe=i((t,e={})=>LXt.get(t,()=>Zl(RXe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");wo.aws=Ac});var Pc,_q=A(()=>{Ie();Pc=class t extends ua{static{i(this,"SSOServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var tT,rT,nT,sT,kle=A(()=>{_q();tT=class t extends Pc{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)}},rT=class t extends Pc{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)}},nT=class t extends Pc{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)}},sT=class t extends Pc{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 MXt,FXt,UXt,$Xt,qXt,HXt,GXt,zXt,VXt,WXt,jXt,JXt,YXt,KXt,XXt,Pq,vq,ZXt,e7t,Qq,t7t,PXe,Dq,r7t,n7t,s7t,vXe,o7t,i7t,a7t,_a,QXe,DXe,oT,kXe,OXe,LXe,MXe,Ole,c7t,l7t,u7t,FXe,UXe,$Xe,Lle,kq=A(()=>{We();kle();_q();MXt="AccessTokenType",FXt="GetRoleCredentials",UXt="GetRoleCredentialsRequest",$Xt="GetRoleCredentialsResponse",qXt="InvalidRequestException",HXt="RoleCredentials",GXt="ResourceNotFoundException",zXt="SecretAccessKeyType",VXt="SessionTokenType",WXt="TooManyRequestsException",jXt="UnauthorizedException",JXt="accountId",YXt="accessKeyId",KXt="accessToken",XXt="account_id",Pq="client",vq="error",ZXt="expiration",e7t="http",Qq="httpError",t7t="httpHeader",PXe="httpQuery",Dq="message",r7t="roleCredentials",n7t="roleName",s7t="role_name",vXe="smithy.ts.sdk.synthetic.com.amazonaws.sso",o7t="secretAccessKey",i7t="sessionToken",a7t="x-amz-sso_bearer_token",_a="com.amazonaws.sso",QXe=new xt(vXe),DXe=[-3,vXe,"SSOServiceException",0,[],[]];QXe.registerError(DXe,Pc);oT=new xt(_a),kXe=[-3,_a,qXt,{[vq]:Pq,[Qq]:400},[Dq],[0]];oT.registerError(kXe,tT);OXe=[-3,_a,GXt,{[vq]:Pq,[Qq]:404},[Dq],[0]];oT.registerError(OXe,rT);LXe=[-3,_a,WXt,{[vq]:Pq,[Qq]:429},[Dq],[0]];oT.registerError(LXe,nT);MXe=[-3,_a,jXt,{[vq]:Pq,[Qq]:401},[Dq],[0]];oT.registerError(MXe,sT);Ole=[QXe,oT],c7t=[0,_a,MXt,8,0],l7t=[0,_a,zXt,8,0],u7t=[0,_a,VXt,8,0],FXe=[3,_a,UXt,0,[n7t,JXt,KXt],[[0,{[PXe]:s7t}],[0,{[PXe]:XXt}],[()=>c7t,{[t7t]:a7t}]],3],UXe=[3,_a,$Xt,0,[r7t],[[()=>$Xe,0]]],$Xe=[3,_a,HXt,0,[YXt,o7t,i7t,ZXt],[0,[()=>l7t,0],[()=>u7t,0],1]],Lle=[9,_a,FXt,{[e7t]:["GET","/federation/credentials",200]},()=>FXe,()=>UXe]});var qXe,HXe=A(()=>{gs();Sg();Gs();Od();Ie();Qe();Te();Ple();_Xe();kq();qXe=i(t=>({apiVersion:"2019-06-10",base64Decoder:t?.base64Decoder??Nr,base64Encoder:t?.base64Encoder??Ht,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??TXe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??yXe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new vn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ms}],logger:t?.logger??new So,protocol:t?.protocol??Lu,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Ole,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:t?.serviceId??"SSO",sha256:t?.sha256??uc,urlParser:t?.urlParser??Wn,utf8Decoder:t?.utf8Decoder??dn,utf8Encoder:t?.utf8Encoder??Kt}),"getRuntimeConfig")});var Oq,GXe,zXe=A(()=>{vN();bt();gs();Ie();kt();xi();Te();Oq=R(Yd());HXe();GXe=i(t=>{$l(process.version);let e=Kl(t),r=i(()=>e().then(Ul),"defaultConfigProvider"),n=qXe(t);Ll(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(yc,s),bodyLengthChecker:t?.bodyLengthChecker??zl,defaultUserAgentProvider:t?.defaultUserAgentProvider??hc({serviceId:n.serviceId,clientVersion:Im.version}),maxAttempts:t?.maxAttempts??ve(iu,t),region:t?.region??ve(jn,{...Hs,...s}),requestHandler:Oq.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...cu,default:i(async()=>(await r()).retryMode||ga,"default")},t),streamCollector:t?.streamCollector??Oq.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(Jl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(Yl,s),userAgentAppId:t?.userAgentAppId??ve(mu,s)}},"getRuntimeConfig")});var VXe,WXe,jXe=A(()=>{VXe=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"),WXe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var JXe,YXe=A(()=>{bt();Ie();Qe();jXe();JXe=i((t,e)=>{let r=Object.assign(hu(t),ic(t),eu(t),VXe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Au(r),ql(r),tu(r),WXe(r))},"resolveRuntimeExtensions")});var iT,Mle=A(()=>{bt();Gs();Ie();kt();Gt();Qe();xi();We();Ple();vle();zXe();YXe();iT=class extends ps{static{i(this,"SSOClient")}config;constructor(...[e]){let r=GXe(e||{});super(r),this.initConfig=r;let n=CXe(r),s=pu(n),o=au(s),a=Ci(o),c=a,l=vd(c),u=EXe(l),d=JXe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ml(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(Md(this.config)),this.middlewareStack.use(ru(this.config)),this.middlewareStack.use(lu(this.config)),this.middlewareStack.use(uu(this.config)),this.middlewareStack.use(du(this.config)),this.middlewareStack.use(fc(this.config,{httpAuthSchemeParametersProvider:gXe,identityProviderConfigProvider:i(async p=>new bi({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(mc(this.config))}destroy(){super.destroy()}}});var KXe,XXe,ZXe,e7e=A(()=>{Ie();Gt();vle();KXe=Hl(IXe,"SWBPortalService","SSOClient",Qd),XXe={},ZXe=i((t,e,r,n)=>[],"_mw0")});var aT,Fle=A(()=>{e7e();kq();aT=class extends KXe(XXe,ZXe,"GetRoleCredentials",Lle){static{i(this,"GetRoleCredentialsCommand")}}});var d7t,Lq,t7e=A(()=>{Ie();Fle();Mle();d7t={GetRoleCredentialsCommand:aT},Lq=class extends iT{static{i(this,"SSO")}};Fl(d7t,Lq)});var r7e=A(()=>{Fle()});var n7e=A(()=>{});var s7e={};St(s7e,{$Command:()=>$s,GetRoleCredentials$:()=>Lle,GetRoleCredentialsCommand:()=>aT,GetRoleCredentialsRequest$:()=>FXe,GetRoleCredentialsResponse$:()=>UXe,InvalidRequestException:()=>tT,InvalidRequestException$:()=>kXe,ResourceNotFoundException:()=>rT,ResourceNotFoundException$:()=>OXe,RoleCredentials$:()=>$Xe,SSO:()=>Lq,SSOClient:()=>iT,SSOServiceException:()=>Pc,SSOServiceException$:()=>DXe,TooManyRequestsException:()=>nT,TooManyRequestsException$:()=>LXe,UnauthorizedException:()=>sT,UnauthorizedException$:()=>MXe,__Client:()=>ps,errorTypeRegistries:()=>Ole});var o7e=A(()=>{Mle();t7e();r7e();Ie();kq();kle();n7e();_q()});var i7e=w(Ule=>{var{GetRoleCredentialsCommand:p7t,SSOClient:f7t}=(o7e(),Z(s7e));Ule.GetRoleCredentialsCommand=p7t;Ule.SSOClient=f7t});var $le=w(Mq=>{var{CredentialsProviderError:vc,getSSOTokenFromFile:m7t,getProfileName:h7t,parseKnownFiles:A7t,loadSsoSessionData:g7t}=(kt(),Z(pa)),{setCredentialFeature:a7e}=(bt(),Z(gc)),{fromSso:y7t}=AXe(),l7e=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"),cT=!1,c7e=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,g="To refresh this SSO session run aws sso login with the corresponding profile.";if(e)try{let fe=await y7t({profile:u,filepath:d,configFilepath:p,ignoreCache:f,clientConfig:a,parentClientConfig:c,logger:m})({callerClientConfig:l});h={accessToken:fe.token,expiresAt:new Date(fe.expiration).toISOString()}}catch(fe){throw new vc(fe.message,{tryNextLink:cT,logger:m})}else try{h=await m7t(t)}catch{throw new vc(`The SSO session associated with this profile is invalid. ${g}`,{tryNextLink:cT,logger:m})}if(new Date(h.expiresAt).getTime()-Date.now()<=0)throw new vc(`The SSO session associated with this profile has expired. ${g}`,{tryNextLink:cT,logger:m});let{accessToken:y}=h,{SSOClient:E,GetRoleCredentialsCommand:C}=i7e(),S=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 S.send(new C({accountId:r,roleName:s,accessToken:y}))}catch(fe){throw new vc(fe,{tryNextLink:cT,logger:m})}let{roleCredentials:{accessKeyId:N,secretAccessKey:_,sessionToken:v,expiration:J,credentialScope:Pe,accountId:De}={}}=b;if(!N||!_||!v||!J)throw new vc("SSO returns an invalid temporary credential.",{tryNextLink:cT,logger:m});let Ue={accessKeyId:N,secretAccessKey:_,sessionToken:v,expiration:new Date(J),...Pe&&{credentialScope:Pe},...De&&{accountId:De}};return e?a7e(Ue,"CREDENTIALS_SSO","s"):a7e(Ue,"CREDENTIALS_SSO_LEGACY","u"),Ue},"resolveSSOCredentials"),u7e=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 vc(`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"),E7t=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=h7t({profile:t.profile??e?.profile});if(!r&&!n&&!s&&!o&&!a){let d=(await A7t(t))[l];if(!d)throw new vc(`Profile ${l} was not found.`,{logger:t.logger});if(!l7e(d))throw new vc(`Profile ${l} is not configured with SSO credentials.`,{logger:t.logger});if(d?.sso_session){let E=(await g7t(t))[d.sso_session],C=` configurations in profile ${l} and sso-session ${d.sso_session}`;if(s&&s!==E.sso_region)throw new vc("Conflicting SSO region"+C,{tryNextLink:!1,logger:t.logger});if(r&&r!==E.sso_start_url)throw new vc("Conflicting SSO start_url"+C,{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:g}=u7e(d,t.logger);return c7e({ssoStartUrl:p,ssoSession:g,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 vc('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:t.logger});return c7e({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");Mq.fromSSO=E7t;Mq.isSsoProfile=l7e;Mq.validateSsoProfile=u7e});var Gle=w(Uq=>{var{SignatureV4:C7t,signatureV4aContainer:d7e}=Ioe(),lT={CrtSignerV4:null},qle="X-Amz-S3session-Token",p7e=qle.toLowerCase(),Fq=class extends C7t{static{i(this,"SignatureV4SignWithCredentials")}async signWithCredentials(e,r,n){let s=f7e(r);e.headers[p7e]=r.sessionToken;let o=this;return m7e(o,s),o.signRequest(e,n??{})}async presignWithCredentials(e,r,n){let s=f7e(r);return delete e.headers[p7e],e.headers[qle]=r.sessionToken,e.query=e.query??{},e.query[qle]=r.sessionToken,m7e(this,s),this.presign(e,n)}};function f7e(t){return{accessKeyId:t.accessKeyId,secretAccessKey:t.secretAccessKey,expiration:t.expiration}}i(f7e,"getCredentialsWithoutSessionToken");function m7e(t,e){let r=t.credentialProvider;t.credentialProvider=()=>(t.credentialProvider=r,Promise.resolve(e))}i(m7e,"setSingleOverride");var Hle=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof lT.CrtSignerV4=="function"?"crt":typeof d7e.SignatureV4a=="function"?"js":"none"}constructor(e){this.sigv4Signer=new Fq(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=lT.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=lT.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=lT.CrtSignerV4,r=d7e.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}};Uq.SignatureV4MultiRegion=Hle;Uq.SignatureV4SignWithCredentials=Fq;Uq.signatureV4CrtContainer=lT});var kw,Bg,uT,h7e,w7e,dT,Kn,zle,A7e,g7e,y7e,E7e,C7e,Xn,Vle,Dw,I7e,S7e,I7t,Et,S7t,x7e,b7e=A(()=>{Gt();kw="ref",Bg=-1,uT=!0,h7e="isSet",w7e="PartitionResult",dT="booleanEquals",Kn="stringEquals",zle="getAttr",A7e="us-east-1",g7e="sigv4",y7e="sts",E7e="https://sts.{Region}.{PartitionResult#dnsSuffix}",C7e={[kw]:"Endpoint"},Xn={[kw]:"Region"},Vle={[kw]:w7e},Dw={},I7e=[Xn],S7e={conditions:[[h7e,[C7e]],[h7e,I7e],["aws.partition",I7e,w7e],[dT,[{[kw]:"UseFIPS"},uT]],[dT,[{[kw]:"UseDualStack"},uT]],[Kn,[Xn,"aws-global"]],[dT,[{[kw]:"UseGlobalEndpoint"},uT]],[Kn,[Xn,"eu-central-1"]],[dT,[{fn:zle,argv:[Vle,"supportsDualStack"]},uT]],[dT,[{fn:zle,argv:[Vle,"supportsFIPS"]},uT]],[Kn,[Xn,"ap-south-1"]],[Kn,[Xn,"eu-north-1"]],[Kn,[Xn,"eu-west-1"]],[Kn,[Xn,"eu-west-2"]],[Kn,[Xn,"eu-west-3"]],[Kn,[Xn,"sa-east-1"]],[Kn,[Xn,A7e]],[Kn,[Xn,"us-east-2"]],[Kn,[Xn,"us-west-2"]],[Kn,[Xn,"us-west-1"]],[Kn,[Xn,"ca-central-1"]],[Kn,[Xn,"ap-southeast-1"]],[Kn,[Xn,"ap-northeast-1"]],[Kn,[Xn,"ap-southeast-2"]],[Kn,[{fn:zle,argv:[Vle,"name"]},"aws-us-gov"]]],results:[[Bg],["https://sts.amazonaws.com",{authSchemes:[{name:g7e,signingName:y7e,signingRegion:A7e}]}],[E7e,{authSchemes:[{name:g7e,signingName:y7e,signingRegion:"{Region}"}]}],[Bg,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Bg,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[C7e,Dw],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Dw],[Bg,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",Dw],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",Dw],[Bg,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",Dw],[Bg,"DualStack is enabled but this partition does not support DualStack"],[E7e,Dw],[Bg,"Invalid Configuration: Missing Region"]]},I7t=2,Et=1e8,S7t=new Int32Array([-1,1,-1,0,30,3,1,4,Et+14,2,5,Et+14,3,25,6,4,24,7,5,Et+1,8,6,9,Et+13,7,Et+1,10,10,Et+1,11,11,Et+1,12,12,Et+1,13,13,Et+1,14,14,Et+1,15,15,Et+1,16,16,Et+1,17,17,Et+1,18,18,Et+1,19,19,Et+1,20,20,Et+1,21,21,Et+1,22,22,Et+1,23,23,Et+1,Et+2,8,Et+11,Et+12,4,28,26,9,27,Et+10,24,Et+8,Et+9,8,29,Et+7,9,Et+6,Et+7,3,Et+3,31,4,Et+4,Et+5]),x7e=fa.from(S7t,I7t,S7e.conditions,S7e.results)});var w7t,$q,Wle=A(()=>{bt();Gt();b7e();w7t=new ma({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),$q=i((t,e={})=>w7t.get(t,()=>Zl(x7e,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");wo.aws=Ac});function N7e(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function jle(t){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function T7e(t){return{schemeId:"smithy.api#noAuth"}}var B7e,x7t,b7t,R7e,B7t,R7t,_7e,P7e,Jle=A(()=>{gs();B7e=R(Gle());Ie();Gt();Wle();x7t=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=Qt(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await KB(n,{getEndpointParameterInstructions:o},e);return Object.assign(s,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),b7t=i(async(t,e,r)=>({operation:Qt(e).operation,region:await Dt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),R7e=x7t(b7t);i(N7e,"createAwsAuthSigv4HttpAuthOption");i(jle,"createAwsAuthSigv4aHttpAuthOption");i(T7e,"createSmithyApiNoAuthHttpAuthOption");B7t=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 C=E.name.toLowerCase();return C!=="sigv4a"&&C.startsWith("sigv4")});if(B7e.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 g=h(s);g.schemeId=m,g.signingProperties={...g.signingProperties||{},...p,...d},c.push(g)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),R7t=i(t=>{let e=[];return t.operation==="AssumeRoleWithWebIdentity"?(e.push(T7e(t)),e.push(jle(t))):(e.push(N7e(t)),e.push(jle(t))),e},"_defaultSTSHttpAuthSchemeProvider"),_7e=B7t($q,R7t,{"aws.auth#sigv4":N7e,"aws.auth#sigv4a":jle,"smithy.api#noAuth":T7e}),P7e=i(t=>{let e=wu(t),r=xR(e);return Object.assign(r,{authSchemePreference:Dt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var v7e,Q7e,Yle=A(()=>{v7e=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,useGlobalEndpoint:t.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),Q7e={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,qq=A(()=>{Ie();Fo=class t extends ua{static{i(this,"STSServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var pT,fT,mT,hT,AT,gT,yT,Kle=A(()=>{qq();pT=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)}},fT=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)}},mT=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)}},hT=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)}},AT=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)}},gT=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)}},yT=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 N7t,T7t,_7t,P7t,v7t,Q7t,Xle,D7t,k7t,O7t,L7t,Zle,M7t,D7e,F7t,U7t,$7t,q7t,H7t,G7t,z7t,V7t,k7e,O7e,L7e,W7t,j7t,J7t,Y7t,K7t,X7t,M7e,Z7t,eZt,F7e,tZt,U7e,rZt,nZt,eue,sZt,oZt,$7e,q7e,iZt,aZt,cZt,lZt,uZt,dZt,pZt,fZt,Rg,Ng,mZt,Tg,_g,Pg,hZt,H7e,AZt,ar,G7e,z7e,Bm,V7e,W7e,j7e,J7e,Y7e,K7e,X7e,tue,gZt,yZt,rue,Z7e,eZe,tZe,rZe,nue,nZe,sZe,oZe,iZe,EZt,CZt,sue,oue,ET=A(()=>{We();Kle();qq();N7t="Arn",T7t="AccessKeyId",_7t="AssumeRole",P7t="AssumedRoleId",v7t="AssumeRoleRequest",Q7t="AssumeRoleResponse",Xle="AssumedRoleUser",D7t="AssumeRoleWithWebIdentity",k7t="AssumeRoleWithWebIdentityRequest",O7t="AssumeRoleWithWebIdentityResponse",L7t="Audience",Zle="Credentials",M7t="ContextAssertion",D7e="DurationSeconds",F7t="Expiration",U7t="ExternalId",$7t="ExpiredTokenException",q7t="IDPCommunicationErrorException",H7t="IDPRejectedClaimException",G7t="InvalidIdentityTokenException",z7t="Key",V7t="MalformedPolicyDocumentException",k7e="MinimumSessionTokenSize",O7e="Policy",L7e="PolicyArns",W7t="ProviderArn",j7t="ProvidedContexts",J7t="ProvidedContextsListType",Y7t="ProvidedContext",K7t="PolicyDescriptorType",X7t="ProviderId",M7e="PackedPolicySize",Z7t="PackedPolicyTooLargeException",eZt="Provider",F7e="RoleArn",tZt="RegionDisabledException",U7e="RoleSessionName",rZt="SecretAccessKey",nZt="SubjectFromWebIdentityToken",eue="SourceIdentity",sZt="SerialNumber",oZt="SessionToken",$7e="SessionTokenSize",q7e="SessionTokenUtilization",iZt="Tags",aZt="TokenCode",cZt="TransitiveTagKeys",lZt="Tag",uZt="Value",dZt="WebIdentityToken",pZt="arn",fZt="accessKeySecretType",Rg="awsQueryError",Ng="client",mZt="clientTokenType",Tg="error",_g="httpError",Pg="message",hZt="policyDescriptorListType",H7e="smithy.ts.sdk.synthetic.com.amazonaws.sts",AZt="tagListType",ar="com.amazonaws.sts",G7e=new xt(H7e),z7e=[-3,H7e,"STSServiceException",0,[],[]];G7e.registerError(z7e,Fo);Bm=new xt(ar),V7e=[-3,ar,$7t,{[Rg]:["ExpiredTokenException",400],[Tg]:Ng,[_g]:400},[Pg],[0]];Bm.registerError(V7e,pT);W7e=[-3,ar,q7t,{[Rg]:["IDPCommunicationError",400],[Tg]:Ng,[_g]:400},[Pg],[0]];Bm.registerError(W7e,yT);j7e=[-3,ar,H7t,{[Rg]:["IDPRejectedClaim",403],[Tg]:Ng,[_g]:403},[Pg],[0]];Bm.registerError(j7e,AT);J7e=[-3,ar,G7t,{[Rg]:["InvalidIdentityToken",400],[Tg]:Ng,[_g]:400},[Pg],[0]];Bm.registerError(J7e,gT);Y7e=[-3,ar,V7t,{[Rg]:["MalformedPolicyDocument",400],[Tg]:Ng,[_g]:400},[Pg],[0]];Bm.registerError(Y7e,fT);K7e=[-3,ar,Z7t,{[Rg]:["PackedPolicyTooLarge",400],[Tg]:Ng,[_g]:400},[Pg],[0]];Bm.registerError(K7e,mT);X7e=[-3,ar,tZt,{[Rg]:["RegionDisabledException",403],[Tg]:Ng,[_g]:403},[Pg],[0]];Bm.registerError(X7e,hT);tue=[G7e,Bm],gZt=[0,ar,fZt,8,0],yZt=[0,ar,mZt,8,0],rue=[3,ar,Xle,0,[P7t,N7t],[0,0],2],Z7e=[3,ar,v7t,0,[F7e,U7e,L7e,O7e,D7e,iZt,cZt,U7t,sZt,aZt,eue,j7t,k7e],[0,0,()=>iZe,0,1,()=>CZt,64,0,0,0,0,()=>EZt,1],2],eZe=[3,ar,Q7t,0,[Zle,Xle,M7e,eue,q7e,$7e],[[()=>nue,0],()=>rue,1,0,1,1]],tZe=[3,ar,k7t,0,[F7e,U7e,dZt,X7t,L7e,O7e,D7e,k7e],[0,0,[()=>yZt,0],0,()=>iZe,0,1,1],3],rZe=[3,ar,O7t,0,[Zle,nZt,Xle,M7e,eZt,L7t,eue,q7e,$7e],[[()=>nue,0],0,()=>rue,1,0,0,0,1,1]],nue=[3,ar,Zle,0,[T7t,rZt,oZt,F7t],[0,[()=>gZt,0],0,4],4],nZe=[3,ar,K7t,0,[pZt],[0]],sZe=[3,ar,Y7t,0,[W7t,M7t],[0,0]],oZe=[3,ar,lZt,0,[z7t,uZt],[0,0],2],iZe=[1,ar,hZt,0,()=>nZe],EZt=[1,ar,J7t,0,()=>sZe],CZt=[1,ar,AZt,0,()=>oZe],sue=[9,ar,_7t,0,()=>Z7e,()=>eZe],oue=[9,ar,D7t,0,()=>tZe,()=>rZe]});var aZe,cZe,lZe=A(()=>{gs();Sg();aZe=R(Gle());Gs();Od();Ie();Qe();Te();Jle();Wle();ET();cZe=i(t=>({apiVersion:"2011-06-15",base64Decoder:t?.base64Decoder??Nr,base64Encoder:t?.base64Encoder??Ht,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??$q,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??_7e,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new vn},{schemeId:"aws.auth#sigv4a",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Fd},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ms}],logger:t?.logger??new So,protocol:t?.protocol??bm,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:tue,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:t?.serviceId??"STS",sha256:t?.sha256??uc,signerConstructor:t?.signerConstructor??aZe.SignatureV4MultiRegion,urlParser:t?.urlParser??Wn,utf8Decoder:t?.utf8Decoder??dn,utf8Encoder:t?.utf8Encoder??Kt}),"getRuntimeConfig")});var Hq,uZe,dZe=A(()=>{vN();bt();gs();Gs();Ie();kt();xi();Te();Hq=R(Yd());lZe();uZe=i(t=>{$l(process.version);let e=Kl(t),r=i(()=>e().then(Ul),"defaultConfigProvider"),n=cZe(t);Ll(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(yc,s),bodyLengthChecker:t?.bodyLengthChecker??zl,defaultUserAgentProvider:t?.defaultUserAgentProvider??hc({serviceId:n.serviceId,clientVersion:Im.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 vn},{schemeId:"aws.auth#sigv4a",identityProvider:i(o=>o.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new Fd},{schemeId:"smithy.api#noAuth",identityProvider:i(o=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ms}],maxAttempts:t?.maxAttempts??ve(iu,t),region:t?.region??ve(jn,{...Hs,...s}),requestHandler:Hq.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...cu,default:i(async()=>(await r()).retryMode||ga,"default")},t),sigv4aSigningRegionSet:t?.sigv4aSigningRegionSet??ve(bR,s),streamCollector:t?.streamCollector??Hq.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(Jl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(Yl,s),userAgentAppId:t?.userAgentAppId??ve(mu,s)}},"getRuntimeConfig")});var pZe,fZe,mZe=A(()=>{pZe=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"),fZe=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var hZe,AZe=A(()=>{bt();Ie();Qe();mZe();hZe=i((t,e)=>{let r=Object.assign(hu(t),ic(t),eu(t),pZe(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Au(r),ql(r),tu(r),fZe(r))},"resolveRuntimeExtensions")});var Rm,Gq=A(()=>{bt();Gs();Ie();kt();Gt();Qe();xi();We();Jle();Yle();dZe();AZe();Rm=class extends ps{static{i(this,"STSClient")}config;constructor(...[e]){let r=uZe(e||{});super(r),this.initConfig=r;let n=v7e(r),s=pu(n),o=au(s),a=Ci(o),c=a,l=vd(c),u=P7e(l),d=hZe(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ml(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(Md(this.config)),this.middlewareStack.use(ru(this.config)),this.middlewareStack.use(lu(this.config)),this.middlewareStack.use(uu(this.config)),this.middlewareStack.use(du(this.config)),this.middlewareStack.use(fc(this.config,{httpAuthSchemeParametersProvider:R7e,identityProviderConfigProvider:i(async p=>new bi({"aws.auth#sigv4":p.credentials,"aws.auth#sigv4a":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(mc(this.config))}destroy(){super.destroy()}}});var zq,Vq,Wq,iue=A(()=>{Ie();Gt();Yle();zq=Hl(Q7e,"AWSSecurityTokenServiceV20110615","STSClient",Qd),Vq={},Wq=i((t,e,r,n)=>[],"_mw0")});var vg,jq=A(()=>{iue();ET();vg=class extends zq(Vq,Wq,"AssumeRole",sue){static{i(this,"AssumeRoleCommand")}}});var Qg,Jq=A(()=>{iue();ET();Qg=class extends zq(Vq,Wq,"AssumeRoleWithWebIdentity",oue){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var IZt,Yq,gZe=A(()=>{Ie();jq();Jq();Gq();IZt={AssumeRoleCommand:vg,AssumeRoleWithWebIdentityCommand:Qg},Yq=class extends Rm{static{i(this,"STS")}};Fl(IZt,Yq)});var yZe=A(()=>{jq();Jq()});var EZe=A(()=>{});var CZe,IZe,SZe,wZe,xZe,bZe=A(()=>{bt();jq();Jq();CZe=i(t=>{if(typeof t?.Arn=="string"){let e=t.Arn.split(":");if(e.length>4&&e[4]!=="")return e[4]}},"getAccountIdFromAssumedRoleUser"),IZe=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 eF(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"),SZe=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:g=t?.parentClientConfig?.userAgentAppId}=t,y=await IZe(f,t?.parentClientConfig?.region,h,{logger:d,profile:p}),E=!xZe(m);r=new e({...t,userAgentAppId:g,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 vg(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let l=CZe(c),u={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...l&&{accountId:l}};return of(u,"CREDENTIALS_STS_ASSUME_ROLE","i"),u}},"getDefaultRoleAssumer"),wZe=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 IZe(d,t?.parentClientConfig?.region,f,{logger:l,profile:u}),g=!xZe(p);r=new e({...t,userAgentAppId:m,profile:u,region:h,requestHandler:g?p:void 0,logger:l})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new Qg(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=CZe(o),c={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};return a&&of(c,"RESOLVED_ACCOUNT_ID","T"),of(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),xZe=i(t=>t?.metadata?.handlerProtocol==="h2","isH2")});var BZe,RZe,NZe,SZt,TZe=A(()=>{bZe();Gq();BZe=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"),RZe=i((t={},e)=>SZe(t,BZe(Rm,e)),"getDefaultRoleAssumer"),NZe=i((t={},e)=>wZe(t,BZe(Rm,e)),"getDefaultRoleAssumerWithWebIdentity"),SZt=i(t=>e=>t({roleAssumer:RZe(e),roleAssumerWithWebIdentity:NZe(e),...e}),"decorateDefaultCredentialProvider")});var aue={};St(aue,{$Command:()=>$s,AssumeRole$:()=>sue,AssumeRoleCommand:()=>vg,AssumeRoleRequest$:()=>Z7e,AssumeRoleResponse$:()=>eZe,AssumeRoleWithWebIdentity$:()=>oue,AssumeRoleWithWebIdentityCommand:()=>Qg,AssumeRoleWithWebIdentityRequest$:()=>tZe,AssumeRoleWithWebIdentityResponse$:()=>rZe,AssumedRoleUser$:()=>rue,Credentials$:()=>nue,ExpiredTokenException:()=>pT,ExpiredTokenException$:()=>V7e,IDPCommunicationErrorException:()=>yT,IDPCommunicationErrorException$:()=>W7e,IDPRejectedClaimException:()=>AT,IDPRejectedClaimException$:()=>j7e,InvalidIdentityTokenException:()=>gT,InvalidIdentityTokenException$:()=>J7e,MalformedPolicyDocumentException:()=>fT,MalformedPolicyDocumentException$:()=>Y7e,PackedPolicyTooLargeException:()=>mT,PackedPolicyTooLargeException$:()=>K7e,PolicyDescriptorType$:()=>nZe,ProvidedContext$:()=>sZe,RegionDisabledException:()=>hT,RegionDisabledException$:()=>X7e,STS:()=>Yq,STSClient:()=>Rm,STSServiceException:()=>Fo,STSServiceException$:()=>z7e,Tag$:()=>oZe,__Client:()=>ps,decorateDefaultCredentialProvider:()=>SZt,errorTypeRegistries:()=>tue,getDefaultRoleAssumer:()=>RZe,getDefaultRoleAssumerWithWebIdentity:()=>NZe});var cue=A(()=>{Gq();gZe();yZe();Ie();ET();Kle();EZe();TZe();qq()});function wZt(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}function xZt(t){return{schemeId:"smithy.api#noAuth"}}var _Ze,PZe,vZe,lue=A(()=>{gs();Ie();_Ze=i(async(t,e,r)=>({operation:Qt(e).operation,region:await Dt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(wZt,"createAwsAuthSigv4HttpAuthOption");i(xZt,"createSmithyApiNoAuthHttpAuthOption");PZe=i(t=>{let e=[];return t.operation==="CreateOAuth2Token"?e.push(xZt(t)):e.push(wZt(t)),e},"defaultSigninHttpAuthSchemeProvider"),vZe=i(t=>{let e=wu(t);return Object.assign(e,{authSchemePreference:Dt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var QZe,DZe,uue=A(()=>{QZe=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),DZe={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var _m,Nm,kZe,Ow,OZe,Lw,LZe,pue,Xd,due,MZe,FZe,Tm,HZe,UZe,Kq,Cs,$Ze,qZe,bZt,it,BZt,GZe,zZe=A(()=>{Gt();_m="ref",Nm=-1,kZe=!1,Ow=!0,OZe="isSet",Lw="booleanEquals",LZe="coalesce",pue="PartitionResult",Xd="stringEquals",due="getAttr",MZe="https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",FZe={[_m]:"Endpoint"},Tm={fn:due,argv:[{[_m]:pue},"name"]},HZe={[_m]:"Region"},UZe={[_m]:pue},Kq={authSchemes:[{name:"sigv4",signingName:"signin",signingRegion:"{Region}"}]},Cs={},$Ze=[HZe],qZe={conditions:[[OZe,$Ze],[Lw,[{fn:LZe,argv:[{[_m]:"IsControlPlane"},kZe]},Ow]],[OZe,[FZe]],["aws.partition",$Ze,pue],[Lw,[{[_m]:"UseFIPS"},Ow]],[Xd,[Tm,"aws"]],[Lw,[{fn:LZe,argv:[{[_m]:"IsOAuthEndpoint"},kZe]},Ow]],[Lw,[{[_m]:"UseDualStack"},Ow]],[Xd,[Tm,"aws-cn"]],[Xd,[HZe,"us-gov-west-1"]],[Xd,[Tm,"aws-us-gov"]],[Lw,[{fn:due,argv:[UZe,"supportsFIPS"]},Ow]],[Xd,[Tm,"aws-iso"]],[Xd,[Tm,"aws-iso-b"]],[Xd,[Tm,"aws-iso-f"]],[Xd,[Tm,"aws-iso-e"]],[Xd,[Tm,"aws-eusc"]],[Lw,[{fn:due,argv:[UZe,"supportsDualStack"]},Ow]]],results:[[Nm],["https://signin.{Region}.api.aws",Kq],["https://signin.{Region}.api.amazonwebservices.com.cn",Kq],[MZe,Kq],[Nm,"FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],["https://{Region}.oauth.signin.aws",Kq],["https://{Region}.signin.aws.amazon.com",Cs],["https://{Region}.signin.amazonaws.cn",Cs],["https://{Region}.signin.amazonaws-us-gov.com",Cs],["https://{Region}.signin.c2shome.ic.gov",Cs],["https://{Region}.signin.sc2shome.sgov.gov",Cs],["https://{Region}.signin.csphome.hci.ic.gov",Cs],["https://{Region}.signin.csphome.adc-e.uk",Cs],["https://{Region}.signin.amazonaws-eusc.eu",Cs],["https://signin-fips.amazonaws-us-gov.com",Cs],["https://{Region}.signin-fips.amazonaws-us-gov.com",Cs],["https://{Region}.signin.{PartitionResult#dnsSuffix}",Cs],[Nm,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Nm,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[FZe,Cs],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Cs],[Nm,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",Cs],[Nm,"FIPS is enabled but this partition does not support FIPS"],[MZe,Cs],[Nm,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",Cs],[Nm,"Invalid Configuration: Missing Region"]]},bZt=2,it=1e8,BZt=new Int32Array([-1,1,-1,0,6,3,2,36,4,4,5,it+27,6,it+4,it+27,1,29,7,2,36,8,3,9,31,4,22,10,5,19,11,7,21,12,8,it+7,13,10,it+8,14,12,it+9,15,13,it+10,16,14,it+11,17,15,it+12,18,16,it+13,it+16,6,it+5,20,7,21,it+6,17,it+24,it+25,6,it+4,23,7,27,24,9,it+14,25,10,it+15,26,11,it+22,it+23,11,28,it+21,17,it+20,it+21,2,35,30,3,39,31,4,32,it+27,6,it+4,33,7,it+27,34,9,it+14,it+27,3,39,36,4,38,37,7,it+18,it+19,6,it+4,it+17,5,it+1,40,8,it+2,it+3]),GZe=fa.from(BZt,bZt,qZe.conditions,qZe.results)});var RZt,VZe,WZe=A(()=>{bt();Gt();zZe();RZt=new ma({size:50,params:["Endpoint","IsControlPlane","IsOAuthEndpoint","Region","UseDualStack","UseFIPS"]}),VZe=i((t,e={})=>RZt.get(t,()=>Zl(GZe,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");wo.aws=Ac});var Qc,Xq=A(()=>{Ie();Qc=class t extends ua{static{i(this,"SigninServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.signin#SigninServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}}});var CT,IT,ST,wT,fue=A(()=>{Xq();CT=class t extends Qc{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}},IT=class t extends Qc{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}},ST=class t extends Qc{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}},wT=class t extends Qc{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 NZt,TZt,_Zt,PZt,vZt,QZt,DZt,kZt,OZt,LZt,MZt,FZt,UZt,$Zt,qZt,jZe,mue,HZt,yue,JZe,YZe,GZt,Pm,hue,zZt,Aue,VZt,tet,Eue,KZe,Zn,eH,WZt,Zq,XZe,ret,ZZe,eet,jZt,JZt,YZt,gue,KZt,Is,net,set,xT,oet,iet,aet,cet,Cue,XZt,uet,det,pet,fet,met,het,Aet,get,Iue,Sue,bT=A(()=>{We();fue();Xq();NZt="AccessDeniedException",TZt="AccessToken",_Zt="CreateOAuth2Token",PZt="CreateOAuth2TokenRequest",vZt="CreateOAuth2TokenRequestBody",QZt="CreateOAuth2TokenResponseBody",DZt="CreateOAuth2TokenResponse",kZt="CreateOAuth2TokenWithIAM",OZt="CreateOAuth2TokenWithIAMRequest",LZt="CreateOAuth2TokenWithIAMResponse",MZt="InternalServerException",FZt="OAuthAccessToken",UZt="RefreshToken",$Zt="TooManyRequestsError",qZt="ValidationException",jZe="accessKeyId",mue="accessToken",HZt="access_token",yue="client",JZe="clientId",YZe="codeVerifier",GZt="code",Pm="error",hue="expiresIn",zZt="expires_in",Aue="grantType",VZt="grant_type",tet="http",Eue="httpError",KZe="idToken",Zn="jsonName",eH="message",WZt="resource",Zq="refreshToken",XZe="redirectUri",ret="smithy.ts.sdk.synthetic.com.amazonaws.signin",ZZe="secretAccessKey",eet="sessionToken",jZt="server",JZt="tokenInput",YZt="tokenOutput",gue="tokenType",KZt="token_type",Is="com.amazonaws.signin",net=new xt(ret),set=[-3,ret,"SigninServiceException",0,[],[]];net.registerError(set,Qc);xT=new xt(Is),oet=[-3,Is,NZt,{[Pm]:yue},[Pm,eH],[0,0],2];xT.registerError(oet,CT);iet=[-3,Is,MZt,{[Pm]:jZt,[Eue]:500},[Pm,eH],[0,0],2];xT.registerError(iet,IT);aet=[-3,Is,$Zt,{[Pm]:yue,[Eue]:429},[Pm,eH],[0,0],2];xT.registerError(aet,ST);cet=[-3,Is,qZt,{[Pm]:yue,[Eue]:400},[Pm,eH],[0,0],2];xT.registerError(cet,wT);Cue=[net,xT],XZt=[0,Is,FZt,8,0],uet=[0,Is,UZt,8,0],det=[3,Is,TZt,8,[jZe,ZZe,eet],[[0,{[Zn]:jZe}],[0,{[Zn]:ZZe}],[0,{[Zn]:eet}]],3],pet=[3,Is,PZt,0,[JZt],[[()=>fet,16]],1],fet=[3,Is,vZt,0,[JZe,Aue,GZt,XZe,YZe,Zq],[[0,{[Zn]:JZe}],[0,{[Zn]:Aue}],0,[0,{[Zn]:XZe}],[0,{[Zn]:YZe}],[()=>uet,{[Zn]:Zq}]],2],met=[3,Is,DZt,0,[YZt],[[()=>het,16]],1],het=[3,Is,QZt,0,[mue,gue,hue,Zq,KZe],[[()=>det,{[Zn]:mue}],[0,{[Zn]:gue}],[1,{[Zn]:hue}],[()=>uet,{[Zn]:Zq}],[0,{[Zn]:KZe}]],4],Aet=[3,Is,OZt,0,[Aue,WZt],[[0,{[Zn]:VZt}],0],2],get=[3,Is,LZt,0,[mue,gue,hue],[[()=>XZt,{[Zn]:HZt}],[0,{[Zn]:KZt}],[1,{[Zn]:zZt}]],3],Iue=[9,Is,_Zt,{[tet]:["POST","/v1/token",200]},()=>pet,()=>met],Sue=[9,Is,kZt,{[tet]:["POST","/v1/token?x-amz-client-auth-method=iam",200]},()=>Aet,()=>get]});var yet,Eet=A(()=>{gs();Sg();Gs();Od();Ie();Qe();Te();lue();WZe();bT();yet=i(t=>({apiVersion:"2023-01-01",base64Decoder:t?.base64Decoder??Nr,base64Encoder:t?.base64Encoder??Ht,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??VZe,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??PZe,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new vn},{schemeId:"smithy.api#noAuth",identityProvider:i(e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new ms}],logger:t?.logger??new So,protocol:t?.protocol??Lu,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Cue,version:"2023-01-01",serviceTarget:"Signin"},serviceId:t?.serviceId??"Signin",sha256:t?.sha256??uc,urlParser:t?.urlParser??Wn,utf8Decoder:t?.utf8Decoder??dn,utf8Encoder:t?.utf8Encoder??Kt}),"getRuntimeConfig")});var tH,Cet,Iet=A(()=>{vN();bt();gs();Ie();kt();xi();Te();tH=R(Yd());Eet();Cet=i(t=>{$l(process.version);let e=Kl(t),r=i(()=>e().then(Ul),"defaultConfigProvider"),n=yet(t);Ll(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??ve(yc,s),bodyLengthChecker:t?.bodyLengthChecker??zl,defaultUserAgentProvider:t?.defaultUserAgentProvider??hc({serviceId:n.serviceId,clientVersion:Im.version}),maxAttempts:t?.maxAttempts??ve(iu,t),region:t?.region??ve(jn,{...Hs,...s}),requestHandler:tH.NodeHttpHandler.create(t?.requestHandler??r),retryMode:t?.retryMode??ve({...cu,default:i(async()=>(await r()).retryMode||ga,"default")},t),streamCollector:t?.streamCollector??tH.streamCollector,useDualstackEndpoint:t?.useDualstackEndpoint??ve(Jl,s),useFipsEndpoint:t?.useFipsEndpoint??ve(Yl,s),userAgentAppId:t?.userAgentAppId??ve(mu,s)}},"getRuntimeConfig")});var wet,xet,bet=A(()=>{wet=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"),xet=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig")});var Bet,Ret=A(()=>{bt();Ie();Qe();bet();Bet=i((t,e)=>{let r=Object.assign(hu(t),ic(t),eu(t),wet(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Au(r),ql(r),tu(r),xet(r))},"resolveRuntimeExtensions")});var BT,wue=A(()=>{bt();Gs();Ie();kt();Gt();Qe();xi();We();lue();uue();Iet();Ret();BT=class extends ps{static{i(this,"SigninClient")}config;constructor(...[e]){let r=Cet(e||{});super(r),this.initConfig=r;let n=QZe(r),s=pu(n),o=au(s),a=Ci(o),c=a,l=vd(c),u=vZe(l),d=Bet(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Ml(this.config)),this.middlewareStack.use(fu(this.config)),this.middlewareStack.use(Md(this.config)),this.middlewareStack.use(ru(this.config)),this.middlewareStack.use(lu(this.config)),this.middlewareStack.use(uu(this.config)),this.middlewareStack.use(du(this.config)),this.middlewareStack.use(fc(this.config,{httpAuthSchemeParametersProvider:_Ze,identityProviderConfigProvider:i(async p=>new bi({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(mc(this.config))}destroy(){super.destroy()}}});var rH,Net,Tet,nH,xue=A(()=>{Ie();Gt();uue();rH=Hl(DZe,"Signin","SigninClient",Qd),Net={IsControlPlane:{type:"staticContextParams",value:!1}},Tet={IsOAuthEndpoint:{type:"staticContextParams",value:!0}},nH=i((t,e,r,n)=>[],"_mw0")});var RT,bue=A(()=>{xue();bT();RT=class extends rH(Net,nH,"CreateOAuth2Token",Iue){static{i(this,"CreateOAuth2TokenCommand")}}});var NT,Bue=A(()=>{xue();bT();NT=class extends rH(Tet,nH,"CreateOAuth2TokenWithIAM",Sue){static{i(this,"CreateOAuth2TokenWithIAMCommand")}}});var ZZt,sH,_et=A(()=>{Ie();bue();Bue();wue();ZZt={CreateOAuth2TokenCommand:RT,CreateOAuth2TokenWithIAMCommand:NT},sH=class extends BT{static{i(this,"Signin")}};Fl(ZZt,sH)});var Pet=A(()=>{bue();Bue()});var eer,vet=A(()=>{eer={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",CONFLICT:"CONFLICT",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",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 Qet=A(()=>{});var Det={};St(Det,{$Command:()=>$s,AccessDeniedException:()=>CT,AccessDeniedException$:()=>oet,AccessToken$:()=>det,CreateOAuth2Token$:()=>Iue,CreateOAuth2TokenCommand:()=>RT,CreateOAuth2TokenRequest$:()=>pet,CreateOAuth2TokenRequestBody$:()=>fet,CreateOAuth2TokenResponse$:()=>met,CreateOAuth2TokenResponseBody$:()=>het,CreateOAuth2TokenWithIAM$:()=>Sue,CreateOAuth2TokenWithIAMCommand:()=>NT,CreateOAuth2TokenWithIAMRequest$:()=>Aet,CreateOAuth2TokenWithIAMResponse$:()=>get,InternalServerException:()=>IT,InternalServerException$:()=>iet,OAuth2ErrorCode:()=>eer,Signin:()=>sH,SigninClient:()=>BT,SigninServiceException:()=>Qc,SigninServiceException$:()=>set,TooManyRequestsError:()=>ST,TooManyRequestsError$:()=>aet,ValidationException:()=>wT,ValidationException$:()=>cet,__Client:()=>ps,errorTypeRegistries:()=>Cue});var ket=A(()=>{wue();_et();Pet();Ie();bT();vet();fue();Qet();Xq()});var Met=w(Let=>{var{setCredentialFeature:ter}=(bt(),Z(gc)),{CredentialsProviderError:vm,parseKnownFiles:rer,getProfileName:ner}=(kt(),Z(pa)),{HttpRequest:ser}=(Qe(),Z(cR)),{createHash:oer,createPrivateKey:ier,createPublicKey:aer,sign:cer}=require("node:crypto"),{promises:Rue}=require("node:fs"),{homedir:ler}=require("node:os"),{dirname:uer,join:Oet}=require("node:path"),Nue=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 vm(`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}=(ket(),Z(Det)),{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,g=new l({credentials:{accessKeyId:"",secretAccessKey:""},region:h,requestHandler:m,logger:d,userAgentAppId:p,...this.init?.clientConfig});this.createDPoPInterceptor(g.middlewareStack);let y={tokenInput:{clientId:a.clientId,refreshToken:a.refreshToken,grantType:"refresh_token"}};try{let E=await g.send(new u(y)),{accessKeyId:C,secretAccessKey:S,sessionToken:b}=E.tokenOutput?.accessToken??{},{refreshToken:N,expiresIn:_}=E.tokenOutput??{};if(!C||!S||!b||!N)throw new vm("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let v=(_??900)*1e3,J=new Date(Date.now()+v),Pe={...a,accessToken:{...a.accessToken,accessKeyId:C,secretAccessKey:S,sessionToken:b,expiresAt:J.toISOString()},refreshToken:N};return await this.saveToken(Pe),this.toCredentials(Pe.accessToken)}catch(E){if(E.name==="AccessDeniedException"){let S=E.error,b;switch(S){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 vm(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 vm(`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 Rue.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 vm(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return n}catch(r){throw new vm(`Failed to load token from ${e}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let r=this.getTokenFilePath(),n=uer(r);try{await Rue.mkdir(n,{recursive:!0})}catch{}await Rue.writeFile(r,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??Oet(ler(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),n=oer("sha256").update(r).digest("hex");return Oet(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(ser.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=ier({key:n.dpopKey,format:"pem",type:"sec1"}),a=aer(s).export({format:"der",type:"spki"}),c=-1;for(let C=0;C<a.length;C++)if(a[C]===4){c=C;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}`,g=cer("sha256",Buffer.from(h),s),E=this.derToRawSignature(g).toString("base64url");return`${h}.${E}`}catch(s){throw new vm(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}},der=i(t=>async({callerClientConfig:e}={})=>{t?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await rer(t||{}),n=ner({profile:t?.profile??e?.profile}),s=r[n];if(!s?.login_session)throw new vm(`Profile ${n} does not contain login_session.`,{tryNextLink:!0,logger:t?.logger});let a=await new Nue(s,t,e).loadCredentials();return ter(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");Let.fromLoginCredentials=der});var _ue=w(Fet=>{var{externalDataInterceptor:per,CredentialsProviderError:Tue,parseKnownFiles:fer,getProfileName:mer}=(kt(),Z(pa)),{exec:her}=require("node:child_process"),{promisify:Aer}=require("node:util"),{setCredentialFeature:ger}=(bt(),Z(gc)),yer=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 ger(s,"CREDENTIALS_PROCESS","w"),s},"getValidatedProcessCredentials"),Eer=i(async(t,e,r)=>{let n=e[t];if(e[t]){let s=n.credential_process;if(s!==void 0){let o=Aer(per?.getTokenRecord?.().exec??her);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 yer(t,c,e)}catch(a){throw new Tue(a.message,{logger:r})}}else throw new Tue(`Profile ${t} did not contain credential_process.`,{logger:r})}else throw new Tue(`Profile ${t} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),Cer=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await fer(t);return Eer(mer({profile:t.profile??e?.profile}),r,t.logger)},"fromProcess");Fet.fromProcess=Cer});var vue=w(Pue=>{var{setCredentialFeature:Ier}=(bt(),Z(gc)),{CredentialsProviderError:Ser,externalDataInterceptor:wer}=(kt(),Z(pa)),{readFileSync:xer}=require("node:fs"),$et=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}=(cue(),Z(aue));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"),Uet="AWS_WEB_IDENTITY_TOKEN_FILE",ber="AWS_ROLE_ARN",Ber="AWS_ROLE_SESSION_NAME",Rer=i((t={})=>async e=>{t.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=t?.webIdentityTokenFile??process.env[Uet],n=t?.roleArn??process.env[ber],s=t?.roleSessionName??process.env[Ber];if(!r||!n)throw new Ser("Web identity configuration not specified",{logger:t.logger});let o=await $et({...t,webIdentityToken:wer?.getTokenRecord?.()[r]??xer(r,{encoding:"ascii"}),roleArn:n,roleSessionName:s})(e);return r===process.env[Uet]&&Ier(o,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),o},"fromTokenFile");Pue.fromTokenFile=Rer;Pue.fromWebToken=$et});var jet=w(Wet=>{var{CredentialsProviderError:oH,chain:Ner,getProfileName:zet,parseKnownFiles:Ter}=(kt(),Z(pa)),{setCredentialFeature:Zd}=(bt(),Z(gc)),_er=i((t,e,r)=>{let n={EcsContainer:i(async s=>{let{fromHttp:o}=Gce(),{fromContainerMetadata:a}=M2();return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>Ner(o(s??{}),a(s))().then(Que)},"EcsContainer"),Ec2InstanceMetadata:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:o}=M2();return async()=>o(s)().then(Que)},"Ec2InstanceMetadata"),Environment:i(async s=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:o}=boe();return async()=>o(s)().then(Que)},"Environment")};if(t in n)return n[t];throw new oH(`Unsupported credential source in profile ${e}. Got ${t}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),Que=i(t=>Zd(t,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),Per=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&&(ver(t,{profile:e,logger:r})||Qer(t,{profile:e,logger:r})),"isAssumeRoleProfile"),ver=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"),Qer=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"),Der=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}=(cue(),Z(aue));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 oH(`Detected a cycle attempting to resolve credentials for profile ${zet(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},qet(e[c]??{})):(await _er(a.credential_source,t,r.logger)(r))();if(qet(a))return u.then(d=>Zd(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 oH(`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=>Zd(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),qet=i(t=>!t.role_arn&&!!t.credential_source,"isCredentialSourceWithoutRoleArn"),ker=i(t=>!!(t&&t.login_session),"isLoginProfile"),Oer=i(async(t,e,r)=>{let{fromLoginCredentials:n}=Met(),s=await n({...e,profile:t})({callerClientConfig:r});return Zd(s,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),Ler=i(t=>!!t&&typeof t=="object"&&typeof t.credential_process=="string","isProcessProfile"),Mer=i(async(t,e)=>{let{fromProcess:r}=_ue(),n=await r({...t,profile:e})();return Zd(n,"CREDENTIALS_PROFILE_PROCESS","v")},"resolveProcessCredentials"),Fer=i(async(t,e,r={},n)=>{let{fromSSO:s}=$le();return s({profile:t,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:n}).then(o=>e.sso_session?Zd(o,"CREDENTIALS_PROFILE_SSO","r"):Zd(o,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),Uer=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"),Het=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"),Get=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 Zd(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),$er=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"),qer=i(async(t,e,r)=>{let{fromTokenFile:n}=vue(),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 Zd(s,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q")},"resolveWebIdentityCredentials"),Vet=i(async(t,e,r,n,s={},o=!1)=>{let a=e[t];if(Object.keys(s).length>0&&Het(a))return Get(a,r);if(o||Per(a,{profile:t,logger:r.logger}))return Der(t,e,r,n,s,Vet);if(Het(a))return Get(a,r);if($er(a))return qer(a,r,n);if(Ler(a))return Mer(r,t);if(Uer(a))return await Fer(t,a,r,n);if(ker(a))return Oer(t,r,n);throw new oH(`Could not resolve credentials using profile: [${t}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),Her=i((t={})=>async({callerClientConfig:e}={})=>{t.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await Ter(t);return Vet(zet({profile:t.profile??e?.profile}),r,t,e)},"fromIni");Wet.fromIni=Her});var Due=w(aH=>{var{ENV_KEY:Ger,ENV_SECRET:zer,fromEnv:Ver}=boe(),{chain:Wer,CredentialsProviderError:iH,ENV_PROFILE:jer}=(kt(),Z(pa)),Jet="AWS_EC2_METADATA_DISABLED",Jer=i(async t=>{let{ENV_CMDS_FULL_URI:e,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:n,fromInstanceMetadata:s}=M2();if(process.env[r]||process.env[e]){t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:o}=Gce();return Wer(o(t),n(t))}return process.env[Jet]&&process.env[Jet]!=="false"?async()=>{throw new iH("EC2 Instance Metadata Service access disabled",{logger:t.logger})}:(t.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),s(t))},"remoteProvider");function Yer(t,e){let r=Ker(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(Yer,"memoizeChain");var Ker=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"),Yet=!1,Xer=i((t={})=>Yer([async()=>{if(t.profile??process.env[jer])throw process.env[Ger]&&process.env[zer]&&(Yet||((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.
`),Yet=!0)),new iH("AWS_PROFILE is set, skipping fromEnv provider.",{logger:t.logger,tryNextLink:!0});return t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Ver(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 iH("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:t.logger});let{fromSSO:c}=$le();return c(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=jet();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=_ue();return r(t)(e)},async e=>{t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=vue();return r(t)(e)},async()=>(t.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await Jer(t))()),async()=>{throw new iH("Could not load credentials from any providers",{tryNextLink:!1,logger:t.logger})}],Ket),"defaultProvider"),Zer=i(t=>t?.expiration!==void 0,"credentialsWillNeedRefresh"),Ket=i(t=>t?.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");aH.credentialsTreatedAsExpired=Ket;aH.credentialsWillNeedRefresh=Zer;aH.defaultProvider=Xer});var Wit=w(I=>{var{awsEndpointFunctions:etr,emitWarningIfUnsupportedVersion:ttr,createDefaultUserAgentProvider:rtr,NODE_APP_ID_CONFIG_OPTIONS:ntr,getAwsRegionExtensionConfiguration:str,resolveAwsRegionExtensionConfiguration:otr,resolveUserAgentConfig:itr,resolveHostHeaderConfig:atr,getUserAgentPlugin:ctr,getHostHeaderPlugin:ltr,getLoggerPlugin:utr,getRecursionDetectionPlugin:dtr}=(bt(),Z(gc)),{getHttpAuthSchemeEndpointRuleSetPlugin:ptr,DefaultIdentityProviderConfig:ftr,getHttpSigningPlugin:mtr,createPaginator:Lg}=(Gs(),Z(Zre)),{normalizeProvider:ntt,getSmithyContext:htr,ServiceException:Atr,NoOpLogger:gtr,emitWarningIfUnsupportedVersion:ytr,loadConfigsForDefaultMode:Etr,getDefaultExtensionConfiguration:Ctr,resolveDefaultRuntimeConfig:Itr,Client:stt,makeBuilder:Str,createWaiter:tz,checkExceptions:ott,WaiterState:Mw,createAggregatedClient:wtr}=(Ie(),Z(UB)),{Command:xtr}=(Ie(),Z(UB));I.$Command=xtr;I.__Client=stt;var{resolveDefaultsModeConfig:btr,loadConfig:Dg,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Btr,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Rtr,NODE_REGION_CONFIG_OPTIONS:Ntr,NODE_REGION_CONFIG_FILE_OPTIONS:Ttr,resolveRegionConfig:_tr}=(kt(),Z(pa)),{BinaryDecisionDiagram:Ptr,EndpointCache:vtr,decideEndpoint:Qtr,customEndpointFunctions:Dtr,resolveEndpointConfig:ktr,getEndpointPlugin:Otr}=(Gt(),Z(Ete)),{parseUrl:Ltr,getHttpHandlerExtensionConfiguration:Mtr,resolveHttpHandlerRuntimeConfig:Ftr,getContentLengthPlugin:Utr}=(Qe(),Z(cR)),{DEFAULT_RETRY_MODE:$tr,NODE_RETRY_MODE_CONFIG_OPTIONS:qtr,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Htr,resolveRetryConfig:Gtr,getRetryPlugin:ztr}=(xi(),Z(Lre)),{TypeRegistry:itt,getSchemaSerdePlugin:Vtr}=(We(),Z(XZ)),{resolveAwsSdkSigV4Config:Wtr,AwsSdkSigV4Signer:jtr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Jtr}=(gs(),Z(PU)),{defaultProvider:Ytr}=Due(),{toUtf8:Ktr,fromUtf8:Xtr,toBase64:Ztr,fromBase64:err,calculateBodyLength:trr}=(Te(),Z(WM)),{streamCollector:rrr,NodeHttpHandler:nrr}=Yd(),{AwsJson1_1Protocol:srr}=(Sg(),Z(Cle)),{Sha256:orr}=(Od(),Z(Gte)),irr=i(async(t,e,r)=>({operation:htr(e).operation,region:await ntt(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRHttpAuthSchemeParametersProvider");function arr(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(arr,"createAwsAuthSigv4HttpAuthOption");var crr=i(t=>{let e=[];switch(t.operation){default:e.push(arr(t))}return e},"defaultECRHttpAuthSchemeProvider"),lrr=i(t=>{let e=Wtr(t);return Object.assign(e,{authSchemePreference:ntt(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),urr=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr"}),"resolveClientEndpointParameters"),drr={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},prr="3.1155.0",frr={version:prr},Fw="ref",kg=-1,cH=!0,Xet="isSet",Oue="PartitionResult",Qm="stringEquals",lH="booleanEquals",kue="getAttr",Zet={[Fw]:"Endpoint"},Dm={fn:kue,argv:[{[Fw]:Oue},"name"]},ett={[Fw]:Oue},Og={},ttt=[{[Fw]:"Region"}],rtt={conditions:[[Xet,[Zet]],[Xet,ttt],["aws.partition",ttt,Oue],[Qm,[Dm,"aws-eusc"]],[Qm,[Dm,"aws-iso-f"]],[Qm,[Dm,"aws-iso-e"]],[Qm,[Dm,"aws-iso-b"]],[Qm,[Dm,"aws-iso"]],[Qm,[Dm,"aws-cn"]],[Qm,[Dm,"aws-us-gov"]],[Qm,[Dm,"aws"]],[lH,[{[Fw]:"UseFIPS"},cH]],[lH,[{fn:kue,argv:[ett,"supportsFIPS"]},cH]],[lH,[{[Fw]:"UseDualStack"},cH]],[lH,[{fn:kue,argv:[ett,"supportsDualStack"]},cH]]],results:[[kg],[kg,"Invalid Configuration: FIPS and custom endpoint are not supported"],[kg,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Zet,Og],["https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",Og],["https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Og],["https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",Og],["https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Og],["https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Og],[kg,"FIPS and DualStack are enabled, but this partition does not support one or both"],[kg,"FIPS is enabled but this partition does not support FIPS"],["https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",Og],[kg,"DualStack is enabled but this partition does not support DualStack"],[kg,"Invalid Configuration: Missing Region"]]},mrr=2,es=1e8,hrr=new Int32Array([-1,1,-1,0,23,3,1,4,es+13,2,5,es+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,es+4,14,es+11,es+12,12,18,17,13,es+9,es+10,13,19,es+6,14,es+8,es+9,11,22,21,13,es+5,es+4,13,es+7,es+6,11,es+1,24,13,es+2,es+3]),Arr=Ptr.from(hrr,mrr,rtt.conditions,rtt.results),grr=new vtr({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),yrr=i((t,e={})=>grr.get(t,()=>Qtr(Arr,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");Dtr.aws=etr;var ge=class t extends Atr{static{i(this,"ECRServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecr#ECRServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},uH=class t extends ge{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)}},dH=class t extends ge{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)}},pH=class t extends ge{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)}},fH=class t extends ge{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)}},mH=class t extends ge{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)}},hH=class t extends ge{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)}},AH=class t extends ge{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)}},gH=class t extends ge{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)}},yH=class t extends ge{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}},EH=class t extends ge{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)}},CH=class t extends ge{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)}},IH=class t extends ge{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)}},SH=class t extends ge{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)}},wH=class t extends ge{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)}},xH=class t extends ge{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)}},bH=class t extends ge{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)}},BH=class t extends ge{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)}},RH=class t extends ge{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)}},NH=class t extends ge{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)}},TH=class t extends ge{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)}},_H=class t extends ge{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)}},PH=class t extends ge{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)}},vH=class t extends ge{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)}},QH=class t extends ge{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)}},DH=class t extends ge{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)}},kH=class t extends ge{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)}},OH=class t extends ge{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)}},LH=class t extends ge{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)}},MH=class t extends ge{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)}},FH=class t extends ge{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)}},UH=class t extends ge{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)}},$H=class t extends ge{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)}},qH=class t extends ge{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)}},HH=class t extends ge{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)}},GH=class t extends ge{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)}},zH=class t extends ge{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)}},VH=class t extends ge{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)}},WH=class t extends ge{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)}},jH=class t extends ge{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)}},JH=class t extends ge{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)}},YH=class t extends ge{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)}},KH=class t extends ge{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)}},XH=class t extends ge{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)}},ZH=class t extends ge{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)}},eG=class t extends ge{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)}},tG=class t extends ge{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)}},rG=class t extends ge{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}},Err="Attribute",Crr="AuthorizationData",Irr="AuthorizationDataList",Srr="AwsEcrContainerImageDetails",wrr="AttributeList",xrr="BlockedByOrganizationPolicyException",brr="BatchCheckLayerAvailability",Brr="BatchCheckLayerAvailabilityRequest",Rrr="BatchCheckLayerAvailabilityResponse",Nrr="BatchDeleteImage",Trr="BatchDeleteImageRequest",_rr="BatchDeleteImageResponse",Prr="BatchGetImage",vrr="BatchGetImageRequest",Qrr="BatchGetImageResponse",Drr="BatchGetRepositoryScanningConfiguration",krr="BatchGetRepositoryScanningConfigurationRequest",Orr="BatchGetRepositoryScanningConfigurationResponse",Lrr="CompleteLayerUpload",Mrr="CompleteLayerUploadRequest",Frr="CompleteLayerUploadResponse",Urr="CreatePullThroughCacheRule",$rr="CreatePullThroughCacheRuleRequest",qrr="CreatePullThroughCacheRuleResponse",Hrr="CreateRepository",Grr="CreateRepositoryCreationTemplate",zrr="CreateRepositoryCreationTemplateRequest",Vrr="CreateRepositoryCreationTemplateResponse",Wrr="CreateRepositoryRequest",jrr="CreateRepositoryResponse",Jrr="CvssScore",Yrr="CvssScoreAdjustment",Krr="CvssScoreAdjustmentList",Xrr="CvssScoreDetails",Zrr="CvssScoreList",enr="DescribeImages",tnr="DescribeImagesFilter",rnr="DescribeImagesRequest",nnr="DescribeImageReplicationStatus",snr="DescribeImageReplicationStatusRequest",onr="DescribeImageReplicationStatusResponse",inr="DescribeImagesResponse",anr="DescribeImageScanFindings",cnr="DescribeImageScanFindingsRequest",lnr="DescribeImageScanFindingsResponse",unr="DescribeImageSigningStatus",dnr="DescribeImageSigningStatusRequest",pnr="DescribeImageSigningStatusResponse",fnr="DeleteLifecyclePolicy",mnr="DeleteLifecyclePolicyRequest",hnr="DeleteLifecyclePolicyResponse",Anr="DeletePullThroughCacheRule",gnr="DeletePullThroughCacheRuleRequest",ynr="DeletePullThroughCacheRuleResponse",Enr="DescribePullThroughCacheRulesRequest",Cnr="DescribePullThroughCacheRulesResponse",Inr="DescribePullThroughCacheRules",Snr="DeregisterPullTimeUpdateExclusion",wnr="DeregisterPullTimeUpdateExclusionRequest",xnr="DeregisterPullTimeUpdateExclusionResponse",bnr="DeleteRepository",Bnr="DeleteRepositoryCreationTemplate",Rnr="DeleteRepositoryCreationTemplateRequest",Nnr="DeleteRepositoryCreationTemplateResponse",Tnr="DescribeRepositoryCreationTemplatesRequest",_nr="DescribeRepositoryCreationTemplatesResponse",Pnr="DescribeRepositoryCreationTemplates",vnr="DeleteRegistryPolicy",Qnr="DeleteRegistryPolicyRequest",Dnr="DeleteRegistryPolicyResponse",knr="DeleteRepositoryPolicyRequest",Onr="DeleteRepositoryPolicyResponse",Lnr="DeleteRepositoryPolicy",Mnr="DeleteRepositoryRequest",Fnr="DeleteRepositoryResponse",Unr="DescribeRegistryRequest",$nr="DescribeRegistryResponse",qnr="DescribeRepositoriesRequest",Hnr="DescribeRepositoriesResponse",Gnr="DescribeRegistry",znr="DescribeRepositories",Vnr="DeleteSigningConfiguration",Wnr="DeleteSigningConfigurationRequest",jnr="DeleteSigningConfigurationResponse",Jnr="ExclusionAlreadyExistsException",Ynr="EncryptionConfiguration",Knr="EncryptionConfigurationForRepositoryCreationTemplate",Xnr="EnhancedImageScanFinding",Znr="EnhancedImageScanFindingList",esr="ExclusionNotFoundException",tsr="EmptyUploadException",rsr="GetAccountSetting",nsr="GetAccountSettingRequest",ssr="GetAccountSettingResponse",osr="GetAuthorizationToken",isr="GetAuthorizationTokenRequest",asr="GetAuthorizationTokenResponse",csr="GetDownloadUrlForLayer",lsr="GetDownloadUrlForLayerRequest",usr="GetDownloadUrlForLayerResponse",dsr="GetLifecyclePolicy",psr="GetLifecyclePolicyPreview",fsr="GetLifecyclePolicyPreviewRequest",msr="GetLifecyclePolicyPreviewResponse",hsr="GetLifecyclePolicyRequest",Asr="GetLifecyclePolicyResponse",gsr="GetRegistryPolicy",ysr="GetRegistryPolicyRequest",Esr="GetRegistryPolicyResponse",Csr="GetRepositoryPolicyRequest",Isr="GetRepositoryPolicyResponse",Ssr="GetRepositoryPolicy",wsr="GetRegistryScanningConfiguration",xsr="GetRegistryScanningConfigurationRequest",bsr="GetRegistryScanningConfigurationResponse",Bsr="GetSigningConfiguration",Rsr="GetSigningConfigurationRequest",Nsr="GetSigningConfigurationResponse",Tsr="Image",_sr="ImageArchivedException",Psr="ImageAlreadyExistsException",vsr="ImageDetail",Qsr="ImageDigestDoesNotMatchException",Dsr="ImageDetailList",ksr="ImageFailure",Osr="ImageFailureList",Lsr="ImageIdentifier",Msr="ImageIdentifierList",Fsr="ImageList",Usr="InvalidLayerException",$sr="InvalidLayerPartException",qsr="InitiateLayerUpload",Hsr="InitiateLayerUploadRequest",Gsr="InitiateLayerUploadResponse",zsr="ImageNotFoundException",Vsr="InvalidParameterException",Wsr="ImageReferrer",jsr="ImageReferrerList",Jsr="ImageReplicationStatus",Ysr="ImageReplicationStatusList",Ksr="ImageScanningConfiguration",Xsr="ImageStorageClassUpdateNotSupportedException",Zsr="ImageScanFinding",eor="ImageScanFindingList",tor="ImageScanFindingsSummary",ror="ImageScanFindings",nor="ImageScanStatus",sor="ImageSigningStatusList",oor="ImageSigningStatus",ior="ImageTagAlreadyExistsException",aor="ImageTagMutabilityExclusionFilter",cor="ImageTagMutabilityExclusionFilters",lor="InvalidTagParameterException",uor="Key",dor="KmsException",por="Layer",mor="LayerAlreadyExistsException",hor="LimitExceededException",Aor="LayerFailure",gor="LayerFailureList",yor="ListImages",Eor="LayerInaccessibleException",Cor="ListImagesFilter",Ior="ListImagesRequest",Sor="ListImageReferrersFilter",wor="ListImageReferrersRequest",xor="ListImageReferrersResponse",bor="ListImagesResponse",Bor="ListImageReferrers",Ror="LayerList",Nor="LayersNotFoundException",Tor="LifecyclePolicyNotFoundException",_or="LifecyclePolicyPreviewFilter",Por="LifecyclePolicyPreviewInProgressException",vor="LifecyclePolicyPreviewNotFoundException",Qor="LifecyclePolicyPreviewResult",Dor="LifecyclePolicyPreviewResultList",kor="LifecyclePolicyPreviewSummary",Oor="LifecyclePolicyRuleAction",Lor="LayerPartTooSmallException",Mor="ListPullTimeUpdateExclusions",For="ListPullTimeUpdateExclusionsRequest",Uor="ListPullTimeUpdateExclusionsResponse",$or="ListTagsForResource",qor="ListTagsForResourceRequest",Hor="ListTagsForResourceResponse",Gor="PutAccountSetting",zor="PutAccountSettingRequest",Vor="PutAccountSettingResponse",Wor="PutImage",jor="PutImageRequest",Jor="PutImageResponse",Yor="PutImageScanningConfiguration",Kor="PutImageScanningConfigurationRequest",Xor="PutImageScanningConfigurationResponse",Zor="PutImageTagMutability",eir="PutImageTagMutabilityRequest",tir="PutImageTagMutabilityResponse",rir="PutLifecyclePolicy",nir="PutLifecyclePolicyRequest",sir="PutLifecyclePolicyResponse",oir="PutReplicationConfiguration",iir="PutReplicationConfigurationRequest",air="PutReplicationConfigurationResponse",cir="PutRegistryPolicy",lir="PutRegistryPolicyRequest",uir="PutRegistryPolicyResponse",dir="PutRegistryScanningConfiguration",pir="PutRegistryScanningConfigurationRequest",fir="PutRegistryScanningConfigurationResponse",mir="PutSigningConfiguration",hir="PutSigningConfigurationRequest",Air="PutSigningConfigurationResponse",gir="PullThroughCacheRule",yir="PullThroughCacheRuleAlreadyExistsException",Eir="PullThroughCacheRuleList",Cir="PullThroughCacheRuleNotFoundException",Iir="PackageVulnerabilityDetails",Sir="Recommendation",wir="RepositoryAlreadyExistsException",xir="ReplicationConfiguration",bir="RepositoryCreationTemplate",Bir="RepositoryCreationTemplateList",Rir="ReplicationDestination",Nir="ReplicationDestinationList",Tir="ResourceDetails",_ir="RepositoryFilter",Pir="RepositoryFilterList",vir="ReferencedImagesNotFoundException",Qir="RepositoryList",Dir="ResourceList",kir="RepositoryNotEmptyException",Oir="RepositoryNotFoundException",Lir="RegistryPolicyNotFoundException",Mir="RepositoryPolicyNotFoundException",Fir="RegisterPullTimeUpdateExclusion",Uir="RegisterPullTimeUpdateExclusionRequest",$ir="RegisterPullTimeUpdateExclusionResponse",qir="ReplicationRule",Hir="ReplicationRuleList",Gir="RegistryScanningConfiguration",zir="RepositoryScanningConfigurationFailure",Vir="RepositoryScanningConfigurationFailureList",Wir="RepositoryScanningConfigurationList",jir="RepositoryScanningConfiguration",Jir="RegistryScanningRule",Yir="RegistryScanningRuleList",Kir="Remediation",Xir="Repository",Zir="Resource",ear="SigningConfiguration",tar="SigningConfigurationNotFoundException",rar="ScoreDetails",nar="ServerException",sar="SubjectIdentifier",oar="StartImageScan",iar="StartImageScanRequest",aar="StartImageScanResponse",car="StartLifecyclePolicyPreview",lar="StartLifecyclePolicyPreviewRequest",uar="StartLifecyclePolicyPreviewResponse",dar="ScanNotFoundException",par="SecretNotFoundException",far="SigningRule",mar="ScanningRepositoryFilter",har="ScanningRepositoryFilterList",Aar="SigningRepositoryFilterList",gar="SigningRepositoryFilter",yar="SigningRuleList",Ear="SetRepositoryPolicy",Car="SetRepositoryPolicyRequest",Iar="SetRepositoryPolicyResponse",Sar="Tag",war="TemplateAlreadyExistsException",xar="TransitioningImageTotalCount",bar="TransitioningImageTotalCounts",Bar="TagList",Rar="TooManyTagsException",Nar="TemplateNotFoundException",Tar="TagResource",_ar="TagResourceRequest",Par="TagResourceResponse",Qar="UpdateImageStorageClass",Dar="UpdateImageStorageClassRequest",kar="UpdateImageStorageClassResponse",Oar="UnsupportedImageTypeException",Lar="UploadLayerPart",Mar="UploadLayerPartRequest",Far="UploadLayerPartResponse",Uar="UploadNotFoundException",$ar="UpdatePullThroughCacheRule",qar="UpdatePullThroughCacheRuleRequest",Har="UpdatePullThroughCacheRuleResponse",Gar="UntagResource",zar="UpdateRepositoryCreationTemplate",Var="UpdateRepositoryCreationTemplateRequest",War="UpdateRepositoryCreationTemplateResponse",jar="UntagResourceRequest",Jar="UntagResourceResponse",Yar="UnableToAccessSecretException",Kar="UnableToDecryptSecretValueException",Xar="UnableToGetUpstreamImageException",Zar="UnableToGetUpstreamLayerException",ecr="UnableToListUpstreamImageReferrersException",tcr="UnsupportedUpstreamRegistryException",rcr="Value",ncr="ValidationException",scr="VulnerablePackage",ocr="VulnerablePackagesList",icr="ValidatePullThroughCacheRule",acr="ValidatePullThroughCacheRuleRequest",ccr="ValidatePullThroughCacheRuleResponse",lcr="architecture",ucr="awsAccountId",dcr="authorizationData",pcr="awsEcrContainerImage",Lue="appliedFor",fcr="acceptedMediaTypes",mcr="artifactMediaType",hcr="appliedRulePriority",att="artifactStatus",Acr="appliedScanFilters",gcr="authorizationToken",ycr="artifactType",Ecr="artifactTypes",Ccr="action",Icr="adjustments",Scr="annotations",wcr="arch",xcr="attributes",bcr="author",Bcr="baseScore",_e="client",Mg="credentialArn",qw="createdAt",Uu="customRoleArn",ctt="cvss",Hw="description",Rcr="downloadUrl",Ncr="destinations",Tcr="details",_cr="digest",Re="error",Pcr="expiresAt",vcr="exploitAvailable",DT="encryptionConfiguration",Qcr="enhancedFindings",Dcr="expiringImageTotalCount",ep="ecrRepositoryPrefix",kcr="ecrRepositoryPrefixes",ltt="encryptionType",Ocr="epoch",rz="failures",Lcr="findingArn",Mcr="fixAvailable",kT="failureCode",Fcr="fixedInVersion",Ucr="firstObservedAt",$cr="filePath",nz="failureReason",utt="findingSeverityCounts",sz="filterType",qcr="failure",km="filter",Hcr="findings",dtt="force",Gcr="httpError",zcr="images",Vcr="imageDetails",OT="imageDigest",Wcr="imageHash",Gw="imageIds",Pa="imageId",ptt="imageManifest",Mue="imageManifestMediaType",ftt="imagePushedAt",oz="imageStatus",iz="imageScanningConfiguration",mtt="imageScanCompletedAt",jcr="imageScanFindings",Jcr="imageScanFindingsSummary",Ycr="imageSizeInBytes",Fue="imageScanStatus",Uue="imageTags",Kcr="imageTotalCount",Fg="imageTagMutability",Ug="imageTagMutabilityExclusionFilters",htt="imageTag",Xcr="inUseCount",Zcr="isValid",elr="id",tlr="image",rlr="key",nlr="kmsError",Att="kmsKey",slr="layers",olr="layerAvailability",ilr="lastArchivedAt",alr="lastActivatedAt",clr="lastByteReceived",gtt="layerDigests",LT="layerDigest",ytt="lastEvaluatedAt",llr="lastInUseAt",ulr="lastObservedAt",$ue="lifecyclePolicy",dlr="layerPartBlob",$g="lifecyclePolicyText",plr="lastRecordedPullTime",flr="layerSize",mlr="lastValidByteReceived",Ne="message",tp="maxResults",Ett="mediaType",hlr="metric",zw="name",Ln="nextToken",Alr="platform",glr="pushedAt",az="principalArn",ylr="proxyEndpoint",Elr="partFirstByte",Clr="partLastByte",Ilr="packageManager",Slr="previewResults",wlr="partSize",Om="policyText",xlr="pullThroughCacheRules",blr="pullTimeUpdateExclusions",Blr="packageVulnerabilityDetails",cz="prefix",Rlr="prefixes",Nlr="registry",que="resourceArn",Ctt="repositoryArn",Hue="replicationConfiguration",Gue="repositoryCreationTemplate",Tlr="repositoryCreationTemplates",zue="repositoryFilters",q="registryId",_lr="registryIds",Ae="repositoryName",Itt="repositoryNames",Vue="repositoryPolicy",Plr="replicationStatuses",vlr="registryScanningConfiguration",Wue="resourceTags",Qlr="referenceUrls",Dlr="repositoryUri",klr="relatedVulnerabilities",Stt="repository",Olr="reason",Llr="recommendation",Mlr="referrers",wtt="region",Flr="release",Ulr="remediation",$lr="repositories",qlr="resources",lz="rules",xtt="smithy.ts.sdk.synthetic.com.amazonaws.ecr",Hlr="scanningConfigurations",Glr="scanningConfiguration",uz="signingConfiguration",zlr="storageClass",Vlr="scoreDetails",btt="scanFrequency",Wlr="subjectId",jlr="sourceLayerHash",Jlr="subjectManifestDigest",Btt="scanOnPush",Rtt="signingProfileArn",Ylr="scoreSource",Klr="signingStatuses",Ntt="scanType",Xlr="sourceUrl",Ttt="scoringVector",_tt="score",Zlr="server",Ptt="severity",eur="size",vtt="source",Vw="status",tur="summary",dz="tags",rur="transitioningImageTotalCounts",nur="tagKeys",jue="tagStatus",Jue="targetStorageClass",sur="text",our="title",Yue="type",iur="uri",pz="updatedAt",Ww="uploadId",Kue="upstreamRegistry",jw="upstreamRepositoryPrefix",MT="upstreamRegistryUrl",aur="url",fz="value",cur="vendorCreatedAt",lur="vulnerabilityId",uur="vulnerablePackages",dur="vendorSeverity",Qtt="vulnerabilitySourceUpdatedAt",pur="vendorUpdatedAt",Xue="version",x="com.amazonaws.ecr",Dtt=new itt(xtt),ktt=[-3,xtt,"ECRServiceException",0,[],[]];Dtt.registerError(ktt,ge);var we=new itt(x),Ott=[-3,x,xrr,{[Re]:_e},[Ne],[0]];we.registerError(Ott,YH);var Ltt=[-3,x,tsr,{[Re]:_e},[Ne],[0]];we.registerError(Ltt,AH);var Mtt=[-3,x,Jnr,{[Re]:_e},[Ne],[0]];we.registerError(Mtt,KH);var Ftt=[-3,x,esr,{[Re]:_e},[Ne],[0]];we.registerError(Ftt,MH);var Utt=[-3,x,Psr,{[Re]:_e},[Ne],[0]];we.registerError(Utt,VH);var $tt=[-3,x,_sr,{[Re]:_e},[Ne],[0]];we.registerError($tt,XH);var qtt=[-3,x,Qsr,{[Re]:_e},[Ne],[0]];we.registerError(qtt,WH);var Htt=[-3,x,zsr,{[Re]:_e},[Ne],[0]];we.registerError(Htt,FH);var Gtt=[-3,x,Xsr,{[Re]:_e},[Ne],[0]];we.registerError(Gtt,tG);var ztt=[-3,x,ior,{[Re]:_e},[Ne],[0]];we.registerError(ztt,jH);var Vtt=[-3,x,Usr,{[Re]:_e},[Ne],[0]];we.registerError(Vtt,gH);var Wtt=[-3,x,$sr,{[Re]:_e},[q,Ae,Ww,mlr,Ne],[0,0,0,1,0]];we.registerError(Wtt,rG);var jtt=[-3,x,Vsr,{[Re]:_e},[Ne],[0]];we.registerError(jtt,uH);var Jtt=[-3,x,lor,{[Re]:_e},[Ne],[0]];we.registerError(Jtt,RH);var Ytt=[-3,x,dor,{[Re]:_e},[Ne,nlr],[0,0]];we.registerError(Ytt,yH);var Ktt=[-3,x,mor,{[Re]:_e},[Ne],[0]];we.registerError(Ktt,EH);var Xtt=[-3,x,Eor,{[Re]:_e},[Ne],[0]];we.registerError(Xtt,$H);var Ztt=[-3,x,Lor,{[Re]:_e},[Ne],[0]];we.registerError(Ztt,CH);var ert=[-3,x,Nor,{[Re]:_e},[Ne],[0]];we.registerError(ert,qH);var trt=[-3,x,Tor,{[Re]:_e},[Ne],[0]];we.registerError(trt,PH);var rrt=[-3,x,Por,{[Re]:_e},[Ne],[0]];we.registerError(rrt,eG);var nrt=[-3,x,vor,{[Re]:_e},[Ne],[0]];we.registerError(nrt,GH);var srt=[-3,x,hor,{[Re]:_e},[Ne],[0]];we.registerError(srt,fH);var ort=[-3,x,yir,{[Re]:_e},[Ne],[0]];we.registerError(ort,SH);var irt=[-3,x,Cir,{[Re]:_e},[Ne],[0]];we.registerError(irt,vH);var art=[-3,x,vir,{[Re]:_e},[Ne],[0]];we.registerError(art,JH);var crt=[-3,x,Lir,{[Re]:_e},[Ne],[0]];we.registerError(crt,QH);var lrt=[-3,x,wir,{[Re]:_e},[Ne],[0]];we.registerError(lrt,NH);var urt=[-3,x,kir,{[Re]:_e},[Ne],[0]];we.registerError(urt,DH);var drt=[-3,x,Oir,{[Re]:_e},[Ne],[0]];we.registerError(drt,dH);var prt=[-3,x,Mir,{[Re]:_e},[Ne],[0]];we.registerError(prt,OH);var frt=[-3,x,dar,{[Re]:_e},[Ne],[0]];we.registerError(frt,UH);var mrt=[-3,x,par,{[Re]:_e},[Ne],[0]];we.registerError(mrt,wH);var hrt=[-3,x,nar,{[Re]:Zlr},[Ne],[0]];we.registerError(hrt,pH);var Art=[-3,x,tar,{[Re]:_e},[Ne],[0]];we.registerError(Art,LH);var grt=[-3,x,war,{[Re]:_e},[Ne],[0]];we.registerError(grt,_H);var yrt=[-3,x,Nar,{[Re]:_e},[Ne],[0]];we.registerError(yrt,kH);var Ert=[-3,x,Rar,{[Re]:_e},[Ne],[0]];we.registerError(Ert,TH);var Crt=[-3,x,Yar,{[Re]:_e},[Ne],[0]];we.registerError(Crt,xH);var Irt=[-3,x,Kar,{[Re]:_e},[Ne],[0]];we.registerError(Irt,bH);var Srt=[-3,x,Xar,{[Re]:_e},[Ne],[0]];we.registerError(Srt,mH);var wrt=[-3,x,Zar,{[Re]:_e},[Ne],[0]];we.registerError(wrt,HH);var xrt=[-3,x,ecr,{[Re]:_e},[Ne],[0]];we.registerError(xrt,zH);var brt=[-3,x,Oar,{[Re]:_e},[Ne],[0]];we.registerError(brt,ZH);var Brt=[-3,x,tcr,{[Re]:_e},[Ne],[0]];we.registerError(Brt,BH);var Rrt=[-3,x,Uar,{[Re]:_e},[Ne],[0]];we.registerError(Rrt,IH);var Nrt=[-3,x,ncr,{[Re]:_e,[Gcr]:400},[Ne],[0]];we.registerError(Nrt,hH);var Trt=[Dtt,we],_rt=[3,x,Err,0,[rlr,fz],[0,0],1],Prt=[3,x,Crr,0,[gcr,Pcr,ylr],[0,4,0]],vrt=[3,x,Srr,0,[lcr,bcr,Wcr,Uue,Alr,glr,llr,Xcr,Nlr,Ae],[0,0,0,64,0,4,4,1,0,0]],Qrt=[3,x,Brr,0,[Ae,gtt,q],[0,64,0],2],Drt=[3,x,Rrr,0,[slr,rz],[()=>bur,()=>xur]],krt=[3,x,Trr,0,[Ae,Gw,q],[0,()=>Jw,0],2],Ort=[3,x,_rr,0,[Gw,rz],[()=>Jw,()=>Tot]],Lrt=[3,x,vrr,0,[Ae,Gw,q,fcr],[0,()=>Jw,0,64],2],Mrt=[3,x,Qrr,0,[zcr,rz],[()=>Eur,()=>Tot]],Frt=[3,x,krr,0,[Itt],[64],1],Urt=[3,x,Orr,0,[Hlr,rz],[()=>Dur,()=>Qur]],$rt=[3,x,Mrr,0,[Ae,Ww,gtt,q],[0,0,64,0],3],qrt=[3,x,Frr,0,[q,Ae,Ww,LT],[0,0,0,0]],Hrt=[3,x,$rr,0,[ep,MT,q,Kue,Mg,Uu,jw],[0,0,0,0,0,0,0],2],Grt=[3,x,qrr,0,[ep,MT,qw,q,Kue,Mg,Uu,jw],[0,0,4,0,0,0,0,0]],zrt=[3,x,zrr,0,[cz,Lue,Hw,DT,Wue,Fg,Ug,Vue,$ue,Uu],[0,64,0,()=>mz,()=>Yw,0,()=>qg,0,0,0],2],Vrt=[3,x,Vrr,0,[q,Gue],[0,()=>UT]],Wrt=[3,x,Wrr,0,[Ae,q,dz,Fg,Ug,iz,DT],[0,0,()=>Yw,0,()=>qg,()=>FT,()=>Zue],1],jrt=[3,x,jrr,0,[Stt],[()=>gz]],Jrt=[3,x,Jrr,0,[Bcr,Ttt,vtt,Xue],[1,0,0,0]],Yrt=[3,x,Yrr,0,[hlr,Olr],[0,0]],Krt=[3,x,Xrr,0,[Icr,_tt,Ylr,Ttt,Xue],[()=>hur,1,0,0,0]],Xrt=[3,x,mnr,0,[Ae,q],[0,0],1],Zrt=[3,x,hnr,0,[q,Ae,$g,ytt],[0,0,0,4]],ent=[3,x,gnr,0,[ep,q],[0,0],1],tnt=[3,x,ynr,0,[ep,MT,qw,q,Mg,Uu,jw],[0,0,4,0,0,0,0]],rnt=[3,x,Qnr,0,[],[]],nnt=[3,x,Dnr,0,[q,Om],[0,0]],snt=[3,x,Rnr,0,[cz],[0],1],ont=[3,x,Nnr,0,[q,Gue],[0,()=>UT]],int=[3,x,knr,0,[Ae,q],[0,0],1],ant=[3,x,Onr,0,[q,Ae,Om],[0,0,0]],cnt=[3,x,Mnr,0,[Ae,q,dtt],[0,0,2],1],lnt=[3,x,Fnr,0,[Stt],[()=>gz]],unt=[3,x,Wnr,0,[],[]],dnt=[3,x,jnr,0,[q,uz],[0,()=>$T]],pnt=[3,x,wnr,0,[az],[0],1],fnt=[3,x,xnr,0,[az],[0]],mnt=[3,x,snr,0,[Ae,Pa,q],[0,()=>Uo,0],2],hnt=[3,x,onr,0,[Ae,Pa,Plr],[0,()=>Uo,()=>Iur]],Ant=[3,x,cnr,0,[Ae,Pa,q,Ln,tp],[0,()=>Uo,0,0,1],2],gnt=[3,x,lnr,0,[q,Ae,Pa,Fue,jcr,Ln],[0,0,()=>Uo,()=>hz,()=>tst,0]],ynt=[3,x,tnr,0,[jue,oz],[0,0]],Ent=[3,x,dnr,0,[Ae,Pa,q],[0,()=>Uo,0],2],Cnt=[3,x,pnr,0,[Ae,Pa,q,Klr],[0,()=>Uo,0,()=>wur]],Int=[3,x,rnr,0,[Ae,q,Gw,Ln,tp,km],[0,0,()=>Jw,0,1,()=>ynt],1],Snt=[3,x,inr,0,[Vcr,Ln],[()=>yur,0]],wnt=[3,x,Enr,0,[q,kcr,Ln,tp],[0,64,0,1]],xnt=[3,x,Cnr,0,[xlr,Ln],[()=>Rur,0]],bnt=[3,x,Unr,0,[],[]],Bnt=[3,x,$nr,0,[q,Hue],[0,()=>Az]],Rnt=[3,x,qnr,0,[q,Itt,Ln,tp],[0,64,0,1]],Nnt=[3,x,Hnr,0,[$lr,Ln],[()=>vur,0]],Tnt=[3,x,Tnr,0,[Rlr,Ln,tp],[64,0,1]],_nt=[3,x,_nr,0,[q,Tlr,Ln],[0,()=>_ur,0]],Zue=[3,x,Ynr,0,[ltt,Att],[0,0],1],mz=[3,x,Knr,0,[ltt,Att],[0,0],1],Pnt=[3,x,Xnr,0,[ucr,Hw,Lcr,Ucr,ulr,Blr,Ulr,qlr,_tt,Vlr,Ptt,Vw,our,Yue,pz,Mcr,vcr],[0,0,0,4,4,()=>wst,()=>Wst,()=>kur,1,()=>rot,0,0,0,0,4,0,0]],vnt=[3,x,nsr,0,[zw],[0],1],Qnt=[3,x,ssr,0,[zw,fz],[0,0]],Dnt=[3,x,isr,0,[_lr],[64]],knt=[3,x,asr,0,[dcr],[()=>mur]],Ont=[3,x,lsr,0,[Ae,LT,q],[0,0,0],2],Lnt=[3,x,usr,0,[Rcr,LT],[0,0]],Mnt=[3,x,fsr,0,[Ae,q,Gw,Ln,tp,km],[0,0,()=>Jw,0,1,()=>lst],1],Fnt=[3,x,msr,0,[q,Ae,$g,Vw,Ln,Slr,tur],[0,0,0,0,0,()=>Bur,()=>dst]],Unt=[3,x,hsr,0,[Ae,q],[0,0],1],$nt=[3,x,Asr,0,[q,Ae,$g,ytt],[0,0,0,4]],qnt=[3,x,ysr,0,[],[]],Hnt=[3,x,Esr,0,[q,Om],[0,0]],Gnt=[3,x,xsr,0,[],[]],znt=[3,x,bsr,0,[q,Glr],[0,()=>tde]],Vnt=[3,x,Csr,0,[Ae,q],[0,0],1],Wnt=[3,x,Isr,0,[q,Ae,Om],[0,0,0]],jnt=[3,x,Rsr,0,[],[]],Jnt=[3,x,Nsr,0,[q,uz],[0,()=>$T]],ede=[3,x,Tsr,0,[q,Ae,Pa,ptt,Mue],[0,0,()=>Uo,0,0]],Ynt=[3,x,vsr,0,[q,Ae,OT,Uue,Ycr,ftt,Fue,Jcr,Mue,mcr,plr,Jlr,oz,ilr,alr],[0,0,0,64,1,4,()=>hz,()=>rst,0,0,4,0,0,4,4]],Knt=[3,x,ksr,0,[Pa,kT,nz],[()=>Uo,0,0]],Uo=[3,x,Lsr,0,[OT,htt],[0,0]],Xnt=[3,x,Wsr,0,[_cr,Ett,eur,ycr,Scr,att],[0,0,1,0,128,0],3],Znt=[3,x,Jsr,0,[wtt,q,Vw,kT],[0,0,0,0]],est=[3,x,Zsr,0,[zw,Hw,iur,Ptt,xcr],[0,0,0,0,()=>fur]],tst=[3,x,ror,0,[mtt,Qtt,utt,Hcr,Qcr],[4,4,129,()=>Sur,()=>gur]],rst=[3,x,tor,0,[mtt,Qtt,utt],[4,4,129]],FT=[3,x,Ksr,0,[Btt],[2]],hz=[3,x,nor,0,[Vw,Hw],[0,0]],nst=[3,x,oor,0,[Rtt,kT,nz,Vw],[0,0,0,0]],sst=[3,x,aor,0,[sz,km],[0,0],2],ost=[3,x,Hsr,0,[Ae,q],[0,0],1],ist=[3,x,Gsr,0,[Ww,wlr],[0,1]],ast=[3,x,por,0,[LT,olr,flr,Ett],[0,0,1,0]],cst=[3,x,Aor,0,[LT,kT,nz],[0,0,0]],lst=[3,x,_or,0,[jue],[0]],ust=[3,x,Qor,0,[Uue,OT,ftt,Ccr,hcr,zlr],[64,0,4,()=>pst,1,0]],dst=[3,x,kor,0,[Dcr,rur],[1,()=>Mur]],pst=[3,x,Oor,0,[Yue,Jue],[0,0]],fst=[3,x,Sor,0,[Ecr,att],[64,0]],mst=[3,x,wor,0,[Ae,Wlr,q,km,Ln,tp],[0,()=>dot,0,()=>fst,0,1],2],hst=[3,x,xor,0,[Mlr,Ln],[()=>Cur,0]],Ast=[3,x,Cor,0,[jue,oz],[0,0]],gst=[3,x,Ior,0,[Ae,q,Ln,tp,km],[0,0,0,1,()=>Ast],1],yst=[3,x,bor,0,[Gw,Ln],[()=>Jw,0]],Est=[3,x,For,0,[tp,Ln],[1,0]],Cst=[3,x,Uor,0,[blr,Ln],[64,0]],Ist=[3,x,qor,0,[que],[0],1],Sst=[3,x,Hor,0,[dz],[()=>Yw]],wst=[3,x,Iir,0,[ctt,Qlr,klr,vtt,Xlr,cur,dur,pur,lur,uur],[()=>Aur,64,64,0,0,4,0,4,0,()=>Fur]],xst=[3,x,gir,0,[ep,MT,qw,q,Mg,Uu,jw,Kue,pz],[0,0,4,0,0,0,0,0,4]],bst=[3,x,zor,0,[zw,fz],[0,0],2],Bst=[3,x,Vor,0,[zw,fz],[0,0]],Rst=[3,x,jor,0,[Ae,ptt,q,Mue,htt,OT],[0,0,0,0,0,0],2],Nst=[3,x,Jor,0,[tlr],[()=>ede]],Tst=[3,x,Kor,0,[Ae,iz,q],[0,()=>FT,0],2],_st=[3,x,Xor,0,[q,Ae,iz],[0,0,()=>FT]],Pst=[3,x,eir,0,[Ae,Fg,q,Ug],[0,0,0,()=>qg],2],vst=[3,x,tir,0,[q,Ae,Fg,Ug],[0,0,0,()=>qg]],Qst=[3,x,nir,0,[Ae,$g,q],[0,0,0],2],Dst=[3,x,sir,0,[q,Ae,$g],[0,0,0]],kst=[3,x,lir,0,[Om],[0],1],Ost=[3,x,uir,0,[q,Om],[0,0]],Lst=[3,x,pir,0,[Ntt,lz],[0,()=>_ot]],Mst=[3,x,fir,0,[vlr],[()=>tde]],Fst=[3,x,iir,0,[Hue],[()=>Az],1],Ust=[3,x,air,0,[Hue],[()=>Az]],$st=[3,x,hir,0,[uz],[()=>$T],1],qst=[3,x,Air,0,[uz],[()=>$T]],Hst=[3,x,Sir,0,[aur,sur],[0,0]],Gst=[3,x,Uir,0,[az],[0],1],zst=[3,x,$ir,0,[az,qw],[0,4]],tde=[3,x,Gir,0,[Ntt,lz],[0,()=>_ot]],Vst=[3,x,Jir,0,[btt,zue],[0,()=>Pot],2],Wst=[3,x,Kir,0,[Llr],[()=>Hst]],Az=[3,x,xir,0,[lz],[()=>Tur],1],jst=[3,x,Rir,0,[wtt,q],[0,0],2],Jst=[3,x,qir,0,[Ncr,zue],[()=>Nur,()=>Pur],1],gz=[3,x,Xir,0,[Ctt,q,Ae,Dlr,qw,Fg,Ug,iz,DT],[0,0,0,0,4,0,()=>qg,()=>FT,()=>Zue]],UT=[3,x,bir,0,[cz,Hw,DT,Wue,Fg,Ug,Vue,$ue,Lue,Uu,qw,pz],[0,0,()=>mz,()=>Yw,0,()=>qg,0,0,64,0,4,4]],Yst=[3,x,_ir,0,[km,sz],[0,0],2],Kst=[3,x,jir,0,[Ctt,Ae,Btt,btt,Acr],[0,0,2,0,()=>Pot]],Xst=[3,x,zir,0,[Ae,kT,nz],[0,0,0]],Zst=[3,x,Zir,0,[Tcr,elr,dz,Yue],[()=>eot,0,128,0]],eot=[3,x,Tir,0,[pcr],[()=>vrt]],tot=[3,x,mar,0,[km,sz],[0,0],2],rot=[3,x,rar,0,[ctt],[()=>Krt]],not=[3,x,Car,0,[Ae,Om,q,dtt],[0,0,0,2],2],sot=[3,x,Iar,0,[q,Ae,Om],[0,0,0]],$T=[3,x,ear,0,[lz],[()=>Lur],1],oot=[3,x,gar,0,[km,sz],[0,0],2],iot=[3,x,far,0,[Rtt,zue],[0,()=>Our],1],aot=[3,x,iar,0,[Ae,Pa,q],[0,()=>Uo,0],2],cot=[3,x,aar,0,[q,Ae,Pa,Fue],[0,0,()=>Uo,()=>hz]],lot=[3,x,lar,0,[Ae,q,$g],[0,0,0],1],uot=[3,x,uar,0,[q,Ae,$g,Vw],[0,0,0,0]],dot=[3,x,sar,0,[OT],[0],1],pot=[3,x,Sar,0,[uor,rcr],[0,0],2],fot=[3,x,_ar,0,[que,dz],[0,()=>Yw],2],mot=[3,x,Par,0,[],[]],hot=[3,x,xar,0,[Jue,Kcr],[0,1]],Aot=[3,x,jar,0,[que,nur],[0,64],2],got=[3,x,Jar,0,[],[]],yot=[3,x,Dar,0,[Ae,Pa,Jue,q],[0,()=>Uo,0,0],3],Eot=[3,x,kar,0,[q,Ae,Pa,oz],[0,0,()=>Uo,0]],Cot=[3,x,qar,0,[ep,q,Mg,Uu],[0,0,0,0],1],Iot=[3,x,Har,0,[ep,q,pz,Mg,Uu,jw],[0,0,4,0,0,0]],Sot=[3,x,Var,0,[cz,Hw,DT,Wue,Fg,Ug,Vue,$ue,Lue,Uu],[0,0,()=>mz,()=>Yw,0,()=>qg,0,0,64,0],1],wot=[3,x,War,0,[q,Gue],[0,()=>UT]],xot=[3,x,Mar,0,[Ae,Ww,Elr,Clr,dlr,q],[0,0,1,1,21,0],5],bot=[3,x,Far,0,[q,Ae,Ww,clr],[0,0,0,1]],Bot=[3,x,acr,0,[ep,q],[0,0],1],Rot=[3,x,ccr,0,[ep,q,MT,Mg,Uu,jw,Zcr,qcr],[0,0,0,0,0,0,2,0]],Not=[3,x,scr,0,[wcr,Ocr,$cr,zw,Ilr,Flr,jlr,Xue,Fcr],[0,1,0,0,0,0,0,0,0]],fur=[1,x,wrr,0,()=>_rt],mur=[1,x,Irr,0,()=>Prt],hur=[1,x,Krr,0,()=>Yrt],Aur=[1,x,Zrr,0,()=>Jrt],gur=[1,x,Znr,0,()=>Pnt],yur=[1,x,Dsr,0,()=>Ynt],Tot=[1,x,Osr,0,()=>Knt],Jw=[1,x,Msr,0,()=>Uo],Eur=[1,x,Fsr,0,()=>ede],Cur=[1,x,jsr,0,()=>Xnt],Iur=[1,x,Ysr,0,()=>Znt],Sur=[1,x,eor,0,()=>est],wur=[1,x,sor,0,()=>nst],qg=[1,x,cor,0,()=>sst],xur=[1,x,gor,0,()=>cst],bur=[1,x,Ror,0,()=>ast],Bur=[1,x,Dor,0,()=>ust],Rur=[1,x,Eir,0,()=>xst],_ot=[1,x,Yir,0,()=>Vst],Nur=[1,x,Nir,0,()=>jst],Tur=[1,x,Hir,0,()=>Jst],_ur=[1,x,Bir,0,()=>UT],Pur=[1,x,Pir,0,()=>Yst],vur=[1,x,Qir,0,()=>gz],Qur=[1,x,Vir,0,()=>Xst],Dur=[1,x,Wir,0,()=>Kst],kur=[1,x,Dir,0,()=>Zst],Pot=[1,x,har,0,()=>tot],Our=[1,x,Aar,0,()=>oot],Lur=[1,x,yar,0,()=>iot],Yw=[1,x,Bar,0,()=>pot],Mur=[1,x,bar,0,()=>hot],Fur=[1,x,ocr,0,()=>Not],vot=[9,x,brr,0,()=>Qrt,()=>Drt],Qot=[9,x,Nrr,0,()=>krt,()=>Ort],Dot=[9,x,Prr,0,()=>Lrt,()=>Mrt],kot=[9,x,Drr,0,()=>Frt,()=>Urt],Oot=[9,x,Lrr,0,()=>$rt,()=>qrt],Lot=[9,x,Urr,0,()=>Hrt,()=>Grt],Mot=[9,x,Hrr,0,()=>Wrt,()=>jrt],Fot=[9,x,Grr,0,()=>zrt,()=>Vrt],Uot=[9,x,fnr,0,()=>Xrt,()=>Zrt],$ot=[9,x,Anr,0,()=>ent,()=>tnt],qot=[9,x,vnr,0,()=>rnt,()=>nnt],Hot=[9,x,bnr,0,()=>cnt,()=>lnt],Got=[9,x,Bnr,0,()=>snt,()=>ont],zot=[9,x,Lnr,0,()=>int,()=>ant],Vot=[9,x,Vnr,0,()=>unt,()=>dnt],Wot=[9,x,Snr,0,()=>pnt,()=>fnt],jot=[9,x,nnr,0,()=>mnt,()=>hnt],Jot=[9,x,enr,0,()=>Int,()=>Snt],Yot=[9,x,anr,0,()=>Ant,()=>gnt],Kot=[9,x,unr,0,()=>Ent,()=>Cnt],Xot=[9,x,Inr,0,()=>wnt,()=>xnt],Zot=[9,x,Gnr,0,()=>bnt,()=>Bnt],eit=[9,x,znr,0,()=>Rnt,()=>Nnt],tit=[9,x,Pnr,0,()=>Tnt,()=>_nt],rit=[9,x,rsr,0,()=>vnt,()=>Qnt],nit=[9,x,osr,0,()=>Dnt,()=>knt],sit=[9,x,csr,0,()=>Ont,()=>Lnt],oit=[9,x,dsr,0,()=>Unt,()=>$nt],iit=[9,x,psr,0,()=>Mnt,()=>Fnt],ait=[9,x,gsr,0,()=>qnt,()=>Hnt],cit=[9,x,wsr,0,()=>Gnt,()=>znt],lit=[9,x,Ssr,0,()=>Vnt,()=>Wnt],uit=[9,x,Bsr,0,()=>jnt,()=>Jnt],dit=[9,x,qsr,0,()=>ost,()=>ist],pit=[9,x,Bor,0,()=>mst,()=>hst],fit=[9,x,yor,0,()=>gst,()=>yst],mit=[9,x,Mor,0,()=>Est,()=>Cst],hit=[9,x,$or,0,()=>Ist,()=>Sst],Ait=[9,x,Gor,0,()=>bst,()=>Bst],git=[9,x,Wor,0,()=>Rst,()=>Nst],yit=[9,x,Yor,0,()=>Tst,()=>_st],Eit=[9,x,Zor,0,()=>Pst,()=>vst],Cit=[9,x,rir,0,()=>Qst,()=>Dst],Iit=[9,x,cir,0,()=>kst,()=>Ost],Sit=[9,x,dir,0,()=>Lst,()=>Mst],wit=[9,x,oir,0,()=>Fst,()=>Ust],xit=[9,x,mir,0,()=>$st,()=>qst],bit=[9,x,Fir,0,()=>Gst,()=>zst],Bit=[9,x,Ear,0,()=>not,()=>sot],Rit=[9,x,oar,0,()=>aot,()=>cot],Nit=[9,x,car,0,()=>lot,()=>uot],Tit=[9,x,Tar,0,()=>fot,()=>mot],_it=[9,x,Gar,0,()=>Aot,()=>got],Pit=[9,x,Qar,0,()=>yot,()=>Eot],vit=[9,x,$ar,0,()=>Cot,()=>Iot],Qit=[9,x,zar,0,()=>Sot,()=>wot],Dit=[9,x,Lar,0,()=>xot,()=>bot],kit=[9,x,icr,0,()=>Bot,()=>Rot],Uur=i(t=>({apiVersion:"2015-09-21",base64Decoder:t?.base64Decoder??err,base64Encoder:t?.base64Encoder??Ztr,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??yrr,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??crr,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new jtr}],logger:t?.logger??new gtr,protocol:t?.protocol??srr,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:Trt,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:t?.serviceId??"ECR",sha256:t?.sha256??orr,urlParser:t?.urlParser??Ltr,utf8Decoder:t?.utf8Decoder??Xtr,utf8Encoder:t?.utf8Encoder??Ktr}),"getRuntimeConfig$1"),$ur=i(t=>{ytr(process.version);let e=btr(t),r=i(()=>e().then(Etr),"defaultConfigProvider"),n=Uur(t);ttr(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Dg(Jtr,s),bodyLengthChecker:t?.bodyLengthChecker??trr,credentialDefaultProvider:t?.credentialDefaultProvider??Ytr,defaultUserAgentProvider:t?.defaultUserAgentProvider??rtr({serviceId:n.serviceId,clientVersion:frr.version}),maxAttempts:t?.maxAttempts??Dg(Htr,t),region:t?.region??Dg(Ntr,{...Ttr,...s}),requestHandler:nrr.create(t?.requestHandler??r),retryMode:t?.retryMode??Dg({...qtr,default:i(async()=>(await r()).retryMode||$tr,"default")},t),streamCollector:t?.streamCollector??rrr,useDualstackEndpoint:t?.useDualstackEndpoint??Dg(Rtr,s),useFipsEndpoint:t?.useFipsEndpoint??Dg(Btr,s),userAgentAppId:t?.userAgentAppId??Dg(ntr,s)}},"getRuntimeConfig"),qur=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"),Hur=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),Gur=i((t,e)=>{let r=Object.assign(str(t),Ctr(t),Mtr(t),qur(t));return e.forEach(n=>n.configure(r)),Object.assign(t,otr(r),Itr(r),Ftr(r),Hur(r))},"resolveRuntimeExtensions"),Dc=class extends stt{static{i(this,"ECRClient")}config;constructor(...[e]){let r=$ur(e||{});super(r),this.initConfig=r;let n=urr(r),s=itr(n),o=Gtr(s),a=_tr(o),c=atr(a),l=ktr(c),u=lrr(l),d=Gur(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Vtr(this.config)),this.middlewareStack.use(ctr(this.config)),this.middlewareStack.use(ztr(this.config)),this.middlewareStack.use(Utr(this.config)),this.middlewareStack.use(ltr(this.config)),this.middlewareStack.use(utr(this.config)),this.middlewareStack.use(dtr(this.config)),this.middlewareStack.use(ptr(this.config,{httpAuthSchemeParametersProvider:irr,identityProviderConfigProvider:i(async p=>new ftr({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(mtr(this.config))}destroy(){super.destroy()}},ne=Str(drr,"AmazonEC2ContainerRegistry_V20150921","ECRClient",Otr),se={},oe=i((t,e,r,n)=>[],"_mw0"),nG=class extends ne(se,oe,"BatchCheckLayerAvailability",vot){static{i(this,"BatchCheckLayerAvailabilityCommand")}},sG=class extends ne(se,oe,"BatchDeleteImage",Qot){static{i(this,"BatchDeleteImageCommand")}},oG=class extends ne(se,oe,"BatchGetImage",Dot){static{i(this,"BatchGetImageCommand")}},iG=class extends ne(se,oe,"BatchGetRepositoryScanningConfiguration",kot){static{i(this,"BatchGetRepositoryScanningConfigurationCommand")}},aG=class extends ne(se,oe,"CompleteLayerUpload",Oot){static{i(this,"CompleteLayerUploadCommand")}},cG=class extends ne(se,oe,"CreatePullThroughCacheRule",Lot){static{i(this,"CreatePullThroughCacheRuleCommand")}},lG=class extends ne(se,oe,"CreateRepository",Mot){static{i(this,"CreateRepositoryCommand")}},uG=class extends ne(se,oe,"CreateRepositoryCreationTemplate",Fot){static{i(this,"CreateRepositoryCreationTemplateCommand")}},dG=class extends ne(se,oe,"DeleteLifecyclePolicy",Uot){static{i(this,"DeleteLifecyclePolicyCommand")}},pG=class extends ne(se,oe,"DeletePullThroughCacheRule",$ot){static{i(this,"DeletePullThroughCacheRuleCommand")}},fG=class extends ne(se,oe,"DeleteRegistryPolicy",qot){static{i(this,"DeleteRegistryPolicyCommand")}},mG=class extends ne(se,oe,"DeleteRepository",Hot){static{i(this,"DeleteRepositoryCommand")}},hG=class extends ne(se,oe,"DeleteRepositoryCreationTemplate",Got){static{i(this,"DeleteRepositoryCreationTemplateCommand")}},AG=class extends ne(se,oe,"DeleteRepositoryPolicy",zot){static{i(this,"DeleteRepositoryPolicyCommand")}},gG=class extends ne(se,oe,"DeleteSigningConfiguration",Vot){static{i(this,"DeleteSigningConfigurationCommand")}},yG=class extends ne(se,oe,"DeregisterPullTimeUpdateExclusion",Wot){static{i(this,"DeregisterPullTimeUpdateExclusionCommand")}},EG=class extends ne(se,oe,"DescribeImageReplicationStatus",jot){static{i(this,"DescribeImageReplicationStatusCommand")}},Uw=class extends ne(se,oe,"DescribeImageScanFindings",Yot){static{i(this,"DescribeImageScanFindingsCommand")}},TT=class extends ne(se,oe,"DescribeImages",Jot){static{i(this,"DescribeImagesCommand")}},CG=class extends ne(se,oe,"DescribeImageSigningStatus",Kot){static{i(this,"DescribeImageSigningStatusCommand")}},_T=class extends ne(se,oe,"DescribePullThroughCacheRules",Xot){static{i(this,"DescribePullThroughCacheRulesCommand")}},IG=class extends ne(se,oe,"DescribeRegistry",Zot){static{i(this,"DescribeRegistryCommand")}},PT=class extends ne(se,oe,"DescribeRepositories",eit){static{i(this,"DescribeRepositoriesCommand")}},vT=class extends ne(se,oe,"DescribeRepositoryCreationTemplates",tit){static{i(this,"DescribeRepositoryCreationTemplatesCommand")}},SG=class extends ne(se,oe,"GetAccountSetting",rit){static{i(this,"GetAccountSettingCommand")}},wG=class extends ne(se,oe,"GetAuthorizationToken",nit){static{i(this,"GetAuthorizationTokenCommand")}},xG=class extends ne(se,oe,"GetDownloadUrlForLayer",sit){static{i(this,"GetDownloadUrlForLayerCommand")}},bG=class extends ne(se,oe,"GetLifecyclePolicy",oit){static{i(this,"GetLifecyclePolicyCommand")}},$w=class extends ne(se,oe,"GetLifecyclePolicyPreview",iit){static{i(this,"GetLifecyclePolicyPreviewCommand")}},BG=class extends ne(se,oe,"GetRegistryPolicy",ait){static{i(this,"GetRegistryPolicyCommand")}},RG=class extends ne(se,oe,"GetRegistryScanningConfiguration",cit){static{i(this,"GetRegistryScanningConfigurationCommand")}},NG=class extends ne(se,oe,"GetRepositoryPolicy",lit){static{i(this,"GetRepositoryPolicyCommand")}},TG=class extends ne(se,oe,"GetSigningConfiguration",uit){static{i(this,"GetSigningConfigurationCommand")}},_G=class extends ne(se,oe,"InitiateLayerUpload",dit){static{i(this,"InitiateLayerUploadCommand")}},PG=class extends ne(se,oe,"ListImageReferrers",pit){static{i(this,"ListImageReferrersCommand")}},QT=class extends ne(se,oe,"ListImages",fit){static{i(this,"ListImagesCommand")}},vG=class extends ne(se,oe,"ListPullTimeUpdateExclusions",mit){static{i(this,"ListPullTimeUpdateExclusionsCommand")}},QG=class extends ne(se,oe,"ListTagsForResource",hit){static{i(this,"ListTagsForResourceCommand")}},DG=class extends ne(se,oe,"PutAccountSetting",Ait){static{i(this,"PutAccountSettingCommand")}},kG=class extends ne(se,oe,"PutImage",git){static{i(this,"PutImageCommand")}},OG=class extends ne(se,oe,"PutImageScanningConfiguration",yit){static{i(this,"PutImageScanningConfigurationCommand")}},LG=class extends ne(se,oe,"PutImageTagMutability",Eit){static{i(this,"PutImageTagMutabilityCommand")}},MG=class extends ne(se,oe,"PutLifecyclePolicy",Cit){static{i(this,"PutLifecyclePolicyCommand")}},FG=class extends ne(se,oe,"PutRegistryPolicy",Iit){static{i(this,"PutRegistryPolicyCommand")}},UG=class extends ne(se,oe,"PutRegistryScanningConfiguration",Sit){static{i(this,"PutRegistryScanningConfigurationCommand")}},$G=class extends ne(se,oe,"PutReplicationConfiguration",wit){static{i(this,"PutReplicationConfigurationCommand")}},qG=class extends ne(se,oe,"PutSigningConfiguration",xit){static{i(this,"PutSigningConfigurationCommand")}},HG=class extends ne(se,oe,"RegisterPullTimeUpdateExclusion",bit){static{i(this,"RegisterPullTimeUpdateExclusionCommand")}},GG=class extends ne(se,oe,"SetRepositoryPolicy",Bit){static{i(this,"SetRepositoryPolicyCommand")}},zG=class extends ne(se,oe,"StartImageScan",Rit){static{i(this,"StartImageScanCommand")}},VG=class extends ne(se,oe,"StartLifecyclePolicyPreview",Nit){static{i(this,"StartLifecyclePolicyPreviewCommand")}},WG=class extends ne(se,oe,"TagResource",Tit){static{i(this,"TagResourceCommand")}},jG=class extends ne(se,oe,"UntagResource",_it){static{i(this,"UntagResourceCommand")}},JG=class extends ne(se,oe,"UpdateImageStorageClass",Pit){static{i(this,"UpdateImageStorageClassCommand")}},YG=class extends ne(se,oe,"UpdatePullThroughCacheRule",vit){static{i(this,"UpdatePullThroughCacheRuleCommand")}},KG=class extends ne(se,oe,"UpdateRepositoryCreationTemplate",Qit){static{i(this,"UpdateRepositoryCreationTemplateCommand")}},XG=class extends ne(se,oe,"UploadLayerPart",Dit){static{i(this,"UploadLayerPartCommand")}},ZG=class extends ne(se,oe,"ValidatePullThroughCacheRule",kit){static{i(this,"ValidatePullThroughCacheRuleCommand")}},Oit=Lg(Dc,Uw,"nextToken","nextToken","maxResults"),Lit=Lg(Dc,TT,"nextToken","nextToken","maxResults"),Mit=Lg(Dc,_T,"nextToken","nextToken","maxResults"),Fit=Lg(Dc,PT,"nextToken","nextToken","maxResults"),Uit=Lg(Dc,vT,"nextToken","nextToken","maxResults"),$it=Lg(Dc,$w,"nextToken","nextToken","maxResults"),qit=Lg(Dc,QT,"nextToken","nextToken","maxResults"),Hit=i(async(t,e)=>{let r;try{let n=await t.send(new Uw(e));r=n;try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="COMPLETE")return{state:Mw.SUCCESS,reason:r}}catch{}try{if(i(()=>n.imageScanStatus.status,"returnComparator")()==="FAILED")return{state:Mw.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:Mw.RETRY,reason:r}},"checkState$1"),zur=i(async(t,e)=>tz({...{minDelay:5,maxDelay:120},...t},e,Hit),"waitForImageScanComplete"),Git=i(async(t,e)=>{let n=await tz({...{minDelay:5,maxDelay:120},...t},e,Hit);return ott(n)},"waitUntilImageScanComplete"),zit=i(async(t,e)=>{let r;try{let n=await t.send(new $w(e));r=n;try{if(i(()=>n.status,"returnComparator")()==="COMPLETE")return{state:Mw.SUCCESS,reason:r}}catch{}try{if(i(()=>n.status,"returnComparator")()==="FAILED")return{state:Mw.FAILURE,reason:r}}catch{}}catch(n){r=n}return{state:Mw.RETRY,reason:r}},"checkState"),Vur=i(async(t,e)=>tz({...{minDelay:5,maxDelay:120},...t},e,zit),"waitForLifecyclePolicyPreviewComplete"),Vit=i(async(t,e)=>{let n=await tz({...{minDelay:5,maxDelay:120},...t},e,zit);return ott(n)},"waitUntilLifecyclePolicyPreviewComplete"),Wur={BatchCheckLayerAvailabilityCommand:nG,BatchDeleteImageCommand:sG,BatchGetImageCommand:oG,BatchGetRepositoryScanningConfigurationCommand:iG,CompleteLayerUploadCommand:aG,CreatePullThroughCacheRuleCommand:cG,CreateRepositoryCommand:lG,CreateRepositoryCreationTemplateCommand:uG,DeleteLifecyclePolicyCommand:dG,DeletePullThroughCacheRuleCommand:pG,DeleteRegistryPolicyCommand:fG,DeleteRepositoryCommand:mG,DeleteRepositoryCreationTemplateCommand:hG,DeleteRepositoryPolicyCommand:AG,DeleteSigningConfigurationCommand:gG,DeregisterPullTimeUpdateExclusionCommand:yG,DescribeImageReplicationStatusCommand:EG,DescribeImagesCommand:TT,DescribeImageScanFindingsCommand:Uw,DescribeImageSigningStatusCommand:CG,DescribePullThroughCacheRulesCommand:_T,DescribeRegistryCommand:IG,DescribeRepositoriesCommand:PT,DescribeRepositoryCreationTemplatesCommand:vT,GetAccountSettingCommand:SG,GetAuthorizationTokenCommand:wG,GetDownloadUrlForLayerCommand:xG,GetLifecyclePolicyCommand:bG,GetLifecyclePolicyPreviewCommand:$w,GetRegistryPolicyCommand:BG,GetRegistryScanningConfigurationCommand:RG,GetRepositoryPolicyCommand:NG,GetSigningConfigurationCommand:TG,InitiateLayerUploadCommand:_G,ListImageReferrersCommand:PG,ListImagesCommand:QT,ListPullTimeUpdateExclusionsCommand:vG,ListTagsForResourceCommand:QG,PutAccountSettingCommand:DG,PutImageCommand:kG,PutImageScanningConfigurationCommand:OG,PutImageTagMutabilityCommand:LG,PutLifecyclePolicyCommand:MG,PutRegistryPolicyCommand:FG,PutRegistryScanningConfigurationCommand:UG,PutReplicationConfigurationCommand:$G,PutSigningConfigurationCommand:qG,RegisterPullTimeUpdateExclusionCommand:HG,SetRepositoryPolicyCommand:GG,StartImageScanCommand:zG,StartLifecyclePolicyPreviewCommand:VG,TagResourceCommand:WG,UntagResourceCommand:jG,UpdateImageStorageClassCommand:JG,UpdatePullThroughCacheRuleCommand:YG,UpdateRepositoryCreationTemplateCommand:KG,UploadLayerPartCommand:XG,ValidatePullThroughCacheRuleCommand:ZG},jur={paginateDescribeImages:Lit,paginateDescribeImageScanFindings:Oit,paginateDescribePullThroughCacheRules:Mit,paginateDescribeRepositories:Fit,paginateDescribeRepositoryCreationTemplates:Uit,paginateGetLifecyclePolicyPreview:$it,paginateListImages:qit},Jur={waitUntilImageScanComplete:Git,waitUntilLifecyclePolicyPreviewComplete:Vit},ez=class extends Dc{static{i(this,"ECR")}};wtr(Wur,ez,{paginators:jur,waiters:Jur});var Yur={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},Kur={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},Xur={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"},Zur={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"},edr={WILDCARD:"WILDCARD"},tdr={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"},rdr={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"},ndr={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"},sdr={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"},odr={WILDCARD:"WILDCARD"},idr={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"},adr={WILDCARD_MATCH:"WILDCARD_MATCH"},cdr={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},ldr={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},udr={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"},ddr={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"},pdr={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"},fdr={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},mdr={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},hdr={PREFIX_MATCH:"PREFIX_MATCH"},Adr={ARCHIVE:"ARCHIVE"},gdr={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"},ydr={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"},Edr={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"},Cdr={BASIC:"BASIC",ENHANCED:"ENHANCED"},Idr={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"},Sdr={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"},wdr={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};I.ArtifactStatus=Sdr;I.ArtifactStatusFilter=Idr;I.Attribute$=_rt;I.AuthorizationData$=Prt;I.AwsEcrContainerImageDetails$=vrt;I.BatchCheckLayerAvailability$=vot;I.BatchCheckLayerAvailabilityCommand=nG;I.BatchCheckLayerAvailabilityRequest$=Qrt;I.BatchCheckLayerAvailabilityResponse$=Drt;I.BatchDeleteImage$=Qot;I.BatchDeleteImageCommand=sG;I.BatchDeleteImageRequest$=krt;I.BatchDeleteImageResponse$=Ort;I.BatchGetImage$=Dot;I.BatchGetImageCommand=oG;I.BatchGetImageRequest$=Lrt;I.BatchGetImageResponse$=Mrt;I.BatchGetRepositoryScanningConfiguration$=kot;I.BatchGetRepositoryScanningConfigurationCommand=iG;I.BatchGetRepositoryScanningConfigurationRequest$=Frt;I.BatchGetRepositoryScanningConfigurationResponse$=Urt;I.BlockedByOrganizationPolicyException=YH;I.BlockedByOrganizationPolicyException$=Ott;I.CompleteLayerUpload$=Oot;I.CompleteLayerUploadCommand=aG;I.CompleteLayerUploadRequest$=$rt;I.CompleteLayerUploadResponse$=qrt;I.CreatePullThroughCacheRule$=Lot;I.CreatePullThroughCacheRuleCommand=cG;I.CreatePullThroughCacheRuleRequest$=Hrt;I.CreatePullThroughCacheRuleResponse$=Grt;I.CreateRepository$=Mot;I.CreateRepositoryCommand=lG;I.CreateRepositoryCreationTemplate$=Fot;I.CreateRepositoryCreationTemplateCommand=uG;I.CreateRepositoryCreationTemplateRequest$=zrt;I.CreateRepositoryCreationTemplateResponse$=Vrt;I.CreateRepositoryRequest$=Wrt;I.CreateRepositoryResponse$=jrt;I.CvssScore$=Jrt;I.CvssScoreAdjustment$=Yrt;I.CvssScoreDetails$=Krt;I.DeleteLifecyclePolicy$=Uot;I.DeleteLifecyclePolicyCommand=dG;I.DeleteLifecyclePolicyRequest$=Xrt;I.DeleteLifecyclePolicyResponse$=Zrt;I.DeletePullThroughCacheRule$=$ot;I.DeletePullThroughCacheRuleCommand=pG;I.DeletePullThroughCacheRuleRequest$=ent;I.DeletePullThroughCacheRuleResponse$=tnt;I.DeleteRegistryPolicy$=qot;I.DeleteRegistryPolicyCommand=fG;I.DeleteRegistryPolicyRequest$=rnt;I.DeleteRegistryPolicyResponse$=nnt;I.DeleteRepository$=Hot;I.DeleteRepositoryCommand=mG;I.DeleteRepositoryCreationTemplate$=Got;I.DeleteRepositoryCreationTemplateCommand=hG;I.DeleteRepositoryCreationTemplateRequest$=snt;I.DeleteRepositoryCreationTemplateResponse$=ont;I.DeleteRepositoryPolicy$=zot;I.DeleteRepositoryPolicyCommand=AG;I.DeleteRepositoryPolicyRequest$=int;I.DeleteRepositoryPolicyResponse$=ant;I.DeleteRepositoryRequest$=cnt;I.DeleteRepositoryResponse$=lnt;I.DeleteSigningConfiguration$=Vot;I.DeleteSigningConfigurationCommand=gG;I.DeleteSigningConfigurationRequest$=unt;I.DeleteSigningConfigurationResponse$=dnt;I.DeregisterPullTimeUpdateExclusion$=Wot;I.DeregisterPullTimeUpdateExclusionCommand=yG;I.DeregisterPullTimeUpdateExclusionRequest$=pnt;I.DeregisterPullTimeUpdateExclusionResponse$=fnt;I.DescribeImageReplicationStatus$=jot;I.DescribeImageReplicationStatusCommand=EG;I.DescribeImageReplicationStatusRequest$=mnt;I.DescribeImageReplicationStatusResponse$=hnt;I.DescribeImageScanFindings$=Yot;I.DescribeImageScanFindingsCommand=Uw;I.DescribeImageScanFindingsRequest$=Ant;I.DescribeImageScanFindingsResponse$=gnt;I.DescribeImageSigningStatus$=Kot;I.DescribeImageSigningStatusCommand=CG;I.DescribeImageSigningStatusRequest$=Ent;I.DescribeImageSigningStatusResponse$=Cnt;I.DescribeImages$=Jot;I.DescribeImagesCommand=TT;I.DescribeImagesFilter$=ynt;I.DescribeImagesRequest$=Int;I.DescribeImagesResponse$=Snt;I.DescribePullThroughCacheRules$=Xot;I.DescribePullThroughCacheRulesCommand=_T;I.DescribePullThroughCacheRulesRequest$=wnt;I.DescribePullThroughCacheRulesResponse$=xnt;I.DescribeRegistry$=Zot;I.DescribeRegistryCommand=IG;I.DescribeRegistryRequest$=bnt;I.DescribeRegistryResponse$=Bnt;I.DescribeRepositories$=eit;I.DescribeRepositoriesCommand=PT;I.DescribeRepositoriesRequest$=Rnt;I.DescribeRepositoriesResponse$=Nnt;I.DescribeRepositoryCreationTemplates$=tit;I.DescribeRepositoryCreationTemplatesCommand=vT;I.DescribeRepositoryCreationTemplatesRequest$=Tnt;I.DescribeRepositoryCreationTemplatesResponse$=_nt;I.ECR=ez;I.ECRClient=Dc;I.ECRServiceException=ge;I.ECRServiceException$=ktt;I.EmptyUploadException=AH;I.EmptyUploadException$=Ltt;I.EncryptionConfiguration$=Zue;I.EncryptionConfigurationForRepositoryCreationTemplate$=mz;I.EncryptionType=ndr;I.EnhancedImageScanFinding$=Pnt;I.ExclusionAlreadyExistsException=KH;I.ExclusionAlreadyExistsException$=Mtt;I.ExclusionNotFoundException=MH;I.ExclusionNotFoundException$=Ftt;I.FindingSeverity=ddr;I.GetAccountSetting$=rit;I.GetAccountSettingCommand=SG;I.GetAccountSettingRequest$=vnt;I.GetAccountSettingResponse$=Qnt;I.GetAuthorizationToken$=nit;I.GetAuthorizationTokenCommand=wG;I.GetAuthorizationTokenRequest$=Dnt;I.GetAuthorizationTokenResponse$=knt;I.GetDownloadUrlForLayer$=sit;I.GetDownloadUrlForLayerCommand=xG;I.GetDownloadUrlForLayerRequest$=Ont;I.GetDownloadUrlForLayerResponse$=Lnt;I.GetLifecyclePolicy$=oit;I.GetLifecyclePolicyCommand=bG;I.GetLifecyclePolicyPreview$=iit;I.GetLifecyclePolicyPreviewCommand=$w;I.GetLifecyclePolicyPreviewRequest$=Mnt;I.GetLifecyclePolicyPreviewResponse$=Fnt;I.GetLifecyclePolicyRequest$=Unt;I.GetLifecyclePolicyResponse$=$nt;I.GetRegistryPolicy$=ait;I.GetRegistryPolicyCommand=BG;I.GetRegistryPolicyRequest$=qnt;I.GetRegistryPolicyResponse$=Hnt;I.GetRegistryScanningConfiguration$=cit;I.GetRegistryScanningConfigurationCommand=RG;I.GetRegistryScanningConfigurationRequest$=Gnt;I.GetRegistryScanningConfigurationResponse$=znt;I.GetRepositoryPolicy$=lit;I.GetRepositoryPolicyCommand=NG;I.GetRepositoryPolicyRequest$=Vnt;I.GetRepositoryPolicyResponse$=Wnt;I.GetSigningConfiguration$=uit;I.GetSigningConfigurationCommand=TG;I.GetSigningConfigurationRequest$=jnt;I.GetSigningConfigurationResponse$=Jnt;I.Image$=ede;I.ImageActionType=gdr;I.ImageAlreadyExistsException=VH;I.ImageAlreadyExistsException$=Utt;I.ImageArchivedException=XH;I.ImageArchivedException$=$tt;I.ImageDetail$=Ynt;I.ImageDigestDoesNotMatchException=WH;I.ImageDigestDoesNotMatchException$=qtt;I.ImageFailure$=Knt;I.ImageFailureCode=Xur;I.ImageIdentifier$=Uo;I.ImageNotFoundException=FH;I.ImageNotFoundException$=Htt;I.ImageReferrer$=Xnt;I.ImageReplicationStatus$=Znt;I.ImageScanFinding$=est;I.ImageScanFindings$=tst;I.ImageScanFindingsSummary$=rst;I.ImageScanStatus$=hz;I.ImageScanningConfiguration$=FT;I.ImageSigningStatus$=nst;I.ImageStatus=fdr;I.ImageStatusFilter=ldr;I.ImageStorageClassUpdateNotSupportedException=tG;I.ImageStorageClassUpdateNotSupportedException$=Gtt;I.ImageTagAlreadyExistsException=jH;I.ImageTagAlreadyExistsException$=ztt;I.ImageTagMutability=sdr;I.ImageTagMutabilityExclusionFilter$=sst;I.ImageTagMutabilityExclusionFilterType=odr;I.InitiateLayerUpload$=dit;I.InitiateLayerUploadCommand=_G;I.InitiateLayerUploadRequest$=ost;I.InitiateLayerUploadResponse$=ist;I.InvalidLayerException=gH;I.InvalidLayerException$=Vtt;I.InvalidLayerPartException=rG;I.InvalidLayerPartException$=Wtt;I.InvalidParameterException=uH;I.InvalidParameterException$=jtt;I.InvalidTagParameterException=RH;I.InvalidTagParameterException$=Jtt;I.KmsException=yH;I.KmsException$=Ytt;I.Layer$=ast;I.LayerAlreadyExistsException=EH;I.LayerAlreadyExistsException$=Ktt;I.LayerAvailability=Kur;I.LayerFailure$=cst;I.LayerFailureCode=Yur;I.LayerInaccessibleException=$H;I.LayerInaccessibleException$=Xtt;I.LayerPartTooSmallException=CH;I.LayerPartTooSmallException$=Ztt;I.LayersNotFoundException=qH;I.LayersNotFoundException$=ert;I.LifecyclePolicyNotFoundException=PH;I.LifecyclePolicyNotFoundException$=trt;I.LifecyclePolicyPreviewFilter$=lst;I.LifecyclePolicyPreviewInProgressException=eG;I.LifecyclePolicyPreviewInProgressException$=rrt;I.LifecyclePolicyPreviewNotFoundException=GH;I.LifecyclePolicyPreviewNotFoundException$=nrt;I.LifecyclePolicyPreviewResult$=ust;I.LifecyclePolicyPreviewStatus=Edr;I.LifecyclePolicyPreviewSummary$=dst;I.LifecyclePolicyRuleAction$=pst;I.LifecyclePolicyStorageClass=ydr;I.LifecyclePolicyTargetStorageClass=Adr;I.LimitExceededException=fH;I.LimitExceededException$=srt;I.ListImageReferrers$=pit;I.ListImageReferrersCommand=PG;I.ListImageReferrersFilter$=fst;I.ListImageReferrersRequest$=mst;I.ListImageReferrersResponse$=hst;I.ListImages$=fit;I.ListImagesCommand=QT;I.ListImagesFilter$=Ast;I.ListImagesRequest$=gst;I.ListImagesResponse$=yst;I.ListPullTimeUpdateExclusions$=mit;I.ListPullTimeUpdateExclusionsCommand=vG;I.ListPullTimeUpdateExclusionsRequest$=Est;I.ListPullTimeUpdateExclusionsResponse$=Cst;I.ListTagsForResource$=hit;I.ListTagsForResourceCommand=QG;I.ListTagsForResourceRequest$=Ist;I.ListTagsForResourceResponse$=Sst;I.PackageVulnerabilityDetails$=wst;I.PullThroughCacheRule$=xst;I.PullThroughCacheRuleAlreadyExistsException=SH;I.PullThroughCacheRuleAlreadyExistsException$=ort;I.PullThroughCacheRuleNotFoundException=vH;I.PullThroughCacheRuleNotFoundException$=irt;I.PutAccountSetting$=Ait;I.PutAccountSettingCommand=DG;I.PutAccountSettingRequest$=bst;I.PutAccountSettingResponse$=Bst;I.PutImage$=git;I.PutImageCommand=kG;I.PutImageRequest$=Rst;I.PutImageResponse$=Nst;I.PutImageScanningConfiguration$=yit;I.PutImageScanningConfigurationCommand=OG;I.PutImageScanningConfigurationRequest$=Tst;I.PutImageScanningConfigurationResponse$=_st;I.PutImageTagMutability$=Eit;I.PutImageTagMutabilityCommand=LG;I.PutImageTagMutabilityRequest$=Pst;I.PutImageTagMutabilityResponse$=vst;I.PutLifecyclePolicy$=Cit;I.PutLifecyclePolicyCommand=MG;I.PutLifecyclePolicyRequest$=Qst;I.PutLifecyclePolicyResponse$=Dst;I.PutRegistryPolicy$=Iit;I.PutRegistryPolicyCommand=FG;I.PutRegistryPolicyRequest$=kst;I.PutRegistryPolicyResponse$=Ost;I.PutRegistryScanningConfiguration$=Sit;I.PutRegistryScanningConfigurationCommand=UG;I.PutRegistryScanningConfigurationRequest$=Lst;I.PutRegistryScanningConfigurationResponse$=Mst;I.PutReplicationConfiguration$=wit;I.PutReplicationConfigurationCommand=$G;I.PutReplicationConfigurationRequest$=Fst;I.PutReplicationConfigurationResponse$=Ust;I.PutSigningConfiguration$=xit;I.PutSigningConfigurationCommand=qG;I.PutSigningConfigurationRequest$=$st;I.PutSigningConfigurationResponse$=qst;I.RCTAppliedFor=idr;I.Recommendation$=Hst;I.ReferencedImagesNotFoundException=JH;I.ReferencedImagesNotFoundException$=art;I.RegisterPullTimeUpdateExclusion$=bit;I.RegisterPullTimeUpdateExclusionCommand=HG;I.RegisterPullTimeUpdateExclusionRequest$=Gst;I.RegisterPullTimeUpdateExclusionResponse$=zst;I.RegistryPolicyNotFoundException=QH;I.RegistryPolicyNotFoundException$=crt;I.RegistryScanningConfiguration$=tde;I.RegistryScanningRule$=Vst;I.Remediation$=Wst;I.ReplicationConfiguration$=Az;I.ReplicationDestination$=jst;I.ReplicationRule$=Jst;I.ReplicationStatus=cdr;I.Repository$=gz;I.RepositoryAlreadyExistsException=NH;I.RepositoryAlreadyExistsException$=lrt;I.RepositoryCreationTemplate$=UT;I.RepositoryFilter$=Yst;I.RepositoryFilterType=hdr;I.RepositoryNotEmptyException=DH;I.RepositoryNotEmptyException$=urt;I.RepositoryNotFoundException=dH;I.RepositoryNotFoundException$=drt;I.RepositoryPolicyNotFoundException=OH;I.RepositoryPolicyNotFoundException$=prt;I.RepositoryScanningConfiguration$=Kst;I.RepositoryScanningConfigurationFailure$=Xst;I.Resource$=Zst;I.ResourceDetails$=eot;I.ScanFrequency=tdr;I.ScanNotFoundException=UH;I.ScanNotFoundException$=frt;I.ScanStatus=pdr;I.ScanType=Cdr;I.ScanningConfigurationFailureCode=Zur;I.ScanningRepositoryFilter$=tot;I.ScanningRepositoryFilterType=edr;I.ScoreDetails$=rot;I.SecretNotFoundException=wH;I.SecretNotFoundException$=mrt;I.ServerException=pH;I.ServerException$=hrt;I.SetRepositoryPolicy$=Bit;I.SetRepositoryPolicyCommand=GG;I.SetRepositoryPolicyRequest$=not;I.SetRepositoryPolicyResponse$=sot;I.SigningConfiguration$=$T;I.SigningConfigurationNotFoundException=LH;I.SigningConfigurationNotFoundException$=Art;I.SigningRepositoryFilter$=oot;I.SigningRepositoryFilterType=adr;I.SigningRule$=iot;I.SigningStatus=mdr;I.StartImageScan$=Rit;I.StartImageScanCommand=zG;I.StartImageScanRequest$=aot;I.StartImageScanResponse$=cot;I.StartLifecyclePolicyPreview$=Nit;I.StartLifecyclePolicyPreviewCommand=VG;I.StartLifecyclePolicyPreviewRequest$=lot;I.StartLifecyclePolicyPreviewResponse$=uot;I.SubjectIdentifier$=dot;I.Tag$=pot;I.TagResource$=Tit;I.TagResourceCommand=WG;I.TagResourceRequest$=fot;I.TagResourceResponse$=mot;I.TagStatus=udr;I.TargetStorageClass=wdr;I.TemplateAlreadyExistsException=_H;I.TemplateAlreadyExistsException$=grt;I.TemplateNotFoundException=kH;I.TemplateNotFoundException$=yrt;I.TooManyTagsException=TH;I.TooManyTagsException$=Ert;I.TransitioningImageTotalCount$=hot;I.UnableToAccessSecretException=xH;I.UnableToAccessSecretException$=Crt;I.UnableToDecryptSecretValueException=bH;I.UnableToDecryptSecretValueException$=Irt;I.UnableToGetUpstreamImageException=mH;I.UnableToGetUpstreamImageException$=Srt;I.UnableToGetUpstreamLayerException=HH;I.UnableToGetUpstreamLayerException$=wrt;I.UnableToListUpstreamImageReferrersException=zH;I.UnableToListUpstreamImageReferrersException$=xrt;I.UnsupportedImageTypeException=ZH;I.UnsupportedImageTypeException$=brt;I.UnsupportedUpstreamRegistryException=BH;I.UnsupportedUpstreamRegistryException$=Brt;I.UntagResource$=_it;I.UntagResourceCommand=jG;I.UntagResourceRequest$=Aot;I.UntagResourceResponse$=got;I.UpdateImageStorageClass$=Pit;I.UpdateImageStorageClassCommand=JG;I.UpdateImageStorageClassRequest$=yot;I.UpdateImageStorageClassResponse$=Eot;I.UpdatePullThroughCacheRule$=vit;I.UpdatePullThroughCacheRuleCommand=YG;I.UpdatePullThroughCacheRuleRequest$=Cot;I.UpdatePullThroughCacheRuleResponse$=Iot;I.UpdateRepositoryCreationTemplate$=Qit;I.UpdateRepositoryCreationTemplateCommand=KG;I.UpdateRepositoryCreationTemplateRequest$=Sot;I.UpdateRepositoryCreationTemplateResponse$=wot;I.UploadLayerPart$=Dit;I.UploadLayerPartCommand=XG;I.UploadLayerPartRequest$=xot;I.UploadLayerPartResponse$=bot;I.UploadNotFoundException=IH;I.UploadNotFoundException$=Rrt;I.UpstreamRegistry=rdr;I.ValidatePullThroughCacheRule$=kit;I.ValidatePullThroughCacheRuleCommand=ZG;I.ValidatePullThroughCacheRuleRequest$=Bot;I.ValidatePullThroughCacheRuleResponse$=Rot;I.ValidationException=hH;I.ValidationException$=Nrt;I.VulnerablePackage$=Not;I.errorTypeRegistries=Trt;I.paginateDescribeImageScanFindings=Oit;I.paginateDescribeImages=Lit;I.paginateDescribePullThroughCacheRules=Mit;I.paginateDescribeRepositories=Fit;I.paginateDescribeRepositoryCreationTemplates=Uit;I.paginateGetLifecyclePolicyPreview=$it;I.paginateListImages=qit;I.waitForImageScanComplete=zur;I.waitForLifecyclePolicyPreviewComplete=Vur;I.waitUntilImageScanComplete=Git;I.waitUntilLifecyclePolicyPreviewComplete=Vit});var blt=w(B=>{var{awsEndpointFunctions:xdr,emitWarningIfUnsupportedVersion:bdr,createDefaultUserAgentProvider:Bdr,NODE_APP_ID_CONFIG_OPTIONS:Rdr,getAwsRegionExtensionConfiguration:Ndr,resolveAwsRegionExtensionConfiguration:Tdr,resolveUserAgentConfig:_dr,resolveHostHeaderConfig:Pdr,getUserAgentPlugin:vdr,getHostHeaderPlugin:Qdr,getLoggerPlugin:Ddr,getRecursionDetectionPlugin:kdr}=(bt(),Z(gc)),{getHttpAuthSchemeEndpointRuleSetPlugin:Odr,DefaultIdentityProviderConfig:Ldr,getHttpSigningPlugin:Mdr,createPaginator:u3}=(Gs(),Z(Zre)),{normalizeProvider:Xit,getSmithyContext:Fdr,ServiceException:Udr,NoOpLogger:$dr,emitWarningIfUnsupportedVersion:qdr,loadConfigsForDefaultMode:Hdr,getDefaultExtensionConfiguration:Gdr,resolveDefaultRuntimeConfig:zdr,Client:Zit,makeBuilder:Vdr,createAggregatedClient:Wdr}=(Ie(),Z(UB)),{Command:jdr}=(Ie(),Z(UB));B.$Command=jdr;B.__Client=Zit;var{resolveDefaultsModeConfig:Jdr,loadConfig:Hg,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Ydr,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:Kdr,NODE_REGION_CONFIG_OPTIONS:Xdr,NODE_REGION_CONFIG_FILE_OPTIONS:Zdr,resolveRegionConfig:epr}=(kt(),Z(pa)),{BinaryDecisionDiagram:tpr,EndpointCache:rpr,decideEndpoint:npr,customEndpointFunctions:spr,resolveEndpointConfig:opr,getEndpointPlugin:ipr}=(Gt(),Z(Ete)),{parseUrl:apr,getHttpHandlerExtensionConfiguration:cpr,resolveHttpHandlerRuntimeConfig:lpr,getContentLengthPlugin:upr}=(Qe(),Z(cR)),{DEFAULT_RETRY_MODE:dpr,NODE_RETRY_MODE_CONFIG_OPTIONS:ppr,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:fpr,resolveRetryConfig:mpr,getRetryPlugin:hpr}=(xi(),Z(Lre)),{TypeRegistry:eat,getSchemaSerdePlugin:Apr}=(We(),Z(XZ)),{resolveAwsSdkSigV4Config:gpr,AwsSdkSigV4Signer:ypr,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Epr}=(gs(),Z(PU)),{defaultProvider:Cpr}=Due(),{toUtf8:Ipr,fromUtf8:Spr,toBase64:wpr,fromBase64:xpr,calculateBodyLength:bpr}=(Te(),Z(WM)),{streamCollector:Bpr,NodeHttpHandler:Rpr}=Yd(),{AwsJson1_1Protocol:Npr}=(Sg(),Z(Cle)),{Sha256:Tpr}=(Od(),Z(Gte)),_pr=i(async(t,e,r)=>({operation:Fdr(e).operation,region:await Xit(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultECRPUBLICHttpAuthSchemeParametersProvider");function Ppr(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:t.region},propertiesExtractor:i((e,r)=>({signingProperties:{config:e,context:r}}),"propertiesExtractor")}}i(Ppr,"createAwsAuthSigv4HttpAuthOption");var vpr=i(t=>{let e=[];switch(t.operation){default:e.push(Ppr(t))}return e},"defaultECRPUBLICHttpAuthSchemeProvider"),Qpr=i(t=>{let e=gpr(t);return Object.assign(e,{authSchemePreference:Xit(t.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig"),Dpr=i(t=>Object.assign(t,{useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"ecr-public"}),"resolveClientEndpointParameters"),kpr={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Opr="3.1155.0",Lpr={version:Opr},qT="ref",Gg=-1,yz=!0,jit="isSet",tat="PartitionResult",Ez="booleanEquals",rde="getAttr",Jit={[qT]:"Endpoint"},nde={[qT]:tat},Kw={},Yit=[{[qT]:"Region"}],Kit={conditions:[[jit,[Jit]],[jit,Yit],["aws.partition",Yit,tat],[Ez,[{[qT]:"UseFIPS"},yz]],[Ez,[{[qT]:"UseDualStack"},yz]],[Ez,[{fn:rde,argv:[nde,"supportsDualStack"]},yz]],[Ez,[{fn:rde,argv:[nde,"supportsFIPS"]},yz]],["stringEquals",[{fn:rde,argv:[nde,"name"]},"aws"]]],results:[[Gg],[Gg,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Gg,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Jit,Kw],["https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Kw],[Gg,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",Kw],[Gg,"FIPS is enabled but this partition does not support FIPS"],["https://ecr-public.{Region}.api.aws",Kw],["https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",Kw],[Gg,"DualStack is enabled but this partition does not support DualStack"],["https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",Kw],[Gg,"Invalid Configuration: Missing Region"]]},Mpr=2,$o=1e8,Fpr=new Int32Array([-1,1,-1,0,13,3,1,4,$o+12,2,5,$o+12,3,9,6,4,7,$o+11,5,8,$o+10,7,$o+8,$o+9,4,11,10,6,$o+6,$o+7,5,12,$o+5,6,$o+4,$o+5,3,$o+1,14,4,$o+2,$o+3]),Upr=tpr.from(Fpr,Mpr,Kit.conditions,Kit.results),$pr=new rpr({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),qpr=i((t,e={})=>$pr.get(t,()=>npr(Upr,{endpointParams:t,logger:e.logger})),"defaultEndpointResolver");spr.aws=xdr;var Lt=class t extends Udr{static{i(this,"ECRPUBLICServiceException")}static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic#ECRPUBLICServiceException";constructor(e){super(e),Object.setPrototypeOf(this,t.prototype)}},Cz=class t extends Lt{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)}},Iz=class t extends Lt{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)}},Sz=class t extends Lt{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)}},wz=class t extends Lt{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)}},xz=class t extends Lt{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)}},bz=class t extends Lt{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)}},Bz=class t extends Lt{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)}},Rz=class t extends Lt{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)}},Nz=class t extends Lt{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)}},Tz=class t extends Lt{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)}},_z=class t extends Lt{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)}},Pz=class t extends Lt{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)}},vz=class t extends Lt{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)}},Qz=class t extends Lt{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)}},Dz=class t extends Lt{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)}},kz=class t extends Lt{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)}},Oz=class t extends Lt{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)}},Lz=class t extends Lt{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)}},Mz=class t extends Lt{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)}},Fz=class t extends Lt{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)}},Uz=class t extends Lt{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)}},$z=class t extends Lt{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}},qz=class t extends Lt{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)}},Hz=class t extends Lt{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)}},Hpr="AuthorizationData",Gpr="BatchCheckLayerAvailability",zpr="BatchCheckLayerAvailabilityRequest",Vpr="BatchCheckLayerAvailabilityResponse",Wpr="BatchDeleteImage",jpr="BatchDeleteImageRequest",Jpr="BatchDeleteImageResponse",Ypr="CompleteLayerUpload",Kpr="CompleteLayerUploadRequest",Xpr="CompleteLayerUploadResponse",Zpr="CreateRepository",efr="CreateRepositoryRequest",tfr="CreateRepositoryResponse",rfr="DescribeImages",nfr="DescribeImagesRequest",sfr="DescribeImagesResponse",ofr="DescribeImageTags",ifr="DescribeImageTagsRequest",afr="DescribeImageTagsResponse",cfr="DeleteRepository",lfr="DeleteRepositoryPolicy",ufr="DeleteRepositoryPolicyRequest",dfr="DeleteRepositoryPolicyResponse",pfr="DeleteRepositoryRequest",ffr="DeleteRepositoryResponse",mfr="DescribeRegistriesRequest",hfr="DescribeRegistriesResponse",Afr="DescribeRepositoriesRequest",gfr="DescribeRepositoriesResponse",yfr="DescribeRegistries",Efr="DescribeRepositories",Cfr="EmptyUploadException",Ifr="GetAuthorizationToken",Sfr="GetAuthorizationTokenRequest",wfr="GetAuthorizationTokenResponse",xfr="GetRegistryCatalogData",bfr="GetRegistryCatalogDataRequest",Bfr="GetRegistryCatalogDataResponse",Rfr="GetRepositoryCatalogDataRequest",Nfr="GetRepositoryCatalogDataResponse",Tfr="GetRepositoryCatalogData",_fr="GetRepositoryPolicy",Pfr="GetRepositoryPolicyRequest",vfr="GetRepositoryPolicyResponse",Qfr="Image",Dfr="ImageAlreadyExistsException",kfr="ImageDetail",Ofr="ImageDigestDoesNotMatchException",Lfr="ImageDetailList",Mfr="ImageFailure",Ffr="ImageFailureList",Ufr="ImageIdentifier",$fr="ImageIdentifierList",qfr="InvalidLayerException",Hfr="InvalidLayerPartException",Gfr="InitiateLayerUpload",zfr="InitiateLayerUploadRequest",Vfr="InitiateLayerUploadResponse",Wfr="ImageNotFoundException",jfr="InvalidParameterException",Jfr="ImageTagAlreadyExistsException",Yfr="ImageTagDetail",Kfr="ImageTagDetailList",Xfr="InvalidTagParameterException",Zfr="Key",emr="Layer",tmr="LayerAlreadyExistsException",rmr="LimitExceededException",nmr="LayerFailure",smr="LayerFailureList",omr="LayerList",imr="LayersNotFoundException",amr="LayerPartTooSmallException",cmr="ListTagsForResource",lmr="ListTagsForResourceRequest",umr="ListTagsForResourceResponse",dmr="PutImage",pmr="PutImageRequest",fmr="PutImageResponse",mmr="PutRegistryCatalogData",hmr="PutRegistryCatalogDataRequest",Amr="PutRegistryCatalogDataResponse",gmr="PutRepositoryCatalogDataRequest",ymr="PutRepositoryCatalogDataResponse",Emr="PutRepositoryCatalogData",Cmr="Registry",Imr="RegistryAlias",Smr="RepositoryAlreadyExistsException",wmr="RegistryAliasList",xmr="RegistryCatalogData",bmr="RepositoryCatalogDataInput",Bmr="RepositoryCatalogDataNotFoundException",Rmr="RepositoryCatalogData",Nmr="ReferencedImageDetail",Tmr="ReferencedImagesNotFoundException",_mr="RegistryList",Pmr="RepositoryList",vmr="RepositoryNotEmptyException",Qmr="RegistryNotFoundException",Dmr="RepositoryNotFoundException",kmr="RepositoryPolicyNotFoundException",Omr="Repository",Lmr="ServerException",Mmr="SetRepositoryPolicy",Fmr="SetRepositoryPolicyRequest",Umr="SetRepositoryPolicyResponse",$mr="Tag",qmr="TagList",Hmr="TooManyTagsException",Gmr="TagResource",zmr="TagResourceRequest",Vmr="TagResourceResponse",Wmr="UnsupportedCommandException",jmr="UploadLayerPart",Jmr="UploadLayerPartRequest",Ymr="UploadLayerPartResponse",Kmr="UploadNotFoundException",Xmr="UntagResource",Zmr="UntagResourceRequest",ehr="UntagResourceResponse",thr="Value",rhr="aliases",nhr="authorizationData",rat="artifactMediaType",shr="authorizationToken",nat="aboutText",sat="architectures",mr="client",oat="createdAt",WT="catalogData",iat="description",aat="displayName",ohr="defaultRegistryAlias",cr="error",ihr="expiresAt",cat="failures",lat="failureCode",uat="failureReason",dat="force",ahr="image",chr="imageDetails",d3="imageDigest",lhr="imageDetail",sde="imageIds",pat="imageId",fat="imageManifest",p3="imageManifestMediaType",mat="imagePushedAt",hat="imageSizeInBytes",uhr="imageTags",dhr="imageTagDetails",ode="imageTag",phr="layers",fhr="layerAvailability",mhr="lastByteReceived",Aat="layerDigests",ide="layerDigest",hhr="logoImageBlob",Ahr="layerPartBlob",ghr="layerSize",yhr="logoUrl",Ehr="lastValidByteReceived",lr="message",Chr="marketplaceCertified",f3="maxResults",Ihr="mediaType",Shr="name",Mm="nextToken",gat="operatingSystems",whr="partFirstByte",xhr="partLastByte",bhr="primaryRegistryAlias",Bhr="partSize",m3="policyText",yat="repository",ade="resourceArn",Rhr="registryArn",Nhr="repositoryArn",Eat="registryCatalogData",Xt="registryId",ur="repositoryName",Thr="repositoryNames",_hr="registryUri",Phr="repositoryUri",vhr="registries",Qhr="repositories",Cat="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic",Dhr="server",khr="status",cde="tags",Ohr="tagKeys",Xw="uploadId",Iat="usageText",Lhr="verified",P="com.amazonaws.ecrpublic",Sat=new eat(Cat),wat=[-3,Cat,"ECRPUBLICServiceException",0,[],[]];Sat.registerError(wat,Lt);var Zt=new eat(P),xat=[-3,P,Cfr,{[cr]:mr},[lr],[0]];Zt.registerError(xat,bz);var bat=[-3,P,Dfr,{[cr]:mr},[lr],[0]];Zt.registerError(bat,Mz);var Bat=[-3,P,Ofr,{[cr]:mr},[lr],[0]];Zt.registerError(Bat,Fz);var Rat=[-3,P,Wfr,{[cr]:mr},[lr],[0]];Zt.registerError(Rat,Oz);var Nat=[-3,P,Jfr,{[cr]:mr},[lr],[0]];Zt.registerError(Nat,Uz);var Tat=[-3,P,qfr,{[cr]:mr},[lr],[0]];Zt.registerError(Tat,Bz);var _at=[-3,P,Hfr,{[cr]:mr},[Xt,ur,Xw,Ehr,lr],[0,0,0,1,0]];Zt.registerError(_at,$z);var Pat=[-3,P,jfr,{[cr]:mr},[lr],[0]];Zt.registerError(Pat,Cz);var vat=[-3,P,Xfr,{[cr]:mr},[lr],[0]];Zt.registerError(vat,_z);var Qat=[-3,P,tmr,{[cr]:mr},[lr],[0]];Zt.registerError(Qat,Rz);var Dat=[-3,P,amr,{[cr]:mr},[lr],[0]];Zt.registerError(Dat,Nz);var kat=[-3,P,imr,{[cr]:mr},[lr],[0]];Zt.registerError(kat,qz);var Oat=[-3,P,rmr,{[cr]:mr},[lr],[0]];Zt.registerError(Oat,Pz);var Lat=[-3,P,Tmr,{[cr]:mr},[lr],[0]];Zt.registerError(Lat,Hz);var Mat=[-3,P,Qmr,{[cr]:mr},[lr],[0]];Zt.registerError(Mat,Iz);var Fat=[-3,P,Smr,{[cr]:mr},[lr],[0]];Zt.registerError(Fat,vz);var Uat=[-3,P,Bmr,{[cr]:mr},[lr],[0]];Zt.registerError(Uat,Lz);var $at=[-3,P,vmr,{[cr]:mr},[lr],[0]];Zt.registerError($at,Dz);var qat=[-3,P,Dmr,{[cr]:mr},[lr],[0]];Zt.registerError(qat,Sz);var Hat=[-3,P,kmr,{[cr]:mr},[lr],[0]];Zt.registerError(Hat,kz);var Gat=[-3,P,Lmr,{[cr]:Dhr},[lr],[0]];Zt.registerError(Gat,wz);var zat=[-3,P,Hmr,{[cr]:mr},[lr],[0]];Zt.registerError(zat,Qz);var Vat=[-3,P,Wmr,{[cr]:mr},[lr],[0]];Zt.registerError(Vat,xz);var Wat=[-3,P,Kmr,{[cr]:mr},[lr],[0]];Zt.registerError(Wat,Tz);var jat=[Sat,Zt],Jat=[3,P,Hpr,0,[shr,ihr],[0,4]],Yat=[3,P,zpr,0,[ur,Aat,Xt],[0,64,0],2],Kat=[3,P,Vpr,0,[phr,cat],[()=>qhr,()=>$hr]],Xat=[3,P,jpr,0,[ur,sde,Xt],[0,()=>dde,0],2],Zat=[3,P,Jpr,0,[sde,cat],[()=>dde,()=>Fhr]],ect=[3,P,Kpr,0,[ur,Xw,Aat,Xt],[0,0,64,0],3],tct=[3,P,Xpr,0,[Xt,ur,Xw,ide],[0,0,0,0]],rct=[3,P,efr,0,[ur,WT,cde],[0,()=>ude,()=>pde],1],nct=[3,P,tfr,0,[yat,WT],[()=>A3,()=>g3]],sct=[3,P,ufr,0,[ur,Xt],[0,0],1],oct=[3,P,dfr,0,[Xt,ur,m3],[0,0,0]],ict=[3,P,pfr,0,[ur,Xt,dat],[0,0,2],1],act=[3,P,ffr,0,[yat],[()=>A3]],cct=[3,P,nfr,0,[ur,Xt,sde,Mm,f3],[0,0,()=>dde,0,1],1],lct=[3,P,sfr,0,[chr,Mm],[()=>Mhr,0]],uct=[3,P,ifr,0,[ur,Xt,Mm,f3],[0,0,0,1],1],dct=[3,P,afr,0,[dhr,Mm],[()=>Uhr,0]],pct=[3,P,mfr,0,[Mm,f3],[0,1]],fct=[3,P,hfr,0,[vhr,Mm],[()=>Ghr,0],1],mct=[3,P,Afr,0,[Xt,Thr,Mm,f3],[0,64,0,1]],hct=[3,P,gfr,0,[Qhr,Mm],[()=>zhr,0]],Act=[3,P,Sfr,0,[],[]],gct=[3,P,wfr,0,[nhr],[()=>Jat]],yct=[3,P,bfr,0,[],[]],Ect=[3,P,Bfr,0,[Eat],[()=>lde],1],Cct=[3,P,Rfr,0,[ur,Xt],[0,0],1],Ict=[3,P,Nfr,0,[WT],[()=>g3]],Sct=[3,P,Pfr,0,[ur,Xt],[0,0],1],wct=[3,P,vfr,0,[Xt,ur,m3],[0,0,0]],xct=[3,P,Qfr,0,[Xt,ur,pat,fat,p3],[0,0,()=>h3,0,0]],bct=[3,P,kfr,0,[Xt,ur,d3,uhr,hat,mat,p3,rat],[0,0,0,64,1,4,0,0]],Bct=[3,P,Mfr,0,[pat,lat,uat],[()=>h3,0,0]],h3=[3,P,Ufr,0,[d3,ode],[0,0]],Rct=[3,P,Yfr,0,[ode,oat,lhr],[0,4,()=>Uct]],Nct=[3,P,zfr,0,[ur,Xt],[0,0],1],Tct=[3,P,Vfr,0,[Xw,Bhr],[0,1]],_ct=[3,P,emr,0,[ide,fhr,ghr,Ihr],[0,0,1,0]],Pct=[3,P,nmr,0,[ide,lat,uat],[0,0,0]],vct=[3,P,lmr,0,[ade],[0],1],Qct=[3,P,umr,0,[cde],[()=>pde]],Dct=[3,P,pmr,0,[ur,fat,Xt,p3,ode,d3],[0,0,0,0,0,0],2],kct=[3,P,fmr,0,[ahr],[()=>xct]],Oct=[3,P,hmr,0,[aat],[0]],Lct=[3,P,Amr,0,[Eat],[()=>lde],1],Mct=[3,P,gmr,0,[ur,WT,Xt],[0,()=>ude,0],2],Fct=[3,P,ymr,0,[WT],[()=>g3]],Uct=[3,P,Nmr,0,[d3,hat,mat,p3,rat],[0,1,4,0,0]],$ct=[3,P,Cmr,0,[Xt,Rhr,_hr,Lhr,rhr],[0,0,0,2,()=>Hhr],5],qct=[3,P,Imr,0,[Shr,khr,bhr,ohr],[0,0,2,2],4],lde=[3,P,xmr,0,[aat],[0]],A3=[3,P,Omr,0,[Nhr,Xt,ur,Phr,oat],[0,0,0,0,4]],g3=[3,P,Rmr,0,[iat,sat,gat,yhr,nat,Iat,Chr],[0,64,64,0,0,0,2]],ude=[3,P,bmr,0,[iat,sat,gat,hhr,nat,Iat],[0,64,64,21,0,0]],Hct=[3,P,Fmr,0,[ur,m3,Xt,dat],[0,0,0,2],2],Gct=[3,P,Umr,0,[Xt,ur,m3],[0,0,0]],zct=[3,P,$mr,0,[Zfr,thr],[0,0]],Vct=[3,P,zmr,0,[ade,cde],[0,()=>pde],2],Wct=[3,P,Vmr,0,[],[]],jct=[3,P,Zmr,0,[ade,Ohr],[0,64],2],Jct=[3,P,ehr,0,[],[]],Yct=[3,P,Jmr,0,[ur,Xw,whr,xhr,Ahr,Xt],[0,0,1,1,21,0],5],Kct=[3,P,Ymr,0,[Xt,ur,Xw,mhr],[0,0,0,1]],Mhr=[1,P,Lfr,0,()=>bct],Fhr=[1,P,Ffr,0,()=>Bct],dde=[1,P,$fr,0,()=>h3],Uhr=[1,P,Kfr,0,()=>Rct],$hr=[1,P,smr,0,()=>Pct],qhr=[1,P,omr,0,()=>_ct],Hhr=[1,P,wmr,0,()=>qct],Ghr=[1,P,_mr,0,()=>$ct],zhr=[1,P,Pmr,0,()=>A3],pde=[1,P,qmr,0,()=>zct],Xct=[9,P,Gpr,0,()=>Yat,()=>Kat],Zct=[9,P,Wpr,0,()=>Xat,()=>Zat],elt=[9,P,Ypr,0,()=>ect,()=>tct],tlt=[9,P,Zpr,0,()=>rct,()=>nct],rlt=[9,P,cfr,0,()=>ict,()=>act],nlt=[9,P,lfr,0,()=>sct,()=>oct],slt=[9,P,rfr,0,()=>cct,()=>lct],olt=[9,P,ofr,0,()=>uct,()=>dct],ilt=[9,P,yfr,0,()=>pct,()=>fct],alt=[9,P,Efr,0,()=>mct,()=>hct],clt=[9,P,Ifr,0,()=>Act,()=>gct],llt=[9,P,xfr,0,()=>yct,()=>Ect],ult=[9,P,Tfr,0,()=>Cct,()=>Ict],dlt=[9,P,_fr,0,()=>Sct,()=>wct],plt=[9,P,Gfr,0,()=>Nct,()=>Tct],flt=[9,P,cmr,0,()=>vct,()=>Qct],mlt=[9,P,dmr,0,()=>Dct,()=>kct],hlt=[9,P,mmr,0,()=>Oct,()=>Lct],Alt=[9,P,Emr,0,()=>Mct,()=>Fct],glt=[9,P,Mmr,0,()=>Hct,()=>Gct],ylt=[9,P,Gmr,0,()=>Vct,()=>Wct],Elt=[9,P,Xmr,0,()=>jct,()=>Jct],Clt=[9,P,jmr,0,()=>Yct,()=>Kct],Vhr=i(t=>({apiVersion:"2020-10-30",base64Decoder:t?.base64Decoder??xpr,base64Encoder:t?.base64Encoder??wpr,disableHostPrefix:t?.disableHostPrefix??!1,endpointProvider:t?.endpointProvider??qpr,extensions:t?.extensions??[],httpAuthSchemeProvider:t?.httpAuthSchemeProvider??vpr,httpAuthSchemes:t?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(e=>e.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new ypr}],logger:t?.logger??new $dr,protocol:t?.protocol??Npr,protocolSettings:t?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:jat,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:t?.serviceId??"ECR PUBLIC",sha256:t?.sha256??Tpr,urlParser:t?.urlParser??apr,utf8Decoder:t?.utf8Decoder??Spr,utf8Encoder:t?.utf8Encoder??Ipr}),"getRuntimeConfig$1"),Whr=i(t=>{qdr(process.version);let e=Jdr(t),r=i(()=>e().then(Hdr),"defaultConfigProvider"),n=Vhr(t);bdr(process.version);let s={profile:t?.profile,logger:n.logger};return{...n,...t,runtime:"node",defaultsMode:e,authSchemePreference:t?.authSchemePreference??Hg(Epr,s),bodyLengthChecker:t?.bodyLengthChecker??bpr,credentialDefaultProvider:t?.credentialDefaultProvider??Cpr,defaultUserAgentProvider:t?.defaultUserAgentProvider??Bdr({serviceId:n.serviceId,clientVersion:Lpr.version}),maxAttempts:t?.maxAttempts??Hg(fpr,t),region:t?.region??Hg(Xdr,{...Zdr,...s}),requestHandler:Rpr.create(t?.requestHandler??r),retryMode:t?.retryMode??Hg({...ppr,default:i(async()=>(await r()).retryMode||dpr,"default")},t),streamCollector:t?.streamCollector??Bpr,useDualstackEndpoint:t?.useDualstackEndpoint??Hg(Kdr,s),useFipsEndpoint:t?.useFipsEndpoint??Hg(Ydr,s),userAgentAppId:t?.userAgentAppId??Hg(Rdr,s)}},"getRuntimeConfig"),jhr=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"),Jhr=i(t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),"resolveHttpAuthRuntimeConfig"),Yhr=i((t,e)=>{let r=Object.assign(Ndr(t),Gdr(t),cpr(t),jhr(t));return e.forEach(n=>n.configure(r)),Object.assign(t,Tdr(r),zdr(r),lpr(r),Jhr(r))},"resolveRuntimeExtensions"),Lm=class extends Zit{static{i(this,"ECRPUBLICClient")}config;constructor(...[e]){let r=Whr(e||{});super(r),this.initConfig=r;let n=Dpr(r),s=_dr(n),o=mpr(s),a=epr(o),c=Pdr(a),l=opr(c),u=Qpr(l),d=Yhr(u,e?.extensions||[]);this.config=d,this.middlewareStack.use(Apr(this.config)),this.middlewareStack.use(vdr(this.config)),this.middlewareStack.use(hpr(this.config)),this.middlewareStack.use(upr(this.config)),this.middlewareStack.use(Qdr(this.config)),this.middlewareStack.use(Ddr(this.config)),this.middlewareStack.use(kdr(this.config)),this.middlewareStack.use(Odr(this.config,{httpAuthSchemeParametersProvider:_pr,identityProviderConfigProvider:i(async p=>new Ldr({"aws.auth#sigv4":p.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Mdr(this.config))}destroy(){super.destroy()}},hr=Vdr(kpr,"SpencerFrontendService","ECRPUBLICClient",ipr),Ar={},gr=i((t,e,r,n)=>[],"_mw0"),Gz=class extends hr(Ar,gr,"BatchCheckLayerAvailability",Xct){static{i(this,"BatchCheckLayerAvailabilityCommand")}},zz=class extends hr(Ar,gr,"BatchDeleteImage",Zct){static{i(this,"BatchDeleteImageCommand")}},Vz=class extends hr(Ar,gr,"CompleteLayerUpload",elt){static{i(this,"CompleteLayerUploadCommand")}},Wz=class extends hr(Ar,gr,"CreateRepository",tlt){static{i(this,"CreateRepositoryCommand")}},jz=class extends hr(Ar,gr,"DeleteRepository",rlt){static{i(this,"DeleteRepositoryCommand")}},Jz=class extends hr(Ar,gr,"DeleteRepositoryPolicy",nlt){static{i(this,"DeleteRepositoryPolicyCommand")}},HT=class extends hr(Ar,gr,"DescribeImages",slt){static{i(this,"DescribeImagesCommand")}},GT=class extends hr(Ar,gr,"DescribeImageTags",olt){static{i(this,"DescribeImageTagsCommand")}},zT=class extends hr(Ar,gr,"DescribeRegistries",ilt){static{i(this,"DescribeRegistriesCommand")}},VT=class extends hr(Ar,gr,"DescribeRepositories",alt){static{i(this,"DescribeRepositoriesCommand")}},Yz=class extends hr(Ar,gr,"GetAuthorizationToken",clt){static{i(this,"GetAuthorizationTokenCommand")}},Kz=class extends hr(Ar,gr,"GetRegistryCatalogData",llt){static{i(this,"GetRegistryCatalogDataCommand")}},Xz=class extends hr(Ar,gr,"GetRepositoryCatalogData",ult){static{i(this,"GetRepositoryCatalogDataCommand")}},Zz=class extends hr(Ar,gr,"GetRepositoryPolicy",dlt){static{i(this,"GetRepositoryPolicyCommand")}},e3=class extends hr(Ar,gr,"InitiateLayerUpload",plt){static{i(this,"InitiateLayerUploadCommand")}},t3=class extends hr(Ar,gr,"ListTagsForResource",flt){static{i(this,"ListTagsForResourceCommand")}},r3=class extends hr(Ar,gr,"PutImage",mlt){static{i(this,"PutImageCommand")}},n3=class extends hr(Ar,gr,"PutRegistryCatalogData",hlt){static{i(this,"PutRegistryCatalogDataCommand")}},s3=class extends hr(Ar,gr,"PutRepositoryCatalogData",Alt){static{i(this,"PutRepositoryCatalogDataCommand")}},o3=class extends hr(Ar,gr,"SetRepositoryPolicy",glt){static{i(this,"SetRepositoryPolicyCommand")}},i3=class extends hr(Ar,gr,"TagResource",ylt){static{i(this,"TagResourceCommand")}},a3=class extends hr(Ar,gr,"UntagResource",Elt){static{i(this,"UntagResourceCommand")}},c3=class extends hr(Ar,gr,"UploadLayerPart",Clt){static{i(this,"UploadLayerPartCommand")}},Ilt=u3(Lm,HT,"nextToken","nextToken","maxResults"),Slt=u3(Lm,GT,"nextToken","nextToken","maxResults"),wlt=u3(Lm,zT,"nextToken","nextToken","maxResults"),xlt=u3(Lm,VT,"nextToken","nextToken","maxResults"),Khr={BatchCheckLayerAvailabilityCommand:Gz,BatchDeleteImageCommand:zz,CompleteLayerUploadCommand:Vz,CreateRepositoryCommand:Wz,DeleteRepositoryCommand:jz,DeleteRepositoryPolicyCommand:Jz,DescribeImagesCommand:HT,DescribeImageTagsCommand:GT,DescribeRegistriesCommand:zT,DescribeRepositoriesCommand:VT,GetAuthorizationTokenCommand:Yz,GetRegistryCatalogDataCommand:Kz,GetRepositoryCatalogDataCommand:Xz,GetRepositoryPolicyCommand:Zz,InitiateLayerUploadCommand:e3,ListTagsForResourceCommand:t3,PutImageCommand:r3,PutRegistryCatalogDataCommand:n3,PutRepositoryCatalogDataCommand:s3,SetRepositoryPolicyCommand:o3,TagResourceCommand:i3,UntagResourceCommand:a3,UploadLayerPartCommand:c3},Xhr={paginateDescribeImages:Ilt,paginateDescribeImageTags:Slt,paginateDescribeRegistries:wlt,paginateDescribeRepositories:xlt},l3=class extends Lm{static{i(this,"ECRPUBLIC")}};Wdr(Khr,l3,{paginators:Xhr});var Zhr={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"},eAr={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"},tAr={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"},rAr={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};B.AuthorizationData$=Jat;B.BatchCheckLayerAvailability$=Xct;B.BatchCheckLayerAvailabilityCommand=Gz;B.BatchCheckLayerAvailabilityRequest$=Yat;B.BatchCheckLayerAvailabilityResponse$=Kat;B.BatchDeleteImage$=Zct;B.BatchDeleteImageCommand=zz;B.BatchDeleteImageRequest$=Xat;B.BatchDeleteImageResponse$=Zat;B.CompleteLayerUpload$=elt;B.CompleteLayerUploadCommand=Vz;B.CompleteLayerUploadRequest$=ect;B.CompleteLayerUploadResponse$=tct;B.CreateRepository$=tlt;B.CreateRepositoryCommand=Wz;B.CreateRepositoryRequest$=rct;B.CreateRepositoryResponse$=nct;B.DeleteRepository$=rlt;B.DeleteRepositoryCommand=jz;B.DeleteRepositoryPolicy$=nlt;B.DeleteRepositoryPolicyCommand=Jz;B.DeleteRepositoryPolicyRequest$=sct;B.DeleteRepositoryPolicyResponse$=oct;B.DeleteRepositoryRequest$=ict;B.DeleteRepositoryResponse$=act;B.DescribeImageTags$=olt;B.DescribeImageTagsCommand=GT;B.DescribeImageTagsRequest$=uct;B.DescribeImageTagsResponse$=dct;B.DescribeImages$=slt;B.DescribeImagesCommand=HT;B.DescribeImagesRequest$=cct;B.DescribeImagesResponse$=lct;B.DescribeRegistries$=ilt;B.DescribeRegistriesCommand=zT;B.DescribeRegistriesRequest$=pct;B.DescribeRegistriesResponse$=fct;B.DescribeRepositories$=alt;B.DescribeRepositoriesCommand=VT;B.DescribeRepositoriesRequest$=mct;B.DescribeRepositoriesResponse$=hct;B.ECRPUBLIC=l3;B.ECRPUBLICClient=Lm;B.ECRPUBLICServiceException=Lt;B.ECRPUBLICServiceException$=wat;B.EmptyUploadException=bz;B.EmptyUploadException$=xat;B.GetAuthorizationToken$=clt;B.GetAuthorizationTokenCommand=Yz;B.GetAuthorizationTokenRequest$=Act;B.GetAuthorizationTokenResponse$=gct;B.GetRegistryCatalogData$=llt;B.GetRegistryCatalogDataCommand=Kz;B.GetRegistryCatalogDataRequest$=yct;B.GetRegistryCatalogDataResponse$=Ect;B.GetRepositoryCatalogData$=ult;B.GetRepositoryCatalogDataCommand=Xz;B.GetRepositoryCatalogDataRequest$=Cct;B.GetRepositoryCatalogDataResponse$=Ict;B.GetRepositoryPolicy$=dlt;B.GetRepositoryPolicyCommand=Zz;B.GetRepositoryPolicyRequest$=Sct;B.GetRepositoryPolicyResponse$=wct;B.Image$=xct;B.ImageAlreadyExistsException=Mz;B.ImageAlreadyExistsException$=bat;B.ImageDetail$=bct;B.ImageDigestDoesNotMatchException=Fz;B.ImageDigestDoesNotMatchException$=Bat;B.ImageFailure$=Bct;B.ImageFailureCode=tAr;B.ImageIdentifier$=h3;B.ImageNotFoundException=Oz;B.ImageNotFoundException$=Rat;B.ImageTagAlreadyExistsException=Uz;B.ImageTagAlreadyExistsException$=Nat;B.ImageTagDetail$=Rct;B.InitiateLayerUpload$=plt;B.InitiateLayerUploadCommand=e3;B.InitiateLayerUploadRequest$=Nct;B.InitiateLayerUploadResponse$=Tct;B.InvalidLayerException=Bz;B.InvalidLayerException$=Tat;B.InvalidLayerPartException=$z;B.InvalidLayerPartException$=_at;B.InvalidParameterException=Cz;B.InvalidParameterException$=Pat;B.InvalidTagParameterException=_z;B.InvalidTagParameterException$=vat;B.Layer$=_ct;B.LayerAlreadyExistsException=Rz;B.LayerAlreadyExistsException$=Qat;B.LayerAvailability=eAr;B.LayerFailure$=Pct;B.LayerFailureCode=Zhr;B.LayerPartTooSmallException=Nz;B.LayerPartTooSmallException$=Dat;B.LayersNotFoundException=qz;B.LayersNotFoundException$=kat;B.LimitExceededException=Pz;B.LimitExceededException$=Oat;B.ListTagsForResource$=flt;B.ListTagsForResourceCommand=t3;B.ListTagsForResourceRequest$=vct;B.ListTagsForResourceResponse$=Qct;B.PutImage$=mlt;B.PutImageCommand=r3;B.PutImageRequest$=Dct;B.PutImageResponse$=kct;B.PutRegistryCatalogData$=hlt;B.PutRegistryCatalogDataCommand=n3;B.PutRegistryCatalogDataRequest$=Oct;B.PutRegistryCatalogDataResponse$=Lct;B.PutRepositoryCatalogData$=Alt;B.PutRepositoryCatalogDataCommand=s3;B.PutRepositoryCatalogDataRequest$=Mct;B.PutRepositoryCatalogDataResponse$=Fct;B.ReferencedImageDetail$=Uct;B.ReferencedImagesNotFoundException=Hz;B.ReferencedImagesNotFoundException$=Lat;B.Registry$=$ct;B.RegistryAlias$=qct;B.RegistryAliasStatus=rAr;B.RegistryCatalogData$=lde;B.RegistryNotFoundException=Iz;B.RegistryNotFoundException$=Mat;B.Repository$=A3;B.RepositoryAlreadyExistsException=vz;B.RepositoryAlreadyExistsException$=Fat;B.RepositoryCatalogData$=g3;B.RepositoryCatalogDataInput$=ude;B.RepositoryCatalogDataNotFoundException=Lz;B.RepositoryCatalogDataNotFoundException$=Uat;B.RepositoryNotEmptyException=Dz;B.RepositoryNotEmptyException$=$at;B.RepositoryNotFoundException=Sz;B.RepositoryNotFoundException$=qat;B.RepositoryPolicyNotFoundException=kz;B.RepositoryPolicyNotFoundException$=Hat;B.ServerException=wz;B.ServerException$=Gat;B.SetRepositoryPolicy$=glt;B.SetRepositoryPolicyCommand=o3;B.SetRepositoryPolicyRequest$=Hct;B.SetRepositoryPolicyResponse$=Gct;B.Tag$=zct;B.TagResource$=ylt;B.TagResourceCommand=i3;B.TagResourceRequest$=Vct;B.TagResourceResponse$=Wct;B.TooManyTagsException=Qz;B.TooManyTagsException$=zat;B.UnsupportedCommandException=xz;B.UnsupportedCommandException$=Vat;B.UntagResource$=Elt;B.UntagResourceCommand=a3;B.UntagResourceRequest$=jct;B.UntagResourceResponse$=Jct;B.UploadLayerPart$=Clt;B.UploadLayerPartCommand=c3;B.UploadLayerPartRequest$=Yct;B.UploadLayerPartResponse$=Kct;B.UploadNotFoundException=Tz;B.UploadNotFoundException$=Wat;B.errorTypeRegistries=jat;B.paginateDescribeImageTags=Slt;B.paginateDescribeImages=Ilt;B.paginateDescribeRegistries=wlt;B.paginateDescribeRepositories=xlt});var SAr={};St(SAr,{main:()=>nut});module.exports=Z(SAr);var wde=R(require("os"),1);function np(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(np,"toCommandValue");function x3(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(x3,"toCommandProperties");function $m(t,e,r){let n=new b3(t,e,r);process.stdout.write(n.toString()+wde.EOL)}i($m,"issueCommand");function B3(t,e=""){$m(t,{},e)}i(B3,"issue");var Sde="::",b3=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=Sde+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}=${uut(s)}`)}}return e+=`${Sde}${lut(this.message)}`,e}};function lut(t){return np(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(lut,"escapeData");function uut(t){return np(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(uut,"escapeProperty");var xde=R(require("crypto"),1),e_=R(require("fs"),1),ZT=R(require("os"),1);function bde(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!e_.existsSync(r))throw new Error(`Missing file at path: ${r}`);e_.appendFileSync(r,`${np(e)}${ZT.EOL}`,{encoding:"utf8"})}i(bde,"issueFileCommand");function Bde(t,e){let r=`ghadelimiter_${xde.randomUUID()}`,n=np(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}${ZT.EOL}${n}${ZT.EOL}${r}`}i(Bde,"prepareKeyValueMessage");var xCe=R(require("os"),1);var ob=R(require("http"),1),sW=R(require("https"),1);function R3(t){let e=t.protocol==="https:";if(dut(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 t_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new t_(`http://${r}`)}else return}i(R3,"getProxyUrl");function dut(t){if(!t.hostname)return!1;let e=t.hostname;if(put(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(dut,"checkBypass");function put(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(put,"isLoopbackAddress");var t_=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 Sp=R(Wg(),1),rCe=R(Ah(),1);var Qr=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())})},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||(ki={}));var bs;(function(t){t.Accept="accept",t.ContentType="content-type"})(bs||(bs={}));var nd;(function(t){t.ApplicationJson="application/json"})(nd||(nd={}));var $wt=[ki.MovedPermanently,ki.ResourceMoved,ki.SeeOther,ki.TemporaryRedirect,ki.PermanentRedirect],qwt=[ki.BadGateway,ki.ServiceUnavailable,ki.GatewayTimeout],Hwt=["OPTIONS","GET","DELETE","HEAD"],Gwt=10,zwt=5,rW=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},nW=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))})}))})}};var XP=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[bs.Accept]=this._getExistingOrDefaultHeader(n,bs.Accept,nd.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[bs.Accept]=this._getExistingOrDefaultHeader(o,bs.Accept,nd.ApplicationJson),o[bs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,nd.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[bs.Accept]=this._getExistingOrDefaultHeader(o,bs.Accept,nd.ApplicationJson),o[bs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,nd.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[bs.Accept]=this._getExistingOrDefaultHeader(o,bs.Accept,nd.ApplicationJson),o[bs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,nd.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&&Hwt.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&&$wt.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||!qwt.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 nW(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=R3(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?sW:ob;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({},sb(this.requestOptions.headers),sb(e||{})):sb(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=sb(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=sb(this.requestOptions.headers)[bs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[bs.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=R3(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||ob.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?Sp.httpsOverHttps:Sp.httpsOverHttp:l=u?Sp.httpOverHttps:Sp.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new sW.Agent(c):new ob.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 rCe.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(Gwt,e);let r=zwt*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 rW(d,o);p.result=a.result,s(p)}else n(a)}))})}},sb=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var Vwt=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 ZP=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 Vwt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var nCe=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())})},ev=class t{static{i(this,"OidcClient")}static createHttpClient(e=!0,r=10){let n={allowRetries:e,maxRetries:r};return new XP("actions/oidc-client",[new ZP(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 nCe(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 nCe(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 ns(n),n}catch(r){throw new Error(`Error message: ${r.message}`)}})}};var oCe=require("os"),ib=require("fs");var oW=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:Wwt,appendFile:jwt,writeFile:Jwt}=ib.promises,sCe="GITHUB_STEP_SUMMARY";var iW=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return oW(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[sCe];if(!e)throw new Error(`Unable to find environment variable for $${sCe}. Check if your runtime environment supports job summaries.`);try{yield Wwt(e,ib.constants.R_OK|ib.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 oW(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?Jwt:jwt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return oW(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(oCe.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()}},fCr=new iW;var hW=R(require("os"),1);var mW=require("string_decoder");var lb=R(require("os"),1),fW=R(require("events"),1),yCe=R(require("child_process"),1),ECe=R(require("path"),1);var fCe=require("assert"),Zo=R(require("path"),1);var ab=R(require("fs"),1),wp=R(require("path"),1);var aW=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:cW,copyFile:aCe,lstat:tv,mkdir:cCe,open:yCr,readdir:lW,rename:Ywt,rm:lCe,rmdir:ECr,stat:gh,symlink:uCe,unlink:uW}=ab.promises,Vc=process.platform==="win32";function dCe(t){return aW(this,void 0,void 0,function*(){let e=yield ab.promises.readlink(t);return Vc&&!e.endsWith("\\")?`${e}\\`:e})}i(dCe,"readlink");var CCr=ab.constants.O_RDONLY;function Hy(t){return aW(this,void 0,void 0,function*(){try{yield gh(t)}catch(e){if(e.code==="ENOENT")return!1;throw e}return!0})}i(Hy,"exists");function rv(t){if(t=Kwt(t),!t)throw new Error('isRooted() parameter "p" cannot be empty');return Vc?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(rv,"isRooted");function dW(t,e){return aW(this,void 0,void 0,function*(){let r;try{r=yield gh(t)}catch(s){s.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${s}`)}if(r&&r.isFile()){if(Vc){let s=wp.extname(t).toUpperCase();if(e.some(o=>o.toUpperCase()===s))return t}else if(iCe(r))return t}let n=t;for(let s of e){t=n+s,r=void 0;try{r=yield gh(t)}catch(o){o.code!=="ENOENT"&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${o}`)}if(r&&r.isFile()){if(Vc){try{let o=wp.dirname(t),a=wp.basename(t).toUpperCase();for(let c of yield lW(o))if(a===c.toUpperCase()){t=wp.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(iCe(r))return t}}return""})}i(dW,"tryGetExecutablePath");function Kwt(t){return t=t||"",Vc?(t=t.replace(/\//g,"\\"),t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(Kwt,"normalizeSeparators");function iCe(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(iCe,"isUnixExecutable");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())})};function mCe(t,e){return yh(this,arguments,void 0,function*(r,n,s={}){let{force:o,recursive:a,copySourceDirectory:c}=Zwt(s),l=(yield Hy(n))?yield gh(n):null;if(l&&l.isFile()&&!o)return;let u=l&&l.isDirectory()&&c?Zo.join(n,Zo.basename(r)):n;if(!(yield Hy(r)))throw new Error(`no such file or directory: ${r}`);if((yield gh(r)).isDirectory())if(a)yield hCe(r,u,0,o);else throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`);else{if(Zo.relative(r,u)==="")throw new Error(`'${u}' and '${r}' are the same file`);yield ACe(r,u,o)}})}i(mCe,"cp");function cb(t){return yh(this,void 0,void 0,function*(){if(Vc&&/[*"<>|]/.test(t))throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield lCe(t,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}})}i(cb,"rmRF");function Eh(t){return yh(this,void 0,void 0,function*(){(0,fCe.ok)(t,"a path argument must be provided"),yield cCe(t,{recursive:!0})})}i(Eh,"mkdirP");function no(t,e){return yh(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");if(e){let n=yield no(t,!1);if(!n)throw Vc?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 Xwt(t);return r&&r.length>0?r[0]:""})}i(no,"which");function Xwt(t){return yh(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'tool' is required");let e=[];if(Vc&&process.env.PATHEXT)for(let s of process.env.PATHEXT.split(Zo.delimiter))s&&e.push(s);if(rv(t)){let s=yield dW(t,e);return s?[s]:[]}if(t.includes(Zo.sep))return[];let r=[];if(process.env.PATH)for(let s of process.env.PATH.split(Zo.delimiter))s&&r.push(s);let n=[];for(let s of r){let o=yield dW(Zo.join(s,t),e);o&&n.push(o)}return n})}i(Xwt,"findInPath");function Zwt(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(Zwt,"readCopyOptions");function hCe(t,e,r,n){return yh(this,void 0,void 0,function*(){if(r>=255)return;r++,yield Eh(e);let s=yield lW(t);for(let o of s){let a=`${t}/${o}`,c=`${e}/${o}`;(yield tv(a)).isDirectory()?yield hCe(a,c,r,n):yield ACe(a,c,n)}yield cW(e,(yield gh(t)).mode)})}i(hCe,"cpDirRecursive");function ACe(t,e,r){return yh(this,void 0,void 0,function*(){if((yield tv(t)).isSymbolicLink()){try{yield tv(e),yield uW(e)}catch(s){s.code==="EPERM"&&(yield cW(e,"0666"),yield uW(e))}let n=yield dCe(t);yield uCe(n,e,Vc?"junction":null)}else(!(yield Hy(e))||r)&&(yield aCe(t,e))})}i(ACe,"copyFile");var CCe=require("timers");var gCe=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())})},nv=process.platform==="win32",sv=class extends fW.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(nv)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(lb.EOL);for(;o>-1;){let a=s.substring(0,o);n(a),s=s.substring(o+lb.EOL.length),o=s.indexOf(lb.EOL)}return s}catch(s){return this._debug(`error processing line. Failed with error ${s}`),""}}_getSpawnFileName(){return nv&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(nv&&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 gCe(this,void 0,void 0,function*(){return!rv(this.toolPath)&&(this.toolPath.includes("/")||nv&&this.toolPath.includes("\\"))&&(this.toolPath=ECe.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield no(this.toolPath,!0),new Promise((e,r)=>gCe(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)+lb.EOL);let s=new pW(n,this.toolPath);if(s.on("debug",u=>{this._debug(u)}),this.options.cwd&&!(yield Hy(this.options.cwd)))return r(new Error(`The cwd: ${this.options.cwd} does not exist!`));let o=this._getSpawnFileName(),a=yCe.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 ICe(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(ICe,"argStringToArray");var pW=class t extends fW.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,CCe.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 SCe=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 xp(t,e,r){return SCe(this,void 0,void 0,function*(){let n=ICe(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 sv(s,e,r).exec()})}i(xp,"exec");function ub(t,e,r){return SCe(this,void 0,void 0,function*(){var n,s;let o="",a="",c=new mW.StringDecoder("utf8"),l=new mW.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(g=>{a+=l.write(g),d&&d(g)},"stdErrListener"),f=i(g=>{o+=c.write(g),u&&u(g)},"stdOutListener"),m=Object.assign(Object.assign({},r?.listeners),{stdout:f,stderr:p}),h=yield xp(t,e,Object.assign(Object.assign({},r),{listeners:m}));return o+=c.end(),a+=l.end(),{exitCode:h,stdout:o,stderr:a}})}i(ub,"getExecOutput");var BCr=hW.default.platform(),RCr=hW.default.arch();var wCe=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())})},AW;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(AW||(AW={}));function ns(t){$m("add-mask",{},t)}i(ns,"setSecret");function $a(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($a,"getInput");function bCe(t,e){let r=["true","True","TRUE"],n=["false","False","FALSE"],s=$a(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(bCe,"getBooleanInput");function BCe(t){process.exitCode=AW.Failure,zy(t)}i(BCe,"setFailed");function Ch(){return process.env.RUNNER_DEBUG==="1"}i(Ch,"isDebug");function T(t){$m("debug",{},t)}i(T,"debug");function zy(t,e={}){$m("error",x3(e),t instanceof Error?t.toString():t)}i(zy,"error");function Er(t,e={}){$m("warning",x3(e),t instanceof Error?t.toString():t)}i(Er,"warning");function ae(t){process.stdout.write(t+xCe.EOL)}i(ae,"info");function rxt(t){B3("group",t)}i(rxt,"startGroup");function nxt(){B3("endgroup")}i(nxt,"endGroup");function pb(t,e){return wCe(this,void 0,void 0,function*(){rxt(t);let r;try{r=yield e()}finally{nxt()}return r})}i(pb,"group");function Ih(t,e){if(process.env.GITHUB_STATE||"")return bde("STATE",Bde(t,e));$m("save-state",{name:t},np(e))}i(Ih,"saveState");function RCe(t){return process.env[`STATE_${t}`]||""}i(RCe,"getState");function NCe(t){return wCe(this,void 0,void 0,function*(){return yield ev.getIDToken(t)})}i(NCe,"getIDToken");var sB=R(require("fs"),1),IX=R(require("os"),1),SX=R(require("path"),1);var _Ce=R(require("os"),1);function fb(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(fb,"toCommandValue");function PCe(t,e,r){let n=new gW(t,e,r);process.stdout.write(n.toString()+_Ce.EOL)}i(PCe,"issueCommand");var TCe="::",gW=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=TCe+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}=${oxt(s)}`)}}return e+=`${TCe}${sxt(this.message)}`,e}};function sxt(t){return fb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(sxt,"escapeData");function oxt(t){return fb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(oxt,"escapeProperty");var ov=R(Wg(),1),axt=R(Ah(),1);var Wc;(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"})(Wc||(Wc={}));var vCe;(function(t){t.Accept="accept",t.ContentType="content-type"})(vCe||(vCe={}));var QCe;(function(t){t.ApplicationJson="application/json"})(QCe||(QCe={}));var XCr=[Wc.MovedPermanently,Wc.ResourceMoved,Wc.SeeOther,Wc.TemporaryRedirect,Wc.PermanentRedirect],ZCr=[Wc.BadGateway,Wc.ServiceUnavailable,Wc.GatewayTimeout];var kCe=require("os"),mb=require("fs");var yW=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:uxt,appendFile:dxt,writeFile:pxt}=mb.promises,DCe="GITHUB_STEP_SUMMARY";var EW=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return yW(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[DCe];if(!e)throw new Error(`Unable to find environment variable for $${DCe}. Check if your runtime environment supports job summaries.`);try{yield uxt(e,mb.constants.R_OK|mb.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 yW(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?pxt:dxt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return yW(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(kCe.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()}},uIr=new EW;var CW=R(require("os"),1);var hIr=CW.default.platform(),AIr=CW.default.arch();var OCe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(OCe||(OCe={}));function Bs(t){PCe("debug",{},t)}i(Bs,"debug");var so=R(require("fs"),1);var lBt=R(UW(),1);var yv=R(require("os"),1),bp=R(require("path"),1);var Mi=R(UW(),1);var RSe=require("assert");var BSe=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 wwr=process.platform==="win32",xwr=process.platform==="darwin";function NSe(t,e,r,n){return BSe(this,void 0,void 0,function*(){if(r=Mi.clean(r)||r,n=n||yv.arch(),Bs(`Caching tool ${e} ${r} ${n}`),Bs(`source dir: ${t}`),!so.statSync(t).isDirectory())throw new Error("sourceDir is not a directory");let s=yield pBt(e,r,n);for(let o of so.readdirSync(t)){let a=bp.join(t,o);yield mCe(a,s,{recursive:!0})}return fBt(e,r,n),s})}i(NSe,"cacheDir");function TSe(t,e,r){if(!t)throw new Error("toolName parameter is required");if(!e)throw new Error("versionSpec parameter is required");if(r=r||yv.arch(),!_Se(e)){let s=dBt(t,r);e=mBt(s,e)}let n="";if(e){e=Mi.clean(e)||"";let s=bp.join(Ev(),t,e,r);Bs(`checking cache: ${s}`),so.existsSync(s)&&so.existsSync(`${s}.complete`)?(Bs(`Found tool in cache ${t} ${e} ${r}`),n=s):Bs("not found")}return n}i(TSe,"find");function dBt(t,e){let r=[];e=e||yv.arch();let n=bp.join(Ev(),t);if(so.existsSync(n)){let s=so.readdirSync(n);for(let o of s)if(_Se(o)){let a=bp.join(n,o,e||"");so.existsSync(a)&&so.existsSync(`${a}.complete`)&&r.push(o)}}return r}i(dBt,"findAllVersions");function pBt(t,e,r){return BSe(this,void 0,void 0,function*(){let n=bp.join(Ev(),t,Mi.clean(e)||e,r||"");Bs(`destination ${n}`);let s=`${n}.complete`;return yield cb(n),yield cb(s),yield Eh(n),n})}i(pBt,"_createToolPath");function fBt(t,e,r){let s=`${bp.join(Ev(),t,Mi.clean(e)||e,r||"")}.complete`;so.writeFileSync(s,""),Bs("finished caching tool")}i(fBt,"_completeToolPath");function _Se(t){let e=Mi.clean(t)||"";Bs(`isExplicit: ${e}`);let r=Mi.valid(e)!=null;return Bs(`explicit? ${r}`),r}i(_Se,"isExplicitVersion");function mBt(t,e){let r="";Bs(`evaluating ${t.length} versions`),t=t.sort((n,s)=>Mi.gt(n,s)?1:-1);for(let n=t.length-1;n>=0;n--){let s=t[n];if(Mi.satisfies(s,e)){r=s;break}}return r?Bs(`matched: ${r}`):Bs("match not found"),r}i(mBt,"evaluateVersions");function Ev(){let t=process.env.RUNNER_TOOL_CACHE||"";return(0,RSe.ok)(t,"Expected RUNNER_TOOL_CACHE to be defined"),t}i(Ev,"_getCacheDirectory");var nB=R(require("path"),1);var vSe=R(require("os"),1);function Sb(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(Sb,"toCommandValue");function QSe(t,e,r){let n=new $W(t,e,r);process.stdout.write(n.toString()+vSe.EOL)}i(QSe,"issueCommand");var PSe="::",$W=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=PSe+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}=${gBt(s)}`)}}return e+=`${PSe}${ABt(this.message)}`,e}};function ABt(t){return Sb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(ABt,"escapeData");function gBt(t){return Sb(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(gBt,"escapeProperty");var Cv=R(Wg(),1),EBt=R(Ah(),1);var Jc;(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"})(Jc||(Jc={}));var DSe;(function(t){t.Accept="accept",t.ContentType="content-type"})(DSe||(DSe={}));var kSe;(function(t){t.ApplicationJson="application/json"})(kSe||(kSe={}));var Owr=[Jc.MovedPermanently,Jc.ResourceMoved,Jc.SeeOther,Jc.TemporaryRedirect,Jc.PermanentRedirect],Lwr=[Jc.BadGateway,Jc.ServiceUnavailable,Jc.GatewayTimeout];var LSe=require("os"),wb=require("fs");var qW=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:CBt,appendFile:IBt,writeFile:SBt}=wb.promises,OSe="GITHUB_STEP_SUMMARY";var HW=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return qW(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[OSe];if(!e)throw new Error(`Unable to find environment variable for $${OSe}. Check if your runtime environment supports job summaries.`);try{yield CBt(e,wb.constants.R_OK|wb.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 qW(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?SBt:IBt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return qW(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(LSe.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()}},Ywr=new HW;var GW=R(require("os"),1);var txr=GW.default.platform(),rxr=GW.default.arch();var MSe;(function(t){t[t.Success=0]="Success",t[t.Failure=1]="Failure"})(MSe||(MSe={}));function Fi(t){QSe("debug",{},t)}i(Fi,"debug");var Yy=R(require("fs"),1);function VW(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,Fi(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,Fi(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,Fi(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,Fi(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,Fi(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}i(VW,"getOptions");var xv=R(require("path"),1);var Wy=R(require("path"),1),Bp=R(require("assert"),1);var Rp=process.platform==="win32";function od(t){if(t=sd(t),Rp&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Wy.dirname(t);return Rp&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=sd(e)),e}i(od,"dirname");function Iv(t,e){if((0,Bp.default)(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),(0,Bp.default)(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),xb(e))return e;if(Rp){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return(0,Bp.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(qa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return(0,Bp.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,Bp.default)(xb(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Rp&&t.endsWith("\\")||(t+=Wy.sep),t+e}i(Iv,"ensureAbsoluteRoot");function xb(t){return(0,Bp.default)(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=qa(t),Rp?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}i(xb,"hasAbsoluteRoot");function bb(t){return(0,Bp.default)(t,"isRooted parameter 'itemPath' must not be empty"),t=qa(t),Rp?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}i(bb,"hasRoot");function qa(t){return t=t||"",Rp?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}i(qa,"normalizeSeparators");function sd(t){return t?(t=qa(t),!t.endsWith(Wy.sep)||t===Wy.sep||Rp&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}i(sd,"safeTrimTrailingSeparator");var Ha;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ha||(Ha={}));var FSe=process.platform==="win32";function jW(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=FSe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=FSe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let o=!1,a=s,c=od(a);for(;c!==a;){if(e[c]){o=!0;break}a=c,c=od(a)}o||(r.push(n.searchPath),e[s]="included")}return r}i(jW,"getSearchPaths");function USe(t,e){let r=Ha.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}i(USe,"match");function $Se(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}i($Se,"partialMatch");var iwe=R(require("os"),1),Jy=R(require("path"),1);var _p=R(require("assert"),1);var JW=i((t,e,r)=>{let n=t instanceof RegExp?qSe(t,r):t,s=e instanceof RegExp?qSe(e,r):e,o=n!==null&&s!=null&&BBt(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"),qSe=i((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),BBt=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 HSe="\0SLASH"+Math.random()+"\0",GSe="\0OPEN"+Math.random()+"\0",ZW="\0CLOSE"+Math.random()+"\0",zSe="\0COMMA"+Math.random()+"\0",VSe="\0PERIOD"+Math.random()+"\0",RBt=new RegExp(HSe,"g"),NBt=new RegExp(GSe,"g"),TBt=new RegExp(ZW,"g"),_Bt=new RegExp(zSe,"g"),PBt=new RegExp(VSe,"g"),vBt=/\\\\/g,QBt=/\\{/g,DBt=/\\}/g,kBt=/\\,/g,OBt=/\\\./g,LBt=1e5,MBt=4e6,FBt=1e3,UBt=1e3;function YW(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}i(YW,"numeric");function $Bt(t){return t.replace(vBt,HSe).replace(QBt,GSe).replace(DBt,ZW).replace(kBt,zSe).replace(OBt,VSe)}i($Bt,"escapeBraces");function qBt(t){return t.replace(RBt,"\\").replace(NBt,"{").replace(TBt,"}").replace(_Bt,",").replace(PBt,".")}i(qBt,"unescapeBraces");function KW(t,e){for(let r=0;r<e.length;r++)t.push(e[r])}i(KW,"pushAll");function HBt(t){let e=[],r="";for(;;){let n=JW("{","}",t);if(!n){let l=t.split(",");return l[0]=r+l[0],KW(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 KW(e,c),e;r=c.pop(),KW(e,c),t=a}}i(HBt,"parseCommaParts");function WSe(t,e={}){if(!t)return[];let{max:r=LBt,maxLength:n=MBt,maxDepth:s=FBt,maxRewrites:o=UBt}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),XW($Bt(t),r,n,s,0,o,!0).map(qBt)}i(WSe,"expand");function GBt(t){return"{"+t+"}"}i(GBt,"embrace");function zBt(t){return/^-?0\d/.test(t)}i(zBt,"isPadded");function VBt(t,e){return t<=e}i(VBt,"lte");function WBt(t,e){return t>=e}i(WBt,"gte");function Bb(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(Bb,"combine");function jBt(t,e,r,n){let s=t.split(/\.\./),o=[];if(s[0]===void 0||s[1]===void 0)return o;let a=YW(s[0]),c=YW(s[1]),l=Math.max(s[0].length,s[1].length),u=s.length===3&&s[2]!==void 0?Math.max(Math.abs(YW(s[2])),1):1,d=VBt;c<a&&(u*=-1,d=WBt);let f=s.some(zBt),m=0;for(let h=a;d(h,c)&&o.length<r;h+=u){let g;if(e)g=String.fromCharCode(h),g==="\\"&&(g="");else if(g=String(h),f){let y=l-g.length;if(y>0){let E=new Array(y+1).join("0");h<0?g="-"+E+g.slice(1):g=E+g}}if(m+g.length>n)break;o.push(g),m+=g.length}return o}i(jBt,"expandSequence");function XW(t,e,r,n,s,o,a){if(s>n)return[t];let c=[""],l=0,u=!1,d=!0;for(;;){let p=JW("{","}",t);if(!p)return Bb(c,t,[""],e,r,u);let f=p.pre;if(/\$$/.test(f)){if(c=Bb(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),g=m||h,y=p.body.indexOf(",")>=0;if(!g&&!y){if(l<o&&p.post.match(/,(?!,).*\}/)){l++,t=p.pre+"{"+p.body+ZW+p.post,a=!0;continue}return Bb(c,f+"{"+p.body+"}"+p.post,[""],e,r,u)}d&&(u=a&&!g,d=!1);let E;if(g)E=jBt(p.body,h,e,r);else{let C=HBt(p.body);if(C.length===1&&C[0]!==void 0&&(C=XW(C[0],e,r,n,s+1,o,!1).map(GBt),C.length===1)){if(c=Bb(c,f+C[0],[""],e,r,u&&!p.post.length),!p.post.length)break;t=p.post;continue}let S=u&&!p.post.length&&!f;for(let N=0;S&&N<c.length;N++)c[N]&&(S=!1);E=[];let b=0;e:for(let N=0;N<C.length;N++){let _=XW(C[N],e,r,n,s+1,o,!1);for(let v=0;v<_.length;v++){let J=_[v];if(!(S&&!J)){if(E.length>=e||b+J.length>r)break e;E.push(J),b+=J.length}}}}if(c=Bb(c,f,E,e,r,u&&!p.post.length),!p.post.length)break;t=p.post}return c}i(XW,"expand_");var Rb=i(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},"assertValidPattern");var JBt={"[: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]},Nb=i(t=>t.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),YBt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),jSe=i(t=>t.join(""),"rangesToString"),JSe=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 g=t.charAt(o);if((g==="!"||g==="^")&&o===r+1){u=!0,o++;continue}if(g==="]"&&a&&!l){d=o+1;break}if(a=!0,g==="\\"&&!l){l=!0,o++;continue}if(g==="["&&!l){for(let[y,[E,C,S]]of Object.entries(JBt))if(t.startsWith(y,o)){if(p)return["$.",!1,t.length-r,!0];o+=y.length,S?s.push(E):n.push(E),c=c||C;continue e}}if(l=!1,p){g>p?n.push(Nb(p)+"-"+Nb(g)):g===p&&n.push(Nb(g)),p="",o++;continue}if(t.startsWith("-]",o+1)){n.push(Nb(g+"-")),o+=2;continue}if(t.startsWith("-",o+1)){p=g,o+=2;continue}n.push(Nb(g)),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 g=n[0].length===2?n[0].slice(-1):n[0];return[YBt(g),!1,d-r,!1]}let f="["+(u?"^":"")+jSe(n)+"]",m="["+(u?"":"^")+jSe(s)+"]";return[n.length&&s.length?"("+f+"|"+m+")":n.length?f:m,c,d-r,!0]},"parseClass");var Np=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 oo,KBt=new Set(["!","?","+","*","@"]),ej=i(t=>KBt.has(t),"isExtglobType"),YSe=i(t=>ej(t.type),"isExtglobAST"),XBt=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),ZBt=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),eRt=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),KSe=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),tRt="(?!(?:^|/)\\.\\.?(?:$|/))",Sv="(?!\\.)",rRt=new Set(["[","."]),nRt=new Set(["..","."]),sRt=new Set("().*{}+?[]^$\\!"),oRt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),tj="[^/]",XSe=tj+"*?",ZSe=tj+"+?",iRt=0,wh=class{static{i(this,"AST")}type;#e;#t;#n=!1;#r=[];#s;#o;#i;#a=!1;#l;#c;#u=!1;id=++iRt;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 oo&&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 oo&&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 oo(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 g=n,y="";for(;g<e.length;){let E=e.charAt(g++);if(c||E==="\\"){c=!c,y+=E;continue}if(l){g===u+1?(E==="^"||E==="!")&&(d=!0):E==="]"&&!(g===u+2&&d)&&(l=!1),y+=E;continue}else if(E==="["){l=!0,u=g,d=!1,y+=E;continue}if(!s.noext&&ej(E)&&e.charAt(g)==="("&&o<=a){r.push(y),y="";let S=new oo(E,r);g=oo.#d(e,S,g,s,o+1),r.push(S);continue}y+=E}return r.push(y),g}let p=n+1,f=new oo(null,r),m=[],h="";for(;p<e.length;){let g=e.charAt(p++);if(c||g==="\\"){c=!c,h+=g;continue}if(l){p===u+1?(g==="^"||g==="!")&&(d=!0):g==="]"&&!(p===u+2&&d)&&(l=!1),h+=g;continue}else if(g==="["){l=!0,u=p,d=!1,h+=g;continue}if(!s.noext&&ej(g)&&e.charAt(p)==="("&&(o<=a||r&&r.#p(g))){let E=r&&r.#p(g)?0:1;f.push(h),h="";let C=new oo(g,f);f.push(C),p=oo.#d(e,C,p,s,o+E);continue}if(g==="|"){f.push(h),h="",m.push(f),f=new oo(null,r);continue}if(g===")")return h===""&&r.#r.length===0&&(r.#u=!0),f.push(h),h="",r.push(...m,f),p;h+=g}return r.type=null,r.#t=void 0,r.#r=[e.substring(n-1)],p}#y(e){return this.#m(e,ZBt)}#m(e,r=XBt){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=eRt){return!!r.get(this.type)?.includes(e)}#E(e,r){let n=e.#r[0],s=new oo(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!!KSe.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=KSe.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 oo(null,void 0,r);return oo.#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()),!YSe(this)){let l=this.isStart()&&this.isEnd()&&!this.#r.some(m=>typeof m!="string"),u=this.#r.map(m=>{let[h,g,y,E]=typeof m=="string"?oo.#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&&nRt.has(this.#r[0]))){let h=rRt,g=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=g?tRt:y?Sv:""}let p="";return this.isEnd()&&this.#e.#a&&this.#s?.type==="!"&&(p="(?:$|\\/)"),[d+u+p,Np(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,Np(this.toString()),!1,!1]}let a=!n||e||r||!Sv?"":this.#A(!0);a===o&&(a=""),a&&(o=`(?:${o})(?:${a})*?`);let c="";if(this.type==="!"&&this.#u)c=(this.isStart()&&!r?Sv:"")+ZSe;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!e?Sv:"")+XSe+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;c=s+o+l}return[c,Np(o),this.#t=!!this.#t,this.#n]}#f(){if(YSe(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+=(sRt.has(u)?"\\":"")+u;continue}if(u==="*"){if(c)continue;c=!0,o+=n&&/^[*]+$/.test(e)?ZSe:XSe,r=!0;continue}else c=!1;if(u==="\\"){l===e.length-1?o+="\\\\":s=!0;continue}if(u==="["){let[d,p,f,m]=JSe(e,l);if(f){o+=d,a=a||p,l+=f-1,r=r||m;continue}}if(u==="?"){o+=tj,r=!0;continue}o+=oRt(u)}return[o,Np(e),!!r,a]}};oo=wh;var rj=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 Ts=i((t,e,r={})=>(Rb(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Tp(e,r).match(t)),"minimatch"),aRt=/^\*+([^+@!?*[(]*)$/,cRt=i(t=>e=>!e.startsWith(".")&&e.endsWith(t),"starDotExtTest"),lRt=i(t=>e=>e.endsWith(t),"starDotExtTestDot"),uRt=i(t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),"starDotExtTestNocase"),dRt=i(t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),"starDotExtTestNocaseDot"),pRt=/^\*+\.\*+$/,fRt=i(t=>!t.startsWith(".")&&t.includes("."),"starDotStarTest"),mRt=i(t=>t!=="."&&t!==".."&&t.includes("."),"starDotStarTestDot"),hRt=/^\.\*+$/,ARt=i(t=>t!=="."&&t!==".."&&t.startsWith("."),"dotStarTest"),gRt=/^\*+$/,yRt=i(t=>t.length!==0&&!t.startsWith("."),"starTest"),ERt=i(t=>t.length!==0&&t!=="."&&t!=="..","starTestDot"),CRt=/^\?+([^+@!?*[(]*)?$/,IRt=i(([t,e=""])=>{let r=rwe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocase"),SRt=i(([t,e=""])=>{let r=nwe([t]);return e?(e=e.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(e)):r},"qmarksTestNocaseDot"),wRt=i(([t,e=""])=>{let r=nwe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTestDot"),xRt=i(([t,e=""])=>{let r=rwe([t]);return e?n=>r(n)&&n.endsWith(e):r},"qmarksTest"),rwe=i(([t])=>{let e=t.length;return r=>r.length===e&&!r.startsWith(".")},"qmarksTestNoExt"),nwe=i(([t])=>{let e=t.length;return r=>r.length===e&&r!=="."&&r!==".."},"qmarksTestNoExtDot"),swe=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",ewe={win32:{sep:"\\"},posix:{sep:"/"}},bRt=swe==="win32"?ewe.win32.sep:ewe.posix.sep;Ts.sep=bRt;var is=Symbol("globstar **");Ts.GLOBSTAR=is;var BRt="[^/]",RRt=BRt+"*?",NRt="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",TRt="(?:(?!(?:\\/|^)\\.).)*?",_Rt=i((t,e={})=>r=>Ts(r,t,e),"filter");Ts.filter=_Rt;var Ui=i((t,e={})=>Object.assign({},t,e),"ext"),PRt=i(t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ts;let e=Ts;return Object.assign(i((n,s,o={})=>e(n,s,Ui(t,o)),"m"),{Minimatch:class extends e.Minimatch{static{i(this,"Minimatch")}constructor(s,o={}){super(s,Ui(t,o))}static defaults(s){return e.defaults(Ui(t,s)).Minimatch}},AST:class extends e.AST{static{i(this,"AST")}constructor(s,o,a={}){super(s,o,Ui(t,a))}static fromGlob(s,o={}){return e.AST.fromGlob(s,Ui(t,o))}},unescape:i((n,s={})=>e.unescape(n,Ui(t,s)),"unescape"),escape:i((n,s={})=>e.escape(n,Ui(t,s)),"escape"),filter:i((n,s={})=>e.filter(n,Ui(t,s)),"filter"),defaults:i(n=>e.defaults(Ui(t,n)),"defaults"),makeRe:i((n,s={})=>e.makeRe(n,Ui(t,s)),"makeRe"),braceExpand:i((n,s={})=>e.braceExpand(n,Ui(t,s)),"braceExpand"),match:i((n,s,o={})=>e.match(n,s,Ui(t,o)),"match"),sep:e.sep,GLOBSTAR:is})},"defaults");Ts.defaults=PRt;var owe=i((t,e={})=>(Rb(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:WSe(t,{max:e.braceExpandMax})),"braceExpand");Ts.braceExpand=owe;var vRt=i((t,e={})=>new Tp(t,e).makeRe(),"makeRe");Ts.makeRe=vRt;var QRt=i((t,e,r={})=>{let n=new Tp(e,r);return t=t.filter(s=>n.match(s)),n.options.nonull&&!t.length&&t.push(e),t},"match");Ts.match=QRt;var twe=/[?*]|[+@!]\(.*?\)|\[|\]/,DRt=i(t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Tp=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={}){Rb(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=e,this.platform=r.platform||swe,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]==="?"||!twe.test(o[2]))&&!twe.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(is)?this.#e(e,r,n,s,o):this.#n(e,r,n,s,o)}#e(e,r,n,s,o){let a=r.indexOf(is,o),c=r.lastIndexOf(is),[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 C=e.slice(s,s+l.length);if(!this.#n(C,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 C=e.length-d.length;if(this.#n(e,d,n,C,0))p=d.length;else{if(e[e.length-1]!==""||s+d.length===e.length||(C--,!this.#n(e,d,n,C,0)))return!1;p=d.length+1}}if(!u.length){let C=!!p;for(let S=s;S<e.length-p;S++){let b=String(e[S]);if(C=!0,b==="."||b===".."||!this.options.dot&&b.startsWith("."))return!1}return n||C}let f=[[[],0]],m=f[0],h=0,g=[0];for(let C of u)C===is?(g.push(h),m=[[],0],f.push(m)):(m[0].push(C),h++);let y=f.length-1,E=e.length-p;for(let C of f)C[1]=E-(g[y--]+C[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===is)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 owe(this.pattern,this.options)}parse(e){Rb(e);let r=this.options;if(e==="**")return is;if(e==="")return"";let n,s=null;(n=e.match(gRt))?s=r.dot?ERt:yRt:(n=e.match(aRt))?s=(r.nocase?r.dot?dRt:uRt:r.dot?lRt:cRt)(n[1]):(n=e.match(CRt))?s=(r.nocase?r.dot?SRt:IRt:r.dot?wRt:xRt)(n):(n=e.match(pRt))?s=r.dot?mRt:fRt:(n=e.match(hRt))&&(s=ARt);let o=wh.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?RRt:r.dot?NRt:TRt,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"?DRt(p):p===is?is:p._src});u.forEach((p,f)=>{let m=u[f+1],h=u[f-1];p!==is||h===is||(h===void 0?m!==void 0&&m!==is?u[f+1]="(?:\\/|"+n+"\\/)?"+m:u[f]=n:m===void 0?u[f-1]=h+"(?:\\/|\\/"+n+")?":m!==is&&(u[f-1]=h+"(?:\\/|\\/"+n+"\\/)"+m,u[f+1]=is))});let d=u.filter(p=>p!==is);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 Ts.defaults(e).Minimatch}};Ts.AST=wh;Ts.Minimatch=Tp;Ts.escape=rj;Ts.unescape=Np;var xh=R(require("path"),1);var jy=R(require("assert"),1);var kRt=process.platform==="win32",bh=class{static{i(this,"Path")}constructor(e){if(this.segments=[],typeof e=="string")if((0,jy.default)(e,"Parameter 'itemPath' must not be empty"),e=sd(e),!bb(e))this.segments=e.split(xh.sep);else{let r=e,n=od(r);for(;n!==r;){let s=xh.basename(r);this.segments.unshift(s),r=n,n=od(r)}this.segments.unshift(r)}else{(0,jy.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,jy.default)(n,"Parameter 'itemPath' must not contain any empty segments"),n=qa(e[r]),r===0&&bb(n)?(n=sd(n),(0,jy.default)(n===od(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):((0,jy.default)(!n.includes(xh.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(xh.sep)||kRt&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=xh.sep,e+=this.segments[n];return e}};var id=process.platform==="win32",Tb=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,_p.default)(n.length,"Parameter 'segments' must not empty");let u=t.getLiteral(n[0]);(0,_p.default)(u&&xb(u),"Parameter 'segments' first element must be a root path"),o=new bh(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 bh(o).segments,this.trailingSeparator=qa(o).endsWith(Jy.sep),o=sd(o);let a=!1,c=this.segments.map(u=>t.getLiteral(u)).filter(u=>!a&&!(a=u===""));this.searchPath=new bh(c).toString(),this.rootRegExp=new RegExp(t.regExpEscape(c[0]),id?"i":""),this.isImplicitPattern=r;let l={dot:!0,nobrace:!0,nocase:id,nocomment:!0,noext:!0,nonegate:!0};o=id?o.replace(/\\/g,"/"):o,this.minimatch=new Tp(o,l)}match(e){return this.segments[this.segments.length-1]==="**"?(e=qa(e),!e.endsWith(Jy.sep)&&this.isImplicitPattern===!1&&(e=`${e}${Jy.sep}`)):e=sd(e),this.minimatch.match(e)?this.trailingSeparator?Ha.Directory:Ha.All:Ha.None}partialMatch(e){return e=sd(e),od(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(id?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(id?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,r){(0,_p.default)(e,"pattern cannot be empty");let n=new bh(e).segments.map(s=>t.getLiteral(s));if((0,_p.default)(n.every((s,o)=>(s!=="."||o===0)&&s!==".."),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`),(0,_p.default)(!bb(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`),e=qa(e),e==="."||e.startsWith(`.${Jy.sep}`))e=t.globEscape(process.cwd())+e.substr(1);else if(e==="~"||e.startsWith(`~${Jy.sep}`))r=r||iwe.homedir(),(0,_p.default)(r,"Unable to determine HOME directory"),(0,_p.default)(xb(r),`Expected HOME directory to be a rooted path. Actual '${r}'`),e=t.globEscape(r)+e.substr(1);else if(id&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let s=Iv("C:\\dummy-root",e.substr(0,2));e.length>2&&!s.endsWith("\\")&&(s+="\\"),e=t.globEscape(s)+e.substr(2)}else if(id&&(e==="\\"||e.match(/^\\[^\\]/))){let s=Iv("C:\\dummy-root","\\");s.endsWith("\\")||(s+="\\"),e=t.globEscape(s)+e.substr(1)}else e=Iv(t.globEscape(process.cwd()),e);return qa(e)}static getLiteral(e){let r="";for(let n=0;n<e.length;n++){let s=e[n];if(s==="\\"&&!id&&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==="\\"&&!id&&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 _b=class{static{i(this,"SearchState")}constructor(e,r){this.path=e,this.level=r}};var nj=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())})},ORt=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)}},Pp=function(t){return this instanceof Pp?(this.v=t,this):new Pp(t)},LRt=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(g){return new Promise(function(y,E){o.push([m,g,y,E])>1||l(m,g)})},h&&(s[m]=h(s[m])))}function l(m,h){try{u(n[m](h))}catch(g){f(o[0][3],g)}}function u(m){m.value instanceof Pp?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])}},MRt=process.platform==="win32",wv=class t{static{i(this,"DefaultGlobber")}constructor(e){this.patterns=[],this.searchPaths=[],this.options=VW(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return nj(this,void 0,void 0,function*(){var e,r,n,s;let o=[];try{for(var a=!0,c=ORt(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 LRt(this,arguments,i(function*(){let r=VW(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 Tb(a.negate,!0,a.segments.concat("**")));let s=[];for(let a of jW(n)){Fi(`Search path '${a}'`);try{yield Pp(Yy.promises.lstat(a))}catch(c){if(c.code==="ENOENT")continue;throw c}s.unshift(new _b(a,1))}let o=[];for(;s.length;){let a=s.pop(),c=USe(n,a.path),l=!!c||$Se(n,a.path);if(!c&&!l)continue;let u=yield Pp(t.stat(a,r,o));if(u&&!(r.excludeHiddenFiles&&xv.basename(a.path).match(/^\./)))if(u.isDirectory()){if(c&Ha.Directory&&r.matchDirectories)yield yield Pp(a.path);else if(!l)continue;let d=a.level+1,p=(yield Pp(Yy.promises.readdir(a.path))).map(f=>new _b(xv.join(a.path,f),d));s.push(...p.reverse())}else c&Ha.File&&(yield yield Pp(a.path))}},"globGenerator_1"))}static create(e,r){return nj(this,void 0,void 0,function*(){let n=new t(r);MRt&&(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 Tb(o));return n.searchPaths.push(...jW(n.patterns)),n})}static stat(e,r,n){return nj(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Yy.promises.stat(e.path)}catch(o){if(o.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Fi(`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 Yy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let o=yield Yy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===o)){Fi(`Symlink cycle detected for path '${e.path}' and realpath '${o}'`);return}n.push(o)}return s})}};var FRt=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 awe(t,e){return FRt(this,void 0,void 0,function*(){return yield wv.create(t,e)})}i(awe,"create");var Uv=R(require("crypto"),1),eE=R(require("fs"),1),Bh=R(require("path"),1),ebe=R(Xxe(),1),tbe=R(require("util"),1);var Ob;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ob||(Ob={}));var Ps;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ps||(Ps={}));var ei;(function(t){t.GNU="gnu",t.BSD="bsd"})(ei||(ei={}));var Lv=2,Mv=5e3,xj=5e3,bj=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Zxe=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Lb="cache.tar",Bj="manifest.txt",rBr=10*Math.pow(1024,3),Fv="cache read denied:";var Zy=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())})},j_t=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)}},J_t="1.0";function Rh(){return Zy(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=Bh.join(n,"actions","temp")}let r=Bh.join(e,Uv.randomUUID());return yield Eh(r),r})}i(Rh,"createTempDirectory");function Kc(t){return eE.statSync(t).size}i(Kc,"getArchiveFileSizeInBytes");function Rj(t){return Zy(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 awe(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=j_t(l.globGenerator()),p;p=yield d.next(),e=p.done,!e;u=!0){s=p.value,u=!1;let m=Bh.relative(c,s).replace(new RegExp(`\\${Bh.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(Rj,"resolvePaths");function Mb(t){return Zy(this,void 0,void 0,function*(){return tbe.promisify(eE.unlink)(t)})}i(Mb,"unlinkFile");function rbe(t){return Zy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield xp(`${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(rbe,"getVersion");function Fb(){return Zy(this,void 0,void 0,function*(){let t=yield rbe("zstd",["--quiet"]),e=ebe.clean(t);return T(`zstd version: ${e}`),t===""?Ps.Gzip:Ps.ZstdWithoutLong})}i(Fb,"getCompressionMethod");function Qp(t){return t===Ps.Gzip?Ob.Gzip:Ob.Zstd}i(Qp,"getCacheFileName");function nbe(){return Zy(this,void 0,void 0,function*(){return eE.existsSync(bj)?bj:(yield rbe("tar")).toLowerCase().includes("gnu tar")?no("tar"):""})}i(nbe,"getGnuTarPathOnWindows");function Nj(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(Nj,"assertDefined");function tE(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(J_t),Uv.createHash("sha256").update(n.join("|")).digest("hex")}i(tE,"getCacheVersion");function sbe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(sbe,"getRuntimeToken");var $b=R(require("http"),1),Pj=R(require("https"),1);function Tj(t){let e=t.protocol==="https:";if(Y_t(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 qv(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new qv(`http://${r}`)}else return}i(Tj,"getProxyUrl");function Y_t(t){if(!t.hostname)return!1;let e=t.hostname;if(K_t(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(Y_t,"checkBypass");function K_t(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(K_t,"isLoopbackAddress");var qv=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 Dp=R(Wg(),1),obe=R(Ah(),1);var kr=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())})},It;(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"})(It||(It={}));var vs;(function(t){t.Accept="accept",t.ContentType="content-type"})(vs||(vs={}));var ad;(function(t){t.ApplicationJson="application/json"})(ad||(ad={}));var Z_t=[It.MovedPermanently,It.ResourceMoved,It.SeeOther,It.TemporaryRedirect,It.PermanentRedirect],ePt=[It.BadGateway,It.ServiceUnavailable,It.GatewayTimeout],tPt=["OPTIONS","GET","DELETE","HEAD"],rPt=10,nPt=5,Xc=class t extends Error{static{i(this,"HttpClientError")}constructor(e,r){super(e),this.name="HttpClientError",this.statusCode=r,Object.setPrototypeOf(this,t.prototype)}},_j=class{static{i(this,"HttpClientResponse")}constructor(e){this.message=e}readBody(){return kr(this,void 0,void 0,function*(){return new Promise(e=>kr(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 kr(this,void 0,void 0,function*(){return new Promise(e=>kr(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 ti=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 kr(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,r||{})})}get(e,r){return kr(this,void 0,void 0,function*(){return this.request("GET",e,null,r||{})})}del(e,r){return kr(this,void 0,void 0,function*(){return this.request("DELETE",e,null,r||{})})}post(e,r,n){return kr(this,void 0,void 0,function*(){return this.request("POST",e,r,n||{})})}patch(e,r,n){return kr(this,void 0,void 0,function*(){return this.request("PATCH",e,r,n||{})})}put(e,r,n){return kr(this,void 0,void 0,function*(){return this.request("PUT",e,r,n||{})})}head(e,r){return kr(this,void 0,void 0,function*(){return this.request("HEAD",e,null,r||{})})}sendStream(e,r,n,s){return kr(this,void 0,void 0,function*(){return this.request(e,r,n,s)})}getJson(e){return kr(this,arguments,void 0,function*(r,n={}){n[vs.Accept]=this._getExistingOrDefaultHeader(n,vs.Accept,ad.ApplicationJson);let s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)})}postJson(e,r){return kr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[vs.Accept]=this._getExistingOrDefaultHeader(o,vs.Accept,ad.ApplicationJson),o[vs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ad.ApplicationJson);let c=yield this.post(n,a,o);return this._processResponse(c,this.requestOptions)})}putJson(e,r){return kr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[vs.Accept]=this._getExistingOrDefaultHeader(o,vs.Accept,ad.ApplicationJson),o[vs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ad.ApplicationJson);let c=yield this.put(n,a,o);return this._processResponse(c,this.requestOptions)})}patchJson(e,r){return kr(this,arguments,void 0,function*(n,s,o={}){let a=JSON.stringify(s,null,2);o[vs.Accept]=this._getExistingOrDefaultHeader(o,vs.Accept,ad.ApplicationJson),o[vs.ContentType]=this._getExistingOrDefaultContentTypeHeader(o,ad.ApplicationJson);let c=yield this.patch(n,a,o);return this._processResponse(c,this.requestOptions)})}request(e,r,n,s){return kr(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&&tPt.includes(e)?this._maxRetries+1:1,l=0,u;do{if(u=yield this.requestRaw(a,n),u&&u.message&&u.message.statusCode===It.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&&Z_t.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||!ePt.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 kr(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 _j(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=Tj(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?Pj:$b;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({},Ub(this.requestOptions.headers),Ub(e||{})):Ub(e||{})}_getExistingOrDefaultHeader(e,r,n){let s;if(this.requestOptions&&this.requestOptions.headers){let a=Ub(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=Ub(this.requestOptions.headers)[vs.ContentType];o&&(typeof o=="number"?n=String(o):Array.isArray(o)?n=o.join(", "):n=o)}let s=e[vs.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=Tj(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||$b.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?Dp.httpsOverHttps:Dp.httpsOverHttp:l=u?Dp.httpOverHttps:Dp.httpOverHttp,r=l(c),this._proxyAgent=r}if(!r){let c={keepAlive:this._keepAlive,maxSockets:a};r=o?new Pj.Agent(c):new $b.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 obe.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 kr(this,void 0,void 0,function*(){e=Math.min(rPt,e);let r=nPt*Math.pow(2,e);return new Promise(n=>setTimeout(()=>n(),r))})}_processResponse(e,r){return kr(this,void 0,void 0,function*(){return new Promise((n,s)=>kr(this,void 0,void 0,function*(){let o=e.message.statusCode||0,a={statusCode:o,result:null,headers:{}};o===It.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 Xc(d,o);p.result=a.result,s(p)}else n(a)}))})}},Ub=i(t=>Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}),"lowercaseKeys");var sPt=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 rE=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 sPt(this,void 0,void 0,function*(){throw new Error("not implemented")})}};var vE=R(require("fs"),1),OTe=require("url");var Zc=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};var abe=require("node:os"),cbe=R(require("node:util"),1),lbe=R(require("node:process"),1);function ube(t,...e){lbe.default.stderr.write(`${cbe.default.format(t,...e)}${abe.EOL}`)}i(ube,"log");var dbe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,fbe,vj=[],Qj=[],Hv=[];dbe&&Dj(dbe);var mbe=Object.assign(t=>hbe(t),{enable:Dj,enabled:kj,disable:oPt,log:ube});function Dj(t){fbe=t,vj=[],Qj=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?Qj.push(r.substring(1)):vj.push(r);for(let r of Hv)r.enabled=kj(r.namespace)}i(Dj,"enable");function kj(t){if(t.endsWith("*"))return!0;for(let e of Qj)if(pbe(t,e))return!1;for(let e of vj)if(pbe(t,e))return!0;return!1}i(kj,"enabled");function pbe(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(pbe,"namespaceMatches");function oPt(){let t=fbe||"";return Dj(""),t}i(oPt,"disable");function hbe(t){let e=Object.assign(r,{enabled:kj(t),destroy:iPt,log:mbe.log,namespace:t,extend:aPt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),Hv.push(e),e}i(hbe,"createDebugger");function iPt(){let t=Hv.indexOf(this);return t>=0?(Hv.splice(t,1),!0):!1}i(iPt,"destroy");function aPt(t){let e=hbe(`${this.namespace}:${t}`);return e.log=this.log,e}i(aPt,"extend");var nE=mbe;var Oj=["verbose","info","warning","error"],Abe={verbose:400,info:300,warning:200,error:100};function gbe(t,e){e.log=(...r)=>{t.log(...r)}}i(gbe,"patchLogMethod");function ybe(t){return Oj.includes(t)}i(ybe,"isTypeSpecRuntimeLogLevel");function Gv(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=nE(t.namespace);s.log=(...d)=>{nE.log(...d)};function o(d){if(d&&!ybe(d))throw new Error(`Unknown log level '${d}'. Acceptable values: ${Oj.join(",")}`);n=d;let p=[];for(let f of e)a(f)&&p.push(f.namespace);nE.enable(p.join(","))}i(o,"contextSetLogLevel"),r&&(ybe(r)?o(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${Oj.join(", ")}.`));function a(d){return!!(n&&Abe[d.level]<=Abe[n])}i(a,"shouldEnable");function c(d,p){let f=Object.assign(d.extend(p),{level:p});if(gbe(d,f),a(f)){let m=nE.disable();nE.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 gbe(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(Gv,"createLoggerContext");var Ebe=Gv({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),cPt=Ebe.logger;function qb(t){return Ebe.createClientLogger(t)}i(qb,"createClientLogger");function zv(t){return t.toLowerCase()}i(zv,"normalizeName");function*lPt(t){for(let e of t.values())yield[e.name,e.value]}i(lPt,"headerIterator");var Lj=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(zv(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(zv(e))?.value}has(e){return this._headersMap.has(zv(e))}delete(e){this._headersMap.delete(zv(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 lPt(this._headersMap)}};function ri(t){return new Lj(t)}i(ri,"createHttpHeaders");function Nh(){return crypto.randomUUID()}i(Nh,"randomUUID");var Mj=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??ri(),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||Nh(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function Vv(t){return new Mj(t)}i(Vv,"createPipelineRequest");var Cbe=new Set(["Deserialize","Serialize","Retry","Sign"]),Fj=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&&!Cbe.has(r.phase))throw new Error(`Invalid phase name: ${r.phase}`);if(r.afterPhase&&!Cbe.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 g=h.policy,y=h.options,E=g.name;if(r.has(E))throw new Error("Duplicate policy names not allowed in pipeline");let C={policy:g,dependsOn:new Set,dependants:new Set};y.afterPhase&&(C.afterPhase=d(y.afterPhase),C.afterPhase.hasAfterPolicies=!0),r.set(E,C),d(y.phase).policies.add(C)}for(let h of this._policies){let{policy:g,options:y}=h,E=g.name,C=r.get(E);if(!C)throw new Error(`Missing node for policy ${E}`);if(y.afterPolicies)for(let S of y.afterPolicies){let b=r.get(S);b&&(C.dependsOn.add(b),b.dependants.add(C))}if(y.beforePolicies)for(let S of y.beforePolicies){let b=r.get(S);b&&(b.dependsOn.add(C),C.dependants.add(b))}}function p(h){h.hasRun=!0;for(let g of h.policies)if(!(g.afterPhase&&(!g.afterPhase.hasRun||g.afterPhase.policies.size))&&g.dependsOn.size===0){e.push(g.policy);for(let y of g.dependants)y.dependsOn.delete(g);r.delete(g.policy.name),h.policies.delete(g)}}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 Wv(){return Fj.create()}i(Wv,"createEmptyPipeline");function sE(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof Date)}i(sE,"isObject");function Th(t){if(sE(t)){let e=typeof t.name=="string",r=typeof t.message=="string";return e&&r}return!1}i(Th,"isError");var Ibe=require("node:util"),Sbe=Ibe.inspect.custom;var Uj="REDACTED",uPt=["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"],dPt=["api-version"],Ga=class{static{i(this,"Sanitizer")}allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:r=[]}={}){e=uPt.concat(e),r=dPt.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)||sE(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,Uj);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]=Uj;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]=Uj;return r}};var pPt=new Ga,Qs=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,Sbe,{value:i(()=>`RestError: ${this.message}
${pPt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function jv(t){return t instanceof Qs?!0:Th(t)&&t.name==="RestError"}i(jv,"isRestError");function io(t,e){return Buffer.from(t,e)}i(io,"stringToUint8Array");var Jv=R(require("node:http"),1),Yv=R(require("node:https"),1),$j=R(require("node:zlib"),1),xbe=require("node:stream");var Hi=qb("ts-http-runtime");var fPt={};function Hb(t){return t&&typeof t.pipe=="function"}i(Hb,"isReadableStream");function wbe(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(wbe,"isStreamComplete");function bbe(t){return t&&typeof t.byteLength=="number"}i(bbe,"isArrayBuffer");var Kv=class extends xbe.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}},qj=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 Zc("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 Ga;Hi.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=gPt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new Kv(h);g.on("error",y=>{Hi.error("Error in upload progress",y)}),Hb(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=mPt(u),f={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),f;l=a?hPt(u,d):u;let m=e.onDownloadProgress;if(m){let h=new Kv(m);h.on("error",g=>{Hi.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)?f.readableStreamBody=l:f.bodyAsText=await APt(l),f}finally{if(e.abortSignal&&n){let u=Promise.resolve();Hb(c)&&(u=wbe(c));let d=Promise.resolve();Hb(l)&&(d=wbe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(p=>{Hi.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?Jv.default.request(c,l):Yv.default.request(c,l);d.once("error",p=>{u(new Qs(p.message,{code:p.code??Qs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let p=new Zc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(p),u(p)}),n&&Hb(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):bbe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Hi.error("Unrecognized body type",n),u(new Qs("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Jv.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Jv.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return Yv.default.globalAgent;let s=e.tlsSettings??fPt,o=this.cachedHttpsAgents.get(s);return o&&o.options.keepAlive===!n||(Hi.info("No cached TLS Agent exist, creating a new Agent"),o=new Yv.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,o)),o}}};function mPt(t){let e=ri();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(mPt,"getResponseHeaders");function hPt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=$j.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=$j.default.createInflate();return t.pipe(n),n}return t}i(hPt,"getDecodedResponseStream");function APt(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 Qs(`Error reading response as text: ${s.message}`,{code:Qs.PARSE_ERROR}))})})}i(APt,"streamToText");function gPt(t){return t?Buffer.isBuffer(t)?t.length:Hb(t)?null:bbe(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}i(gPt,"getBodyLength");function Bbe(){return new qj}i(Bbe,"createNodeHttpClient");function Xv(){return Bbe()}i(Xv,"createDefaultHttpClient");var Hj="logPolicy";function Zv(t={}){let e=t.logger??Hi.info,r=new Ga({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:Hj,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(Zv,"logPolicy");var eQ="redirectPolicy",Rbe=["GET","HEAD"];function tQ(t={}){let{maxRetries:e=20}=t;return{name:eQ,async sendRequest(r,n){let s=await n(r);return Nbe(n,s,e)}}}i(tQ,"redirectPolicy");async function Nbe(t,e,r,n=0){let{request:s,status:o,headers:a}=e,c=a.get("location");if(c&&(o===300||o===301&&Rbe.includes(s.method)||o===302&&Rbe.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 Nbe(t,u,r,n+1)}return e}i(Nbe,"handleRedirect");function Tbe(){return"User-Agent"}i(Tbe,"getHeaderName");function _be(){return Tbe()}i(_be,"getUserAgentHeaderName");var IRr=_be();var rQ="decompressResponsePolicy";function nQ(){return{name:rQ,async sendRequest(t,e){return t.method!=="HEAD"&&t.headers.set("Accept-Encoding","gzip,deflate"),e(t)}}}i(nQ,"decompressResponsePolicy");function Gb(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t}i(Gb,"getRandomIntegerInclusive");function sQ(t,e){let r=e.retryDelayInMs*Math.pow(2,t),n=Math.min(e.maxRetryDelayInMs,r);return{retryAfterInMs:n/2+Gb(0,n/2)}}i(sQ,"calculateRetryDelay");var yPt="The operation was aborted.";function Pbe(t,e,r){return new Promise((n,s)=>{let o,a,c=i(()=>s(new Zc(r?.abortErrorMsg?r?.abortErrorMsg:yPt)),"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(Pbe,"delay");function vbe(t,e){let r=t.headers.get(e);if(!r)return;let n=Number(r);if(!Number.isNaN(n))return n}i(vbe,"parseHeaderValueAsNumber");var Gj="Retry-After",EPt=["retry-after-ms","x-ms-retry-after-ms",Gj];function Qbe(t){if(t&&[429,503].includes(t.status))try{for(let s of EPt){let o=vbe(t,s);if(o===0||o)return o*(s===Gj?1e3:1)}let e=t.headers.get(Gj);if(!e)return;let n=Date.parse(e)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}i(Qbe,"getRetryAfterInMs");function Dbe(t){return Number.isFinite(Qbe(t))}i(Dbe,"isThrottlingRetryResponse");function zj(){return{name:"throttlingRetryStrategy",retry({response:t}){let e=Qbe(t);return Number.isFinite(e)?{retryAfterInMs:e}:{skipStrategy:!0}}}}i(zj,"throttlingRetryStrategy");var CPt=1e3,IPt=1e3*64;function oQ(t={}){let e=t.retryDelayInMs??CPt,r=t.maxRetryDelayInMs??IPt;return{name:"exponentialRetryStrategy",retry({retryCount:n,response:s,responseError:o}){let a=wPt(o),c=a&&t.ignoreSystemErrors,l=SPt(s),u=l&&t.ignoreHttpStatusCodes;return s&&(Dbe(s)||!l)||u||c?{skipStrategy:!0}:o&&!a&&!l?{errorToThrow:o}:sQ(n,{retryDelayInMs:e,maxRetryDelayInMs:r})}}}i(oQ,"exponentialRetryStrategy");function SPt(t){return!!(t&&t.status!==void 0&&(t.status>=500||t.status===408)&&t.status!==501&&t.status!==505)}i(SPt,"isExponentialRetryResponse");function wPt(t){return t?t.code==="ETIMEDOUT"||t.code==="ESOCKETTIMEDOUT"||t.code==="ECONNREFUSED"||t.code==="ECONNRESET"||t.code==="ENOENT"||t.code==="ENOTFOUND":!1}i(wPt,"isSystemError");var xPt=qb("ts-http-runtime retryPolicy"),bPt="retryPolicy";function Ph(t,e={maxRetries:3}){let r=e.logger||xPt;return{name:bPt,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 Zc;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 Pbe(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(Ph,"retryPolicy");var Vj="defaultRetryPolicy";function iQ(t={}){return{name:Vj,sendRequest:Ph([zj(),oQ(t)],{maxRetries:t.maxRetries??3}).sendRequest}}i(iQ,"defaultRetryPolicy");var kbe=typeof window<"u"&&typeof window.document<"u",Obe=typeof self=="object"&&typeof self?.importScripts=="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope"),Lbe=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Mbe=typeof Bun<"u"&&typeof Bun.version<"u",vh=typeof globalThis.process<"u"&&!!globalThis.process.version&&!!globalThis.process.versions?.node;var Fbe=typeof navigator<"u"&&navigator?.product==="ReactNative";var Wj="formDataPolicy";function BPt(t){let e={};for(let[r,n]of t.entries())e[r]??=[],e[r].push(n);return e}i(BPt,"formDataToFormDataMap");function aQ(){return{name:Wj,async sendRequest(t,e){if(vh&&typeof FormData<"u"&&t.body instanceof FormData&&(t.formData=BPt(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=RPt(t.formData):await NPt(t.formData,t),t.formData=void 0}return e(t)}}}i(aQ,"formDataPolicy");function RPt(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(RPt,"wwwFormUrlEncode");async function NPt(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:ri({"Content-Disposition":`form-data; name="${s}"`}),body:io(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=ri();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(NPt,"prepareFormData");var w0e=R(u0e(),1),x0e=R(E0e(),1);var Ovt="HTTPS_PROXY",Lvt="HTTP_PROXY",Mvt="ALL_PROXY",Fvt="NO_PROXY",eJ="proxyPolicy",C0e=[],b0e=!1,Uvt=new Map;function AQ(t){if(process.env[t])return process.env[t];if(process.env[t.toLowerCase()])return process.env[t.toLowerCase()]}i(AQ,"getEnvironmentValue");function B0e(){if(!process)return;let t=AQ(Ovt),e=AQ(Mvt),r=AQ(Lvt);return t||e||r}i(B0e,"loadEnvironmentProxyValue");function $vt(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($vt,"isBypassed");function qvt(){let t=AQ(Fvt);return b0e=!0,t?t.split(",").map(e=>e.trim()).filter(e=>e.length):[]}i(qvt,"loadNoProxy");function tJ(t){if(!t&&(t=B0e(),!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(tJ,"getDefaultProxySettings");function Hvt(){let t=B0e();return t?new URL(t):void 0}i(Hvt,"getDefaultProxySettingsInternal");function I0e(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(I0e,"getUrlFromProxySettings");function S0e(t,e,r){if(t.agent)return;let s=new URL(t.url).protocol!=="https:";t.tlsSettings&&Hi.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 x0e.HttpProxyAgent(r,{headers:o})),t.agent=e.httpProxyAgent):(e.httpsProxyAgent||(e.httpsProxyAgent=new w0e.HttpsProxyAgent(r,{headers:o})),t.agent=e.httpsProxyAgent)}i(S0e,"setProxyAgentOnRequest");function gQ(t,e){b0e||C0e.push(...qvt());let r=t?I0e(t):Hvt(),n={};return{name:eJ,async sendRequest(s,o){return!s.proxySettings&&r&&!$vt(s.url,e?.customNoProxyList??C0e,e?.customNoProxyList?void 0:Uvt)?S0e(s,n,r):s.proxySettings&&S0e(s,n,I0e(s.proxySettings)),o(s)}}}i(gQ,"proxyPolicy");var rJ="agentPolicy";function yQ(t){return{name:rJ,sendRequest:i(async(e,r)=>(e.agent||(e.agent=t),r(e)),"sendRequest")}}i(yQ,"agentPolicy");var nJ="tlsPolicy";function EQ(t){return{name:nJ,sendRequest:i(async(e,r)=>(e.tlsSettings||(e.tlsSettings=t),r(e)),"sendRequest")}}i(EQ,"tlsPolicy");function CQ(t){return typeof t.stream=="function"}i(CQ,"isBlob");var IQ=require("stream");async function*R0e(){let t=this.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)return;yield r}}finally{t.releaseLock()}}i(R0e,"streamAsyncIterator");function Gvt(t){t[Symbol.asyncIterator]||(t[Symbol.asyncIterator]=R0e.bind(t)),t.values||(t.values=R0e.bind(t))}i(Gvt,"makeAsyncIterable");function N0e(t){return t instanceof ReadableStream?(Gvt(t),IQ.Readable.fromWeb(t)):t}i(N0e,"ensureNodeStream");function zvt(t){return t instanceof Uint8Array?IQ.Readable.from(Buffer.from(t)):CQ(t)?N0e(t.stream()):N0e(t)}i(zvt,"toStream");async function T0e(t){return function(){let e=t.map(r=>typeof r=="function"?r():r).map(zvt);return IQ.Readable.from((async function*(){for(let r of e)for await(let n of r)yield n})())}}i(T0e,"concat");function Vvt(){return`----AzSDKFormBoundary${Nh()}`}i(Vvt,"generateBoundary");function Wvt(t){let e="";for(let[r,n]of t)e+=`${r}: ${n}\r
`;return e}i(Wvt,"encodeHeaders");function jvt(t){return t instanceof Uint8Array?t.byteLength:CQ(t)?t.size===-1?void 0:t.size:void 0}i(jvt,"getLength");function Jvt(t){let e=0;for(let r of t){let n=jvt(r);if(n===void 0)return;e+=n}return e}i(Jvt,"getTotalLength");async function Yvt(t,e,r){let n=[io(`--${r}`,"utf-8"),...e.flatMap(o=>[io(`\r
`,"utf-8"),io(Wvt(o.headers),"utf-8"),io(`\r
`,"utf-8"),o.body,io(`\r
--${r}`,"utf-8")]),io(`--\r
\r
`,"utf-8")],s=Jvt(n);s&&t.headers.set("Content-Length",s),t.body=await T0e(n)}i(Yvt,"buildRequestBody");var Vb="multipartPolicy",Kvt=70,Xvt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Zvt(t){if(t.length>Kvt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Xvt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(Zvt,"assertValidBoundary");function SQ(){return{name:Vb,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?Zvt(r):r=Vvt(),t.headers.set("Content-Type",`${o}; boundary=${r}`),await Yvt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(SQ,"multipartPolicy");function wQ(){return Wv()}i(wQ,"createEmptyPipeline");var _0e=Gv({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Z_r=_0e.logger;function rl(t){return _0e.createClientLogger(t)}i(rl,"createClientLogger");var nl=rl("core-rest-pipeline");function iJ(t={}){return Zv({logger:nl.info,...t})}i(iJ,"logPolicy");var aJ=eQ;function cJ(t={}){return tQ(t)}i(cJ,"redirectPolicy");var xQ=R(require("node:os"),1),bQ=R(require("node:process"),1);function P0e(){return"User-Agent"}i(P0e,"getHeaderName");async function v0e(t){if(bQ.default&&bQ.default.versions){let e=`${xQ.default.type()} ${xQ.default.release()}; ${xQ.default.arch()}`,r=bQ.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(v0e,"setPlatformSpecificData");var BQ="1.22.2";function aQt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}i(aQt,"getUserAgentString");function Q0e(){return P0e()}i(Q0e,"getUserAgentHeaderName");async function RQ(t){let e=new Map;e.set("core-rest-pipeline",BQ),await v0e(e);let r=aQt(e);return t?`${t} ${r}`:r}i(RQ,"getUserAgentValue");var D0e=Q0e(),k0e="userAgentPolicy";function lJ(t={}){let e=RQ(t.userAgentPrefix);return{name:k0e,async sendRequest(r,n){return r.headers.has(D0e)||r.headers.set(D0e,await e),n(r)}}}i(lJ,"userAgentPolicy");var ii=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function uJ(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((o,a)=>{function c(){a(new ii(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(uJ,"createAbortablePromise");var pQt="The delay was aborted.";function Wb(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return uJ(o=>{r=setTimeout(o,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??pQt})}i(Wb,"delay");function Op(t){if(Th(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(Op,"getErrorMessage");function O0e(t){return Th(t)}i(O0e,"isError");function uE(){return Nh()}i(uE,"randomUUID");var gt=vh;var L0e=Symbol("rawContent");function pJ(t){return typeof t[L0e]=="function"}i(pJ,"hasRawContent");function M0e(t){return pJ(t)?t[L0e]():t}i(M0e,"getRawContent");var NQ=Vb;function fJ(){let t=SQ();return{name:NQ,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)pJ(n.body)&&(n.body=M0e(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(fJ,"multipartPolicy");var mJ=rQ;function hJ(){return nQ()}i(hJ,"decompressResponsePolicy");function AJ(t={}){return iQ(t)}i(AJ,"defaultRetryPolicy");function gJ(){return aQ()}i(gJ,"formDataPolicy");function Lp(t){return tJ(t)}i(Lp,"getDefaultProxySettings");function yJ(t,e){return gQ(t,e)}i(yJ,"proxyPolicy");var F0e="setClientRequestIdPolicy";function EJ(t="x-ms-client-request-id"){return{name:F0e,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(EJ,"setClientRequestIdPolicy");function CJ(t){return yQ(t)}i(CJ,"agentPolicy");function IJ(t){return EQ(t)}i(IJ,"tlsPolicy");var dE={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function U0e(t={}){let e=new SJ(t.parentContext);return t.span&&(e=e.setValue(dE.span,t.span)),t.namespace&&(e=e.setValue(dE.namespace,t.namespace)),e}i(U0e,"createTracingContext");var SJ=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 q0e=R($0e(),1),_Q=q0e.state;function fQt(){return{end:i(()=>{},"end"),isRecording:i(()=>!1,"isRecording"),recordException:i(()=>{},"recordException"),setAttribute:i(()=>{},"setAttribute"),setStatus:i(()=>{},"setStatus"),addEvent:i(()=>{},"addEvent")}}i(fQt,"createDefaultTracingSpan");function mQt(){return{createRequestHeaders:i(()=>({}),"createRequestHeaders"),parseTraceparentHeader:i(()=>{},"parseTraceparentHeader"),startSpan:i((t,e)=>({span:fQt(),tracingContext:U0e({parentContext:e.tracingContext})}),"startSpan"),withContext(t,e,...r){return e(...r)}}}i(mQt,"createDefaultInstrumenter");function jb(){return _Q.instrumenterImplementation||(_Q.instrumenterImplementation=mQt()),_Q.instrumenterImplementation}i(jb,"getInstrumenter");function Jb(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(u,d,p){let f=jb().startSpan(u,{...p,packageName:r,packageVersion:n,tracingContext:d?.tracingOptions?.tracingContext}),m=f.tracingContext,h=f.span;m.getValue(dE.namespace)||(m=m.setValue(dE.namespace,e)),h.setAttribute("az.namespace",m.getValue(dE.namespace));let g=Object.assign({},d,{tracingOptions:{...d?.tracingOptions,tracingContext:m}});return{span:h,updatedOptions:g}}i(s,"startSpan");async function o(u,d,p,f){let{span:m,updatedOptions:h}=s(u,d,f);try{let g=await a(h.tracingOptions.tracingContext,()=>Promise.resolve(p(h,m)));return m.setStatus({status:"success"}),g}catch(g){throw m.setStatus({status:"error",error:g}),g}finally{m.end()}}i(o,"withSpan");function a(u,d,...p){return jb().withContext(u,d,...p)}i(a,"withContext");function c(u){return jb().parseTraceparentHeader(u)}i(c,"parseTraceparentHeader");function l(u){return jb().createRequestHeaders(u)}return i(l,"createRequestHeaders"),{startSpan:s,withSpan:o,withContext:a,parseTraceparentHeader:c,createRequestHeaders:l}}i(Jb,"createTracingClient");var cd=Qs;function kh(t){return jv(t)}i(kh,"isRestError");var H0e="tracingPolicy";function wJ(t={}){let e=RQ(t.userAgentPrefix),r=new Ga({additionalAllowedQueryParameters:t.additionalAllowedQueryParameters}),n=hQt();return{name:H0e,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}=AQt(n,s,c)??{};if(!l||!u)return o(s);try{let d=await n.withContext(u,o,s);return yQt(l,d),d}catch(d){throw gQt(l,d),d}}}}i(wJ,"tracingPolicy");function hQt(){try{return Jb({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:BQ})}catch(t){nl.warning(`Error when creating the TracingClient: ${Op(t)}`);return}}i(hQt,"tryCreateTracingClient");function AQt(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){nl.warning(`Skipping creating a tracing span due to an error: ${Op(n)}`);return}}i(AQt,"tryCreateSpan");function gQt(t,e){try{t.setStatus({status:"error",error:O0e(e)?e:void 0}),kh(e)&&e.statusCode&&t.setAttribute("http.status_code",e.statusCode),t.end()}catch(r){nl.warning(`Skipping tracing span processing due to an error: ${Op(r)}`)}}i(gQt,"tryProcessError");function yQt(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){nl.warning(`Skipping tracing span processing due to an error: ${Op(r)}`)}}i(yQt,"tryProcessResponse");function PQ(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(PQ,"wrapAbortSignalLike");var EQt="wrapAbortSignalLikePolicy";function G0e(){return{name:EQt,sendRequest:i(async(t,e)=>{if(!t.abortSignal)return e(t);let{abortSignal:r,cleanup:n}=PQ(t.abortSignal);t.abortSignal=r;try{return await e(t)}finally{n?.()}},"sendRequest")}}i(G0e,"wrapAbortSignalLikePolicy");function xJ(t){let e=wQ();return gt&&(t.agent&&e.addPolicy(CJ(t.agent)),t.tlsOptions&&e.addPolicy(IJ(t.tlsOptions)),e.addPolicy(yJ(t.proxyOptions)),e.addPolicy(hJ())),e.addPolicy(G0e()),e.addPolicy(gJ(),{beforePolicies:[NQ]}),e.addPolicy(lJ(t.userAgentOptions)),e.addPolicy(EJ(t.telemetryOptions?.clientRequestIdHeaderName)),e.addPolicy(fJ(),{afterPhase:"Deserialize"}),e.addPolicy(AJ(t.retryOptions),{phase:"Retry"}),e.addPolicy(wJ({...t.userAgentOptions,...t.loggingOptions}),{afterPhase:"Retry"}),gt&&e.addPolicy(cJ(t.redirectOptions),{afterPhase:"Retry"}),e.addPolicy(iJ(t.loggingOptions),{afterPhase:"Sign"}),e}i(xJ,"createPipelineFromOptions");function Yb(){let t=Xv();return{async sendRequest(e){let{abortSignal:r,cleanup:n}=e.abortSignal?PQ(e.abortSignal):{};try{return e.abortSignal=r,await t.sendRequest(e)}finally{n?.()}}}}i(Yb,"createDefaultHttpClient");function ld(t){return ri(t)}i(ld,"createHttpHeaders");function Kb(t){return Vv(t)}i(Kb,"createPipelineRequest");var TDr=rl("core-rest-pipeline retryPolicy");var CQt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function IQt(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 Wb(e),s=await n();return s}i(IQt,"beginRefresh");function bJ(t,e){let r=null,n=null,s,o={...CQt,...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=IQt(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(bJ,"createTokenCycler");var j0e="bearerTokenAuthenticationPolicy";async function vQ(t,e){try{return[await e(t),void 0]}catch(r){if(kh(r)&&r.response)return[r.response,r];throw r}}i(vQ,"trySendRequest");async function SQt(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(SQt,"defaultAuthorizeRequest");function z0e(t){return t.status===401&&t.headers.has("WWW-Authenticate")}i(z0e,"isChallengeResponse");async function V0e(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(V0e,"authorizeRequestOnCaeChallenge");function pE(t){let{credential:e,scopes:r,challengeCallbacks:n}=t,s=t.logger||nl,o={authorizeRequest:n?.authorizeRequest?.bind(n)??SQt,authorizeRequestOnChallenge:n?.authorizeRequestOnChallenge?.bind(n)},a=e?bJ(e):()=>Promise.resolve(null);return{name:j0e,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 vQ(c,l),z0e(u)){let f=W0e(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 V0e({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await vQ(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 vQ(c,l)),z0e(u)&&(f=W0e(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 V0e({scopes:Array.isArray(r)?r:[r],response:u,request:c,getAccessToken:a,logger:s},m),p&&([u,d]=await vQ(c,l))}}if(d)throw d;return u}}}i(pE,"bearerTokenAuthenticationPolicy");function wQt(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(wQt,"parseChallenges");function W0e(t){return t?wQt(t).find(r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims")?.params.claims:void 0}i(W0e,"getCaeChallengeClaims");function ai(t){let e=t;return e&&typeof e.getToken=="function"&&(e.signRequest===void 0||e.getToken.length>0)}i(ai,"isTokenCredential");var BJ="DisableKeepAlivePolicy";function J0e(){return{name:BJ,async sendRequest(t,e){return t.disableKeepAlive=!0,e(t)}}}i(J0e,"createDisableKeepAlivePolicy");function Y0e(t){return t.getOrderedPolicies().some(e=>e.name===BJ)}i(Y0e,"pipelineContainsDisableKeepAlivePolicy");function RJ(t){return(t instanceof Buffer?t:Buffer.from(t.buffer)).toString("base64")}i(RJ,"encodeByteArray");function NJ(t){return Buffer.from(t,"base64")}i(NJ,"decodeString");function bQt(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(bQt,"isPrimitiveBody");var BQt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function K0e(t){return BQt.test(t)}i(K0e,"isDuration");var RQt=/^[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 X0e(t){return RQt.test(t)}i(X0e,"isValidUuid");function NQt(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(NQt,"handleNullableResponseAndWrappableBody");function TJ(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 NQt({body:t.parsedBody,headers:r,hasNullableType:s,shouldWrapBody:bQt(t.parsedBody,o)})}i(TJ,"flattenResponse");var _J=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:g}=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)}g&&r.some((y,E,C)=>C.indexOf(y)!==E)&&s("UniqueItems",g)}}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=DQt(c,n,r):c.match(/^Enum$/i)!==null?a=kQt(n,e.type.allowedValues,r):c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null?a=MQt(c,r,n):c.match(/^ByteArray$/i)!==null?a=OQt(n,r):c.match(/^Base64Url$/i)!==null?a=LQt(n,r):c.match(/^Sequence$/i)!==null?a=FQt(this,e,r,n,!!this.isXML,o):c.match(/^Dictionary$/i)!==null?a=UQt(this,e,r,n,!!this.isXML,o):c.match(/^Composite$/i)!==null&&(a=qQt(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=GQt(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=QQt(r):c.match(/^ByteArray$/i)!==null?a=NJ(r):c.match(/^Base64Url$/i)!==null?a=PQt(r):c.match(/^Sequence$/i)!==null?a=VQt(this,e,r,n,o):c.match(/^Dictionary$/i)!==null&&(a=zQt(this,e,r,n,o))}return e.isConstant&&(a=e.defaultValue),a}};function ci(t={},e=!1){return new _J(t,e)}i(ci,"createSerializer");function TQt(t,e){let r=t.length;for(;r-1>=0&&t[r-1]===e;)--r;return t.substr(0,r)}i(TQt,"trimEnd");function _Qt(t){if(!t)return;if(!(t instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");let e=RJ(t);return TQt(e,"=").replace(/\+/g,"-").replace(/\//g,"_")}i(_Qt,"bufferToBase64Url");function PQt(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,"/"),NJ(t)}}i(PQt,"base64UrlToByteArray");function PJ(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(PJ,"splitSerializeName");function vQt(t){if(t)return typeof t.valueOf()=="string"&&(t=new Date(t)),Math.floor(t.getTime()/1e3)}i(vQt,"dateToUnixTime");function QQt(t){if(t)return new Date(t*1e3)}i(QQt,"unixTimeToDate");function DQt(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"&&X0e(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(DQt,"serializeBasicTypes");function kQt(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(kQt,"serializeEnumType");function OQt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=RJ(e)}return e}i(OQt,"serializeByteArrayType");function LQt(t,e){if(e!=null){if(!(e instanceof Uint8Array))throw new Error(`${t} must be of type Uint8Array.`);e=_Qt(e)}return e}i(LQt,"serializeBase64UrlType");function MQt(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=vQt(e)}else if(t.match(/^TimeSpan$/i)!==null&&!K0e(e))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${e}".`)}return e}i(MQt,"serializeDateTypes");function FQt(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(FQt,"serializeSequenceType");function UQt(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]=rBe(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(UQt,"serializeDictionaryType");function $Qt(t,e,r){let n=e.type.additionalProperties;return!n&&e.type.className?eBe(t,e,r)?.type.additionalProperties:n}i($Qt,"resolveAdditionalProperties");function eBe(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(eBe,"resolveReferencedMapper");function tBe(t,e,r){let n=e.type.modelProperties;if(!n){let s=eBe(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(tBe,"resolveModelProperties");function qQt(t,e,r,n,s,o){if(QQ(t,e)&&(e=nBe(t,e,r,"clientName")),r!=null){let a={},c=tBe(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=PJ(d.serializedName);p=m.pop();for(let h of m){let g=f[h];g==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],g=QQ(t,e);g&&g.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=rBe(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=$Qt(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(qQt,"serializeCompositeType");function rBe(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(rBe,"getXmlObjectValue");function HQt(t,e){return["$",e.xml.xmlCharKey].includes(t)}i(HQt,"isSpecialXmlProperty");function GQt(t,e,r,n,s){let o=s.xml.xmlCharKey??"_";QQ(t,e)&&(e=nBe(t,e,r,"serializedName"));let a=tBe(t,e,n),c={},l=[];for(let d of Object.keys(a)){let p=a[d],f=PJ(a[d].serializedName);l.push(f[0]);let{serializedName:m,xmlName:h,xmlElementName:g}=p,y=n;m!==""&&m!==void 0&&(y=n+"."+m);let E=p.headerCollectionPrefix;if(E){let C={};for(let S of Object.keys(r))S.startsWith(E)&&(C[S.substring(E.length)]=t.deserialize(p.type.value,r[S],y,s)),l.push(S);c[d]=C}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 C=g||h||m;if(p.xmlIsWrapped){let b=r[h]?.[g]??[];c[d]=t.deserialize(p,b,y,s),l.push(h)}else{let S=r[C];c[d]=t.deserialize(p,S,y,s),l.push(C)}}else{let C,S=r,b=0;for(let v of f){if(!S)break;b++,S=S[v]}S===null&&b<f.length&&(S=void 0),C=S;let N=e.type.polymorphicDiscriminator;N&&d===N.clientName&&C==null&&(C=e.serializedName);let _;if(Array.isArray(r[d])&&a[d].serializedName===""){C=r[d];let v=t.deserialize(p,C,y,s);for(let[J,Pe]of Object.entries(c))Object.prototype.hasOwnProperty.call(v,J)||(v[J]=Pe);c=v}else(C!==void 0||p.defaultValue!==void 0)&&(_=t.deserialize(p,C,y,s),c[d]=_)}}let u=e.type.additionalProperties;if(u){let d=i(p=>{for(let f in a)if(PJ(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)&&!HQt(d,s)&&(c[d]=r[d]);return c}i(GQt,"deserializeCompositeType");function zQt(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(zQt,"deserializeDictionaryType");function VQt(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(VQt,"deserializeSequenceType");function WQt(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(WQt,"getIndexDiscriminator");function nBe(t,e,r,n){let s=QQ(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=WQt(t.modelMappers.discriminators,a,c);l&&(e=l)}}}return e}i(nBe,"getPolymorphicMapper");function QQ(t,e){return e.type.polymorphicDiscriminator||Z0e(t,e.type.uberParent)||Z0e(t,e.type.className)}i(QQ,"getPolymorphicDiscriminatorRecursively");function Z0e(t,e){return e&&t.modelMappers[e]&&t.modelMappers[e].type.polymorphicDiscriminator}i(Z0e,"getPolymorphicDiscriminatorSafely");var sl={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 oBe=R(sBe(),1),vJ=oBe.state;function Fp(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=iBe(t,n);!a.propertyFound&&r&&(a=iBe(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=Fp(t,{parameterPath:l,mapper:c},r);u!==void 0&&(o||(o={}),o[a]=u)}}return o}i(Fp,"getOperationArgumentValueFromParameter");function iBe(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(iBe,"getPropertyFromParameterPath");var aBe=Symbol.for("@azure/core-client original request");function jQt(t){return aBe in t}i(jQt,"hasOriginalRequest");function ud(t){if(jQt(t))return ud(t[aBe]);let e=vJ.operationRequestMap.get(t);return e||(e={},vJ.operationRequestMap.set(t,e)),e}i(ud,"getOperationRequestInfo");var JQt=["application/json","text/json"],YQt=["application/xml","application/atom+xml"],cBe="deserializationPolicy";function QJ(t={}){let e=t.expectedContentTypes?.json??JQt,r=t.expectedContentTypes?.xml??YQt,n=t.parseXML,s=t.serializerOptions,o={xml:{rootName:s?.xml.rootName??"",includeRoot:s?.xml.includeRoot??!1,xmlCharKey:s?.xml.xmlCharKey??"_"}};return{name:cBe,async sendRequest(a,c){let l=await c(a);return ZQt(e,r,l,o,n)}}}i(QJ,"deserializationPolicy");function KQt(t){let e,r=t.request,n=ud(r),s=n?.operationSpec;return s&&(n?.operationResponseGetter?e=n?.operationResponseGetter(s,t):e=s.responses[t.status]),e}i(KQt,"getOperationResponseMap");function XQt(t){let e=t.request,n=ud(e)?.shouldDeserialize,s;return n===void 0?s=!0:typeof n=="boolean"?s=n:s=n(t),s}i(XQt,"shouldDeserializeResponse");async function ZQt(t,e,r,n,s){let o=await rDt(t,e,r,n,s);if(!XQt(o))return o;let c=ud(o.request)?.operationSpec;if(!c||!c.responses)return o;let l=KQt(o),{error:u,shouldReturnResponse:d}=tDt(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===sl.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 cd(`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(ZQt,"deserializeResponseBody");function eDt(t){let e=Object.keys(t.responses);return e.length===0||e.length===1&&e[0]==="default"}i(eDt,"isOperationSpecEmpty");function tDt(t,e,r,n){let s=200<=t.status&&t.status<300;if(eDt(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 cd(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===sl.Sequence){h=[];let g=u.xmlElementName;typeof p=="object"&&g&&(h=p[g])}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(tDt,"handleErrorResponse");async function rDt(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||cd.PARSE_ERROR;throw new cd(u,{code:d,statusCode:r.status,request:r.request,response:r})}}return r}i(rDt,"parse");function lBe(t){let e=new Set;for(let r in t.responses){let n=t.responses[r];n.bodyMapper&&n.bodyMapper.type.name===sl.Stream&&e.add(Number(r))}return e}i(lBe,"getStreamingResponseStatusCodes");function ol(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(ol,"getPathStringFromParameter");var uBe="serializationPolicy";function kQ(t={}){let e=t.stringifyXML;return{name:uBe,async sendRequest(r,n){let s=ud(r),o=s?.operationSpec,a=s?.operationArguments;return o&&a&&(nDt(r,a,o),sDt(r,a,o,e)),n(r)}}}i(kQ,"serializationPolicy");function nDt(t,e,r){if(r.headerParameters)for(let s of r.headerParameters){let o=Fp(e,s);if(o!=null||s.mapper.required){o=r.serializer.serialize(s.mapper,o,ol(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||ol(s),o)}}let n=e.options?.requestOptions?.customHeaders;if(n)for(let s of Object.keys(n))t.headers.set(s,n[s])}i(nDt,"serializeHeaders");function sDt(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=Fp(e,r.requestBody);let c=r.requestBody.mapper,{required:l,serializedName:u,xmlName:d,xmlElementName:p,xmlNamespace:f,xmlNamespacePrefix:m,nullable:h}=c,g=c.type.name;try{if(t.body!==void 0&&t.body!==null||h&&t.body===null||l){let y=ol(r.requestBody);t.body=r.serializer.serialize(c,t.body,y,o);let E=g===sl.Stream;if(r.isXML){let C=m?`xmlns:${m}`:"xmlns",S=oDt(f,C,g,t.body,o);g===sl.Sequence?t.body=n(iDt(S,p||d||u,C,f),{rootName:d||u,xmlCharKey:a}):E||(t.body=n(S,{rootName:d||u,xmlCharKey:a}))}else{if(g===sl.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=Fp(e,c);if(l!=null){let u=c.mapper.serializedName||ol(c);t.formData[u]=r.serializer.serialize(c.mapper,l,ol(c),o)}}}}i(sDt,"serializeRequestBody");function oDt(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(oDt,"getXmlValueWithNamespace");function iDt(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(iDt,"prepareXMLRootList");function Xb(t={}){let e=xJ(t??{});return t.credentialOptions&&e.addPolicy(pE({credential:t.credentialOptions.credential,scopes:t.credentialOptions.credentialScopes})),e.addPolicy(kQ(t.serializationOptions),{phase:"Serialize"}),e.addPolicy(QJ(t.deserializationOptions),{phase:"Deserialize"}),e}i(Xb,"createClientPipeline");var DJ;function dBe(){return DJ||(DJ=Yb()),DJ}i(dBe,"getCachedDefaultHttpClient");var aDt={CSV:",",SSV:" ",Multi:"Multi",TSV:" ",Pipes:"|"};function fBe(t,e,r,n){let s=cDt(e,r,n),o=!1,a=pBe(t,s);if(e.path){let u=pBe(e.path,s);e.path==="/{nextLink}"&&u.startsWith("/")&&(u=u.substring(1)),lDt(u)?(a=u,o=!0):a=uDt(a,u)}let{queryParams:c,sequenceParams:l}=dDt(e,r,n);return a=fDt(a,c,l,o),a}i(fBe,"getRequestUrl");function pBe(t,e){let r=t;for(let[n,s]of e)r=r.split(n).join(s);return r}i(pBe,"replaceAll");function cDt(t,e,r){let n=new Map;if(t.urlParameters?.length)for(let s of t.urlParameters){let o=Fp(e,s,r),a=ol(s);o=t.serializer.serialize(s.mapper,o,a),s.skipEncoding||(o=encodeURIComponent(o)),n.set(`{${s.mapper.serializedName||a}}`,o)}return n}i(cDt,"calculateUrlReplacements");function lDt(t){return t.includes("://")}i(lDt,"isAbsoluteUrl");function uDt(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(uDt,"appendPath");function dDt(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=Fp(e,o,r);if(a!=null||o.mapper.required){a=t.serializer.serialize(o.mapper,a,ol(o));let c=o.collectionFormat?aDt[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||ol(o),a)}}return{queryParams:n,sequenceParams:s}}i(dDt,"calculateQueryParameters");function pDt(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(pDt,"simpleParseQueryParams");function fDt(t,e,r,n=!1){if(e.size===0)return t;let s=new URL(t),o=pDt(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(fDt,"appendQueryParams");var kJ=rl("core-client");var Zb=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&&kJ.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead."),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||dBe(),this.pipeline=e.pipeline||mDt(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=fBe(n,r,e,this),o=Kb({url:s});o.method=r.httpMethod;let a=ud(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=lBe(r));try{let u=await this.sendRequest(o),d=TJ(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=TJ(d,r.responses[u.statusCode]||r.responses.default);u.details=p,l?.onResponse&&l.onResponse(d,p,u)}throw u}}};function mDt(t){let e=hDt(t),r=t.credential&&e?{credentialScopes:e,credential:t.credential}:void 0;return Xb({...t,credentialOptions:r})}i(mDt,"createDefaultPipeline");function hDt(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(hDt,"getCredentialScopes");var mBe={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function ADt(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(ADt,"isUuid");var OQ=i(async t=>{let e=IDt(t.request),r=EDt(t.response);if(r){let n=CDt(r),s=yDt(t,n),o=gDt(n);if(!o)return!1;let a=await t.getAccessToken(s,{...e,tenantId:o});return a?(t.request.headers.set(mBe.HeaderConstants.AUTHORIZATION,`${a.tokenType??"Bearer"} ${a.token}`),!0):!1}return!1},"authorizeRequestOnTenantChallenge");function gDt(t){let n=new URL(t.authorization_uri).pathname.split("/")[1];if(n&&ADt(n))return n}i(gDt,"extractTenantId");function yDt(t,e){if(!e.resource_id)return t.scopes;let r=new URL(e.resource_id);r.pathname=mBe.DefaultScope;let n=r.toString();return n==="https://disk.azure.com/.default"&&(n="https://disk.azure.com//.default"),[n]}i(yDt,"buildScopes");function EDt(t){let e=t.headers.get("WWW-Authenticate");if(t.status===401&&e)return e}i(EDt,"getChallenge");function CDt(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(CDt,"parseChallenge");function IDt(t){return{abortSignal:t.abortSignal,requestOptions:{timeout:t.timeout},tracingOptions:t.tracingOptions}}i(IDt,"requestToOptions");var hBe=Symbol("Original PipelineRequest"),SDt=Symbol.for("@azure/core-client original request");function t0(t,e={}){let n=t[hBe],s=ld(t.headers.toJson({preserveCase:!0}));if(n)return n.headers=s,n;{let o=Kb({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[SDt]=e.originalRequest),o}}i(t0,"toPipelineRequest");function Oh(t,e){let r=e?.originalRequest??t,n={url:t.url,method:t.method,headers:r0(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===hBe?t:o==="clone"?()=>Oh(t0(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(Oh,"toWebResourceLike");function r0(t){return new OJ(t.toJSON({preserveCase:!0}))}i(r0,"toHttpHeadersLike");function e0(t){return t.toLowerCase()}i(e0,"getHeaderKey");var OJ=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[e0(e)]={name:e,value:r.toString()}}get(e){let r=this._headersMap[e0(e)];return r?r.value:void 0}contains(e){return!!this._headersMap[e0(e)]}remove(e){let r=this.contains(e);return delete this._headersMap[e0(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[e0(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 ABe=Symbol("Original FullOperationResponse");function LQ(t,e){let r=Oh(t.request),n=r0(t.headers);return e?.createProxy?new Proxy(t,{get(s,o,a){return o==="headers"?n:o==="request"?r:o===ABe?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(LQ,"toCompatResponse");function MQ(t){let r=t[ABe],n=ld(t.headers.toJson({preserveCase:!0}));return r?(r.headers=n,r):{...t,headers:n,request:t0(t.request)}}i(MQ,"toPipelineResponse");var n0=class extends Zb{static{i(this,"ExtendedServiceClient")}constructor(e){super(e),e.keepAliveOptions?.enable===!1&&!Y0e(this.pipeline)&&this.pipeline.addPolicy(J0e()),e.redirectOptions?.handleRedirects===!1&&this.pipeline.removePolicy({name:aJ})}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:LQ(s)}),a}};var LJ;(function(t){t[t.ERROR=1]="ERROR",t[t.INFO=3]="INFO",t[t.OFF=0]="OFF",t[t.WARNING=2]="WARNING"})(LJ||(LJ={}));var wDt={log(t,e){},shouldLog(t){return!1}},gBe="RequestPolicyFactoryPolicy";function MJ(t){let e=t.slice().reverse();return{name:gBe,async sendRequest(r,n){let s={async sendRequest(c){let l=await n(t0(c));return LQ(l,{createProxy:!0})}};for(let c of e)s=c.create(s,wDt);let o=Oh(r,{createProxy:!0}),a=await s.sendRequest(o);return MQ(a)}}}i(MJ,"createRequestPolicyFactoryPolicy");function FJ(t){return{sendRequest:i(async e=>{let r=await t.sendRequest(Oh(e,{createProxy:!0}));return MQ(r)},"sendRequest")}}i(FJ,"convertHttpClient");var yBe=":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",bDt=yBe+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",BDt="["+yBe+"]["+bDt+"]*",RDt=new RegExp("^"+BDt+"$");function FQ(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(FQ,"getAllMatches");var UJ=i(function(t){let e=RDt.exec(t);return!(e===null||typeof e>"u")},"isName");function EBe(t){return typeof t<"u"}i(EBe,"isExist");var s0=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],UQ=["__proto__","constructor","prototype"];var NDt={allowBooleanAttributes:!1,unpairedTags:[]};function $Q(t,e){e=Object.assign({},NDt,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=IBe(t,o),o.err)return o}else if(t[o]==="<"){let a=o;if(o++,t[o]==="!"){o=SBe(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--),!ODt(l)){let p;return l.trim().length===0?p="Invalid space after '<'.":p="Tag '"+l+"' is an invalid name.",Or("InvalidTag",p,Ds(t,o))}let u=PDt(t,o);if(u===!1)return Or("InvalidAttr","Attributes for '"+l+"' have open quote.",Ds(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=wBe(d,e);if(f===!0)n=!0;else return Or(f.err.code,f.err.msg,Ds(t,p+f.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Or("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Ds(t,a));if(r.length===0)return Or("InvalidTag","Closing tag '"+l+"' has not been opened.",Ds(t,a));{let p=r.pop();if(l!==p.tagName){let f=Ds(t,p.tagStartPos);return Or("InvalidTag","Expected closing tag '"+p.tagName+"' (opened in line "+f.line+", col "+f.col+") instead of closing tag '"+l+"'.",Ds(t,a))}r.length==0&&(s=!0)}}else return Or("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Ds(t,o));else{let p=wBe(d,e);if(p!==!0)return Or(p.err.code,p.err.msg,Ds(t,o-d.length+p.err.line));if(s===!0)return Or("InvalidXml","Multiple possible root nodes found.",Ds(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=SBe(t,o);continue}else if(t[o+1]==="?"){if(o=IBe(t,++o),o.err)return o}else break;else if(t[o]==="&"){let p=DDt(t,o);if(p==-1)return Or("InvalidChar","char '&' is not expected.",Ds(t,o));o=p}else if(s===!0&&!CBe(t[o]))return Or("InvalidXml","Extra text at the end",Ds(t,o));t[o]==="<"&&o--}}else{if(CBe(t[o]))continue;return Or("InvalidChar","char '"+t[o]+"' is not expected.",Ds(t,o))}if(n){if(r.length==1)return Or("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ds(t,r[0].tagStartPos));if(r.length>0)return Or("InvalidXml","Invalid '"+JSON.stringify(r.map(o=>o.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Or("InvalidXml","Start tag expected.",1);return!0}i($Q,"validate");function CBe(t){return t===" "||t===" "||t===`
`||t==="\r"}i(CBe,"isWhiteSpace");function IBe(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 Or("InvalidXml","XML declaration allowed only at the start of the document.",Ds(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(IBe,"readPI");function SBe(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(SBe,"readCommentAndCDATA");var TDt='"',_Dt="'";function PDt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===TDt||t[e]===_Dt)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(PDt,"readAttributeStr");var vDt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function wBe(t,e){let r=FQ(t,vDt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Or("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",o0(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Or("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",o0(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Or("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",o0(r[s]));let o=r[s][2];if(!kDt(o))return Or("InvalidAttr","Attribute '"+o+"' is an invalid name.",o0(r[s]));if(!Object.prototype.hasOwnProperty.call(n,o))n[o]=1;else return Or("InvalidAttr","Attribute '"+o+"' is repeated.",o0(r[s]))}return!0}i(wBe,"validateAttributeString");function QDt(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(QDt,"validateNumberAmpersand");function DDt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,QDt(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(DDt,"validateAmpersand");function Or(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(Or,"getErrorObject");function kDt(t){return UJ(t)}i(kDt,"validateAttrName");function ODt(t){return UJ(t)}i(ODt,"validateTagName");function Ds(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Ds,"getLineNumberForPosition");function o0(t){return t.startIndex+t[1].length}i(o0,"getPositionFromMatch");var xBe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},bBe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},BBe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaron:"\u013E",Lmidot:"\u013F",lmidot:"\u0140",Lstrok:"\u0141",lstrok:"\u0142",Nacute:"\u0143",nacute:"\u0144",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ENG:"\u014A",eng:"\u014B",Omacr:"\u014C",omacr:"\u014D",Odblac:"\u0150",odblac:"\u0151",OElig:"\u0152",oelig:"\u0153",Racute:"\u0154",racute:"\u0155",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",Sacute:"\u015A",sacute:"\u015B",Scirc:"\u015C",scirc:"\u015D",Scedil:"\u015E",scedil:"\u015F",Scaron:"\u0160",scaron:"\u0161",Tcedil:"\u0162",tcedil:"\u0163",Tcaron:"\u0164",tcaron:"\u0165",Tstrok:"\u0166",tstrok:"\u0167",Utilde:"\u0168",utilde:"\u0169",Umacr:"\u016A",umacr:"\u016B",Ubreve:"\u016C",ubreve:"\u016D",Uring:"\u016E",uring:"\u016F",Udblac:"\u0170",udblac:"\u0171",Uogon:"\u0172",uogon:"\u0173",Wcirc:"\u0174",wcirc:"\u0175",Ycirc:"\u0176",ycirc:"\u0177",Zacute:"\u0179",zacute:"\u017A",Zdot:"\u017B",zdot:"\u017C",Zcaron:"\u017D",zcaron:"\u017E"},RBe={Alpha:"\u0391",alpha:"\u03B1",Beta:"\u0392",beta:"\u03B2",Gamma:"\u0393",gamma:"\u03B3",Delta:"\u0394",delta:"\u03B4",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",varepsilon:"\u03F5",Zeta:"\u0396",zeta:"\u03B6",Eta:"\u0397",eta:"\u03B7",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",vartheta:"\u03D1",Iota:"\u0399",iota:"\u03B9",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",Lambda:"\u039B",lambda:"\u03BB",Mu:"\u039C",mu:"\u03BC",Nu:"\u039D",nu:"\u03BD",Xi:"\u039E",xi:"\u03BE",Omicron:"\u039F",omicron:"\u03BF",Pi:"\u03A0",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",Tau:"\u03A4",tau:"\u03C4",Upsilon:"\u03A5",upsilon:"\u03C5",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",varphi:"\u03D5",Chi:"\u03A7",chi:"\u03C7",Psi:"\u03A8",psi:"\u03C8",Omega:"\u03A9",omega:"\u03C9",ohm:"\u03A9",Gammad:"\u03DC",gammad:"\u03DD",digamma:"\u03DD"},NBe={Afr:"\u{1D504}",afr:"\u{1D51E}",Acy:"\u0410",acy:"\u0430",Bcy:"\u0411",bcy:"\u0431",Vcy:"\u0412",vcy:"\u0432",Gcy:"\u0413",gcy:"\u0433",Dcy:"\u0414",dcy:"\u0434",IEcy:"\u0415",iecy:"\u0435",IOcy:"\u0401",iocy:"\u0451",ZHcy:"\u0416",zhcy:"\u0436",Zcy:"\u0417",zcy:"\u0437",Icy:"\u0418",icy:"\u0438",Jcy:"\u0419",jcy:"\u0439",Kcy:"\u041A",kcy:"\u043A",Lcy:"\u041B",lcy:"\u043B",Mcy:"\u041C",mcy:"\u043C",Ncy:"\u041D",ncy:"\u043D",Ocy:"\u041E",ocy:"\u043E",Pcy:"\u041F",pcy:"\u043F",Rcy:"\u0420",rcy:"\u0440",Scy:"\u0421",scy:"\u0441",Tcy:"\u0422",tcy:"\u0442",Ucy:"\u0423",ucy:"\u0443",Fcy:"\u0424",fcy:"\u0444",KHcy:"\u0425",khcy:"\u0445",TScy:"\u0426",tscy:"\u0446",CHcy:"\u0427",chcy:"\u0447",SHcy:"\u0428",shcy:"\u0448",SHCHcy:"\u0429",shchcy:"\u0449",HARDcy:"\u042A",hardcy:"\u044A",Ycy:"\u042B",ycy:"\u044B",SOFTcy:"\u042C",softcy:"\u044C",Ecy:"\u042D",ecy:"\u044D",YUcy:"\u042E",yucy:"\u044E",YAcy:"\u042F",yacy:"\u044F",DJcy:"\u0402",djcy:"\u0452",GJcy:"\u0403",gjcy:"\u0453",Jukcy:"\u0404",jukcy:"\u0454",DScy:"\u0405",dscy:"\u0455",Iukcy:"\u0406",iukcy:"\u0456",YIcy:"\u0407",yicy:"\u0457",Jsercy:"\u0408",jsercy:"\u0458",LJcy:"\u0409",ljcy:"\u0459",NJcy:"\u040A",njcy:"\u045A",TSHcy:"\u040B",tshcy:"\u045B",KJcy:"\u040C",kjcy:"\u045C",Ubrcy:"\u040E",ubrcy:"\u045E",DZcy:"\u040F",dzcy:"\u045F"},TBe={plus:"+",minus:"\u2212",mnplus:"\u2213",mp:"\u2213",pm:"\xB1",times:"\xD7",div:"\xF7",divide:"\xF7",sdot:"\u22C5",star:"\u2606",starf:"\u2605",bigstar:"\u2605",lowast:"\u2217",ast:"*",midast:"*",compfn:"\u2218",smallcircle:"\u2218",bullet:"\u2022",bull:"\u2022",nbsp:"\xA0",hellip:"\u2026",mldr:"\u2026",prime:"\u2032",Prime:"\u2033",tprime:"\u2034",bprime:"\u2035",backprime:"\u2035",minus:"\u2212",minusd:"\u2238",dotminus:"\u2238",plusdo:"\u2214",dotplus:"\u2214",plusmn:"\xB1",minusplus:"\u2213",mnplus:"\u2213",mp:"\u2213",setminus:"\u2216",smallsetminus:"\u2216",Backslash:"\u2216",setmn:"\u2216",ssetmn:"\u2216",lowbar:"_",verbar:"|",vert:"|",VerticalLine:"|",colon:":",Colon:"\u2237",Proportion:"\u2237",ratio:"\u2236",equals:"=",ne:"\u2260",nequiv:"\u2262",equiv:"\u2261",Congruent:"\u2261",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",sime:"\u2243",simeq:"\u2243",TildeEqual:"\u2243",asymp:"\u2248",approx:"\u2248",thickapprox:"\u2248",thkap:"\u2248",TildeTilde:"\u2248",ncong:"\u2247",cong:"\u2245",TildeFullEqual:"\u2245",asympeq:"\u224D",CupCap:"\u224D",bump:"\u224E",Bumpeq:"\u224E",HumpDownHump:"\u224E",bumpe:"\u224F",bumpeq:"\u224F",HumpEqual:"\u224F",dotminus:"\u2238",minusd:"\u2238",plusdo:"\u2214",dotplus:"\u2214",le:"\u2264",LessEqual:"\u2264",ge:"\u2265",GreaterEqual:"\u2265",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",greater:">",less:"<"},_Be={alefsym:"\u2135",aleph:"\u2135",beth:"\u2136",gimel:"\u2137",daleth:"\u2138",forall:"\u2200",ForAll:"\u2200",part:"\u2202",PartialD:"\u2202",exist:"\u2203",Exists:"\u2203",nexist:"\u2204",nexists:"\u2204",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",nabla:"\u2207",Del:"\u2207",isin:"\u2208",isinv:"\u2208",in:"\u2208",Element:"\u2208",notin:"\u2209",notinva:"\u2209",ni:"\u220B",niv:"\u220B",SuchThat:"\u220B",ReverseElement:"\u220B",notni:"\u220C",notniva:"\u220C",prod:"\u220F",Product:"\u220F",coprod:"\u2210",Coproduct:"\u2210",sum:"\u2211",Sum:"\u2211",minus:"\u2212",mp:"\u2213",plusdo:"\u2214",dotplus:"\u2214",setminus:"\u2216",lowast:"\u2217",radic:"\u221A",Sqrt:"\u221A",prop:"\u221D",propto:"\u221D",Proportional:"\u221D",varpropto:"\u221D",infin:"\u221E",infintie:"\u29DD",ang:"\u2220",angle:"\u2220",angmsd:"\u2221",measuredangle:"\u2221",angsph:"\u2222",mid:"\u2223",VerticalBar:"\u2223",nmid:"\u2224",nsmid:"\u2224",npar:"\u2226",parallel:"\u2225",spar:"\u2225",nparallel:"\u2226",nspar:"\u2226",and:"\u2227",wedge:"\u2227",or:"\u2228",vee:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",Integral:"\u222B",conint:"\u222E",ContourIntegral:"\u222E",Conint:"\u222F",DoubleContourIntegral:"\u222F",Cconint:"\u2230",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",becaus:"\u2235",because:"\u2235",Because:"\u2235",ratio:"\u2236",Proportion:"\u2237",minusd:"\u2238",dotminus:"\u2238",mDDot:"\u223A",homtht:"\u223B",sim:"\u223C",bsimg:"\u223D",backsim:"\u223D",ac:"\u223E",mstpos:"\u223E",acd:"\u223F",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",nsime:"\u2244",nsimeq:"\u2244",nsimeq:"\u2244",ncong:"\u2247",simne:"\u2246",ncongdot:"\u2A6D\u0338",ngsim:"\u2275",nsim:"\u2241",napprox:"\u2249",nap:"\u2249",ngeq:"\u2271",nge:"\u2271",nleq:"\u2270",nle:"\u2270",ngtr:"\u226F",ngt:"\u226F",nless:"\u226E",nlt:"\u226E",nprec:"\u2280",npr:"\u2280",nsucc:"\u2281",nsc:"\u2281"},PBe={larr:"\u2190",leftarrow:"\u2190",LeftArrow:"\u2190",uarr:"\u2191",uparrow:"\u2191",UpArrow:"\u2191",rarr:"\u2192",rightarrow:"\u2192",RightArrow:"\u2192",darr:"\u2193",downarrow:"\u2193",DownArrow:"\u2193",harr:"\u2194",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",varr:"\u2195",updownarrow:"\u2195",UpDownArrow:"\u2195",nwarr:"\u2196",nwarrow:"\u2196",UpperLeftArrow:"\u2196",nearr:"\u2197",nearrow:"\u2197",UpperRightArrow:"\u2197",searr:"\u2198",searrow:"\u2198",LowerRightArrow:"\u2198",swarr:"\u2199",swarrow:"\u2199",LowerLeftArrow:"\u2199",lArr:"\u21D0",Leftarrow:"\u21D0",uArr:"\u21D1",Uparrow:"\u21D1",rArr:"\u21D2",Rightarrow:"\u21D2",dArr:"\u21D3",Downarrow:"\u21D3",hArr:"\u21D4",Leftrightarrow:"\u21D4",iff:"\u21D4",vArr:"\u21D5",Updownarrow:"\u21D5",lAarr:"\u21DA",Lleftarrow:"\u21DA",rAarr:"\u21DB",Rrightarrow:"\u21DB",lrarr:"\u21C6",leftrightarrows:"\u21C6",rlarr:"\u21C4",rightleftarrows:"\u21C4",lrhar:"\u21CB",leftrightharpoons:"\u21CB",ReverseEquilibrium:"\u21CB",rlhar:"\u21CC",rightleftharpoons:"\u21CC",Equilibrium:"\u21CC",udarr:"\u21C5",UpArrowDownArrow:"\u21C5",duarr:"\u21F5",DownArrowUpArrow:"\u21F5",llarr:"\u21C7",leftleftarrows:"\u21C7",rrarr:"\u21C9",rightrightarrows:"\u21C9",ddarr:"\u21CA",downdownarrows:"\u21CA",har:"\u21BD",lhard:"\u21BD",leftharpoondown:"\u21BD",lharu:"\u21BC",leftharpoonup:"\u21BC",rhard:"\u21C1",rightharpoondown:"\u21C1",rharu:"\u21C0",rightharpoonup:"\u21C0",lsh:"\u21B0",Lsh:"\u21B0",rsh:"\u21B1",Rsh:"\u21B1",ldsh:"\u21B2",rdsh:"\u21B3",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",mapstoleft:"\u21A4",mapstoup:"\u21A5",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",crarr:"\u21B5",nwarrow:"\u2196",nearrow:"\u2197",searrow:"\u2198",swarrow:"\u2199",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nrightarrow:"\u219B",nrarr:"\u219B",larrtl:"\u21A2",rarrtl:"\u21A3",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Larr:"\u219E",Rarr:"\u21A0",larrhk:"\u21A9",rarrhk:"\u21AA",larrlp:"\u21AB",looparrowleft:"\u21AB",rarrlp:"\u21AC",looparrowright:"\u21AC",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",nrarrw:"\u219D\u0338",rarrw:"\u219D",rightsquigarrow:"\u219D",larrbfs:"\u291F",rarrbfs:"\u2920",nvHarr:"\u2904",nvlArr:"\u2902",nvrArr:"\u2903",larrfs:"\u291D",rarrfs:"\u291E",Map:"\u2905",larrsim:"\u2973",rarrsim:"\u2974",harrcir:"\u2948",Uarrocir:"\u2949",lurdshar:"\u294A",ldrdhar:"\u2967",ldrushar:"\u294B",rdldhar:"\u2969",lrhard:"\u296D",rlhar:"\u21CC",uharr:"\u21BE",uharl:"\u21BF",dharr:"\u21C2",dharl:"\u21C3",Uarr:"\u219F",Darr:"\u21A1",zigrarr:"\u21DD",nwArr:"\u21D6",neArr:"\u21D7",seArr:"\u21D8",swArr:"\u21D9",nharr:"\u21AE",nhArr:"\u21CE",nlarr:"\u219A",nlArr:"\u21CD",nrarr:"\u219B",nrArr:"\u21CF",larrb:"\u21E4",LeftArrowBar:"\u21E4",rarrb:"\u21E5",RightArrowBar:"\u21E5"},vBe={square:"\u25A1",Square:"\u25A1",squ:"\u25A1",squf:"\u25AA",squarf:"\u25AA",blacksquar:"\u25AA",blacksquare:"\u25AA",FilledVerySmallSquare:"\u25AA",blk34:"\u2593",blk12:"\u2592",blk14:"\u2591",block:"\u2588",srect:"\u25AD",rect:"\u25AD",sdot:"\u22C5",sdotb:"\u22A1",dotsquare:"\u22A1",triangle:"\u25B5",tri:"\u25B5",trine:"\u25B5",utri:"\u25B5",triangledown:"\u25BF",dtri:"\u25BF",tridown:"\u25BF",triangleleft:"\u25C3",ltri:"\u25C3",triangleright:"\u25B9",rtri:"\u25B9",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",loz:"\u25CA",lozenge:"\u25CA",blacklozenge:"\u29EB",lozf:"\u29EB",bigcirc:"\u25EF",xcirc:"\u25EF",circ:"\u02C6",Circle:"\u25CB",cir:"\u25CB",o:"\u25CB",bullet:"\u2022",bull:"\u2022",hellip:"\u2026",mldr:"\u2026",nldr:"\u2025",boxh:"\u2500",HorizontalLine:"\u2500",boxv:"\u2502",boxdr:"\u250C",boxdl:"\u2510",boxur:"\u2514",boxul:"\u2518",boxvr:"\u251C",boxvl:"\u2524",boxhd:"\u252C",boxhu:"\u2534",boxvh:"\u253C",boxH:"\u2550",boxV:"\u2551",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxDl:"\u2555",boxdL:"\u2556",boxDL:"\u2557",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxUl:"\u255C",boxuL:"\u255B",boxUL:"\u255D",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",boxVl:"\u2562",boxvL:"\u2561",boxVL:"\u2563",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C"},QBe={excl:"!",iexcl:"\xA1",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",nbsp:"\xA0",comma:",",period:".",colon:":",semi:";",vert:"|",Verbar:"\u2016",verbar:"|",dblac:"\u02DD",circ:"\u02C6",caron:"\u02C7",breve:"\u02D8",dot:"\u02D9",ring:"\u02DA",ogon:"\u02DB",tilde:"\u02DC",DiacriticalGrave:"`",DiacriticalAcute:"\xB4",DiacriticalTilde:"\u02DC",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",grave:"`",acute:"\xB4"},qQ={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},DBe={frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044"},kBe={trade:"\u2122",TRADE:"\u2122",telrec:"\u2315",target:"\u2316",ulcorn:"\u231C",ulcorner:"\u231C",urcorn:"\u231D",urcorner:"\u231D",dlcorn:"\u231E",llcorner:"\u231E",drcorn:"\u231F",lrcorner:"\u231F",intercal:"\u22BA",intcal:"\u22BA",oplus:"\u2295",CirclePlus:"\u2295",ominus:"\u2296",CircleMinus:"\u2296",otimes:"\u2297",CircleTimes:"\u2297",osol:"\u2298",odot:"\u2299",CircleDot:"\u2299",oast:"\u229B",circledast:"\u229B",odash:"\u229D",circleddash:"\u229D",ocirc:"\u229A",circledcirc:"\u229A",boxplus:"\u229E",plusb:"\u229E",boxminus:"\u229F",minusb:"\u229F",boxtimes:"\u22A0",timesb:"\u22A0",boxdot:"\u22A1",sdotb:"\u22A1",veebar:"\u22BB",vee:"\u2228",barvee:"\u22BD",and:"\u2227",wedge:"\u2227",Cap:"\u22D2",Cup:"\u22D3",Fork:"\u22D4",pitchfork:"\u22D4",epar:"\u22D5",ltlarr:"\u2976",nvap:"\u224D\u20D2",nvsim:"\u223C\u20D2",nvge:"\u2265\u20D2",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvgt:">\u20D2",nvltrie:"\u22B4\u20D2",nvrtrie:"\u22B5\u20D2",Vdash:"\u22A9",dashv:"\u22A3",vDash:"\u22A8",Vdash:"\u22A9",Vvdash:"\u22AA",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF"},LDt={...xBe,...bBe,...BBe,...RBe,...NBe,...TBe,..._Be,...PBe,...vBe,...QBe,...qQ,...DBe,...kBe},i0={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},$J={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 MDt=new Set("!?\\\\/[]$%{}^&*()<>|+");function OBe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(MDt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}i(OBe,"validateEntityName");function qJ(...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(qJ,"mergeEntityMaps");var Lh="external",HQ="base",HJ="all";function FDt(t){return!t||t===Lh?new Set([Lh]):t===HJ?new Set([HJ]):t===HQ?new Set([HQ]):Array.isArray(t)?new Set(t):new Set([Lh])}i(FDt,"parseLimitTiers");var lo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),UDt=new Set([9,10,13]);function $Dt(t){if(!t)return{xmlVersion:1,onLevel:lo.allow,nullLevel:lo.remove};let e=t.xmlVersion===1.1?1.1:1,r=lo[t.onNCR]??lo.allow,n=lo[t.nullNCR]??lo.remove,s=Math.max(n,lo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}i($Dt,"parseNCRConfig");var mE=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=FDt(this._limit.applyLimitsTo??Lh),this._numericAllowed=e.numericAllowed??!0,this._baseMap=qJ(i0,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=$Dt(e.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(e){if(e)for(let r of Object.keys(e))OBe(r);this._externalMap=qJ(e)}addExternalEntity(e,r){OBe(e),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[e]=r)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=qJ(e)}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)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=Lh);else if(this._leaveSet.has(f)){a++;continue}else if(f.charCodeAt(0)===35){let g=this._resolveNCR(f);if(g===void 0){a++;continue}m=g,h=HQ}else{let g=this._resolveName(f);m=g?.value,h=g?.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 g=m.length-(f.length+2);if(g>0&&(this._expandedLength+=g,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(HJ)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:Lh};if(e in this._externalMap)return{value:this._externalMap[e],tier:Lh};if(e in this._baseMap)return{value:this._baseMap[e],tier:HQ}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!UDt.has(e)?lo.remove:-1}_applyNCRAction(e,r,n){switch(e){case lo.allow:return String.fromCodePoint(n);case lo.remove:return"";case lo.leave:return;case lo.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<lo.remove)return;let o=s===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,s);return this._applyNCRAction(o,e,n)}};var LBe=i(t=>s0.includes(t)?"__"+t:t,"defaultOnDangerousProperty"),qDt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:i(function(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:LBe};function HDt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(s0.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(UQ.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}i(HDt,"validatePropertyName");function MBe(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"}:MBe(!0)}i(MBe,"normalizeProcessEntities");var FBe=i(function(t){let e=Object.assign({},qDt,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&&HDt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=LBe),e.processEntities=MBe(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 GQ;typeof Symbol!="function"?GQ="@@xmlMetadata":GQ=Symbol("XML Node Metadata");var uo=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}),r!==void 0&&(this.child[this.child.length-1][GQ]={startIndex:r})}static getMetaDataSymbol(){return GQ}};var UBe=":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",GDt=UBe+"\\-\\.\\d\xB7\u0300-\u036F\u203F-\u2040",$Be=":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}",zDt=$Be+"\\-\\.\\d\xB7\u0300-\u036F\u0487\u203F-\u2040",qBe=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}]+(?:\\s+[${e}]+)*$`,r)}},"buildRegexes"),VDt=qBe(UBe,GDt),WDt=qBe($Be,zDt,"u"),jDt=i((t="1.0")=>t==="1.1"?WDt:VDt,"getRegexes");var Mh=i((t,{xmlVersion:e="1.0"}={})=>jDt(e).qName.test(t),"qName");var c0=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="";for(;r<e.length;r++)if(e[r]==="<"&&!c){if(a&&Fh(e,"!ENTITY",r)){r+=7;let u,d;if([u,d,r]=this.readEntityExp(e,r+1,this.suppressValidationErr),d.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[u]=d,s++}}else if(a&&Fh(e,"!ELEMENT",r)){r+=8;let{index:u}=this.readElementExp(e,r+1);r=u}else if(a&&Fh(e,"!ATTLIST",r))r+=8;else if(a&&Fh(e,"!NOTATION",r)){r+=9;let{index:u}=this.readNotationExp(e,r+1,this.suppressValidationErr);r=u}else if(Fh(e,"!--",r))c=!0;else throw new Error("Invalid DOCTYPE");o++,l=""}else if(e[r]===">"){if(c?e[r-1]==="-"&&e[r-2]==="-"&&(c=!1,o--):o--,o===0)break}else e[r]==="["?a=!0:l+=e[r];if(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=po(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(a0(s,{xmlVersion:this.xmlVersion}),r=po(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=po(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);!this.suppressValidationErr&&a0(s,{xmlVersion:this.xmlVersion}),r=po(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=po(e,r);let a=null,c=null;if(o==="PUBLIC")[r,a]=this.readIdentifierVal(e,r,"publicIdentifier"),r=po(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=po(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);if(!this.suppressValidationErr&&!Mh(s,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid element name: "${s}"`);r=po(e,r);let o="";if(e[r]==="E"&&Fh(e,"MPTY",r))r+=4;else if(e[r]==="A"&&Fh(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=po(e,r);let n=r;for(;r<e.length&&!/\s/.test(e[r]);)r++;let s=e.substring(n,r);for(a0(s,{xmlVersion:this.xmlVersion}),r=po(e,r),n=r;r<e.length&&!/\s/.test(e[r]);)r++;let o=e.substring(n,r);if(!a0(o,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid attribute name: "${o}"`);r=po(e,r);let a="";if(e.substring(r,r+8).toUpperCase()==="NOTATION"){if(a="NOTATION",r+=8,r=po(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(),!a0(d,{xmlVersion:this.xmlVersion}))throw new Error(`Invalid notation name: "${d}"`);l.push(d),e[r]==="|"&&(r++,r=po(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=po(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}}},po=i((t,e)=>{for(;e<t.length&&/\s/.test(t[e]);)e++;return e},"skipWhitespace");function Fh(t,e,r){for(let n=0;n<e.length;n++)if(e[n]!==t[r+n+1])return!1;return!0}i(Fh,"hasSeq");function a0(t,e){if(Mh(t,{xmlVersion:e}))return t;throw new Error(`Invalid entity name ${t}`)}i(a0,"validateEntityName");var JDt=/^[-+]?0x[a-fA-F0-9]+$/,YDt=/^0b[01]+$/,KDt=/^0o[0-7]+$/,XDt=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ZDt={hex:!0,binary:!1,octal:!1,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};function zJ(t,e={}){if(e=Object.assign({},ZDt,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")return 0;if(e.hex&&JDt.test(r))return GJ(r,16);if(e.binary&&YDt.test(r))return GJ(r,2);if(e.octal&&KDt.test(r))return GJ(r,8);if(isFinite(r)){if(r.includes("e")||r.includes("E"))return tkt(t,r,e);{let n=XDt.exec(r);if(n){let s=n[1]||"",o=n[2],a=rkt(n[3]),c=s?t[o.length+1]===".":t[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 return nkt(t,Number(r),e)}i(zJ,"toNumber");var ekt=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function tkt(t,e,r){if(!r.eNotation)return t;let n=e.match(ekt);if(n){let s=n[1]||"",o=n[3].indexOf("e")===-1?"E":"e",a=n[2],c=s?t[a.length+1]===o:t[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?(e=(n[1]||"")+n[3],Number(e)):t:Number(e)}else return t}i(tkt,"resolveEnotation");function rkt(t){return t&&t.indexOf(".")!==-1&&(t=t.replace(/0+$/,""),t==="."?t="0":t[0]==="."?t="0"+t:t[t.length-1]==="."&&(t=t.substring(0,t.length-1))),t}i(rkt,"trimZeros");function GJ(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(GJ,"parse_int");function nkt(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(nkt,"handleInfinity");function VJ(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(VJ,"getIgnoreAttributesFn");var li=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 hE=class{static{i(this,"ExpressionSet")}constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],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())return this._deepWildcards.push(e),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 c=0;c<o.length;c++)if(e.matches(o[c]))return o[c]}let a=this._wildcardByDepth.get(r);if(a){for(let c=0;c<a.length;c++)if(e.matches(a[c]))return a[c]}for(let c=0;c<this._deepWildcards.length;c++)if(e.matches(this._deepWildcards[c]))return this._deepWildcards[c];return null}};var WJ=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}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)}},il=class{static{i(this,"Matcher")}constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new WJ(this)}push(e,r=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let s=this.path.length;this.siblingStacks[s]||(this.siblingStacks[s]=new Map);let o=this.siblingStacks[s],a=n?`${n}:${e}`:e,c=o.get(a)||0,l=0;for(let d of o.values())l+=d;o.set(a,c+1);let u={tag:e,position:l,counter:c};n!=null&&(u.namespace=n),r!=null&&(u.values=r),this.path.push(u)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),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}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=[]}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=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(r=>({...r})),this.siblingStacks=e.siblingStacks.map(r=>new Map(r))}readOnly(){return this._view}};function skt(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(skt,"extractRawAttributes");function okt(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(okt,"extractNamespace");var l0=class{static{i(this,"OrderedObjParser")}constructor(e,r){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=ukt,this.parseTextData=ikt,this.resolveNameSpace=akt,this.buildAttributesMap=lkt,this.isItStopNode=mkt,this.replaceEntitiesValue=pkt,this.readStopNodeData=gkt,this.saveTextToParentTag=fkt,this.addChild=dkt,this.ignoreAttributesFn=VJ(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...i0};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...$J,...qQ}),this.entityDecoder=new mE({namedEntities:{...n,...r},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new il,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new hE;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 li(a)):a instanceof li&&this.stopNodeExpressionsSet.add(a)}this.stopNodeExpressionsSet.seal()}}};function ikt(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?YJ(t,c.parseTagValue,c.numberParseOptions):t}}i(ikt,"parseTextData");function akt(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(akt,"resolveNameSpace");var ckt=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function lkt(t,e,r,n=!1){let s=this.options;if(n===!0||s.ignoreAttributes!==!0&&typeof t=="string"){let o=FQ(t,ckt),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]),g=o[m][4];if(h.length&&g!==void 0){let y=g;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 g=s.attributeNamePrefix+h;if(h.length)if(s.transformAttributeName&&(g=s.transformAttributeName(g)),g=HBe(g,s),o[m][4]!==void 0){let y=l[m],E=s.attributeValueProcessor(h,y,p);E==null?c[g]=y:typeof E!=typeof y||E!==y?c[g]=E:c[g]=YJ(y,s.parseAttributeValue,s.numberParseOptions),f=!0}else s.allowBooleanAttributes&&(c[g]=!0,f=!0)}if(!f)return;if(s.attributesGroupName&&!s.preserveOrder){let m={};return m[s.attributesGroupName]=c,m}return c}}i(lkt,"buildAttributesMap");var ukt=i(function(t){t=t.replace(/\r\n?/g,`
`);let e=new uo("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,o=new c0(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=AE(t,">",c,"Closing Tag is not closed."),p=t.substring(c+2,d).trim();if(s.removeNSPrefix){let m=p.indexOf(":");m!==-1&&(p=p.substr(m+1))}p=jJ(s.transformTagName,p,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let f=this.matcher.getCurrentTag();if(p&&s.unpairedTagsSet.has(p))throw new Error(`Unpaired tag can not be used as closing tag: </${p}>`);f&&s.unpairedTagsSet.has(f)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=JJ(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(p){let f=p[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(f)||1),o.setXmlVersion(Number(f)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let f=new uo(d.tagName);f.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(f[":@"]=p),this.addChild(r,f,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=AE(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let p=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:p}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=o.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=AE(t,"]]>",c,"CDATA is not closed.")-2,p=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.parseTextData(p,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);f==null&&(f=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:p}]):r.add(s.textNodeName,f),c=d+2}else{let d=JJ(t,c,s.removeNSPrefix);if(!d){let _=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${_}"`)}let p=d.tagName,f=d.rawTagName,m=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:p,tagExp:m}=jJ(s.transformTagName,p,m,s),s.strictReservedNames&&(p===s.commentPropName||p===s.cdataPropName||p===s.textNodeName||p===s.attributesGroupName))throw new Error(`Invalid tag name: ${p}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,p[p.length-1]==="/"?(p=p.substr(0,p.length-1),m=p):m=m.substr(0,m.length-1),h=p!==m);let C=null,S={},b;b=okt(f),p!==e.tagname&&this.matcher.push(p,{},b),p!==m&&h&&(C=this.buildAttributesMap(m,this.matcher,p),C&&(S=skt(C,s))),p!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let _="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(p))c=d.closeIndex;else{let J=this.readStopNodeData(t,f,g+1);if(!J)throw new Error(`Unexpected end of ${f}`);c=J.i,_=J.tagContent}let v=new uo(p);C&&(v[":@"]=C),v.add(s.textNodeName,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,N)}else{if(E){({tagName:p,tagExp:m}=jJ(s.transformTagName,p,m,s));let _=new uo(p);C&&(_[":@"]=C),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(p)){let _=new uo(p);C&&(_[":@"]=C),this.addChild(r,_,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let _=new uo(p);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(_[":@"]=C),this.addChild(r,_,this.readonlyMatcher,N),r=_}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function dkt(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(dkt,"addChild");function pkt(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(pkt,"replaceEntitiesValue");function fkt(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(fkt,"saveTextToParentTag");function mkt(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(mkt,"isItStopNode");function hkt(t,e,r=">"){let n=0,s=t.length,o=r.charCodeAt(0),a=r.length>1?r.charCodeAt(1):-1,c="",l=e;for(let u=e;u<s;u++){let d=t.charCodeAt(u);if(n)d===n&&(n=0);else if(d===34||d===39)n=d;else if(d===o)if(a!==-1){if(t.charCodeAt(u+1)===a)return c+=t.substring(l,u),{data:c,index:u}}else return c+=t.substring(l,u),{data:c,index:u};else d===9&&!n&&(c+=t.substring(l,u)+" ",l=u+1)}}i(hkt,"tagExpWithClosingIndex");function AE(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s+e.length-1}i(AE,"findClosingIndex");function Akt(t,e,r,n){let s=t.indexOf(e,r);if(s===-1)throw new Error(n);return s}i(Akt,"findClosingChar");function JJ(t,e,r,n=">"){let s=hkt(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(JJ,"readTagExp");function gkt(t,e,r){let n=r,s=1,o=t.length;for(;r<o;r++)if(t[r]==="<"){let a=t.charCodeAt(r+1);if(a===47){let c=Akt(t,">",r,`${e} is not closed`);if(t.substring(r+2,c).trim()===e&&(s--,s===0))return{tagContent:t.substring(n,r),i:c};r=c}else if(a===63)r=AE(t,"?>",r+1,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===45&&t.charCodeAt(r+3)===45)r=AE(t,"-->",r+3,"StopNode is not closed.");else if(a===33&&t.charCodeAt(r+2)===91)r=AE(t,"]]>",r,"StopNode is not closed.")-2;else{let c=JJ(t,r,!1);c&&((c&&c.tagName)===e&&c.tagExp[c.tagExp.length-1]!=="/"&&s++,r=c.closeIndex)}}}i(gkt,"readStopNodeData");function YJ(t,e,r){if(e&&typeof t=="string"){let n=t.trim();return n==="true"?!0:n==="false"?!1:zJ(t,r)}else return EBe(t)?t:""}i(YJ,"parseValue");function jJ(t,e,r,n){if(t){let s=t(e);r===e&&(r=s),e=s}return e=HBe(e,n),{tagName:e,tagExp:r}}i(jJ,"transformTagName");function HBe(t,e){if(UQ.includes(t))throw new Error(`[SECURITY] Invalid name: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);return s0.includes(t)?e.onDangerousProperty(t):t}i(HBe,"sanitizeName");var KJ=uo.getMetaDataSymbol();function ykt(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(ykt,"stripAttributePrefix");function XJ(t,e,r,n){return GBe(t,e,r,n)}i(XJ,"prettify");function GBe(t,e,r,n){let s,o={};for(let a=0;a<t.length;a++){let c=t[a],l=Ekt(c);if(l!==void 0&&l!==e.textNodeName){let u=ykt(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=GBe(c[l],e,r,n),d=Ikt(u,e);if(Object.keys(u).length===0&&e.alwaysCreateTextNode&&(u[e.textNodeName]=""),c[":@"]?Ckt(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[KJ]!==void 0&&typeof u=="object"&&u!==null&&(u[KJ]=c[KJ]),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(GBe,"compress");function Ekt(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(n!==":@")return n}}i(Ekt,"propName");function Ckt(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(Ckt,"assignAttributes");function Ikt(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(Ikt,"isLeafTag");var gE=class{static{i(this,"XMLParser")}constructor(e){this.externalEntities={},this.options=FBe(e)}parse(e,r){if(typeof e!="string"&&e.toString)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=$Q(e,r);if(o!==!0)throw Error(`${o.err.msg}:${o.err.line}:${o.err.col}`)}let n=new l0(this.options,this.externalEntities),s=n.parseXml(e);return this.options.preserveOrder||s===void 0?s:XJ(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 '&#xD;'");if(r==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=r}static getMetaDataSymbol(){return uo.getMetaDataSymbol()}};function zQ(t){return String(t).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}i(zQ,"safeComment");function VQ(t){return String(t).replace(/\]\]>/g,"]]]]><![CDATA[>")}i(VQ,"safeCdata");function Up(t){return String(t).replace(/"/g,"&quot;").replace(/'/g,"&apos;")}i(Up,"escapeAttribute");var Skt=`
`;function wkt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(tY(r)==="?xml"){let s=r[":@"];if(s){let o=e.attributeNamePrefix+"version";if(s[o])return s[o]}}return"1.0"}i(wkt,"detectXmlVersionFromArray");function VBe(t,e,r,n,s){return!r.sanitizeName||Mh(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(VBe,"resolveTagName");function eY(t,e){let r="";e.format&&(r=Skt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new li(c)):c instanceof li&&n.push(c)}let s=wkt(t,e),o=new il;return WBe(t,e,r,o,n,s)}i(eY,"toXml");function WBe(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=t.toString();return l=ZJ(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=tY(u);if(d===void 0)continue;let f=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:VBe(d,!1,e,n,o),m=xkt(u[":@"],e);n.push(f,m);let h=Bkt(n,s);if(f===e.textNodeName){let S=u[d];h||(S=e.tagValueProcessor(f,S),S=ZJ(S,e)),c&&(a+=r),a+=S,c=!1,n.pop();continue}else if(f===e.cdataPropName){c&&(a+=r);let S=u[d][0][e.textNodeName],b=VQ(S);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(f===e.commentPropName){let S=u[d][0][e.textNodeName],b=zQ(S);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(f[0]==="?"){let S=zBe(u[":@"],e,h,n,o);a+=(f==="?xml"?"":r)+`<${f}${S}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=zBe(u[":@"],e,h,n,o),E=r+`<${f}${y}`,C;h?C=jBe(u[d],e):C=WBe(u[d],e,g,n,s,o),e.unpairedTags.indexOf(f)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${f}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${f}>`),c=!0,n.pop()}return a}i(WBe,"arrToStr");function xkt(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]=Up(t[s]),n=!0}return n?r:null}i(xkt,"extractAttributeValues");function jBe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],o=tY(s);if(o===e.textNodeName)r+=s[o];else if(o===e.cdataPropName)r+=s[o][0][e.textNodeName];else if(o===e.commentPropName)r+=s[o][0][e.textNodeName];else{if(o&&o[0]==="?")continue;if(o){let a=bkt(s[":@"],e),c=jBe(s[o],e);!c||c.length===0?r+=`<${o}${a}/>`:r+=`<${o}${a}>${c}</${o}>`}}}return r}i(jBe,"getRawContent");function bkt(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)}="${Up(s)}"`}return r}i(bkt,"attr_to_str_raw");function tY(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(tY,"propName");function zBe(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:VBe(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=ZJ(u,e)),u===!0&&e.suppressBooleanAttributes?o+=` ${l}`:o+=` ${l}="${Up(u)}"`}return o}i(zBe,"attr_to_str");function Bkt(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(Bkt,"checkStopNode");function ZJ(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(ZJ,"replaceEntitiesValue");function rY(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(rY,"getIgnoreAttributesFn");var Rkt={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:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function fo(t){if(this.options=Object.assign({},Rkt,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 li(r)):r instanceof li&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=rY(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Pkt),this.processTextOrObjNode=Tkt,this.options.format?(this.indentate=_kt,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(fo,"Builder");function Nkt(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(Nkt,"detectXmlVersionFromObj");function nY(t,e,r,n,s){return!r.sanitizeName||Mh(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(nY,"resolveTagName");fo.prototype.build=function(t){if(this.options.preserveOrder)return eY(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new il,r=Nkt(t,this.options);return this.j2x(t,0,e,r).val}};fo.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[0]==="?"?l:nY(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=nY(p,!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[l],c)}else if(!p)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,""+t[l]);o+=this.replaceEntitiesValue(f)}else{r.push(d);let f=this.checkStopNode(r);if(r.pop(),f){let m=""+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 g=t[l][h];if(!(typeof g>"u"))if(g===null)d[0]==="?"?o+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:o+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,n);r.pop(),f+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(m+=y.attrStr)}else f+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),f+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?f+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:f+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else f+=this.buildTextValNode(g,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=nY(p[m],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][p[m]],c)}}else o+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:o}};fo.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Up(e)+'"'};function Tkt(t,e,r,n,s){let o=this.extractAttributes(t);if(n.push(e,o),this.checkStopNode(n)){let l=this.buildRawContent(t),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(Tkt,"processTextOrObjNode");fo.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]=Up(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]=Up(t[n]),r=!0)}return r?e:null};fo.prototype.buildRawContent=function(t){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 e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let o=this.buildRawContent(s),a=this.buildAttributesForStopNode(s);o===""?e+=`<${r}${a}/>`:e+=`<${r}${a}>${o}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),o=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};fo.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+'="'+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+'="'+s+'"'}}return e};fo.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)+`<!--${t}-->`+this.newLine:this.indentate(n)+"<"+e+r+o+this.tagEndChar+t+this.indentate(n)+s}};fo.prototype.closeTag=function(t){let e="";return this.options.unpairedTags.indexOf(t)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${t}`,e};fo.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};fo.prototype.buildTextValNode=function(t,e,r,n,s){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName){let o=VQ(t);return this.indentate(n)+`<![CDATA[${o}]]>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let o=zQ(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===""?this.indentate(n)+"<"+e+r+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+r+">"+o+"</"+e+this.tagEndChar}}};fo.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 _kt(t){return this.options.indentBy.repeat(t)}i(_kt,"indentate");function Pkt(t){return t.startsWith(this.options.attributeNamePrefix)&&t!==this.options.textNodeName?t.substr(this.attrPrefixLen):!1}i(Pkt,"isAttribute");var sY=fo;var JBe={validate:$Q};function XBe(t){var e;return{attributesGroupName:"$",textNodeName:(e=t.xmlCharKey)!==null&&e!==void 0?e:"_",ignoreAttributes:!1,suppressBooleanAttributes:!1}}i(XBe,"getCommonOptions");function vkt(t={}){var e,r;return Object.assign(Object.assign({},XBe(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(vkt,"getSerializerOptions");function Qkt(t={}){return Object.assign(Object.assign({},XBe(t)),{parseAttributeValue:!1,parseTagValue:!1,attributeNamePrefix:"",stopNodes:t.stopNodes,processEntities:!0,trimValues:!1})}i(Qkt,"getParserOptions");function WQ(t,e={}){let r=vkt(e),n=new sY(r),s={[r.rootNodeName]:t};return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${n.build(s)}`.replace(/\n/g,"")}i(WQ,"stringifyXML");async function oY(t,e={}){if(!t)throw new Error("Document is empty");let r=JBe.validate(t);if(r!==!0)throw r;let s=new gE(Qkt(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(oY,"parseXML");var jQ=rl("storage-blob");var tRe=require("events");var ZBe=require("node:stream");var JQ=class extends ZBe.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 eRe=R(require("node:buffer"),1);var YQ=eRe.default.constants.MAX_LENGTH,KQ=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/YQ);for(let o=0;o<s;o++){let a=o===s-1?e%YQ:YQ;a===0&&(a=YQ),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 JQ(this.buffers,this.size)}};var XQ=class{static{i(this,"BufferScheduler")}bufferSize;maxBuffers;readable;outgoingHandler;emitter=new tRe.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 KQ(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 iY;function aY(){return iY||(iY=Yb()),iY}i(aY,"getCachedDefaultHttpClient");var al=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 dd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}},be={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 $p(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($p,"setURLParameter");function ZQ(t,e){let r=new URL(t);return r.hostname=e,r.toString()}i(ZQ,"setURLHost");function eD(t){try{return new URL(t).pathname}catch{return}}i(eD,"getURLPath");function tD(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(tD,"getURLQueries");async function rD(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(rD,"delay");var u0=class extends al{static{i(this,"StorageBrowserPolicy")}constructor(e,r){super(e,r)}async sendRequest(e){return gt?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD")&&(e.url=$p(e.url,dd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(be.COOKIE),e.headers.remove(be.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}};var d0=class{static{i(this,"StorageBrowserPolicyFactory")}create(e,r){return new u0(e,r)}};var Uh=class extends al{static{i(this,"CredentialPolicy")}sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}};var p0=class extends Uh{static{i(this,"AnonymousCredentialPolicy")}constructor(e,r){super(e,r)}};var $h=class{static{i(this,"Credential")}create(e,r){throw new Error("Method should be implemented in children classes.")}};var nr=class extends $h{static{i(this,"AnonymousCredential")}create(e,r){return new p0(e,r)}};var rRe=require("node:crypto");var Dkt=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]),kkt=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]),Okt=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 nD(t,e){return Lkt(t,e)?-1:1}i(nD,"compareHeader");function Lkt(t,e){let r=[Dkt,kkt,Okt],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(Lkt,"isLessThan");var f0=class extends Uh{static{i(this,"StorageSharedKeyCredentialPolicy")}factory;constructor(e,r,n){super(e,r),this.factory=n}signRequest(e){e.headers.set(be.X_MS_DATE,new Date().toUTCString()),e.body&&(typeof e.body=="string"||e.body!==void 0)&&e.body.length>0&&e.headers.set(be.CONTENT_LENGTH,Buffer.byteLength(e.body));let r=[e.method.toUpperCase(),this.getHeaderValueToSign(e,be.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,be.CONTENT_ENCODING),this.getHeaderValueToSign(e,be.CONTENT_LENGTH),this.getHeaderValueToSign(e,be.CONTENT_MD5),this.getHeaderValueToSign(e,be.CONTENT_TYPE),this.getHeaderValueToSign(e,be.DATE),this.getHeaderValueToSign(e,be.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,be.IF_MATCH),this.getHeaderValueToSign(e,be.IF_NONE_MATCH),this.getHeaderValueToSign(e,be.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,be.RANGE)].join(`
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(be.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===be.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(be.PREFIX_FOR_STORAGE));r.sort((s,o)=>nD(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=eD(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=tD(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 Cr=class extends $h{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new f0(e,r,this)}computeHMACSHA256(e){return(0,rRe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var nn=rl("storage-common");var Wi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Wi||(Wi={}));var qp={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Wi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Mkt=new ii("The operation was aborted."),m0=class extends al{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=qp){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:qp.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):qp.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:qp.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:qp.maxRetryDelayInMs):qp.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:qp.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:qp.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=ZQ(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=$p(s.url,dd.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(nn.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(nn.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 nn.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 nn.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 nn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return nn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(be.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')?(nn.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 Wi.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Wi.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return nn.info(`RetryPolicy: Delay for ${s}ms`),rD(s,n,Mkt)}};var h0=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new m0(e,r,this.retryOptions)}};var Fkt="storageBrowserPolicy";function nRe(){return{name:Fkt,async sendRequest(t,e){return gt||((t.method==="GET"||t.method==="HEAD")&&(t.url=$p(t.url,dd.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(be.COOKIE),t.headers.delete(be.CONTENT_LENGTH)),e(t)}}}i(nRe,"storageBrowserPolicy");var Ukt="StorageCorrectContentLengthPolicy";function sRe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(be.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:Ukt,async sendRequest(e,r){return t(e),r(e)}}}i(sRe,"storageCorrectContentLengthPolicy");var $kt="storageRetryPolicy",yE={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Wi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},qkt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Hkt=new ii("The operation was aborted.");function oRe(t={}){let e=t.retryPolicyType??yE.retryPolicyType,r=t.maxTries??yE.maxTries,n=t.retryDelayInMs??yE.retryDelayInMs,s=t.maxRetryDelayInMs??yE.maxRetryDelayInMs,o=t.secondaryHost??yE.secondaryHost,a=t.tryTimeoutInMs??yE.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:p,error:f}){if(d>=r)return nn.info(`RetryPolicy: Attempt(s) ${d} >= maxTries ${r}, no further try.`),!1;if(f){for(let m of qkt)if(f.name.toUpperCase().includes(m)||f.message.toUpperCase().includes(m)||f.code&&f.code.toString().toUpperCase()===m)return nn.info(`RetryPolicy: Network error ${m} found, will retry.`),!0;if(f?.code==="PARSE_ERROR"&&f?.message.startsWith('Error "Error: Unclosed root tag'))return nn.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 nn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(m===503||m===500)return nn.info(`RetryPolicy: Will retry for status code ${m}.`),!0}if(p&&p?.status>=400){let m=p.headers.get(be.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 Wi.EXPONENTIAL:p=Math.min((Math.pow(2,d-1)-1)*n,s);break;case Wi.FIXED:p=n;break}else p=Math.random()*1e3;return nn.info(`RetryPolicy: Delay for ${p}ms`),p}return i(l,"calculateDelay"),{name:$kt,async sendRequest(u,d){a&&(u.url=$p(u.url,dd.Parameters.TIMEOUT,String(Math.floor(a/1e3))));let p=u.url,f=o?ZQ(u.url,o):void 0,m=!1,h=1,g=!0,y,E;for(;g;){let C=m||!f||!["GET","HEAD","OPTIONS"].includes(u.method)||h%2===1;u.url=C?p:f,y=void 0,E=void 0;try{nn.info(`RetryPolicy: =====> Try=${h} ${C?"Primary":"Secondary"}`),y=await d(u),m=m||!C&&y.status===404}catch(S){if(kh(S))nn.error(`RetryPolicy: Caught error, message: ${S.message}, code: ${S.code}`),E=S;else throw nn.error(`RetryPolicy: Caught error, message: ${Op(S)}`),S}g=c({isPrimaryRetry:C,attempt:h,response:y,error:E}),g&&await rD(l(C,h),u.abortSignal,Hkt),h++}if(y)return y;throw E??new cd("RetryPolicy failed without known error.")}}}i(oRe,"storageRetryPolicy");var iRe=require("node:crypto");var Gkt="storageSharedKeyCredentialPolicy";function cY(t){function e(o){o.headers.set(be.X_MS_DATE,new Date().toUTCString()),o.body&&(typeof o.body=="string"||Buffer.isBuffer(o.body))&&o.body.length>0&&o.headers.set(be.CONTENT_LENGTH,Buffer.byteLength(o.body));let a=[o.method.toUpperCase(),r(o,be.CONTENT_LANGUAGE),r(o,be.CONTENT_ENCODING),r(o,be.CONTENT_LENGTH),r(o,be.CONTENT_MD5),r(o,be.CONTENT_TYPE),r(o,be.DATE),r(o,be.IF_MODIFIED_SINCE),r(o,be.IF_MATCH),r(o,be.IF_NONE_MATCH),r(o,be.IF_UNMODIFIED_SINCE),r(o,be.RANGE)].join(`
`)+`
`+n(o)+s(o),c=(0,iRe.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");o.headers.set(be.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(o,a){let c=o.headers.get(a);return!c||a===be.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(o){let a=[];for(let[l,u]of o.headers)l.toLowerCase().startsWith(be.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>nD(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=eD(o.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=tD(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:Gkt,async sendRequest(o,a){return e(o),a(o)}}}i(cY,"storageSharedKeyCredentialPolicy");var zkt="storageRequestFailureDetailsParserPolicy";function aRe(){return{name:zkt,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(aRe,"storageRequestFailureDetailsParserPolicy");var cRe=require("node:crypto");var sD=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,cRe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var oD="12.31.0",iD="2026-02-06";var aD="https://storage.azure.com/.default",pd={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var za="",lY="*",Vkt=1*1024*1024;var Wkt=4*Vkt;var lRe="AES256",uRe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",dRe=["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"],pRe=["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"],fRe="BlobUsesCustomerSpecifiedEncryption",mRe="BlobDoesNotUseCustomerSpecifiedEncryption",hRe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function fd(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(fd,"isPipelineLike");var A0=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 Lr(t,e={}){t||(t=new nr);let r=new A0([],e);return r._credential=t,r}i(Lr,"newPipeline");function jkt(t){let e=[Jkt,ARe,Ykt,Kkt,Xkt,Zkt,tOt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>eOt(s));return{wrappedPolicies:MJ(r),afterRetry:n}}}}i(jkt,"processDownlevelPipeline");function uY(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?FJ(e):aY(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let o=`azsdk-js-azure-storage-blob/${oD}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;s=Xb({...r,loggingOptions:{additionalAllowedHeaderNames:dRe,additionalAllowedQueryParameters:pRe,logger:jQ.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:WQ,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:oY,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:mJ}),s.addPolicy(sRe()),s.addPolicy(oRe(r.retryOptions),{phase:"Retry"}),s.addPolicy(aRe()),s.addPolicy(nRe());let c=jkt(t);c&&s.addPolicy(c.wrappedPolicies,c.afterRetry?{afterPhase:"Retry"}:void 0);let l=dY(t);ai(l)?s.addPolicy(pE({credential:l,scopes:r.audience??aD,challengeCallbacks:{authorizeRequestOnChallenge:OQ}}),{phase:"Sign"}):l instanceof Cr&&s.addPolicy(cY({accountName:l.accountName,accountKey:l.accountKey}),{phase:"Sign"}),t._corePipeline=s}return{...r,allowInsecureConnection:!0,httpClient:n,pipeline:s}}i(uY,"getCoreClientOptions");function dY(t){if(t._credential)return t._credential;let e=new nr;for(let r of t.factories)if(ai(r.credential))e=r.credential;else if(ARe(r))return r;return e}i(dY,"getCredentialFromPipeline");function ARe(t){return t instanceof Cr?!0:t.constructor.name==="StorageSharedKeyCredential"}i(ARe,"isStorageSharedKeyCredential");function Jkt(t){return t instanceof nr?!0:t.constructor.name==="AnonymousCredential"}i(Jkt,"isAnonymousCredential");function Ykt(t){return ai(t.credential)}i(Ykt,"isCoreHttpBearerTokenFactory");function Kkt(t){return t instanceof d0?!0:t.constructor.name==="StorageBrowserPolicyFactory"}i(Kkt,"isStorageBrowserPolicyFactory");function Xkt(t){return t instanceof h0?!0:t.constructor.name==="StorageRetryPolicyFactory"}i(Xkt,"isStorageRetryPolicyFactory");function Zkt(t){return t.constructor.name==="TelemetryPolicyFactory"}i(Zkt,"isStorageTelemetryPolicyFactory");function eOt(t){return t.constructor.name==="InjectorPolicyFactory"}i(eOt,"isInjectorPolicyFactory");function tOt(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(tOt,"isCoreHttpPolicyFactory");var gRe;(function(t){t.AES256="AES256"})(gRe||(gRe={}));var yRe;(function(t){t.Backup="backup"})(yRe||(yRe={}));var ERe;(function(t){t.NeverExpire="NeverExpire",t.RelativeToCreation="RelativeToCreation",t.RelativeToNow="RelativeToNow",t.Absolute="Absolute"})(ERe||(ERe={}));var CRe;(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"})(CRe||(CRe={}));var ui={};St(ui,{AccessPolicy:()=>fOt,AppendBlobAppendBlockExceptionHeaders:()=>P6,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>Q6,AppendBlobAppendBlockFromUrlHeaders:()=>v6,AppendBlobAppendBlockHeaders:()=>_6,AppendBlobCreateExceptionHeaders:()=>T6,AppendBlobCreateHeaders:()=>N6,AppendBlobSealExceptionHeaders:()=>k6,AppendBlobSealHeaders:()=>D6,ArrowConfiguration:()=>ROt,ArrowField:()=>NOt,BlobAbortCopyFromURLExceptionHeaders:()=>t6,BlobAbortCopyFromURLHeaders:()=>e6,BlobAcquireLeaseExceptionHeaders:()=>F5,BlobAcquireLeaseHeaders:()=>M5,BlobBreakLeaseExceptionHeaders:()=>W5,BlobBreakLeaseHeaders:()=>V5,BlobChangeLeaseExceptionHeaders:()=>z5,BlobChangeLeaseHeaders:()=>G5,BlobCopyFromURLExceptionHeaders:()=>Z5,BlobCopyFromURLHeaders:()=>X5,BlobCreateSnapshotExceptionHeaders:()=>J5,BlobCreateSnapshotHeaders:()=>j5,BlobDeleteExceptionHeaders:()=>w5,BlobDeleteHeaders:()=>S5,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Q5,BlobDeleteImmutabilityPolicyHeaders:()=>v5,BlobDownloadExceptionHeaders:()=>E5,BlobDownloadHeaders:()=>lD,BlobFlatListSegment:()=>mOt,BlobGetAccountInfoExceptionHeaders:()=>s6,BlobGetAccountInfoHeaders:()=>n6,BlobGetPropertiesExceptionHeaders:()=>I5,BlobGetPropertiesHeaders:()=>C5,BlobGetTagsExceptionHeaders:()=>a6,BlobGetTagsHeaders:()=>i6,BlobHierarchyListSegment:()=>yOt,BlobItemInternal:()=>hOt,BlobName:()=>AOt,BlobPrefix:()=>EOt,BlobPropertiesInternal:()=>gOt,BlobQueryExceptionHeaders:()=>o6,BlobQueryHeaders:()=>dD,BlobReleaseLeaseExceptionHeaders:()=>$5,BlobReleaseLeaseHeaders:()=>U5,BlobRenewLeaseExceptionHeaders:()=>H5,BlobRenewLeaseHeaders:()=>q5,BlobServiceProperties:()=>g0,BlobServiceStatistics:()=>pY,BlobSetExpiryExceptionHeaders:()=>R5,BlobSetExpiryHeaders:()=>B5,BlobSetHttpHeadersExceptionHeaders:()=>T5,BlobSetHttpHeadersHeaders:()=>N5,BlobSetImmutabilityPolicyExceptionHeaders:()=>P5,BlobSetImmutabilityPolicyHeaders:()=>_5,BlobSetLegalHoldExceptionHeaders:()=>k5,BlobSetLegalHoldHeaders:()=>D5,BlobSetMetadataExceptionHeaders:()=>L5,BlobSetMetadataHeaders:()=>O5,BlobSetTagsExceptionHeaders:()=>l6,BlobSetTagsHeaders:()=>c6,BlobSetTierExceptionHeaders:()=>r6,BlobSetTierHeaders:()=>uD,BlobStartCopyFromURLExceptionHeaders:()=>K5,BlobStartCopyFromURLHeaders:()=>Y5,BlobTag:()=>dOt,BlobTags:()=>E0,BlobUndeleteExceptionHeaders:()=>b5,BlobUndeleteHeaders:()=>x5,Block:()=>COt,BlockBlobCommitBlockListExceptionHeaders:()=>z6,BlockBlobCommitBlockListHeaders:()=>G6,BlockBlobGetBlockListExceptionHeaders:()=>W6,BlockBlobGetBlockListHeaders:()=>V6,BlockBlobPutBlobFromUrlExceptionHeaders:()=>F6,BlockBlobPutBlobFromUrlHeaders:()=>M6,BlockBlobStageBlockExceptionHeaders:()=>$6,BlockBlobStageBlockFromURLExceptionHeaders:()=>H6,BlockBlobStageBlockFromURLHeaders:()=>q6,BlockBlobStageBlockHeaders:()=>U6,BlockBlobUploadExceptionHeaders:()=>L6,BlockBlobUploadHeaders:()=>O6,BlockList:()=>EY,BlockLookupList:()=>yY,ClearRange:()=>SOt,ContainerAcquireLeaseExceptionHeaders:()=>s5,ContainerAcquireLeaseHeaders:()=>n5,ContainerBreakLeaseExceptionHeaders:()=>u5,ContainerBreakLeaseHeaders:()=>l5,ContainerChangeLeaseExceptionHeaders:()=>p5,ContainerChangeLeaseHeaders:()=>d5,ContainerCreateExceptionHeaders:()=>MY,ContainerCreateHeaders:()=>LY,ContainerDeleteExceptionHeaders:()=>qY,ContainerDeleteHeaders:()=>$Y,ContainerFilterBlobsExceptionHeaders:()=>r5,ContainerFilterBlobsHeaders:()=>t5,ContainerGetAccessPolicyExceptionHeaders:()=>VY,ContainerGetAccessPolicyHeaders:()=>zY,ContainerGetAccountInfoExceptionHeaders:()=>y5,ContainerGetAccountInfoHeaders:()=>g5,ContainerGetPropertiesExceptionHeaders:()=>UY,ContainerGetPropertiesHeaders:()=>FY,ContainerItem:()=>cOt,ContainerListBlobFlatSegmentExceptionHeaders:()=>m5,ContainerListBlobFlatSegmentHeaders:()=>f5,ContainerListBlobHierarchySegmentExceptionHeaders:()=>A5,ContainerListBlobHierarchySegmentHeaders:()=>h5,ContainerProperties:()=>lOt,ContainerReleaseLeaseExceptionHeaders:()=>i5,ContainerReleaseLeaseHeaders:()=>o5,ContainerRenameExceptionHeaders:()=>XY,ContainerRenameHeaders:()=>KY,ContainerRenewLeaseExceptionHeaders:()=>c5,ContainerRenewLeaseHeaders:()=>a5,ContainerRestoreExceptionHeaders:()=>YY,ContainerRestoreHeaders:()=>JY,ContainerSetAccessPolicyExceptionHeaders:()=>jY,ContainerSetAccessPolicyHeaders:()=>WY,ContainerSetMetadataExceptionHeaders:()=>GY,ContainerSetMetadataHeaders:()=>HY,ContainerSubmitBatchExceptionHeaders:()=>e5,ContainerSubmitBatchHeaders:()=>ZY,CorsRule:()=>oOt,DelimitedTextConfiguration:()=>bOt,FilterBlobItem:()=>uOt,FilterBlobSegment:()=>y0,GeoReplication:()=>aOt,JsonTextConfiguration:()=>BOt,KeyInfo:()=>mY,ListBlobsFlatSegmentResponse:()=>AY,ListBlobsHierarchySegmentResponse:()=>gY,ListContainersSegmentResponse:()=>fY,Logging:()=>rOt,Metrics:()=>sOt,PageBlobClearPagesExceptionHeaders:()=>h6,PageBlobClearPagesHeaders:()=>m6,PageBlobCopyIncrementalExceptionHeaders:()=>R6,PageBlobCopyIncrementalHeaders:()=>B6,PageBlobCreateExceptionHeaders:()=>d6,PageBlobCreateHeaders:()=>u6,PageBlobGetPageRangesDiffExceptionHeaders:()=>I6,PageBlobGetPageRangesDiffHeaders:()=>C6,PageBlobGetPageRangesExceptionHeaders:()=>E6,PageBlobGetPageRangesHeaders:()=>y6,PageBlobResizeExceptionHeaders:()=>w6,PageBlobResizeHeaders:()=>S6,PageBlobUpdateSequenceNumberExceptionHeaders:()=>b6,PageBlobUpdateSequenceNumberHeaders:()=>x6,PageBlobUploadPagesExceptionHeaders:()=>f6,PageBlobUploadPagesFromURLExceptionHeaders:()=>g6,PageBlobUploadPagesFromURLHeaders:()=>A6,PageBlobUploadPagesHeaders:()=>p6,PageList:()=>cD,PageRange:()=>IOt,QueryFormat:()=>xOt,QueryRequest:()=>CY,QuerySerialization:()=>wOt,RetentionPolicy:()=>nOt,ServiceFilterBlobsExceptionHeaders:()=>OY,ServiceFilterBlobsHeaders:()=>kY,ServiceGetAccountInfoExceptionHeaders:()=>vY,ServiceGetAccountInfoHeaders:()=>PY,ServiceGetPropertiesExceptionHeaders:()=>xY,ServiceGetPropertiesHeaders:()=>wY,ServiceGetStatisticsExceptionHeaders:()=>BY,ServiceGetStatisticsHeaders:()=>bY,ServiceGetUserDelegationKeyExceptionHeaders:()=>_Y,ServiceGetUserDelegationKeyHeaders:()=>TY,ServiceListContainersSegmentExceptionHeaders:()=>NY,ServiceListContainersSegmentHeaders:()=>RY,ServiceSetPropertiesExceptionHeaders:()=>SY,ServiceSetPropertiesHeaders:()=>IY,ServiceSubmitBatchExceptionHeaders:()=>DY,ServiceSubmitBatchHeaders:()=>QY,SignedIdentifier:()=>pOt,StaticWebsite:()=>iOt,StorageError:()=>L,UserDelegationKey:()=>hY});var g0={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"}}}}},rOt={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"}}}}},nOt={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"}}}}},sOt={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"}}}}},oOt={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"}}}}},iOt={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"}}}}},L={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"}}}}},pY={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},aOt={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"}}}}},fY={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"}}}}},cOt={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"}}}}}}},lOt={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"}}}}},mY={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"}}}}},hY={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"}}}}},y0={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"}}}}},uOt={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"}}}}},E0={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"}}}}}}},dOt={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"}}}}},pOt={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"}}}}},fOt={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"}}}}},AY={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"}}}}},mOt={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"}}}}}}},hOt={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"}}}}},AOt={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"}}}}},gOt={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"}}}}},gY={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"}}}}},yOt={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"}}}}}}},EOt={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},yY={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"}}}}}}},EY={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"}}}}}}},COt={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"}}}}},cD={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"}}}}},IOt={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"}}}}},SOt={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"}}}}},CY={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"}}}}},wOt={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},xOt={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"}}}}}}},bOt={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"}}}}},BOt={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},ROt={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"}}}}}}},NOt={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"}}}}},IY={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"}}}}},SY={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},wY={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"}}}}},xY={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bY={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"}}}}},BY={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},RY={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"}}}}},NY={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TY={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"}}}}},_Y={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},PY={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"}}}}},vY={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QY={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"}}}}},DY={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},kY={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"}}}}},OY={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},LY={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"}}}}},MY={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},FY={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"}}}}},UY={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$Y={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"}}}}},qY={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HY={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"}}}}},GY={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},zY={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"}}}}},VY={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},WY={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"}}}}},jY={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JY={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"}}}}},YY={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KY={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"}}}}},XY={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ZY={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"}}}}},e5={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},t5={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"}}}}},r5={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n5={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"}}}}},s5={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},o5={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"}}}}},i5={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},a5={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"}}}}},c5={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},l5={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"}}}}},u5={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},d5={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"}}}}},p5={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},f5={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"}}}}},m5={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},h5={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"}}}}},A5={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},g5={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"}}}}},y5={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lD={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"}}}}},E5={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C5={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"}}}}},I5={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S5={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"}}}}},w5={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x5={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"}}}}},b5={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B5={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"}}}}},R5={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N5={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"}}}}},T5={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_5={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"]}}}}},P5={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v5={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"}}}}},Q5={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},D5={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"}}}}},k5={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O5={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"}}}}},L5={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M5={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"}}}}},F5={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},U5={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"}}}}},$5={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q5={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"}}}}},H5={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},G5={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"}}}}},z5={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},V5={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"}}}}},W5={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},j5={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"}}}}},J5={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},Y5={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"}}}}},K5={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"}}}}},X5={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"}}}}},Z5={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"}}}}},e6={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"}}}}},t6={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uD={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"}}}}},r6={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},n6={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"}}}}},s6={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dD={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"}}}}},o6={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},i6={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"}}}}},a6={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},c6={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"}}}}},l6={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},u6={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"}}}}},d6={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},p6={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"}}}}},f6={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},m6={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"}}}}},h6={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},A6={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"}}}}},g6={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"}}}}},y6={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"}}}}},E6={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},C6={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"}}}}},I6={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},S6={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"}}}}},w6={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},x6={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"}}}}},b6={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},B6={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"}}}}},R6={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},N6={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"}}}}},T6={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_6={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"}}}}},P6={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},v6={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"}}}}},Q6={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"}}}}},D6={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"}}}}},k6={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},O6={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"}}}}},L6={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},M6={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"}}}}},F6={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"}}}}},U6={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"}}}}},$6={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},q6={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"}}}}},H6={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"}}}}},G6={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"}}}}},z6={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},V6={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"}}}}},W6={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var cl={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},IRe={parameterPath:"blobServiceProperties",mapper:g0},ji={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},M={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},C0={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Ji={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},F={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},U={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"}}},Y={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},SRe={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:!0,serializedName:"comp",type:{name:"String"}}},I0={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},S0={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},ll={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},ul={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}},wRe={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"},xRe={parameterPath:"keyInfo",mapper:mY},bRe={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:!0,serializedName:"comp",type:{name:"String"}}},EE={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},pD={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},fD={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},In={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},mD={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}},hD={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},AD={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},Sn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},as={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}},j6={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},BRe={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},RRe={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}},He={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Le={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},Me={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},gD={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},J6={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},NRe={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},yD={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},TRe={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},_Re={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}},PRe={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}},vRe={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},QRe={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}},Yi={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},ED={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},CD={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},ID={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},SD={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Hp={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},wD={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},xD={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},bD={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},BD={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},RD={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},Y6={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"},K6={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}},DRe={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}},ks={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},dl={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},qh={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},kRe={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},ORe={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},Ir={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},Sr={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},wr={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},ct={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},lt={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},tt={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},LRe={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}},MRe={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}},FRe={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}},URe={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},$Re={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}},pl={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},fl={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},ml={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},hl={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},Al={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},gl={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},X6={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Va={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},Wa={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},qRe={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}},HRe={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},Vr={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},GRe={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}},md={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"]}}},Z6={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},yl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},El={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},Cl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},Il={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},ND={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},Hh={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},ja={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},zRe={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},Sl={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},VRe={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},hd={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},Ad={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},TD={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},gd={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}},WRe={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},jRe={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}},JRe={parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}},YRe={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}},KRe={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"]}}},XRe={parameterPath:["options","queryRequest"],mapper:CY},ZRe={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}},e9={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},t9={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}},r9={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},n9={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}},s9={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}},eNe={parameterPath:["options","tags"],mapper:E0},Ki={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},wl={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},tNe={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},o9={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},i9={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},Gh={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},zh={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},Vh={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},_D={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},a9={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},PD={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},vD={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},QD={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},rNe={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},CE={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},nNe={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},IE={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},sNe={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}},c9={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},oNe={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}},iNe={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}},aNe={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}},cNe={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},lNe={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},l9={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},u9={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},DD={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},kD={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},uNe={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}},d9={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},dNe={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}},p9={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},f9={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},pNe={parameterPath:"blocks",mapper:yY},m9={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},fNe={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};var OD=class{static{i(this,"ServiceImpl")}client;constructor(e){this.client=e}setProperties(e,r){return this.client.sendOperationRequest({blobServiceProperties:e,options:r},TOt)}getProperties(e){return this.client.sendOperationRequest({options:e},_Ot)}getStatistics(e){return this.client.sendOperationRequest({options:e},POt)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},vOt)}getUserDelegationKey(e,r){return this.client.sendOperationRequest({keyInfo:e,options:r},QOt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},DOt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},kOt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},OOt)}},Gp=ci(ui,!0),TOt={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:IY},default:{bodyMapper:L,headersMapper:SY}},requestBody:IRe,queryParameters:[C0,Ji,F],urlParameters:[M],headerParameters:[cl,ji,U,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Gp},_Ot={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:g0,headersMapper:wY},default:{bodyMapper:L,headersMapper:xY}},queryParameters:[C0,Ji,F],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:Gp},POt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:pY,headersMapper:bY},default:{bodyMapper:L,headersMapper:BY}},queryParameters:[C0,F,SRe],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:Gp},vOt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:fY,headersMapper:RY},default:{bodyMapper:L,headersMapper:NY}},queryParameters:[F,I0,S0,ll,ul,wRe],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:Gp},QOt={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:hY,headersMapper:TY},default:{bodyMapper:L,headersMapper:_Y}},requestBody:xRe,queryParameters:[C0,F,bRe],urlParameters:[M],headerParameters:[cl,ji,U,$],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Gp},DOt={path:"/",httpMethod:"GET",responses:{200:{headersMapper:PY},default:{bodyMapper:L,headersMapper:vY}},queryParameters:[Ji,F,EE],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:Gp},kOt={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:QY},default:{bodyMapper:L,headersMapper:DY}},requestBody:pD,queryParameters:[F,fD],urlParameters:[M],headerParameters:[ji,U,$,In,mD],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Gp},OOt={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:y0,headersMapper:kY},default:{bodyMapper:L,headersMapper:OY}},queryParameters:[F,ll,ul,hD,AD],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:Gp};var LD=class{static{i(this,"ContainerImpl")}client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},LOt)}getProperties(e){return this.client.sendOperationRequest({options:e},MOt)}delete(e){return this.client.sendOperationRequest({options:e},FOt)}setMetadata(e){return this.client.sendOperationRequest({options:e},UOt)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},$Ot)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},qOt)}restore(e){return this.client.sendOperationRequest({options:e},HOt)}rename(e,r){return this.client.sendOperationRequest({sourceContainerName:e,options:r},GOt)}submitBatch(e,r,n,s){return this.client.sendOperationRequest({contentLength:e,multipartContentType:r,body:n,options:s},zOt)}filterBlobs(e){return this.client.sendOperationRequest({options:e},VOt)}acquireLease(e){return this.client.sendOperationRequest({options:e},WOt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},jOt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},JOt)}breakLease(e){return this.client.sendOperationRequest({options:e},YOt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},KOt)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},XOt)}listBlobHierarchySegment(e,r){return this.client.sendOperationRequest({delimiter:e,options:r},ZOt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},eLt)}},wn=ci(ui,!0),LOt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:LY},default:{bodyMapper:L,headersMapper:MY}},queryParameters:[F,Sn],urlParameters:[M],headerParameters:[U,$,Y,as,j6,BRe,RRe],isXML:!0,serializer:wn},MOt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:FY},default:{bodyMapper:L,headersMapper:UY}},queryParameters:[F,Sn],urlParameters:[M],headerParameters:[U,$,Y,He],isXML:!0,serializer:wn},FOt={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:$Y},default:{bodyMapper:L,headersMapper:qY}},queryParameters:[F,Sn],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me],isXML:!0,serializer:wn},UOt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:HY},default:{bodyMapper:L,headersMapper:GY}},queryParameters:[F,Sn,gD],urlParameters:[M],headerParameters:[U,$,Y,as,He,Le],isXML:!0,serializer:wn},$Ot={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:zY},default:{bodyMapper:L,headersMapper:VY}},queryParameters:[F,Sn,J6],urlParameters:[M],headerParameters:[U,$,Y,He],isXML:!0,serializer:wn},qOt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:WY},default:{bodyMapper:L,headersMapper:jY}},requestBody:NRe,queryParameters:[F,Sn,J6],urlParameters:[M],headerParameters:[cl,ji,U,$,j6,He,Le,Me],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:wn},HOt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:JY},default:{bodyMapper:L,headersMapper:YY}},queryParameters:[F,Sn,yD],urlParameters:[M],headerParameters:[U,$,Y,TRe,_Re],isXML:!0,serializer:wn},GOt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:KY},default:{bodyMapper:L,headersMapper:XY}},queryParameters:[F,Sn,PRe],urlParameters:[M],headerParameters:[U,$,Y,vRe,QRe],isXML:!0,serializer:wn},zOt={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ZY},default:{bodyMapper:L,headersMapper:e5}},requestBody:pD,queryParameters:[F,fD,Sn],urlParameters:[M],headerParameters:[ji,U,$,In,mD],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:wn},VOt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:y0,headersMapper:t5},default:{bodyMapper:L,headersMapper:r5}},queryParameters:[F,ll,ul,hD,AD,Sn],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:wn},WOt={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:n5},default:{bodyMapper:L,headersMapper:s5}},queryParameters:[F,Sn,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,ED,CD,ID],isXML:!0,serializer:wn},jOt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:o5},default:{bodyMapper:L,headersMapper:i5}},queryParameters:[F,Sn,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,SD,Hp],isXML:!0,serializer:wn},JOt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:a5},default:{bodyMapper:L,headersMapper:c5}},queryParameters:[F,Sn,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,Hp,wD],isXML:!0,serializer:wn},YOt={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:l5},default:{bodyMapper:L,headersMapper:u5}},queryParameters:[F,Sn,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,xD,bD],isXML:!0,serializer:wn},KOt={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:d5},default:{bodyMapper:L,headersMapper:p5}},queryParameters:[F,Sn,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,Hp,BD,RD],isXML:!0,serializer:wn},XOt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:AY,headersMapper:f5},default:{bodyMapper:L,headersMapper:m5}},queryParameters:[F,I0,S0,ll,ul,Sn,Y6,K6],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:wn},ZOt={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:gY,headersMapper:h5},default:{bodyMapper:L,headersMapper:A5}},queryParameters:[F,I0,S0,ll,ul,Sn,Y6,K6,DRe],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:wn},eLt={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:g5},default:{bodyMapper:L,headersMapper:y5}},queryParameters:[Ji,F,EE],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:wn};var MD=class{static{i(this,"BlobImpl")}client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},tLt)}getProperties(e){return this.client.sendOperationRequest({options:e},rLt)}delete(e){return this.client.sendOperationRequest({options:e},nLt)}undelete(e){return this.client.sendOperationRequest({options:e},sLt)}setExpiry(e,r){return this.client.sendOperationRequest({expiryOptions:e,options:r},oLt)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},iLt)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},aLt)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},cLt)}setLegalHold(e,r){return this.client.sendOperationRequest({legalHold:e,options:r},lLt)}setMetadata(e){return this.client.sendOperationRequest({options:e},uLt)}acquireLease(e){return this.client.sendOperationRequest({options:e},dLt)}releaseLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},pLt)}renewLease(e,r){return this.client.sendOperationRequest({leaseId:e,options:r},fLt)}changeLease(e,r,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:r,options:n},mLt)}breakLease(e){return this.client.sendOperationRequest({options:e},hLt)}createSnapshot(e){return this.client.sendOperationRequest({options:e},ALt)}startCopyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},gLt)}copyFromURL(e,r){return this.client.sendOperationRequest({copySource:e,options:r},yLt)}abortCopyFromURL(e,r){return this.client.sendOperationRequest({copyId:e,options:r},ELt)}setTier(e,r){return this.client.sendOperationRequest({tier:e,options:r},CLt)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},ILt)}query(e){return this.client.sendOperationRequest({options:e},SLt)}getTags(e){return this.client.sendOperationRequest({options:e},wLt)}setTags(e){return this.client.sendOperationRequest({options:e},xLt)}},sr=ci(ui,!0),tLt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:lD},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:lD},default:{bodyMapper:L,headersMapper:E5}},queryParameters:[F,ks,dl],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,qh,kRe,ORe,Ir,Sr,wr,ct,lt,tt],isXML:!0,serializer:sr},rLt={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:C5},default:{bodyMapper:L,headersMapper:I5}},queryParameters:[F,ks,dl],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,Ir,Sr,wr,ct,lt,tt],isXML:!0,serializer:sr},nLt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:S5},default:{bodyMapper:L,headersMapper:w5}},queryParameters:[F,ks,dl,MRe],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,ct,lt,tt,LRe],isXML:!0,serializer:sr},sLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:x5},default:{bodyMapper:L,headersMapper:b5}},queryParameters:[F,yD],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:sr},oLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:B5},default:{bodyMapper:L,headersMapper:R5}},queryParameters:[F,FRe],urlParameters:[M],headerParameters:[U,$,Y,URe,$Re],isXML:!0,serializer:sr},iLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:N5},default:{bodyMapper:L,headersMapper:T5}},queryParameters:[Ji,F],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,ct,lt,tt,pl,fl,ml,hl,Al,gl],isXML:!0,serializer:sr},aLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_5},default:{bodyMapper:L,headersMapper:P5}},queryParameters:[F,ks,dl,X6],urlParameters:[M],headerParameters:[U,$,Y,Me,Va,Wa],isXML:!0,serializer:sr},cLt={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:v5},default:{bodyMapper:L,headersMapper:Q5}},queryParameters:[F,ks,dl,X6],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:sr},lLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:D5},default:{bodyMapper:L,headersMapper:k5}},queryParameters:[F,ks,dl,qRe],urlParameters:[M],headerParameters:[U,$,Y,HRe],isXML:!0,serializer:sr},uLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:O5},default:{bodyMapper:L,headersMapper:L5}},queryParameters:[F,gD],urlParameters:[M],headerParameters:[U,$,Y,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,Vr],isXML:!0,serializer:sr},dLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:M5},default:{bodyMapper:L,headersMapper:F5}},queryParameters:[F,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,ED,CD,ID,ct,lt,tt],isXML:!0,serializer:sr},pLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:U5},default:{bodyMapper:L,headersMapper:$5}},queryParameters:[F,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,SD,Hp,ct,lt,tt],isXML:!0,serializer:sr},fLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:q5},default:{bodyMapper:L,headersMapper:H5}},queryParameters:[F,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,Hp,wD,ct,lt,tt],isXML:!0,serializer:sr},mLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:G5},default:{bodyMapper:L,headersMapper:z5}},queryParameters:[F,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,Hp,BD,RD,ct,lt,tt],isXML:!0,serializer:sr},hLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:V5},default:{bodyMapper:L,headersMapper:W5}},queryParameters:[F,Yi],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,xD,bD,ct,lt,tt],isXML:!0,serializer:sr},ALt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:j5},default:{bodyMapper:L,headersMapper:J5}},queryParameters:[F,GRe],urlParameters:[M],headerParameters:[U,$,Y,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,Vr],isXML:!0,serializer:sr},gLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Y5},default:{bodyMapper:L,headersMapper:K5}},queryParameters:[F],urlParameters:[M],headerParameters:[U,$,Y,as,He,Le,Me,ct,lt,tt,Va,Wa,md,Z6,yl,El,Cl,Il,ND,Hh,ja,zRe,Sl],isXML:!0,serializer:sr},yLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:X5},default:{bodyMapper:L,headersMapper:Z5}},queryParameters:[F],urlParameters:[M],headerParameters:[U,$,Y,as,He,Le,Me,ct,lt,tt,Va,Wa,Vr,md,yl,El,Cl,Il,Hh,ja,Sl,VRe,hd,Ad,TD,gd],isXML:!0,serializer:sr},ELt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:e6},default:{bodyMapper:L,headersMapper:t6}},queryParameters:[F,WRe,JRe],urlParameters:[M],headerParameters:[U,$,Y,He,jRe],isXML:!0,serializer:sr},CLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:uD},202:{headersMapper:uD},default:{bodyMapper:L,headersMapper:r6}},queryParameters:[F,ks,dl,YRe],urlParameters:[M],headerParameters:[U,$,Y,He,tt,Z6,KRe],isXML:!0,serializer:sr},ILt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:n6},default:{bodyMapper:L,headersMapper:s6}},queryParameters:[Ji,F,EE],urlParameters:[M],headerParameters:[U,$,Y],isXML:!0,serializer:sr},SLt={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:dD},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:dD},default:{bodyMapper:L,headersMapper:o6}},requestBody:XRe,queryParameters:[F,ks,ZRe],urlParameters:[M],headerParameters:[cl,ji,U,$,He,Le,Me,Ir,Sr,wr,ct,lt,tt],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:sr},wLt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:E0,headersMapper:i6},default:{bodyMapper:L,headersMapper:a6}},queryParameters:[F,ks,dl,e9],urlParameters:[M],headerParameters:[U,$,Y,He,tt,t9,r9,n9,s9],isXML:!0,serializer:sr},xLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:c6},default:{bodyMapper:L,headersMapper:l6}},requestBody:eNe,queryParameters:[F,dl,e9],urlParameters:[M],headerParameters:[cl,ji,U,$,He,tt,t9,r9,n9,s9,Ki,wl],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:sr};var FD=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},bLt)}uploadPages(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},BLt)}clearPages(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},RLt)}uploadPagesFromURL(e,r,n,s,o){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:r,contentLength:n,range:s,options:o},NLt)}getPageRanges(e){return this.client.sendOperationRequest({options:e},TLt)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},_Lt)}resize(e,r){return this.client.sendOperationRequest({blobContentLength:e,options:r},PLt)}updateSequenceNumber(e,r){return this.client.sendOperationRequest({sequenceNumberAction:e,options:r},vLt)}copyIncremental(e,r){return this.client.sendOperationRequest({copySource:e,options:r},QLt)}},yd=ci(ui,!0),bLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:u6},default:{bodyMapper:L,headersMapper:d6}},queryParameters:[F],urlParameters:[M],headerParameters:[U,$,Y,In,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,pl,fl,ml,hl,Al,gl,Va,Wa,Vr,md,ja,Sl,tNe,o9,i9],isXML:!0,serializer:yd},BLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:p6},default:{bodyMapper:L,headersMapper:f6}},requestBody:zh,queryParameters:[F,_D],urlParameters:[M],headerParameters:[U,$,In,He,Le,Me,qh,Ir,Sr,wr,ct,lt,tt,Vr,Ki,wl,Gh,Vh,a9,PD,vD,QD],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:yd},RLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:m6},default:{bodyMapper:L,headersMapper:h6}},queryParameters:[F,_D],urlParameters:[M],headerParameters:[U,$,Y,In,He,Le,Me,qh,Ir,Sr,wr,ct,lt,tt,Vr,PD,vD,QD,rNe],isXML:!0,serializer:yd},NLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:A6},default:{bodyMapper:L,headersMapper:g6}},queryParameters:[F,_D],urlParameters:[M],headerParameters:[U,$,Y,In,He,Le,Me,Ir,Sr,wr,ct,lt,tt,Vr,yl,El,Cl,Il,hd,Ad,gd,a9,PD,vD,QD,CE,nNe,IE,sNe],isXML:!0,serializer:yd},TLt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:cD,headersMapper:y6},default:{bodyMapper:L,headersMapper:E6}},queryParameters:[F,ll,ul,ks,c9],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,qh,ct,lt,tt],isXML:!0,serializer:yd},_Lt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:cD,headersMapper:C6},default:{bodyMapper:L,headersMapper:I6}},queryParameters:[F,ll,ul,ks,c9,oNe],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,qh,ct,lt,tt,iNe],isXML:!0,serializer:yd},PLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:S6},default:{bodyMapper:L,headersMapper:w6}},queryParameters:[Ji,F],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,Ir,Sr,wr,ct,lt,tt,Vr,o9],isXML:!0,serializer:yd},vLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:x6},default:{bodyMapper:L,headersMapper:b6}},queryParameters:[Ji,F],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,ct,lt,tt,i9,aNe],isXML:!0,serializer:yd},QLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:B6},default:{bodyMapper:L,headersMapper:R6}},queryParameters:[F,cNe],urlParameters:[M],headerParameters:[U,$,Y,Le,Me,ct,lt,tt,Hh],isXML:!0,serializer:yd};var UD=class{static{i(this,"AppendBlobImpl")}client;constructor(e){this.client=e}create(e,r){return this.client.sendOperationRequest({contentLength:e,options:r},DLt)}appendBlock(e,r,n){return this.client.sendOperationRequest({contentLength:e,body:r,options:n},kLt)}appendBlockFromUrl(e,r,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:r,options:n},OLt)}seal(e){return this.client.sendOperationRequest({options:e},LLt)}},$D=ci(ui,!0),DLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:N6},default:{bodyMapper:L,headersMapper:T6}},queryParameters:[F],urlParameters:[M],headerParameters:[U,$,Y,In,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,pl,fl,ml,hl,Al,gl,Va,Wa,Vr,ja,Sl,lNe],isXML:!0,serializer:$D},kLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_6},default:{bodyMapper:L,headersMapper:P6}},requestBody:zh,queryParameters:[F,l9],urlParameters:[M],headerParameters:[U,$,In,He,Le,Me,Ir,Sr,wr,ct,lt,tt,Vr,Ki,wl,Gh,Vh,u9,DD],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:$D},OLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:v6},default:{bodyMapper:L,headersMapper:Q6}},queryParameters:[F,l9],urlParameters:[M],headerParameters:[U,$,Y,In,He,Le,Me,Ir,Sr,wr,ct,lt,tt,Vr,yl,El,Cl,Il,hd,Ad,gd,Ki,CE,IE,u9,DD,kD],isXML:!0,serializer:$D},LLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:D6},default:{bodyMapper:L,headersMapper:k6}},queryParameters:[F,uNe],urlParameters:[M],headerParameters:[U,$,Y,He,Le,Me,ct,lt,DD],isXML:!0,serializer:$D};var qD=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},MLt)}putBlobFromUrl(e,r,n){return this.client.sendOperationRequest({contentLength:e,copySource:r,options:n},FLt)}stageBlock(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,body:n,options:s},ULt)}stageBlockFromURL(e,r,n,s){return this.client.sendOperationRequest({blockId:e,contentLength:r,sourceUrl:n,options:s},$Lt)}commitBlockList(e,r){return this.client.sendOperationRequest({blocks:e,options:r},qLt)}getBlockList(e,r){return this.client.sendOperationRequest({listType:e,options:r},HLt)}},wE=ci(ui,!0),MLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:O6},default:{bodyMapper:L,headersMapper:L6}},requestBody:zh,queryParameters:[F],urlParameters:[M],headerParameters:[U,$,In,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,pl,fl,ml,hl,Al,gl,Va,Wa,Vr,md,ja,Sl,Ki,wl,Gh,Vh,d9],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:wE},FLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:M6},default:{bodyMapper:L,headersMapper:F6}},queryParameters:[F],urlParameters:[M],headerParameters:[U,$,Y,In,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,pl,fl,ml,hl,Al,gl,Vr,md,yl,El,Cl,Il,ND,Hh,ja,hd,Ad,TD,gd,Ki,d9,dNe],isXML:!0,serializer:wE},ULt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:U6},default:{bodyMapper:L,headersMapper:$6}},requestBody:zh,queryParameters:[F,p9,f9],urlParameters:[M],headerParameters:[U,$,In,He,Ir,Sr,wr,Vr,Ki,wl,Gh,Vh],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:wE},$Lt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:q6},default:{bodyMapper:L,headersMapper:H6}},queryParameters:[F,p9,f9],urlParameters:[M],headerParameters:[U,$,Y,In,He,Ir,Sr,wr,Vr,yl,El,Cl,Il,hd,Ad,gd,CE,IE,kD],isXML:!0,serializer:wE},qLt={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:G6},default:{bodyMapper:L,headersMapper:z6}},requestBody:pNe,queryParameters:[F,m9],urlParameters:[M],headerParameters:[cl,ji,U,$,as,He,Le,Me,Ir,Sr,wr,ct,lt,tt,pl,fl,ml,hl,Al,gl,Va,Wa,Vr,md,ja,Sl,Ki,wl],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:wE},HLt={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:EY,headersMapper:V6},default:{bodyMapper:L,headersMapper:W6}},queryParameters:[F,ks,m9,fNe],urlParameters:[M],headerParameters:[U,$,Y,He,tt],isXML:!0,serializer:wE};var w0=class extends n0{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 OD(this),this.container=new LD(this),this.blob=new MD(this),this.pageBlob=new FD(this),this.appendBlob=new UD(this),this.blockBlob=new qD(this)}service;container;blob;pageBlob;appendBlob;blockBlob};var x0=class extends w0{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 hNe(t){let e=new URL(t),r=e.pathname;return r=r||"/",r=zLt(r),e.pathname=r,e.toString()}i(hNe,"escapeURLPath");function GLt(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(GLt,"getProxyUriFromDevConnString");function Wh(t,e){let r=t.split(";");for(let n of r)if(n.trim().startsWith(e))return n.trim().match(e+"=(.*)")[1];return""}i(Wh,"getValueInConnString");function jh(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=GLt(t),t=uRe);let r=Wh(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=Wh(t,"AccountName"),o=Buffer.from(Wh(t,"AccountKey"),"base64"),!r){n=Wh(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=Wh(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=Wh(t,"SharedAccessSignature"),s=Wh(t,"AccountName");if(s||(s=y9(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(jh,"extractConnectionStringParts");function zLt(t){return encodeURIComponent(t).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}i(zLt,"escape");function sn(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(sn,"appendToURLPath");function xE(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(xE,"setURLParameter");function h9(t,e){return new URL(t).searchParams.get(e)??void 0}i(h9,"getURLParameter");function ANe(t){try{let e=new URL(t);return e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol}catch{return}}i(ANe,"getURLScheme");function b0(t,e){let r=new URL(t),n=r.search;return n?n+="&"+e:n=e,r.search=n,r.toString()}i(b0,"appendToURLQuery");function yt(t,e=!0){let r=t.toISOString();return e?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}i(yt,"truncatedISO8061Date");function VLt(t){return gt?Buffer.from(t).toString("base64"):btoa(t)}i(VLt,"base64encode");function A9(t,e){t.length>42&&(t=t.slice(0,42));let o=t+WLt(e.toString(),48-t.length,"0");return VLt(o)}i(A9,"generateBlockID");function WLt(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(WLt,"padStart");function g9(t,e){return t.toLocaleLowerCase()===e.toLocaleLowerCase()}i(g9,"iEqual");function y9(t){let e=new URL(t),r;try{return e.hostname.split(".")[1]==="blob"?r=e.hostname.split(".")[0]:HD(e)?r=e.pathname.split("/")[1]:r="",r}catch{throw new Error("Unable to extract accountName with provided information.")}}i(y9,"getAccountNameFromUrl");function HD(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&&hRe.includes(t.port)}i(HD,"isIpEndpointStyle");function zp(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(zp,"toBlobTagsString");function gNe(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(gNe,"toBlobTags");function GD(t){if(t===void 0)return;let e={};for(let r of t.blobTagSet)e[r.key]=r.value;return e}i(GD,"toTags");function E9(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(E9,"toQuerySerialization");function zD(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(zD,"parseObjectReplicationRecord");function bE(t){return t?t.scheme+" "+t.value:void 0}i(bE,"httpAuthorizationToString");function*C9(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(C9,"ExtractPageRangeInfoItems");function ue(t){if("_response"in t)return t;throw new TypeError(`Unexpected response object ${t}`)}i(ue,"assertResponse");var BE=class{static{i(this,"StorageClient")}url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,r){this.url=hNe(e),this.accountName=y9(e),this.pipeline=r,this.storageClientContext=new x0(this.url,uY(r)),this.isHttps=g9(ANe(this.url)||"","https"),this.credential=dY(r);let n=this.storageClientContext;n.requestContentType=void 0}};var ee=Jb({packageName:"@azure/storage-blob",packageVersion:oD,namespace:"Microsoft.Storage"});var xl=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 bl=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 Ja(t){return t.end?`${t.start}-${t.end}`:t.start}i(Ja,"ipRangeToString");var yNe;(function(t){t.Https="https",t.HttpsAndHttp="https,http"})(yNe||(yNe={}));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,g,y,E,C,S,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=g,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=C,this.correlationId=S))}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?yt(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(r,n,this.expiresOn?yt(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(r,n,this.ipRange?Ja(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?yt(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(r,n,this.signedExpiresOn?yt(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 B0(t,e,r){return R0(t,e,r).sasQueryParameters}i(B0,"generateBlobSASQueryParameters");function R0(t,e,r){let n=t.version?t.version:iD,s=e instanceof Cr?e:void 0,o;if(s===void 0&&r!==void 0&&(o=new sD(r,e)),s===void 0&&o===void 0)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return s!==void 0?YLt(t,s):n>="2025-07-05"?eMt(t,o):ZLt(t,o);if(n>="2018-11-09")return s!==void 0?JLt(t,s):n>="2020-02-10"?XLt(t,o):KLt(t,o);if(n>="2015-04-05"){if(s!==void 0)return jLt(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(R0,"generateBlobSASQueryParametersInternal");function jLt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():n=bl.parse(t.permissions.toString()).toString());let s=[n||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ja(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(jLt,"generateBlobSASQueryParameters20150405");function JLt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():s=bl.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ja(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(JLt,"generateBlobSASQueryParameters20181109");function YLt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():s=bl.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ja(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(YLt,"generateBlobSASQueryParameters20201206");function KLt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():s=bl.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?yt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?yt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ja(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(KLt,"generateBlobSASQueryParametersUDK20181109");function XLt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():s=bl.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?yt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?yt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ja(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(XLt,"generateBlobSASQueryParametersUDK20200210");function ZLt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():s=bl.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?yt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?yt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ja(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(ZLt,"generateBlobSASQueryParametersUDK20201206");function eMt(t,e){if(t=Yh(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=xl.parse(t.permissions.toString()).toString():s=bl.parse(t.permissions.toString()).toString());let o=[s||"",t.startsOn?yt(t.startsOn,!1):"",t.expiresOn?yt(t.expiresOn,!1):"",Jh(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?yt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?yt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ja(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(eMt,"generateBlobSASQueryParametersUDK20250705");function Jh(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Jh,"getCanonicalName");function Yh(t){let e=t.version?t.version:iD;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(Yh,"SASSignatureValuesSanityCheckAndAutofill");var N0=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=uE()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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=>ue(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!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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=ue(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!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||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=>ue(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!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||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!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||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 ue(await this._containerOrBlobOperation.breakLease(s))})}};var ENe=require("node:stream");var VD=class extends ENe.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 ii("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 WD=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 gt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r,n,s,o={}){this.originalResponse=e,this.blobDownloadStream=new VD(this.originalResponse.readableStreamBody,r,n,s,o)}};var bNe=require("node:stream");var I9=new Uint8Array([79,98,106,1]),CNe="avro.codec",INe="avro.schema";var dr=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}},Kh;(function(t){t.RECORD="record",t.ENUM="enum",t.ARRAY="array",t.MAP="map",t.UNION="union",t.FIXED="fixed"})(Kh||(Kh={}));var xn;(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"})(xn||(xn={}));var Ed=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 xn.NULL:case xn.BOOLEAN:case xn.INT:case xn.LONG:case xn.FLOAT:case xn.DOUBLE:case xn.BYTES:case xn.STRING:return new S9(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new x9(e.map(t.fromSchema))}static fromObjectSchema(e){let r=e.type;try{return t.fromStringSchema(r)}catch{}switch(r){case Kh.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 B9(n,e.name);case Kh.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 w9(e.symbols);case Kh.MAP:if(!e.values)throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`);return new b9(t.fromSchema(e.values));case Kh.ARRAY:case Kh.FIXED:default:throw new Error(`Unexpected Avro type ${r} in ${e}`)}}},S9=class extends Ed{static{i(this,"AvroPrimitiveType")}_primitive;constructor(e){super(),this._primitive=e}read(e,r={}){switch(this._primitive){case xn.NULL:return dr.readNull();case xn.BOOLEAN:return dr.readBoolean(e,r);case xn.INT:return dr.readInt(e,r);case xn.LONG:return dr.readLong(e,r);case xn.FLOAT:return dr.readFloat(e,r);case xn.DOUBLE:return dr.readDouble(e,r);case xn.BYTES:return dr.readBytes(e,r);case xn.STRING:return dr.readString(e,r);default:throw new Error("Unknown Avro Primitive")}}},w9=class extends Ed{static{i(this,"AvroEnumType")}_symbols;constructor(e){super(),this._symbols=e}async read(e,r={}){let n=await dr.readInt(e,r);return this._symbols[n]}},x9=class extends Ed{static{i(this,"AvroUnionType")}_types;constructor(e){super(),this._types=e}async read(e,r={}){let n=await dr.readInt(e,r);return this._types[n].read(e,r)}},b9=class extends Ed{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 dr.readMap(e,n,r)}},B9=class extends Ed{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 R9(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(R9,"arraysEqual");var T0=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 dr.readFixedBytes(this._headerStream,I9.length,{abortSignal:e.abortSignal});if(!R9(r,I9))throw new Error("Stream is not an Avro file.");this._metadata=await dr.readMap(this._headerStream,dr.readString,{abortSignal:e.abortSignal});let n=this._metadata[CNe];if(!(n==null||n==="null"))throw new Error("Codecs are not supported");this._syncMarker=await dr.readFixedBytes(this._headerStream,16,{abortSignal:e.abortSignal});let s=JSON.parse(this._metadata[INe]);if(this._itemType=Ed.fromSchema(s),this._blockOffset===0&&(this._blockOffset=this._initialBlockOffset+this._dataStream.position),this._itemsRemainingInBlock=await dr.readLong(this._dataStream,{abortSignal:e.abortSignal}),await dr.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 dr.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!R9(this._syncMarker,n))throw new Error("Stream is not a valid Avro file.");try{this._itemsRemainingInBlock=await dr.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await dr.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield r}}};var _0=class{static{i(this,"AvroReadable")}};var xNe=require("buffer");var wNe=new ii("Reading from the avro stream was aborted."),P0=class extends _0{static{i(this,"AvroReadableFromStream")}_position;_readable;toUint8Array(e){return typeof e=="string"?xNe.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 wNe;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(wNe)},"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 jD=class extends bNe.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 T0(new P0(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 JD=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 gt?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,r={}){this.originalResponse=e,this.blobDownloadStream=new jD(this.originalResponse.readableStreamBody,r)}};var N9;(function(t){t.Hot="Hot",t.Cool="Cool",t.Cold="Cold",t.Archive="Archive"})(N9||(N9={}));var T9;(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"})(T9||(T9={}));function Vp(t){if(t!==void 0)return t}i(Vp,"toAccessTier");function on(t,e){if(t&&!e)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");t&&!t.encryptionAlgorithm&&(t.encryptionAlgorithm=lRe)}i(on,"ensureCpkIfSpecified");var _9;(function(t){t.StorageOAuthScopes="https://storage.azure.com/.default",t.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default"})(_9||(_9={}));function YD(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(YD,"rangeResponseFromModel");var uTe=R(lTe(),1);var ik=class extends uTe.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=k0({...l,blobClient:r,copySource:n,startCopyFromURLOptions:c});super(u),typeof o=="function"&&this.onProgress(o),this.intervalInMs=s}delay(){return Wb(this.intervalInMs)}},MMt=i(async function(e={}){let r=this.state,{copyId:n}=r;return r.isCompleted?k0(r):n?(await r.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),r.isCancelled=!0,k0(r)):(r.isCancelled=!0,k0(r))},"cancel"),FMt=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 k0(r)},"update"),UMt=i(function(){return JSON.stringify({state:this.state},(e,r)=>{if(e!=="blobClient")return r})},"toString");function k0(t){return{state:{...t},cancel:MMt,toString:UMt,update:FMt}}i(k0,"makeBlobBeginCopyFromURLPollOperation");function mo(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(mo,"rangeToString");var dTe=require("events");var O0;(function(t){t[t.Good=0]="Good",t[t.Error=1]="Error"})(O0||(O0={}));var L0=class{static{i(this,"Batch")}concurrency;actives=0;completed=0;offset=0;operations=[];state=O0.Good;emitter;constructor(e=5){if(e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new dTe.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=O0.Error,r(n)})}))}nextOperation(){return this.offset<this.operations.length?this.operations[this.offset++]:null}parallelExecute(){if(this.state!==O0.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 ak=R(require("node:fs"),1),pTe=R(require("node:util"),1);async function fTe(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(fTe,"streamToBuffer");async function mTe(t,e){return new Promise((r,n)=>{let s=ak.default.createWriteStream(e);t.on("error",o=>{n(o)}),s.on("error",o=>{n(o)}),s.on("close",r),t.pipe(s)})}i(mTe,"readStreamToLocalFile");var hTe=pTe.default.promisify(ak.default.stat),ATe=ak.default.createReadStream;var Cd=class t extends BE{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(fd(r))a=e,o=r;else if(gt&&r instanceof Cr||r instanceof nr||ai(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Lr(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=jh(e);if(u.kind==="AccountConnString")if(gt){let d=new Cr(u.accountName,u.accountKey);a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Lp(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new nr,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=h9(this.url,pd.Parameters.SNAPSHOT),this._versionId=h9(this.url,pd.Parameters.VERSIONID)}withSnapshot(e){return new t(xE(this.url,pd.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}withVersion(e){return new t(xE(this.url,pd.Parameters.VERSIONID,e.length===0?void 0:e),this.pipeline)}getAppendBlobClient(){return new lk(this.url,this.pipeline)}getBlockBlobClient(){return new TE(this.url,this.pipeline)}getPageBlobClient(){return new uk(this.url,this.pipeline)}async download(e=0,r,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},on(n.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-download",n,async s=>{let o=ue(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:gt?void 0:n.onProgress},range:e===0&&!r?void 0:mo({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:zD(o.objectReplicationRules)};if(!gt)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 WD(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:mo({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 on(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===fRe||n.details.errorCode===mRe))return!0;throw n}})}async getProperties(e={}){return e.conditions=e.conditions||{},on(e.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-getProperties",e,async r=>{let n=ue(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:zD(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},ee.withSpan("BlobClient-delete",e,async r=>ue(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=ue(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=>ue(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}async setHTTPHeaders(e,r={}){return r.conditions=r.conditions||{},on(r.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-setHTTPHeaders",r,async n=>ue(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||{},on(r.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-setMetadata",r,async n=>ue(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=>ue(await this.blobContext.setTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions,tags:gNe(e)})))}async getTags(e={}){return ee.withSpan("BlobClient-getTags",e,async r=>{let n=ue(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:GD({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new N0(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},on(e.customerProvidedKey,this.isHttps),ee.withSpan("BlobClient-createSnapshot",e,async r=>ue(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 ik({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=>ue(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=>ue(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:bE(r.sourceAuthorization),tier:Vp(r.tier),blobTagsString:zp(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=>ue(await this.blobContext.setTier(Vp(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 L0(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 fTe(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 mTe(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(HD(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||{},ue(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:Vp(r.tier),blobTagsString:zp(r.tags),sealBlob:r.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(r=>{if(!(this.credential instanceof Cr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");let n=B0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();r(b0(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof Cr))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");return R0({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=B0({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},r,this.accountName).toString();n(b0(this.url,s))})}generateUserDelegationSasStringToSign(e,r){return R0({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=>ue(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions})))}async setImmutabilityPolicy(e,r={}){return ee.withSpan("BlobClient-setImmutabilityPolicy",r,async n=>ue(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=>ue(await this.blobContext.setLegalHold(e,{tracingOptions:n.tracingOptions})))}async getAccountInfo(e={}){return ee.withSpan("BlobClient-getAccountInfo",e,async r=>ue(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:r.tracingOptions})))}},lk=class t extends Cd{static{i(this,"AppendBlobClient")}appendBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},fd(r))a=e,o=r;else if(gt&&r instanceof Cr||r instanceof nr||ai(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,o=Lr(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=jh(e);if(u.kind==="AccountConnString")if(gt){let d=new Cr(u.accountName,u.accountKey);a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Lp(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new nr,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(xE(this.url,pd.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},on(e.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-create",e,async r=>ue(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:zp(e.tags),tracingOptions:r.tracingOptions})))}async createIfNotExists(e={}){let r={ifNoneMatch:lY};return ee.withSpan("AppendBlobClient-createIfNotExists",e,async n=>{try{let s=ue(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=>ue(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||{},on(n.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlock",n,async s=>ue(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||{},on(s.customerProvidedKey,this.isHttps),ee.withSpan("AppendBlobClient-appendBlockFromURL",s,async o=>ue(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:s.abortSignal,sourceRange:mo({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:bE(s.sourceAuthorization),cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,fileRequestIntent:s.sourceShareTokenIntent,tracingOptions:o.tracingOptions})))}},TE=class t extends Cd{static{i(this,"BlockBlobClient")}_blobContext;blockBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},fd(r))a=e,o=r;else if(gt&&r instanceof Cr||r instanceof nr||ai(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,n&&typeof n!="string"&&(s=n),o=Lr(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=jh(e);if(u.kind==="AccountConnString")if(gt){let d=new Cr(u.accountName,u.accountKey);a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Lp(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new nr,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(xE(this.url,pd.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async query(e,r={}){if(on(r.customerProvidedKey,this.isHttps),!gt)throw new Error("This operation currently is only supported in Node.js.");return ee.withSpan("BlockBlobClient-query",r,async n=>{let s=ue(await this._blobContext.query({abortSignal:r.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:E9(r.inputTextConfiguration),outputSerialization:E9(r.outputTextConfiguration)},leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return new JD(s,{abortSignal:r.abortSignal,onProgress:r.onProgress,onError:r.onError})})}async upload(e,r,n={}){return n.conditions=n.conditions||{},on(n.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-upload",n,async s=>ue(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:Vp(n.tier),blobTagsString:zp(n.tags),tracingOptions:s.tracingOptions})))}async syncUploadFromURL(e,r={}){return r.conditions=r.conditions||{},on(r.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-syncUploadFromURL",r,async n=>ue(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:bE(r.sourceAuthorization),tier:Vp(r.tier),blobTagsString:zp(r.tags),copySourceTags:r.copySourceTags,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,r,n,s={}){return on(s.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-stageBlock",s,async o=>ue(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 on(o.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-stageBlockFromURL",o,async a=>ue(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:mo({offset:n,count:s}),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,copySourceAuthorization:bE(o.sourceAuthorization),fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,r={}){return r.conditions=r.conditions||{},on(r.customerProvidedKey,this.isHttps),ee.withSpan("BlockBlobClient-commitBlockList",r,async n=>ue(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:Vp(r.tier),blobTagsString:zp(r.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,r={}){return ee.withSpan("BlockBlobClient-getBlockList",r,async n=>{let s=ue(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(gt){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 ue(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=uE(),d=0,p=new L0(n.concurrency);for(let f=0;f<c;f++)p.addOperation(async()=>{let m=A9(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 hTe(e)).size;return this.uploadSeekableInternal((o,a)=>()=>ATe(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=uE(),l=0,u=[];return await new XQ(e,r,n,async(p,f)=>{let m=A9(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(),ue(await this.commitBlockList(u,{...s,tracingOptions:o.tracingOptions}))})}},uk=class t extends Cd{static{i(this,"PageBlobClient")}pageBlobContext;constructor(e,r,n,s){let o,a;if(s=s||{},fd(r))a=e,o=r;else if(gt&&r instanceof Cr||r instanceof nr||ai(r))a=e,s=n,o=Lr(r,s);else if(!r&&typeof r!="string")a=e,o=Lr(new nr,s);else if(r&&typeof r=="string"&&n&&typeof n=="string"){let c=r,l=n,u=jh(e);if(u.kind==="AccountConnString")if(gt){let d=new Cr(u.accountName,u.accountKey);a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l)),s.proxyOptions||(s.proxyOptions=Lp(u.proxyUri)),o=Lr(d,s)}else throw new Error("Account connection string is only supported in Node.js environment");else if(u.kind==="SASConnString")a=sn(sn(u.url,encodeURIComponent(c)),encodeURIComponent(l))+"?"+u.accountSas,o=Lr(new nr,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(xE(this.url,pd.Parameters.SNAPSHOT,e.length===0?void 0:e),this.pipeline)}async create(e,r={}){return r.conditions=r.conditions||{},on(r.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-create",r,async n=>ue(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:Vp(r.tier),blobTagsString:zp(r.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,r={}){return ee.withSpan("PageBlobClient-createIfNotExists",r,async n=>{try{let s={ifNoneMatch:lY},o=ue(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||{},on(s.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPages",s,async o=>ue(await this.pageBlobContext.uploadPages(n,e,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},range:mo({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||{},on(o.customerProvidedKey,this.isHttps),ee.withSpan("PageBlobClient-uploadPagesFromURL",o,async a=>ue(await this.pageBlobContext.uploadPagesFromURL(e,mo({offset:r,count:s}),0,mo({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:bE(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=>ue(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:mo({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=ue(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:mo({offset:e,count:r}),tracingOptions:s.tracingOptions}));return YD(o)})}async listPageRangesSegment(e=0,r,n,s={}){return ee.withSpan("PageBlobClient-getPageRangesSegment",s,async o=>ue(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:mo({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*C9(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=ue(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevsnapshot:n,range:mo({offset:e,count:r}),tracingOptions:o.tracingOptions}));return YD(a)})}async listPageRangesDiffSegment(e,r,n,s,o={}){return ee.withSpan("PageBlobClient-getPageRangesDiffSegment",o,async a=>ue(await this.pageBlobContext.getPageRangesDiff({abortSignal:o?.abortSignal,leaseAccessConditions:o?.conditions,modifiedAccessConditions:{...o?.conditions,ifTags:o?.conditions?.tagConditions},prevsnapshot:n,range:mo({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*C9(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=ue(await this.pageBlobContext.getPageRangesDiff({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},prevSnapshotUrl:n,range:mo({offset:e,count:r}),tracingOptions:o.tracingOptions}));return YD(a)})}async resize(e,r={}){return r.conditions=r.conditions||{},ee.withSpan("PageBlobClient-resize",r,async n=>ue(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=>ue(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=>ue(await this.pageBlobContext.copyIncremental(e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}};var gTe;(function(t){t[t.LOCKED=0]="LOCKED",t[t.UNLOCKED=1]="UNLOCKED"})(gTe||(gTe={}));var yTe;(function(t){t.AES256="AES256"})(yTe||(yTe={}));var dk=class extends Error{static{i(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}};var _E=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"}};_E.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var eA=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"}};eA.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var M0=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var KMt=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())})},K9=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 ETe(t,e,r){return KMt(this,void 0,void 0,function*(){var n;let s=new Cd(t),o=s.getBlockBlobClient(),a=new K9((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 dk(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Er(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}i(ETe,"uploadCacheArchiveSDK");var ITe=R(require("buffer"),1),Bl=R(require("fs"),1),STe=R(require("stream"),1),wTe=R(require("util"),1);var pk=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 fk(t){return t?t>=200&&t<300:!1}i(fk,"isSuccessStatusCode");function XMt(t){return t?t>=500:!0}i(XMt,"isServerErrorStatusCode");function ZMt(t){return t?[It.BadGateway,It.ServiceUnavailable,It.GatewayTimeout].includes(t):!1}i(ZMt,"isRetryableStatusCode");function e1t(t){return pk(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(e1t,"sleep");function CTe(t,e,r){return pk(this,arguments,void 0,function*(n,s,o,a=Lv,c=Mv,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),!XMt(f)))return p;if(f&&(m=ZMt(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 e1t(c),d++}throw Error(`${n} failed: ${u}`)})}i(CTe,"retry");function F0(t,e){return pk(this,arguments,void 0,function*(r,n,s=Lv,o=Mv){return yield CTe(r,n,a=>a.statusCode,s,o,a=>{if(a instanceof Xc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(F0,"retryTypedResponse");function PE(t,e){return pk(this,arguments,void 0,function*(r,n,s=Lv,o=Mv){return yield CTe(r,n,a=>a.message.statusCode,s,o)})}i(PE,"retryHttpClientResponse");var Xi=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 t1t(t,e){return Xi(this,void 0,void 0,function*(){yield wTe.promisify(STe.pipeline)(t.message,e)})}i(t1t,"pipeResponseToStream");var mk=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 hk(t,e){return Xi(this,void 0,void 0,function*(){let r=Bl.createWriteStream(e),n=new ti("actions/cache"),s=yield PE("downloadCache",()=>Xi(this,void 0,void 0,function*(){return n.get(t)}));s.message.socket.setTimeout(xj,()=>{s.message.destroy(),T(`Aborting download, socket timed out after ${xj} ms`)}),yield t1t(s,r);let o=s.message.headers["content-length"];if(o){let a=parseInt(o),c=Kc(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(hk,"downloadCacheHttpClient");function xTe(t,e,r){return Xi(this,void 0,void 0,function*(){var n;let s=yield Bl.promises.open(e,"w"),o=new ti("actions/cache",void 0,{socketTimeout:r.timeoutInMs,keepAlive:!0});try{let c=(yield PE("downloadCacheMetadata",()=>Xi(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 C=0;C<l;C+=d){let S=Math.min(d,l-C);u.push({offset:C,promiseGetter:i(()=>Xi(this,void 0,void 0,function*(){return yield r1t(o,t,C,S)}),"promiseGetter")})}u.reverse();let p=0,f=0,m=new mk(l);m.startDisplayTimer();let h=m.onProgress(),g=[],y,E=i(()=>Xi(this,void 0,void 0,function*(){let C=yield Promise.race(Object.values(g));yield s.write(C.buffer,0,C.count,C.offset),p--,delete g[C.offset],f+=C.count,h({loadedBytes:f})}),"waitAndWrite");for(;y=u.pop();)g[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(xTe,"downloadCacheHttpClientConcurrent");function r1t(t,e,r,n){return Xi(this,void 0,void 0,function*(){let o=0;for(;;)try{let c=yield BTe(3e4,n1t(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(r1t,"downloadSegmentRetry");function n1t(t,e,r,n){return Xi(this,void 0,void 0,function*(){let s=yield PE("downloadCachePart",()=>Xi(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(n1t,"downloadSegment");function bTe(t,e,r){return Xi(this,void 0,void 0,function*(){var n;let s=new TE(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 hk(t,e);else{let c=Math.min(134217728,ITe.constants.MAX_LENGTH),l=new mk(a),u=Bl.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 BTe(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)&&Bl.writeFileSync(u,h)}}finally{l.stopDisplayTimer(),Bl.closeSync(u)}}})}i(bTe,"downloadCacheStorageSDK");var BTe=i((t,e)=>Xi(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 X9(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(X9,"getUploadOptions");function RTe(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(RTe,"getDownloadOptions");function Z9(){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(Z9,"isGhes");function U0(){return Z9()?"v1":process.env.ACTIONS_CACHE_SERVICE_V2?"v2":"v1"}i(U0,"getCacheServiceVersion");var NTe=["none","read","write","write-only"];function eK(){return(process.env.ACTIONS_CACHE_MODE||"").trim().toLowerCase()}i(eK,"getCacheMode");function TTe(t){return NTe.includes(t)?t==="read"||t==="write":!0}i(TTe,"isCacheReadable");function _Te(t){return NTe.includes(t)?t==="write"||t==="write-only":!0}i(_Te,"isCacheWritable");function Ak(){let t=U0();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(Ak,"getCacheServiceURL");var DTe=R(QTe(),1);function gk(){return`@actions/cache-${DTe.version}`}i(gk,"getUserAgentString");var ho=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 $0(t){let e=Ak();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($0,"getCacheApiUrl");function i1t(t,e){return`${t};api-version=${e}`}i(i1t,"createAcceptHeader");function a1t(){return{headers:{Accept:i1t("application/json","6.0-preview.1")}}}i(a1t,"getRequestOptions");function tK(){let t=process.env.ACTIONS_RUNTIME_TOKEN||"",e=new rE(t);return new ti(gk(),[e],a1t())}i(tK,"createHttpClient");function LTe(t,e,r){return ho(this,void 0,void 0,function*(){var n;let s=tK(),o=tE(e,r?.compressionMethod,r?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(t.join(","))}&version=${o}`,c=yield F0("getCacheEntry",()=>ho(this,void 0,void 0,function*(){return s.getJson($0(a))}));if(c.statusCode===204)return Ch()&&(yield c1t(t[0],s,o)),null;if(!fk(c.statusCode)){let d=(n=c.error)===null||n===void 0?void 0:n.message;throw d?.includes(Fv)?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 ns(u),T("Cache Result:"),T(JSON.stringify(l)),l})}i(LTe,"getCacheEntry");function c1t(t,e,r){return ho(this,void 0,void 0,function*(){let n=`caches?key=${encodeURIComponent(t)}`,s=yield F0("listCache",()=>ho(this,void 0,void 0,function*(){return e.getJson($0(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(c1t,"printCachesListForDiagnostics");function rK(t,e,r){return ho(this,void 0,void 0,function*(){let n=new OTe.URL(t),s=RTe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield bTe(t,e,s):s.concurrentBlobDownloads?yield xTe(t,e,s):yield hk(t,e):yield hk(t,e)})}i(rK,"downloadCache");function MTe(t,e,r){return ho(this,void 0,void 0,function*(){let n=tK(),s=tE(e,r?.compressionMethod,r?.enableCrossOsArchive),o={key:t,version:s,cacheSize:r?.cacheSize};return yield F0("reserveCache",()=>ho(this,void 0,void 0,function*(){return n.postJson($0("caches"),o)}))})}i(MTe,"reserveCache");function kTe(t,e){return`bytes ${t}-${e}/*`}i(kTe,"getContentRange");function l1t(t,e,r,n,s){return ho(this,void 0,void 0,function*(){T(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${kTe(n,s)}`);let o={"Content-Type":"application/octet-stream","Content-Range":kTe(n,s)},a=yield PE(`uploadChunk (start: ${n}, end: ${s})`,()=>ho(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),o)}));if(!fk(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(l1t,"uploadChunk");function u1t(t,e,r,n){return ho(this,void 0,void 0,function*(){let s=Kc(r),o=$0(`caches/${e.toString()}`),a=vE.openSync(r,"r"),c=X9(n),l=Nj("uploadConcurrency",c.uploadConcurrency),u=Nj("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];T("Awaiting all uploads");let p=0;try{yield Promise.all(d.map(()=>ho(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 l1t(t,o,()=>vE.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),m,h)}})))}finally{vE.closeSync(a)}})}i(u1t,"uploadFile");function d1t(t,e,r){return ho(this,void 0,void 0,function*(){let n={size:r};return yield F0("commitCache",()=>ho(this,void 0,void 0,function*(){return t.postJson($0(`caches/${e.toString()}`),n)}))})}i(d1t,"commitCache");function nK(t,e,r,n){return ho(this,void 0,void 0,function*(){if(X9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ETe(r,e,n)}else{let o=tK();T("Upload cache"),yield u1t(o,t,e,n),T("Commiting cache");let a=Kc(e);ae(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield d1t(o,t,a);if(!fk(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);ae("Cache saved successfully")}})}i(nK,"saveCache");var v_e=R(b_e(),1),Ur=R(Fr(),1),pi=R(Fr(),1),oA=R(Fr(),1),iA=R(Fr(),1),aA=R(Fr(),1);var KK=R(Fr(),1),XK=R(Fr(),1),T_e=R(Fr(),1),__e=R(Fr(),1),P_e=R(Fr(),1);var jK=R(Fr(),1),JK=R(Fr(),1),B_e=R(Fr(),1),R_e=R(Fr(),1),N_e=R(Fr(),1);var YK=class extends N_e.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,R_e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,B_e.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?JK.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,jK.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,jK.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?JK.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},rO=new YK;var ZK=class extends P_e.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(()=>rO,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,__e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,T_e.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(rO.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?XK.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,KK.WireType.Varint).int64(e.repositoryId);for(let o=0;o<e.scope.length;o++)rO.internalBinaryWrite(e.scope[o],r.tag(2,KK.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?XK.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},Pl=new ZK;var eX=class extends aA.MessageType{static{i(this,"CreateCacheEntryRequest$Type")}constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:i(()=>Pl,"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,iA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oA.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=Pl.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?pi.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.metadata&&Pl.internalBinaryWrite(e.metadata,r.tag(1,Ur.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,Ur.WireType.LengthDelimited).string(e.key),e.version!==""&&r.tag(3,Ur.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},iX=new eX,tX=class extends aA.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,iA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oA.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?pi.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,Ur.WireType.Varint).bool(e.ok),e.signedUploadUrl!==""&&r.tag(2,Ur.WireType.LengthDelimited).string(e.signedUploadUrl),e.message!==""&&r.tag(3,Ur.WireType.LengthDelimited).string(e.message);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},aX=new tX,rX=class extends aA.MessageType{static{i(this,"FinalizeCacheEntryUploadRequest$Type")}constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest",[{no:1,name:"metadata",kind:"message",T:i(()=>Pl,"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,iA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oA.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=Pl.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?pi.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.metadata&&Pl.internalBinaryWrite(e.metadata,r.tag(1,Ur.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,Ur.WireType.LengthDelimited).string(e.key),e.sizeBytes!=="0"&&r.tag(3,Ur.WireType.Varint).int64(e.sizeBytes),e.version!==""&&r.tag(4,Ur.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},cX=new rX,nX=class extends aA.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,iA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oA.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?pi.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,Ur.WireType.Varint).bool(e.ok),e.entryId!=="0"&&r.tag(2,Ur.WireType.Varint).int64(e.entryId),e.message!==""&&r.tag(3,Ur.WireType.LengthDelimited).string(e.message);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},lX=new nX,sX=class extends aA.MessageType{static{i(this,"GetCacheEntryDownloadURLRequest$Type")}constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest",[{no:1,name:"metadata",kind:"message",T:i(()=>Pl,"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,iA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oA.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=Pl.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?pi.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.metadata&&Pl.internalBinaryWrite(e.metadata,r.tag(1,Ur.WireType.LengthDelimited).fork(),n).join(),e.key!==""&&r.tag(2,Ur.WireType.LengthDelimited).string(e.key);for(let o=0;o<e.restoreKeys.length;o++)r.tag(3,Ur.WireType.LengthDelimited).string(e.restoreKeys[o]);e.version!==""&&r.tag(4,Ur.WireType.LengthDelimited).string(e.version);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},uX=new sX,oX=class extends aA.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,iA.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oA.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?pi.UnknownFieldHandler.onRead:u)(this.typeName,o,c,l,d)}}return o}internalBinaryWrite(e,r,n){e.ok!==!1&&r.tag(1,Ur.WireType.Varint).bool(e.ok),e.signedDownloadUrl!==""&&r.tag(2,Ur.WireType.LengthDelimited).string(e.signedDownloadUrl),e.matchedKey!==""&&r.tag(3,Ur.WireType.LengthDelimited).string(e.matchedKey);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pi.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},dX=new oX,EVr=new v_e.ServiceType("github.actions.results.api.v1.CacheService",[{name:"CreateCacheEntry",options:{},I:iX,O:aX},{name:"FinalizeCacheEntryUpload",options:{},I:cX,O:lX},{name:"GetCacheEntryDownloadURL",options:{},I:uX,O:dX}]);var nO=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=iX.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",r).then(s=>aX.fromJson(s,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let r=cX.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",r).then(s=>lX.fromJson(s,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let r=uX.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",r).then(s=>dX.fromJson(s,{ignoreUnknownFields:!0}))}};function Q_e(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(ns(r),ns(encodeURIComponent(r)))}catch(e){T(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}i(Q_e,"maskSigUrl");function D_e(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"&&Q_e(t.signed_upload_url),"signed_download_url"in t&&typeof t.signed_download_url=="string"&&Q_e(t.signed_download_url)}i(D_e,"maskSecretUrls");var sO=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())})},pX=class{static{i(this,"CacheServiceClient")}constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let o=sbe();this.baseUrl=Ak(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new ti(e,[new rE(o)])}request(e,r,n,s){return sO(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(()=>sO(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 sO(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(D_e(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(eA.isUsageErrorMessage(u.msg))throw new eA;n=`${n}: ${u.msg}`}if(l===It.TooManyRequests){let d=c.message.headers["retry-after"];if(d){let p=parseInt(d,10);!isNaN(p)&&p>0&&Er(`You've hit a rate limit, your rate limit will reset in ${p} seconds`)}throw new M0(`Rate limited: ${n}`)}}catch(c){if(c instanceof SyntaxError&&T(`Raw Body: ${s}`),c instanceof eA||c instanceof M0)throw c;if(_E.isNetworkErrorCode(c?.code))throw new _E(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?[It.BadGateway,It.GatewayTimeout,It.InternalServerError,It.ServiceUnavailable].includes(e):!1}sleep(e){return sO(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 fX(t){let e=new pX(gk(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new nO(e)}i(fX,"internalCacheTwirpClient");var oO=require("fs"),yo=R(require("path"),1);var vl=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())})},Yp=process.platform==="win32";function IUt(){return vl(this,void 0,void 0,function*(){switch(process.platform){case"win32":{let t=yield nbe(),e=Zxe;if(t)return{path:t,type:ei.GNU};if((0,oO.existsSync)(e))return{path:e,type:ei.BSD};break}case"darwin":{let t=yield no("gtar",!1);return t?{path:t,type:ei.GNU}:{path:yield no("tar",!0),type:ei.BSD}}default:break}return{path:yield no("tar",!0),type:ei.GNU}})}i(IUt,"getTarPath");function SUt(t,e,r){return vl(this,arguments,void 0,function*(n,s,o,a=""){let c=[`"${n.path}"`],l=Qp(s),u="cache.tar",d=O_e(),p=n.type===ei.BSD&&s!==Ps.Gzip&&Yp;switch(o){case"create":c.push("--posix","-cf",p?u:l.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),"--exclude",p?u:l.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),"-P","-C",d.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),"--files-from",Bj);break;case"extract":c.push("-xf",p?u:a.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),"-P","-C",p?mX(d):d.replace(new RegExp(`\\${yo.sep}`,"g"),"/"));break;case"list":c.push("-tf",p?u:a.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),"-P");break}if(n.type===ei.GNU)switch(process.platform){case"win32":c.push("--force-local");break;case"darwin":c.push("--delay-directory-restore");break}return c})}i(SUt,"getTarArgs");function k_e(t,e){return vl(this,arguments,void 0,function*(r,n,s=""){let o,a=yield IUt(),c=yield SUt(a,r,n,s),l=n!=="create"?yield wUt(a,r,s):yield xUt(a,r),u=a.type===ei.BSD&&r!==Ps.Gzip&&Yp;return u&&n!=="create"?o=[[...l].join(" "),[...c].join(" ")]:o=[[...c].join(" "),[...l].join(" ")],{commands:u?o:[o.join(" ")],requiresTempDirectory:u&&n!=="create"}})}i(k_e,"getCommands");function O_e(){var t;return(t=process.env.GITHUB_WORKSPACE)!==null&&t!==void 0?t:process.cwd()}i(O_e,"getWorkingDirectory");function mX(t){return`"${yo.resolve(t).replace(new RegExp(`\\${yo.sep}`,"g"),"/")}"`}i(mX,"quoteAbsolutePath");function wUt(t,e,r){return vl(this,void 0,void 0,function*(){let n=t.type===ei.BSD&&e!==Ps.Gzip&&Yp;switch(e){case Ps.Zstd:return n?["zstd -d --long=30 --force -o",Lb,mX(r)]:["--use-compress-program",Yp?'"zstd -d --long=30"':"unzstd --long=30"];case Ps.ZstdWithoutLong:return n?["zstd -d --force -o",Lb,mX(r)]:["--use-compress-program",Yp?'"zstd -d"':"unzstd"];default:return["-z"]}})}i(wUt,"getDecompressionProgram");function xUt(t,e){return vl(this,void 0,void 0,function*(){let r=Qp(e),n=t.type===ei.BSD&&e!==Ps.Gzip&&Yp;switch(e){case Ps.Zstd:return n?["zstd -T0 --long=30 --force -o",r.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),Lb]:["--use-compress-program",Yp?'"zstd -T0 --long=30"':"zstdmt --long=30"];case Ps.ZstdWithoutLong:return n?["zstd -T0 --force -o",r.replace(new RegExp(`\\${yo.sep}`,"g"),"/"),Lb]:["--use-compress-program",Yp?'"zstd -T0"':"zstdmt"];default:return["-z"]}})}i(xUt,"getCompressionProgram");function L_e(t,e){return vl(this,void 0,void 0,function*(){for(let r of t)try{yield xp(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(L_e,"execCommands");function M_e(t,e,r){return vl(this,void 0,void 0,function*(){let{commands:n,requiresTempDirectory:s}=yield k_e(e,r,t),o=s?yield Rh():void 0;try{yield L_e(n,o)}finally{if(o)try{yield cb(o)}catch(a){T(`Failed to delete temporary tar directory: ${a}`)}}})}i(M_e,"execReadCommands");function rB(t,e){return vl(this,void 0,void 0,function*(){yield M_e(t,e,"list")})}i(rB,"listTar");function hX(t,e){return vl(this,void 0,void 0,function*(){let r=O_e();yield Eh(r),yield M_e(t,e,"extract")})}i(hX,"extractTar");function AX(t,e,r){return vl(this,void 0,void 0,function*(){(0,oO.writeFileSync)(yo.join(t,Bj),e.join(`
`));let{commands:n}=yield k_e(r,"create");yield L_e(n,t)})}i(AX,"createTar");var jE=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())})},Za=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},cA=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},gX="cache write denied:",iO=class t extends cA{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},F_e=Fv,aO=class t extends Error{static{i(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},cO=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function U_e(t){if(!t||t.length===0)throw new Za("Path Validation Error: At least one directory or file path is required")}i(U_e,"checkPaths");function yX(t){if(t.length>512)throw new Za(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Za(`Key Validation Error: ${t} cannot contain commas.`)}i(yX,"checkKey");function EX(){return U0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(EX,"isFeatureAvailable");function $_e(t,e,r,n){return jE(this,arguments,void 0,function*(s,o,a,c,l=!1){let u=U0();T(`Cache service version: ${u}`),U_e(s);let d=eK();if(!TTe(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 BUt(s,o,a,c,l):yield bUt(s,o,a,c,l)})}i($_e,"restoreCache");function bUt(t,e,r,n){return jE(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 Za("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of d)yX(m);let p=yield Fb(),f="";try{let m;try{m=yield LTe(d,s,{compressionMethod:p,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(F_e)?new aO(y):g}if(!m?.archiveLocation)return;if(c?.lookupOnly)return ae("Lookup only - skipping download"),m.cacheKey;f=nB.join(yield Rh(),Qp(p)),T(`Archive Path: ${f}`),yield rK(m.archiveLocation,f,c),Ch()&&(yield rB(f,p));let h=Kc(f);return ae(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield hX(f,p),ae("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===Za.name)throw m;h instanceof Xc&&typeof h.statusCode=="number"&&h.statusCode>=500?zy(`Failed to restore: ${m.message}`):Er(`Failed to restore: ${m.message}`)}finally{try{yield Mb(f)}catch(m){T(`Failed to delete archive: ${m}`)}}})}i(bUt,"restoreCacheV1");function BUt(t,e,r,n){return jE(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 Za("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)yX(f);let p="";try{let f=fX(),m=yield Fb(),h={key:o,restoreKeys:a,version:tE(s,m,l)},g;try{g=yield f.GetCacheEntryDownloadURL(h)}catch(C){let S=(u=C?.message)!==null&&u!==void 0?u:"";throw S.includes(F_e)?new aO(S):C}if(!g.ok){T(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?ae(`Cache hit for restore-key: ${g.matchedKey}`):ae(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return ae("Lookup only - skipping download"),g.matchedKey;p=nB.join(yield Rh(),Qp(m)),T(`Archive path: ${p}`),T(`Starting download of archive to: ${p}`),yield rK(g.signedDownloadUrl,p,c);let E=Kc(p);return ae(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ch()&&(yield rB(p,m)),yield hX(p,m),ae("Cache restored successfully"),g.matchedKey}catch(f){let m=f;if(m.name===Za.name)throw f;m instanceof Xc&&typeof m.statusCode=="number"&&m.statusCode>=500?zy(`Failed to restore: ${f.message}`):Er(`Failed to restore: ${f.message}`)}finally{try{p&&(yield Mb(p))}catch(f){T(`Failed to delete archive: ${f}`)}}})}i(BUt,"restoreCacheV2");function CX(t,e,r){return jE(this,arguments,void 0,function*(n,s,o,a=!1){let c=U0();T(`Cache service version: ${c}`),U_e(n),yX(s);let l=eK();return _Te(l)?c==="v2"?yield NUt(n,s,o,a):yield RUt(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(CX,"saveCache");function RUt(t,e,r){return jE(this,arguments,void 0,function*(n,s,o,a=!1){var c,l,u,d,p,f;let m=yield Fb(),h=-1,g=yield Rj(n);if(T("Cache Paths:"),T(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let y=yield Rh(),E=nB.join(y,Qp(m));T(`Archive Path: ${E}`);try{yield AX(y,g,m),Ch()&&(yield rB(E,m));let C=10*1024*1024*1024,S=Kc(E);if(T(`File Size: ${S}`),S>C&&!Z9())throw new Error(`Cache size of ~${Math.round(S/(1024*1024))} MB (${S} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let b=yield MTe(s,n,{compressionMethod:m,enableCrossOsArchive:a,cacheSize:S});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(S/(1024*1024))} MB (${S} 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(gX)?new iO(`Unable to reserve cache with key ${s}. More details: ${N}`):new cA(`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 nK(h,E,"",o)}catch(C){let S=C;if(S.name===Za.name)throw C;S.name===cA.name?ae(`Failed to save: ${S.message}`):S instanceof Xc&&typeof S.statusCode=="number"&&S.statusCode>=500?zy(`Failed to save: ${S.message}`):Er(`Failed to save: ${S.message}`)}finally{try{yield Mb(E)}catch(C){T(`Failed to delete archive: ${C}`)}}return h})}i(RUt,"saveCacheV1");function NUt(t,e,r){return jE(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 Fb(),u=fX(),d=-1,p=yield Rj(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 Rh(),m=nB.join(f,Qp(l));T(`Archive Path: ${m}`);try{yield AX(f,p,l),Ch()&&(yield rB(m,l));let h=Kc(m);T(`File Size: ${h}`),o.archiveSizeBytes=h,T("Reserving Cache");let g=tE(n,l,a),y={key:s,version:g},E;try{let b=yield u.CreateCacheEntry(y);if(!b.ok)throw b.message&&!b.message.startsWith(gX)&&Er(`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(gX)?new iO(`Unable to reserve cache with key ${s}. More details: ${N}`):new cA(`Unable to reserve cache with key ${s}, another job may be creating this cache.`)}T(`Attempting to upload cache located at: ${m}`),yield nK(d,m,E,o);let C={key:s,version:g,sizeBytes:`${h}`},S=yield u.FinalizeCacheEntryUpload(C);if(T(`FinalizeCacheEntryUploadResponse: ${S.ok}`),!S.ok)throw S.message?new cO(S.message):new Error(`Unable to finalize cache with key ${s}, another job may be finalizing this cache.`);d=parseInt(S.entryId)}catch(h){let g=h;if(g.name===Za.name)throw h;g.name===cA.name?ae(`Failed to save: ${g.message}`):g.name===cO.name?Er(g.message):g instanceof Xc&&typeof g.statusCode=="number"&&g.statusCode>=500?zy(`Failed to save: ${g.message}`):Er(`Failed to save: ${g.message}`)}finally{try{yield Mb(m)}catch(h){T(`Failed to delete archive: ${h}`)}}return d})}i(NUt,"saveCacheV2");var q_e=R(require("util"),1);var JE=class t{static{i(this,"Cache")}opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e,this.ghaCacheKey=q_e.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform()),this.ghaNoCache=this.opts.ghaNoCache,this.cacheDir=SX.default.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform()),this.cachePath=SX.default.join(this.cacheDir,this.opts.cacheFile),sB.default.existsSync(this.cacheDir)||sB.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&&EX())if(r)try{T(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`),await CX([this.cacheDir],this.ghaCacheKey)}catch(o){Er(`Failed to save cache: ${o}`)}else T(`Cache.save sending ${this.ghaCacheKey} to post state`),Ih(t.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}));return n}async find(){try{let e=TSe(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&&EX()){if(T("GitHub Actions cache feature available"),await $_e([this.cacheDir],this.ghaCacheKey)){if(ae(`Restored ${this.ghaCacheKey} from GitHub Actions cache`),!sB.default.existsSync(this.cachePath))return Er(`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){Er(`Failed to restore cache: ${e}`)}return""}static async post(){let e=RCe(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 CX([r.dir],r.key)}catch(n){Er(`Failed to save cache: ${n}`)}return r}copyToCache(e){return ae(`Copying ${e} to ${this.cachePath}`),sB.default.copyFileSync(e,this.cachePath),this.cachePath}async cacheToHostedToolCache(){try{return await NSe(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`${IX.default.platform()}-${IX.default.arch()}${e?"v"+e:""}`}};var H_e=!!process.env.STATE_isPost;H_e||Ih("isPost","true");async function G_e(t,e){if(H_e)e&&await e(),await pb("Post cache",async()=>{await JE.post()});else try{await t()}catch(r){BCe(r.message)}}i(G_e,"run");var wA=R(require("path"),1);var ft=Symbol("NOT_RESOLVED");function ls(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(ls,"defineScalarTag");function kX(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(kX,"defineSequenceTag");function pO(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(pO,"defineMappingTag");var PUt=ls("tag:yaml.org,2002:str",{resolve:i(t=>t,"resolve"),identify:i(t=>typeof t=="string","identify")}),vUt=["","~","null","Null","NULL"],QUt=ls("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>vUt.indexOf(t)!==-1?null:ft,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),DUt=ls("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:i((t,e)=>t==="null"||e&&t===""?null:ft,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),kUt=["","~","null","Null","NULL"],OUt=ls("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:i(t=>kUt.indexOf(t)!==-1?null:ft,"resolve"),identify:i(t=>t===null,"identify"),represent:i(()=>"null","represent")}),LUt=["true","True","TRUE"],MUt=["false","False","FALSE"],FUt=ls("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:i(t=>LUt.indexOf(t)!==-1?!0:MUt.indexOf(t)!==-1?!1:ft,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),UUt=["true"],$Ut=["false"],qUt=ls("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:i(t=>UUt.indexOf(t)!==-1?!0:$Ut.indexOf(t)!==-1?!1:ft,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),HUt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],GUt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],zUt=ls("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:i(t=>HUt.indexOf(t)!==-1?!0:GUt.indexOf(t)!==-1?!1:ft,"resolve"),identify:i(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:i(t=>t?"true":"false","represent")}),VUt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),WUt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function jUt(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(jUt,"parseYamlInteger$2");function JUt(t,e){if(e){if(!WUt.test(t))return ft}else if(!VUt.test(t))return ft;let r=jUt(t);return Number.isFinite(r)?r:ft}i(JUt,"resolveYamlInteger$2");var oPe=ls("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:JUt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),YUt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),KUt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function XUt(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(XUt,"parseYamlInteger$1");function ZUt(t,e){if(e){if(!KUt.test(t))return ft}else if(!YUt.test(t))return ft;let r=XUt(t);return Number.isFinite(r)?r:ft}i(ZUt,"resolveYamlInteger$1");var e2t=ls("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:ZUt,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),t2t=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 r2t(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(r2t,"parseYamlInteger");function n2t(t){if(!t2t.test(t))return ft;let e=r2t(t);return Number.isFinite(e)?e:ft}i(n2t,"resolveYamlInteger");var TX=ls("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:n2t,identify:i(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:i(t=>t.toString(10),"represent")}),s2t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o2t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i2t(t){if(!s2t.test(t))return ft;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)||o2t.test(t)?n:ft}i(i2t,"resolveYamlFloat$2");function a2t(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(a2t,"representYamlFloat$2");var iPe=ls("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:i2t,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:a2t}),c2t=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),l2t=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function u2t(t,e){if(e){if(!l2t.test(t))return ft;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:ft}if(!c2t.test(t))return ft;let r=Number(t);return Number.isFinite(r)?r:ft}i(u2t,"resolveYamlFloat$1");function d2t(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(d2t,"representYamlFloat$1");var p2t=ls("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:u2t,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:d2t}),f2t=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))$"),m2t=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function h2t(t){if(!f2t.test(t))return ft;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)||m2t.test(t)?n:ft}i(h2t,"resolveYamlFloat");function A2t(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(A2t,"representYamlFloat");var _X=ls("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:h2t,identify:i(t=>typeof t=="number"&&(!Number.isInteger(t)||Object.is(t,-0)||t.toString(10).indexOf("e")>=0),"identify"),represent:A2t}),g2t=ls("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:i((t,e)=>t==="<<"||e&&t===""?"<<":ft,"resolve"),identify:i(()=>!1,"identify")}),y2t=/^[A-Za-z0-9+/]*={0,2}$/;function E2t(t){let e=t.replace(/\s/g,"");if(e.length%4!==0||!y2t.test(e))return ft;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(E2t,"resolveYamlBinary");function C2t(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}i(C2t,"representYamlBinary");var I2t=ls("tag:yaml.org,2002:binary",{resolve:E2t,identify:i(t=>Object.prototype.toString.call(t)==="[object Uint8Array]","identify"),represent:C2t}),S2t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),w2t=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 z_e(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(z_e,"makeUtcDate");function x2t(t){let e=S2t.exec(t);if(e===null&&(e=w2t.exec(t)),e===null)return ft;let r=+e[1],n=+e[2]-1,s=+e[3];if(!e[4]){let d=z_e(r,n,s);return d.getUTCFullYear()!==r||d.getUTCMonth()!==n||d.getUTCDate()!==s?ft:d}let o=+e[4],a=+e[5],c=+e[6],l=0;if(o>23||a>59||c>59)return ft;if(e[7]){let d=e[7].slice(0,3);for(;d.length<3;)d+="0";l=+d}let u=z_e(r,n,s,o,a,c,l);if(u.getUTCFullYear()!==r||u.getUTCMonth()!==n||u.getUTCDate()!==s)return ft;if(e[9]){let d=+e[10],p=+(e[11]||0);if(d>23||p>59)return ft;let f=(d*60+p)*6e4;u.setTime(u.getTime()-(e[9]==="-"?-f:f))}return u}i(x2t,"resolveYamlTimestamp");var b2t=ls("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:x2t,identify:i(t=>t instanceof Date,"identify"),represent:i(t=>t.toISOString(),"represent")}),B2t=kX("tag:yaml.org,2002:seq",{create:i(()=>[],"create"),addItem:i((t,e)=>{t.push(e)},"addItem"),identify:Array.isArray});function fO(t){if(t===null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}i(fO,"isPlainObject");function V_e(t,e){let r={};for(let n of e)t[n]!==void 0&&(r[n]=t[n]);return r}i(V_e,"pick");var R2t=kX("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(fO(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")}),N2t=kX("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")}),T2t=pO("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:fO,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")}),_2t=pO("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 P2t(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}i(P2t,"createTagDefinitionMap");function v2t(){return{scalar:[],sequence:[],mapping:[]}}i(v2t,"createTagDefinitionListMap");function Q2t(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(Q2t,"compileTags");var mO=class aPe{static{i(this,"Schema")}tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let r=Q2t(e),n=[],s=P2t(),o=v2t();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!==ft)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 aPe([...this.tags,...r])}},OX=new mO([PUt,B2t,T2t]),KVr=new mO([...OX.tags,DUt,qUt,e2t,p2t]),D2t=new mO([...OX.tags,QUt,FUt,oPe,iPe]),k2t=new mO([...OX.tags,OUt,zUt,TX,_X,b2t,g2t,I2t,R2t,N2t,_2t]),O2t=k2t.withTags({...TX,resolve:i((t,e,r)=>{let n=TX.resolve(t,e,r);return n===ft?oPe.resolve(t,e,r):n},"resolve")},{..._X,resolve:i((t,e,r)=>{let n=_X.resolve(t,e,r);return n===ft?iPe.resolve(t,e,r):n},"resolve")}),XVr=pO("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||fO(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 W_e(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(W_e,"normalizeKey");var ZVr=pO("tag:yaml.org,2002:map",{create:i(()=>({}),"create"),identify:fO,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=W_e(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=W_e(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")}),L2t={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function wX(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(wX,"getLine");function xX(t,e){return" ".repeat(Math.max(e-t.length,0))+t}i(xX,"padStart");function M2t(t,e){if(!t.buffer)return null;let r={...L2t,...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=wX(t.buffer,s[c-f],o[c-f],t.position-(s[c]-s[c-f]),d);l=`${" ".repeat(r.indent)}${xX((t.line-f+1).toString(),u)} | ${m.str}
${l}`}let p=wX(t.buffer,s[c],o[c],t.position,d);l+=`${" ".repeat(r.indent)}${xX((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=wX(t.buffer,s[c+f],o[c+f],t.position-(s[c]-s[c+f]),d);l+=`${" ".repeat(r.indent)}${xX((t.line+f+1).toString(),u)} | ${m.str}
`}return l.replace(/\n$/,"")}i(M2t,"makeSnippet");function j_e(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(j_e,"formatError");var lA=class cPe extends Error{static{i(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=j_e(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${j_e(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=M2t(c),new cPe(n,c)}},pr={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},rt={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},Kp={BLOCK:1,FLOW:2},fi={CLIP:1,STRIP:2,KEEP:3},F2t=-1;function J_e(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(J_e,"simpleEscapeSequence");var lPe=new Array(256),uPe=new Array(256);for(let t=0;t<256;t++)lPe[t]=J_e(t)?1:0,uPe[t]=J_e(t);function U2t(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(U2t,"charFromCodepoint");function $2t(t){return t>=48&&t<=57?t-48:(t|32)-97+10}i($2t,"fromHexCode$1");function q2t(t){return t===120?2:t===117?4:8}i(q2t,"escapedHexLen$1");function lO(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(lO,"skipFoldedBreaks");function LX(t){return t===1?" ":`
`.repeat(t-1)}i(LX,"foldedBreaks");function H2t(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=lO(t,s,r);n+=LX(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,a)}i(H2t,"getPlainValue");function G2t(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=lO(t,s,r);n+=LX(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(G2t,"getSingleQuotedValue");function z2t(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=lO(t,s,r).position;else if(l<256&&lPe[l])n+=uPe[l],s++;else{let u=q2t(l),d=0;for(;u>0;u--){s++;let p=$2t(t.charCodeAt(s));d=(d<<4)+p}n+=U2t(d),s++}o=a=s}else if(c===10||c===13){n+=t.slice(o,a);let l=lO(t,s,r);n+=LX(l.breaks),s=o=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(o,r)}i(z2t,"getDoubleQuotedValue");function Y_e(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 g=m.slice(a),y=g.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+=g,d=!0,p=0}return s===fi.KEEP?u+=`
`.repeat(d?1+p:p):s!==fi.STRIP&&d&&(u+=`
`),u}i(Y_e,"getBlockValue");function V2t(t,e){if(e.valueStart===F2t)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case rt.SINGLE_QUOTED:return G2t(t,r,n);case rt.DOUBLE_QUOTED:return z2t(t,r,n);case rt.LITERAL_BLOCK:return Y_e(t,r,n,e.indent,e.chomping,!1);case rt.FOLDED_BLOCK:return Y_e(t,r,n,e.indent,e.chomping,!0);default:return H2t(t,r,n)}}i(V2t,"getScalarValue");var W2t=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"}),j2t="-#;/?:@&=+$_.~*'()",e4r=j2t+"!,[]";function bX(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(bX,"tagPercentDecode");function dPe(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return bX(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1);return bX(e?.[n]??W2t[n]??n)+bX(t.slice(n.length))}i(dPe,"tagNameFull");var YE=-1,J2t="tag:yaml.org,2002:merge",MX={filename:"",schema:D2t,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Y2t(t){return"tagStart"in t&&t.tagStart!==YE?t.tagStart:"anchorStart"in t&&t.anchorStart!==YE?t.anchorStart:"valueStart"in t&&t.valueStart!==YE?t.valueStart:"start"in t?t.start:0}i(Y2t,"eventPosition$1");function Hn(t,e){lA.throwAt(t.source,t.position,e,t.filename)}i(Hn,"throwError$1");function pPe(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof lA)throw s;lA.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}i(pPe,"finalizeCollection");function K2t(t,e){let r=V2t(t.source,e),n=e.tagStart===YE?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let o=dPe(n,t.tagHandlers),a=t.schema.lookupScalarTag(o);if(a){let l=a.resolve(r,!0,o);return l===ft&&Hn(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!==""&&Hn(t,`cannot resolve a node with !<${o}> explicit tag`);let l=c.create(o);return{value:c.carrierIsResult?l:pPe(t,t.position,c,l),tag:c}}Hn(t,`unknown scalar tag !<${o}>`)}return e.style===rt.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}i(K2t,"constructScalar");function K_e(t,e,r){let n=e.tagStart===YE?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:dPe(n,t.tagHandlers)}i(K_e,"collectionTagName");function fPe(t){return t.nodeKind==="mapping"}i(fPe,"isMappingTag");function X_e(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Hn(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}i(X_e,"chargeMergeWork");function Z_e(t,e,r,n){X_e(t);for(let s of n.keys(r)){if(X_e(t),e.tag.has(e.value,s))continue;let o=e.tag.addPair(e.value,s,n.get(r,s));o&&Hn(t,o),e.overridable??=new Set,e.overridable.add(s)}}i(Z_e,"mergeKeys");function X2t(t,e,r,n){if(t.position=e.keyPosition,fPe(n))Z_e(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Hn(t,"abnormal merge sequence size");for(let s of r){let o=t.nodeTags.get(s);o||Hn(t,"cannot merge mappings; the provided source object is unacceptable"),Z_e(t,e,s,o)}}else Hn(t,"cannot merge mappings; the provided source object is unacceptable")}i(X2t,"mergeSource");function Z2t(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){X2t(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Hn(t,"duplicated mapping key");let o=e.tag.addPair(e.value,r,n);o&&Hn(t,o),e.overridable?.delete(r)}i(Z2t,"addMappingValue");function BX(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"){fPe(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Hn(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,Z2t(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===J2t}i(BX,"addValue");function RX(t,e,r,n,s){if(e.anchorStart!==YE){let o={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),o),o}return null}i(RX,"storeAnchor");function e$t(t,e){let r={...MX,...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=Y2t(n),n.type){case pr.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 pr.SCALAR:{let{value:s,tag:o}=K2t(r,n);RX(r,n,s,o,!0),BX(r,s,o);break}case pr.SEQUENCE:{let s=K_e(r,n,"tag:yaml.org,2002:seq"),o=r.schema.lookupSequenceTag(s);o||Hn(r,`unknown sequence tag !<${s}>`);let a=o.create(s),c=RX(r,n,a,o,o.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:o,anchor:c,index:0});break}case pr.MAPPING:{let s=K_e(r,n,"tag:yaml.org,2002:map"),o=r.schema.lookupMappingTag(s);o||Hn(r,`unknown mapping tag !<${s}>`);let a=o.create(s),c=RX(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 pr.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&Hn(r,`aliases exceeded maxAliases (${r.maxAliases})`);let s=r.source.slice(n.anchorStart,n.anchorEnd),o=r.anchors.get(s);o||Hn(r,`unidentified alias "${s}"`),o.isValueFinal||Hn(r,`recursive alias "${s}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),BX(r,o.value,o.tag);break}case pr.POP:{let s=r.frames.pop();if(s.kind==="mapping"&&s.hasKey&&(r.position=s.keyPosition,Hn(r,"incomplete mapping pair in event stream")),s.kind==="document")r.documents.push(s.value);else{let o=s.tag.carrierIsResult?s.value:pPe(r,s.position,s.tag,s.value);s.anchor&&(s.anchor.value=o,s.anchor.isValueFinal=!0),BX(r,o,s.tag)}break}}}return r.documents}i(e$t,"constructFromEvents");var mt=-1,mPe=Object.prototype.hasOwnProperty,eC=1,hPe=2,APe=3,uO=4,t$t=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r$t=/[,\[\]{}]/,gPe=/^(?:!|!!|![0-9A-Za-z-]+!)$/,PX=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,yPe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,n$t=new RegExp(`^(?:${PX})*$`),s$t=new RegExp(`^(?:${yPe})+$`),o$t=new RegExp(`^(?:!(?:${PX})*|${yPe}(?:${PX})*)$`),FX={filename:"",maxDepth:100};function i$t(t,e,r){t.events.push({type:pr.DOCUMENT,explicitStart:e,explicitEnd:r,directives:t.directives})}i(i$t,"addDocumentEvent");function EPe(t,e,r,n,s,o,a){t.events.push({type:pr.SEQUENCE,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(EPe,"addSequenceEvent");function CPe(t,e,r,n,s,o,a){t.events.push({type:pr.MAPPING,start:e,anchorStart:r,anchorEnd:n,tagStart:s,tagEnd:o,style:a})}i(CPe,"addMappingEvent");function ePe(t,e){t.events.splice(e.eventsLength,0,{type:pr.MAPPING,start:e.position,anchorStart:mt,anchorEnd:mt,tagStart:mt,tagEnd:mt,style:Kp.FLOW})}i(ePe,"insertFlowPairMappingEvent");function nC(t,e,r,n,s,o,a,c,l=fi.CLIP,u=-1,d=!1){t.events.push({type:pr.SCALAR,valueStart:e,valueEnd:r,anchorStart:n,anchorEnd:s,tagStart:o,tagEnd:a,style:c,chomping:l,indent:u,fast:d})}i(nC,"addScalarEvent");function a$t(t,e,r){t.events.push({type:pr.ALIAS,anchorStart:e,anchorEnd:r})}i(a$t,"addAliasEvent");function KE(t){t.events.push({type:pr.POP})}i(KE,"addPopEvent");function Ms(t){nC(t,mt,mt,mt,mt,mt,mt,rt.PLAIN)}i(Ms,"addEmptyScalarEvent");function tPe(){return{anchorStart:mt,anchorEnd:mt,tagStart:mt,tagEnd:mt}}i(tPe,"emptyProperties");function XE(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,eventsLength:t.events.length}}i(XE,"snapshotState");function ZE(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(ZE,"restoreState");function de(t,e){lA.throwAt(t.input.slice(0,t.length),t.position,e,t.filename)}i(de,"throwError");function Bn(t){return t===10||t===13}i(Bn,"isEol");function sC(t){return t===9||t===32}i(sC,"isWhiteSpace");function ec(t){return sC(t)||Bn(t)}i(ec,"isWsOrEol");function Sd(t){return t===0||ec(t)}i(Sd,"isWsOrEolOrEnd");function uA(t){return t===44||t===91||t===93||t===123||t===125}i(uA,"isFlowIndicator");function c$t(t){return t>=48&&t<=57?t-48:-1}i(c$t,"fromDecimalCode");function l$t(t){if(t>=48&&t<=57)return t-48;let e=t|32;return e>=97&&e<=102?e-97+10:-1}i(l$t,"fromHexCode");function u$t(t){return t===120?2:t===117?4:t===85?8:0}i(u$t,"escapedHexLen");function d$t(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(d$t,"isSimpleEscape");function dO(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(dO,"consumeLineBreak");function cs(t,e){let r=0,n=t.input.charCodeAt(t.position),s=t.position===t.lineStart||ec(t.input.charCodeAt(t.position-1));for(;n!==0;){for(;sC(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(!Bn(n)&&n!==0);if(!Bn(n))break;for(dO(t),r++,s=!0,n=t.input.charCodeAt(t.position);n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return r}i(cs,"skipSeparationSpace");function tC(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||ec(n)}return!1}i(tC,"testDocumentSeparator");function IPe(t){t.position===t.lineStart&&t.input.charCodeAt(t.position)===65279&&(t.position++,t.lineStart=t.position)}i(IPe,"skipByteOrderMark");function UX(t){if(t.position!==t.lineStart)return!1;if(tC(t))return!0;if(t.input.charCodeAt(t.position)!==65279)return!1;let e=XE(t);IPe(t),cs(t,!0);let r=t.input.charCodeAt(t.position),n=t.position===t.lineStart&&(r===37||r===45&&tC(t));return ZE(t,e),n}i(UX,"testDocumentBoundary");function rPe(t){let e=t.input.charCodeAt(t.position);for(;e!==0&&!Bn(e);)e=t.input.charCodeAt(++t.position)}i(rPe,"skipUntilLineEnd");function SPe(t,e,r){let n=t$t.exec(t.input.slice(e,r));n!==null&&(t.position=e+n.index+n[0].length-1,de(t,"the stream contains non-printable characters"))}i(SPe,"checkPrintable");function p$t(t,e,r){if(t.input.charCodeAt(t.position)!==33)return!1;e.tagStart!==mt&&de(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&&de(t,"unexpected end of the stream within a verbatim tag"),u=t.input.slice(l,t.position),t.position++}else{for(;c!==0&&!ec(c)&&!(r&&uA(c));)c===33&&(o?de(t,"tag suffix cannot contain exclamation marks"):(a=t.input.slice(l-1,t.position+1),gPe.test(a)||de(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),r$t.test(u)&&de(t,"tag suffix cannot contain flow indicator characters")}return u&&!(s?n$t.test(u):s$t.test(u))&&de(t,`tag name cannot contain such characters: ${u}`),!s&&a!=="!"&&a!=="!!"&&!mPe.call(t.tagHandlers,a)&&de(t,`undeclared tag handle "${a}"`),e.tagStart=n,e.tagEnd=t.position,!0}i(p$t,"readTagProperty");function f$t(t,e){if(t.input.charCodeAt(t.position)!==38)return!1;e.anchorStart!==mt&&de(t,"duplication of an anchor property"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ec(t.input.charCodeAt(t.position))&&!uA(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&de(t,"name of an anchor node must contain at least one character"),e.anchorStart=r,e.anchorEnd=t.position,!0}i(f$t,"readAnchorProperty");function m$t(t,e){if(t.input.charCodeAt(t.position)!==42)return!1;(e.anchorStart!==mt||e.tagStart!==mt)&&de(t,"alias node should not have any properties"),t.position++;let r=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ec(t.input.charCodeAt(t.position))&&!uA(t.input.charCodeAt(t.position));)t.position++;return t.position===r&&de(t,"name of an alias node must contain at least one character"),a$t(t,r,t.position),!0}i(m$t,"readAlias");function vX(t,e){cs(t,!1),t.lineIndent<e&&de(t,"deficient indentation")}i(vX,"readFlowScalarBreak");function h$t(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++,nC(t,n,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,rt.SINGLE_QUOTED,fi.CLIP,-1,s),!0}Bn(o)?(s=!1,vX(t,e)):t.position===t.lineStart&&tC(t)?de(t,"unexpected end of the document within a single quoted scalar"):o!==9&&o<32?de(t,"expected valid JSON character"):t.position++}de(t,"unexpected end of the stream within a single quoted scalar")}i(h$t,"readSingleQuotedScalar");function A$t(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++,nC(t,n,a,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,rt.DOUBLE_QUOTED,fi.CLIP,-1,s),!0}if(o===92){s=!1;let a=t.input.charCodeAt(++t.position);if(Bn(a))vX(t,e);else if(d$t(a))t.position++;else{let c=u$t(a);for(c===0&&de(t,"unknown escape sequence");c-- >0;)t.position++,l$t(t.input.charCodeAt(t.position))<0&&de(t,"expected hexadecimal character");t.position++}}else Bn(o)?(s=!1,vX(t,e)):t.position===t.lineStart&&tC(t)?de(t,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?de(t,"expected valid JSON character"):t.position++}de(t,"unexpected end of the stream within a double quoted scalar")}i(A$t,"readDoubleQuotedScalar");function g$t(t,e,r){let n=t.input.charCodeAt(t.position),s=fi.CLIP,o=-1,a=!1;if(n!==124&&n!==62)return!1;let c=n===124?rt.LITERAL_BLOCK:rt.FOLDED_BLOCK;for(t.position++;t.input.charCodeAt(t.position)!==0;){let m=t.input.charCodeAt(t.position),h=c$t(m);if(m===43||m===45)s!==fi.CLIP&&de(t,"repeat of a chomping mode identifier"),s=m===43?fi.KEEP:fi.STRIP,t.position++;else if(h>=0)h===0&&de(t,"bad explicit indentation width of a block scalar; it cannot be less than one"),a&&de(t,"repeat of an indentation width identifier"),o=e+h-1,a=!0,t.position++;else break}let l=!1;for(;sC(t.input.charCodeAt(t.position));)l=!0,t.position++;l&&t.input.charCodeAt(t.position)===35&&rPe(t),Bn(t.input.charCodeAt(t.position))?dO(t):t.input.charCodeAt(t.position)!==0&&de(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 g=t.input.charCodeAt(m+h);if(g===0){u>=0?h>u&&(f=m+h):h>0&&(f=m+h);break}if(UX(t))break;if(!a&&u===-1&&Bn(g)&&(d=Math.max(d,h)),!a&&u===-1&&!Bn(g)&&(g===9&&h<e&&(t.position=m+h,de(t,"tab characters must not be used in indentation")),h>=e&&h<d&&(t.position=m+h,de(t,"bad indentation of a mapping entry"))),u===-1&&g!==0&&!Bn(g)&&h<e){t.lineIndent=h,t.position=m+h;break}!a&&g!==0&&!Bn(g)&&u===-1&&(u=h);let y=u===-1?e+1:u;if(g!==0&&!Bn(g)&&h<y){t.lineIndent=h,t.position=m+h;break}rPe(t),f=t.position,Bn(t.input.charCodeAt(t.position))&&(dO(t),f=t.position)}return SPe(t,p,f),nC(t,p,f,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,c,s,u),!0}i(g$t,"readBlockScalar");function y$t(t,e){let r=t.input.charCodeAt(t.position),n=e===eC;if(r===0||ec(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||uA(r))return!1;if(r===63||r===45){let s=t.input.charCodeAt(t.position+1);if(Sd(s)||n&&uA(s))return!1}return!0}i(y$t,"canStartPlainScalar");function E$t(t,e,r,n){if(!y$t(t,r))return!1;let s=t.position,o=t.position,a=t.input.charCodeAt(t.position),c=r===eC,l=!1;for(;a!==0&&!UX(t);){if(a===58){let u=t.input.charCodeAt(t.position+1);if(Sd(u)||c&&uA(u))break}else if(a===35){if(ec(t.input.charCodeAt(t.position-1)))break}else{if(c&&uA(a))break;if(Bn(a)){let u=t.position,d=t.line,p=t.lineStart,f=t.lineIndent;if(cs(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}}sC(a)||(o=t.position+1),a=t.input.charCodeAt(++t.position)}return o===s?!1:(SPe(t,s,o),nC(t,s,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,rt.PLAIN,fi.CLIP,-1,!l),!0)}i(E$t,"readPlainScalar");function oB(t,e){let r=t.line;cs(t,!0),(t.line>r&&t.lineIndent<e||t.firstTabInLine!==-1&&t.lineIndent<e)&&de(t,"deficient indentation")}i(oB,"skipFlowSeparationSpace");function C$t(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?CPe(t,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Kp.FLOW):EPe(t,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Kp.FLOW),t.position++;t.input.charCodeAt(t.position)!==0;){oB(t,e);let l=t.input.charCodeAt(t.position);if(l===c)return t.position++,KE(t),!0;a?l===44&&de(t,"expected the node content, but found ','"):de(t,"missed comma between flow collection entries");let u=!1,d=!1;l===63&&ec(t.input.charCodeAt(t.position+1))&&(u=d=!0,t.position+=1,oB(t,e));let p=t.line,f=XE(t),m=rC(t,e,eC,!1,!0);oB(t,e),l=t.input.charCodeAt(t.position),(s||d||t.line===p)&&l===58?(u=!0,t.position++,oB(t,e),s||ePe(t,f),m||Ms(t),rC(t,e,eC,!1,!0)||Ms(t),oB(t,e),s||KE(t)):s&&u?(m||Ms(t),Ms(t)):s?Ms(t):u&&(ePe(t,f),m||Ms(t),Ms(t),KE(t)),l=t.input.charCodeAt(t.position),l===44?(a=!0,t.position++):a=!1}de(t,"unexpected end of the stream within a flow collection")}i(C$t,"readFlowCollection");function nPe(t,e,r){if(t.firstTabInLine!==-1||t.input.charCodeAt(t.position)!==45||!Sd(t.input.charCodeAt(t.position+1)))return!1;for(EPe(t,t.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Kp.BLOCK);t.input.charCodeAt(t.position)===45&&Sd(t.input.charCodeAt(t.position+1));){t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,de(t,"tab characters must not be used in indentation"));let n=t.line;t.position++;let s=cs(t,!0)>0;if(t.firstTabInLine!==-1&&t.input.charCodeAt(t.position)===45&&Sd(t.input.charCodeAt(t.position+1))&&de(t,"bad indentation of a sequence entry"),s&&t.lineIndent<=e?Ms(t):rC(t,e,APe,!1,!0),cs(t,!0),t.lineIndent<e||t.position>=t.length)break;t.lineIndent>e&&de(t,"bad indentation of a sequence entry"),t.line===n&&t.input.charCodeAt(t.position)===45&&Sd(t.input.charCodeAt(t.position+1))&&de(t,"bad indentation of a sequence entry")}return KE(t),!0}i(nPe,"readBlockSequence");function NX(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,de(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)&&Sd(u))a||(CPe(t,t.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Kp.BLOCK),a=!0),l===63?(s&&Ms(t),o=!0,s=!0):(s||(Ms(t),o=!0),s=!1),t.position+=1,c=!0;else{s&&(Ms(t),s=!1);let p=XE(t);if(!rC(t,r,hPe,!1,!0))break;if(t.line===d){for(l=t.input.charCodeAt(t.position);sC(l);)l=t.input.charCodeAt(++t.position);if(l===58)l=t.input.charCodeAt(++t.position),Sd(l)||de(t,"a whitespace character is expected after the key-value separator within a block mapping"),a||(t.events.splice(p.eventsLength,0,{type:pr.MAPPING,start:p.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:Kp.BLOCK}),a=!0),o=!0,s=!1,c=!1;else if(o)de(t,"expected ':' after a mapping key");else return n.anchorStart!==mt||n.tagStart!==mt?(ZE(t,p),!1):!0}else if(o)de(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==mt||n.tagStart!==mt?(ZE(t,p),!1):!0}if(rC(t,e,uO,!0,c)&&(c=!1),s||c&&(Ms(t),c=!1),cs(t,!0),l=t.input.charCodeAt(t.position),(t.line===d||t.lineIndent>e)&&l!==0)de(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return o?(s&&Ms(t),a&&KE(t),!0):!1}i(NX,"readBlockMapping");function rC(t,e,r,n,s,o=!0){t.depth>=t.maxDepth&&de(t,`nesting exceeded maxDepth (${t.maxDepth})`),t.depth++;let a=1,c=!1,l=!1,u=null,d=tPe(),p=r===uO||r===APe,f=p,m=p;if(n&&cs(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),g=XE(t);if(c&&a!==1&&(h===33||h===38))break;if(c&&m&&(d.tagStart!==mt||d.anchorStart!==mt)&&(h===33||h===38)){let y=XE(t),E=e+1;if(NX(t,t.position-t.lineStart,E,d)&&t.events[y.eventsLength]?.type===pr.MAPPING)return t.depth--,!0;ZE(t,y)}if(c&&(h===33&&d.tagStart!==mt||h===38&&d.anchorStart!==mt)||!p$t(t,d,r===eC)&&!f$t(t,d))break;u===null&&(u=g),cs(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===uO){let h=r===eC||r===hPe?e:e+1,g=t.position-t.lineStart;if(a===1)if(f&&(nPe(t,g,d)||NX(t,g,h,d))||C$t(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=XE(t),C=u.position-u.lineStart;ZE(t,u),NX(t,C,h,tPe())&&t.events[E.eventsLength]?.type===pr.MAPPING?l=!0:ZE(t,E)}!l&&(p&&g$t(t,h,d)||h$t(t,h,d)||A$t(t,h,d)||m$t(t,d)||E$t(t,h,r,d))&&(l=!0)}else a===0&&(l=f&&nPe(t,g,d))}return p=p&&!l,!l&&(d.anchorStart!==mt||d.tagStart!==mt||p)&&(nC(t,mt,mt,d.anchorStart,d.anchorEnd,d.tagStart,d.tagEnd,rt.PLAIN),l=!0),t.depth--,l||d.anchorStart!==mt||d.tagStart!==mt}i(rC,"parseNode");function I$t(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&&!ec(t.input.charCodeAt(t.position));)t.position++;let r=t.input.slice(e,t.position),n=[];for(r.length===0&&de(t,"directive name must not be less than one character in length");t.input.charCodeAt(t.position)!==0&&!Bn(t.input.charCodeAt(t.position));){for(;sC(t.input.charCodeAt(t.position));)t.position++;if(t.input.charCodeAt(t.position)===35||Bn(t.input.charCodeAt(t.position))||t.input.charCodeAt(t.position)===0)break;let s=t.position;for(;t.input.charCodeAt(t.position)!==0&&!ec(t.input.charCodeAt(t.position));)t.position++;n.push(t.input.slice(s,t.position))}if(Bn(t.input.charCodeAt(t.position))&&dO(t),r==="YAML"){t.directives.some(o=>o.kind==="yaml")&&de(t,"duplication of %YAML directive"),n.length!==1&&de(t,"YAML directive accepts exactly one argument");let s=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);s===null&&de(t,"ill-formed argument of the YAML directive"),parseInt(s[1],10)!==1&&de(t,"unacceptable YAML version of the document"),t.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&de(t,"TAG directive accepts exactly two arguments");let[s,o]=n;gPe.test(s)||de(t,"ill-formed tag handle (first argument) of the TAG directive"),mPe.call(t.tagHandlers,s)&&de(t,`there is a previously declared suffix for "${s}" tag handle`),o$t.test(o)||de(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(I$t,"readDirective");function S$t(t){t.directives=[],t.tagHandlers=Object.create(null);let e=!1;for(cs(t,!0);I$t(t);)e=!0,cs(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&&Sd(t.input.charCodeAt(t.position+3))){r=!0;let c=t.line;t.position+=3,cs(t,!0),s=t.line>c}else e&&de(t,"directives end mark is expected");let o=t.events.length;if(!r&&t.position===t.lineStart&&t.input.charCodeAt(t.position)===46&&tC(t)){t.position+=3,cs(t,!0);return}if(i$t(t,r,!1),rC(t,t.lineIndent-1,uO,!1,s,s)||Ms(t),cs(t,!0),t.position===t.lineStart&&tC(t)&&(n=t.input.charCodeAt(t.position)===46,n)){let c=t.line;t.position+=3,cs(t,!0),t.line===c&&t.position<t.length&&de(t,"end of the stream or a document separator is expected")}let a=t.events[o];a?.type===pr.DOCUMENT&&(a.explicitEnd=n),KE(t),!n&&t.position<t.length&&!UX(t)&&de(t,"end of the stream or a document separator is expected")}i(S$t,"readDocument");function w$t(t,e){let r=t.length,n={...FX,...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&&lA.throwAt(t,s,"null byte is not allowed in input",n.filename);n.position<n.length&&(IPe(n),cs(n,!0),!(n.position>=n.length));){let o=n.position;S$t(n),n.position===o&&de(n,"can not read a document")}return n.events}i(w$t,"parseEvents");var x$t={...FX,...MX};function b$t(t,e={}){let r={...x$t,...e},n=String(t),s=Object.keys(FX),o=Object.keys(MX);return e$t(w$t(n,V_e(r,s)),{...V_e(r,o),source:n})}i(b$t,"loadDocuments");function wPe(t,e){let r=b$t(t,e);if(r.length===0)throw new lA("expected a document, but the input is empty");if(r.length===1)return r[0];throw new lA("expected a single document in the stream, but found more")}i(wPe,"load");function hO(t,e){return(t&1<<e)!==0}i(hO,"hasBit");var sPe={applyQuoteFlowKeysOption:B$t,doubleQuoteForInvisibles:R$t,doubleQuoteWhitespaceOnly:N$t,applyForceQuotesOption:T$t,tryLongOrMultilineAsBlock:_$t,quoteInvalidPlain:P$t,fallbackToDoubleQuoted:v$t};function xPe(t){return t.presenterOptions.quoteStyle==="single"&&hO(t.allowedStylesMask,rt.SINGLE_QUOTED)?rt.SINGLE_QUOTED:rt.DOUBLE_QUOTED}i(xPe,"_preferredQuotedStyle");function B$t(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==rt.PLAIN||(t.style=rt.DOUBLE_QUOTED))}i(B$t,"applyQuoteFlowKeysOption");function R$t(t){t.style===rt.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=rt.DOUBLE_QUOTED)}i(R$t,"doubleQuoteForInvisibles");function N$t(t){t.style===rt.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=rt.DOUBLE_QUOTED)}i(N$t,"doubleQuoteWhitespaceOnly");function T$t(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==rt.PLAIN||t.node.tag===t.presenterOptions.schema.defaultScalarTag.tagName&&(t.style=t.node.value.includes(`
`)?rt.DOUBLE_QUOTED:xPe(t)))}i(T$t,"applyForceQuotesOption");function _$t(t){if(t.style!==rt.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!hO(t.allowedStylesMask,rt.LITERAL_BLOCK)){r&&(t.style=rt.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=rt.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=rt.FOLDED_BLOCK:r&&(t.style=rt.LITERAL_BLOCK)}i(_$t,"tryLongOrMultilineAsBlock");function P$t(t){t.style===rt.PLAIN&&!hO(t.allowedStylesMask,rt.PLAIN)&&(t.style=xPe(t))}i(P$t,"quoteInvalidPlain");function v$t(t){hO(t.allowedStylesMask,t.style)||(t.style=rt.DOUBLE_QUOTED)}i(v$t,"fallbackToDoubleQuoted");var Q$t="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",D$t="[\\n\\r]",k$t="\\uFEFF",$X="[ \\t]",bPe=`(?:(?!(?:${D$t}|${k$t}))${Q$t})`,AO=`(?:(?!${$X})${bPe})`,BPe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",RPe="[-?:,\\[\\]{}#&*!|>'\"%@`]",O$t="[,\\[\\]{}]",QX=AO,DX=`(?:(?!${O$t})${AO})`,L$t=`(?:(?:(?!${RPe})${AO})|[?:-](?=${QX}))`,M$t=`(?:(?:(?!${RPe})${AO})|[?:-](?=${DX}))`,NPe=`(?:(?:(?![:#])${QX})|:(?=${QX}))#*`,TPe=`(?:(?:(?![:#])${DX})|:(?=${DX}))#*`,_Pe=`(?:${$X}*${NPe})*`,PPe=`(?:${$X}*${TPe})*`,vPe=`${L$t}#*${_Pe}`,QPe=`${M$t}#*${PPe}`,F$t=vPe,U$t=QPe,$$t=`\\n+${NPe}${_Pe}`,q$t=`\\n+${TPe}${PPe}`,H$t=`${vPe}(?:${$$t})*`,G$t=`${QPe}(?:${q$t})*`,t4r=new RegExp(`^(?:${H$t})$`,"u"),r4r=new RegExp(`^(?:${G$t})$`,"u"),n4r=new RegExp(`^(?:${F$t})$`,"u"),s4r=new RegExp(`^(?:${U$t})$`,"u"),o4r=new RegExp(`^(?:${BPe})*$`,"u"),i4r=new RegExp(`^(?:${BPe}|\\n)*$`,"u"),a4r=new RegExp(`^(?:${bPe}|\\n)*$`,"u");var z$t={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(sPe).map(t=>Reflect.get(sPe,t)),tagBeforeAnchor:!1};var c4r={...z$t,schema:O2t,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:i(()=>{},"transform")};var l4r=pr.DOCUMENT,u4r=pr.SEQUENCE,d4r=pr.MAPPING,p4r=pr.SCALAR,f4r=pr.ALIAS,m4r=pr.POP,h4r=rt.PLAIN,A4r=rt.SINGLE_QUOTED,g4r=rt.DOUBLE_QUOTED,y4r=rt.LITERAL_BLOCK,E4r=rt.FOLDED_BLOCK,C4r=Kp.BLOCK,I4r=Kp.FLOW,S4r=fi.CLIP,w4r=fi.STRIP,x4r=fi.KEEP;var la=R(require("fs"),1),Co=R(require("path"),1),rLe=require("util");var nLe=R(xQe(),1);var TO=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 pZ=R(require("fs"),1),eOe=R(require("os"),1),SB=R(require("path"),1),tOe=require("util"),rOe=R(PQe(),1);var f7=R(require("fs"),1),YQe=R(require("os"),1),KQe=R(require("path"),1),XQe=R(JQe(),1);var vO=class t{static{i(this,"Context")}static _tmpDir=f7.default.mkdtempSync(KQe.default.join(t.ensureDirExists(process.env.RUNNER_TEMP||YQe.default.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){return f7.default.mkdirSync(e,{recursive:!0}),e}static tmpDir(){return t._tmpDir}static tmpName(e){return XQe.tmpNameSync(e)}};var xd=class{static{i(this,"Exec")}static async exec(e,r,n){return T(`Exec.exec: ${e} ${r?.join(" ")}`),xp(e,r,n)}static async getExecOutput(e,r,n){return T(`Exec.getExecOutput: ${e} ${r?.join(" ")}`),ub(e,r,n)}};var dZ=R(require("crypto"),1),Xke=R(require("fs"),1),IB=R(require("path"),1),Zke=R(Vke(),1);var nt=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 CB=i(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var gL=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(CB(s)){if(typeof s.name!="string")throw new nt("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 nt("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 lZ=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}},uZ=lZ;var Wke=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 uZ(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 uZ(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 jke=i(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var IC=i(function(t){let e={};for(let n in t)e[jke(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 nt("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 nt("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 nt("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 nt("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=gL(e.columns);else if(e.columns===void 0||e.columns===null||e.columns===!1)e.columns=!1;else throw new nt("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 nt("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 nt("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 nt("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 nt("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(!CB(e.delimiter_auto))throw new nt("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(!CB(e.delimiter_auto.preferred))throw new nt("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 nt("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 nt("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 nt("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 nt("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 nt("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 nt("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 nt("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 nt("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 nt("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 nt("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 Jke=i(function(t,e){e||({delimiter_auto:e}=IC({delimiter_auto:!0})),typeof t=="string"&&(t=Buffer.from(t)),Buffer.isBuffer(t)&&(t=(s=>{let o=[],a=yL({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=I4t(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"),I4t=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 Yke=i(function(t){return t.every(e=>e==null||e.toString&&e.toString().trim()==="")},"isRecordEmpty"),S4t=13,w4t=10,SC={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},yL=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=IC(t);return{info:e,original_options:t,options:r,state:Wke(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:g,rtrim:y,skip_empty_lines:E,to:C,to_line:S}=this.options,{comment:b,escape:N,quote:_,record_delimiter:v}=this.options,{bomSkipped:J,delimiterDiscovered:Pe,delimiterBufPrevious:De,rawBuffer:Ue,escapeIsQuote:fe}=this.state;if(!Pe&&u){let Tt;if(De===void 0?Tt=n:De!==void 0&&n===void 0?Tt=De:Tt=Buffer.concat([De,n]),n=void 0,s||Tt.length>u.size)this.options.delimiter=[Buffer.from(Jke(Tt,this.options.delimiter_auto))],this.state.previousBuf=Tt,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Tt;return}}let{previousBuf:Ve}=this.state,D;if(Ve===void 0)if(n===void 0){a();return}else D=n;else Ve!==void 0&&n===void 0?D=Ve:D=Buffer.concat([Ve,n]);if(J===!1)if(c===!1)this.state.bomSkipped=!0;else if(D.length<3){if(s===!1){this.state.previousBuf=D;return}}else{for(let Tt in SC)if(SC[Tt].compare(D,0,SC[Tt].length)===0){let rp=SC[Tt].length;this.state.bufBytesStart+=rp,D=D.slice(rp);let KT=IC({...this.original_options,encoding:Tt});for(let en in KT)this.options[en]=KT[en];({comment:b,escape:N,quote:_}=this.options);break}this.state.bomSkipped=!0}let ot=D.length,re;for(re=0;re<ot&&!this.__needMoreData(re,ot,s);re++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),S!==-1&&this.info.lines>S){this.state.stop=!0,a();return}this.state.quoting===!1&&v.length===0&&this.__autoDiscoverRecordDelimiter(D,re)&&(v=this.options.record_delimiter);let Tt=D[re];if(h===!0&&Ue.append(Tt),(Tt===S4t||Tt===w4t)&&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(D,re,Tt)&&re+N.length<ot)if(fe){if(this.__isQuote(D,re+N.length)){this.state.escaping=!0,re+=N.length-1;continue}}else{this.state.escaping=!0,re+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(D,re))if(this.state.quoting===!0){let en=D[re+_.length],Fm=y&&this.__isCharTrimable(D,re+_.length),Gu=b!==null&&this.__compareBytes(b,D,re+_.length,en),Um=this.__isDelimiter(D,re+_.length,en),XT=v.length===0?this.__autoDiscoverRecordDelimiter(D,re+_.length):this.__isRecordDelimiter(en,D,re+_.length);if(N!==null&&this.__isEscape(D,re,Tt)&&this.__isQuote(D,re+N.length))re+=N.length-1;else if(!en||Um||XT||Gu||Fm){this.state.quoting=!1,this.state.wasQuoting=!0,re+=_.length-1;continue}else if(g===!1){let Cde=this.__error(new nt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(en)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Cde!==void 0)return Cde}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(_),re+=_.length-1}else if(this.state.field.length!==0){if(g===!1){let en=this.__infoField(),Fm=Object.keys(SC).map(Um=>SC[Um].equals(this.state.field.toString())?Um:!1).filter(Boolean)[0],Gu=this.__error(new nt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(en.column)} at line ${en.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Fm?`(${Fm} bom)`:void 0],this.options,en,{field:this.state.field}));if(Gu!==void 0)return Gu}}else{this.state.quoting=!0,re+=_.length-1;continue}if(this.state.quoting===!1){let en=this.__isRecordDelimiter(Tt,D,re);if(en!==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(),re+=en-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=en-1;continue}this.info.bytes=this.state.bufBytesStart+re;let Um=this.__onField();if(Um!==void 0)return Um;this.info.bytes=this.state.bufBytesStart+re+en;let XT=this.__onRecord(o);if(XT!==void 0)return XT;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,re+=en-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,D,re,Tt)!==0){this.state.commenting=!0;continue}let Fm=this.__isDelimiter(D,re,Tt);if(Fm!==0){this.info.bytes=this.state.bufBytesStart+re;let Gu=this.__onField();if(Gu!==void 0)return Gu;re+=Fm-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new nt("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 rp=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(D,re),KT=y===!1||this.state.wasQuoting===!1;if(rp===!0&&KT===!0)this.state.field.append(Tt);else{if(y===!0&&!this.__isCharTrimable(D,re))return this.__error(new nt("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()));rp===!1&&(re+=this.__isCharTrimable(D,re)-1);continue}}if(s===!0)if(this.state.quoting===!0){let Tt=this.__error(new nt("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(Tt!==void 0)return Tt}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+re;let Tt=this.__onField();if(Tt!==void 0)return Tt;let rp=this.__onRecord(o);if(rp!==void 0)return rp}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=re,this.state.previousBuf=D.slice(re);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:g}=this.state;if(h===!1)return this.__resetRecord();let y=g.length;if(s===!0){if(m===!0&&Yke(g)){this.__resetRecord();return}return this.__firstLineToColumns(g)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=y),y!==this.state.expectedRecordLength){let E=s===!1?new nt("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:g}):new nt("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${y} on line ${this.info.lines}`],this.options,this.__infoField(),{record:g});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 C=this.__error(E);if(C)return C}}if(m===!0&&Yke(g)){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 C={};for(let S=0,b=g.length;S<b;S++)s[S]===void 0||s[S].disabled||(o===!0&&Object.hasOwn(C,s[S].name)?Array.isArray(C[s[S].name])?C[s[S].name]=C[s[S].name].concat(g[S]):C[s[S].name]=[C[s[S].name],g[S]]:Object.defineProperty(C,s[S].name,{value:g[S],enumerable:!0,writable:!0,configurable:!0}));if(f===!0||c===!0){let S=Object.assign({record:C},f===!0?{raw:this.state.rawBuffer.toString(a)}:{},c===!0?{info:this.__infoRecord()}:{}),b=this.__push(E===void 0?S:[C[E],S],n);if(b)return b}else{let S=this.__push(E===void 0?C:[C[E],C],n);if(S)return S}}else if(f===!0||c===!0){let C=Object.assign({record:g},f===!0?{raw:this.state.rawBuffer.toString(a)}:{},c===!0?{info:this.__infoRecord()}:{}),S=this.__push(E===void 0?C:[g[E],C],n);if(S)return S}else{let C=this.__push(E===void 0?g:[g[E],g],n);if(C)return C}}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 nt("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=gL(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 Kke=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=yL(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 rf=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList($a(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=Kke(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=$a(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 no("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 Xke.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 dZ.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 dZ.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Zke.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=IB.default.resolve(e);return IB.default.resolve(r).startsWith(n.endsWith(IB.default.sep)?n:`${n}${IB.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 nf=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||SB.default.join(eOe.default.homedir(),".docker")}static configFile(){let e=SB.default.join(t.configDir,"config.json");if(pZ.default.existsSync(e))return JSON.parse(pZ.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await no("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 xd.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return xd.getExecOutput("docker",e,t.execOptions(r))}static getErrorMessage(e){let r=(0,tOe.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 JE({htcName:a,htcVersion:c,baseCacheDir:SB.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&&Er(`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)Er(`Failed to pull image, using one from cache: ${p.message}`);else throw p}if(r&&d){let p=SB.default.join(vO.tmpDir(),`${rf.hash(e)}.tar`);await t.getExecOutput([...s,"save","-o",p,e],{ignoreReturnCode:!0}).then(async f=>{if(f.stderr.length>0&&f.exitCode!=0)Er(`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,rOe.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 eLe=R(require("crypto"),1);var EL=require("fs"),nOe=require("os");var wC=class{static{i(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,EL.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,EL.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${nOe.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 AZ=R(cOe(),1),lOe=R(Ah(),1);var O4t=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 uOe(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(uOe,"getAuthString");function dOe(t){return new AZ.HttpClient().getAgent(t)}i(dOe,"getProxyAgent");function L4t(t){return new AZ.HttpClient().getAgentDispatcher(t)}i(L4t,"getProxyAgentDispatcher");function pOe(t){let e=L4t(t);return i((n,s)=>O4t(this,void 0,void 0,function*(){return(0,lOe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}i(pOe,"getProxyFetch");function fOe(){return process.env.GITHUB_API_URL||"https://api.github.com"}i(fOe,"getApiBaseUrl");function gZ(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(gZ,"getUserAgentWithOrchestrationId");function sf(){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(sf,"getUserAgent");function BL(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)=>BL.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(BL,"register");function mOe(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(mOe,"addHook");function hOe(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(hOe,"removeHook");var AOe=Function.bind,gOe=AOe.bind(AOe);function yOe(t,e,r){let n=gOe(hOe,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]=gOe(mOe,null).apply(null,o)})}i(yOe,"bindApi");function F4t(){let t=Symbol("Singular"),e={registry:{}},r=BL.bind(null,e,t);return yOe(r,e,t),r}i(F4t,"Singular");function U4t(){let t={registry:{}},e=BL.bind(null,t);return yOe(e,t),e}i(U4t,"Collection");var EOe={Singular:F4t,Collection:U4t};var $4t="0.0.0-development",q4t=`octokit-endpoint.js/${$4t} ${sf()}`,H4t={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":q4t},mediaType:{format:""}};function G4t(t){return t?Object.keys(t).reduce((e,r)=>(e[r.toLowerCase()]=t[r],e),{}):{}}i(G4t,"lowercaseKeys");function z4t(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(z4t,"isPlainObject");function SOe(t,e){let r=Object.assign({},t);return Object.keys(e).forEach(n=>{z4t(e[n])?n in t?r[n]=SOe(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}i(SOe,"mergeDeep");function COe(t){for(let e in t)t[e]===void 0&&delete t[e];return t}i(COe,"removeUndefinedProperties");function EZ(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=G4t(r.headers),COe(r),COe(r.headers);let n=SOe(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(EZ,"merge");function V4t(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(V4t,"addQueryParameters");var W4t=/\{[^{}}]+\}/g;function j4t(t){return t.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}i(j4t,"removeNonChars");function J4t(t){let e=t.match(W4t);return e?e.map(j4t).reduce((r,n)=>r.concat(n),[]):[]}i(J4t,"extractUrlVariableNames");function IOe(t,e){let r={__proto__:null};for(let n of Object.keys(t))e.indexOf(n)===-1&&(r[n]=t[n]);return r}i(IOe,"omit");function wOe(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(wOe,"encodeReserved");function bC(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}i(bC,"encodeUnreserved");function xB(t,e,r){return e=t==="+"||t==="#"?wOe(e):bC(e),r?bC(r)+"="+e:e}i(xB,"encodeValue");function xC(t){return t!=null}i(xC,"isDefined");function yZ(t){return t===";"||t==="&"||t==="?"}i(yZ,"isKeyOperator");function Y4t(t,e,r,n){var s=t[r],o=[];if(xC(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(xB(e,s,yZ(e)?r:""));else if(n==="*")Array.isArray(s)?s.filter(xC).forEach(function(a){o.push(xB(e,a,yZ(e)?r:""))}):Object.keys(s).forEach(function(a){xC(s[a])&&o.push(xB(e,s[a],a))});else{let a=[];Array.isArray(s)?s.filter(xC).forEach(function(c){a.push(xB(e,c))}):Object.keys(s).forEach(function(c){xC(s[c])&&(a.push(bC(c)),a.push(xB(e,s[c].toString())))}),yZ(e)?o.push(bC(r)+"="+a.join(",")):a.length!==0&&o.push(a.join(","))}else e===";"?xC(s)&&o.push(bC(r)):s===""&&(e==="&"||e==="?")?o.push(bC(r)+"="):s===""&&o.push("");return o}i(Y4t,"getValues");function K4t(t){return{expand:X4t.bind(null,t)}}i(K4t,"parseUrl");function X4t(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(Y4t(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 wOe(o)}),t==="/"?t:t.replace(/\/$/,"")}i(X4t,"expand");function xOe(t){let e=t.method.toUpperCase(),r=(t.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},t.headers),s,o=IOe(t,["method","baseUrl","url","headers","request","mediaType"]),a=J4t(r);r=K4t(r).expand(o),/^http/.test(r)||(r=t.baseUrl+r);let c=Object.keys(t).filter(d=>a.includes(d)).concat("baseUrl"),l=IOe(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=V4t(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(xOe,"parse");function Z4t(t,e,r){return xOe(EZ(t,e,r))}i(Z4t,"endpointWithDefaults");function bOe(t,e){let r=EZ(t,e),n=Z4t.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:bOe.bind(null,r),merge:EZ.bind(null,r),parse:xOe})}i(bOe,"withDefaults");var BOe=bOe(null,H4t);var FOe=R(_Oe(),1);var e8t=/^-?\d+$/,QOe=/^-?\d+n+$/,CZ=JSON.stringify,POe=JSON.parse,t8t=/^-?\d+n$/,r8t=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,n8t=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,DOe=i((t,e,r)=>"rawJSON"in JSON?CZ(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?CZ(t,(a,c)=>typeof c=="string"&&!!c.match(QOe)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(r8t,"$1$2$3").replace(n8t,"$1$2$3"):CZ(t,e,r),"JSONStringify"),s8t=i(()=>JSON.parse("1",(t,e,r)=>!!r&&r.source==="1"),"isContextSourceSupported"),o8t=i((t,e,r,n)=>typeof e=="string"&&e.match(t8t)?BigInt(e.slice(0,-1)):typeof e=="string"&&e.match(QOe)?e.slice(0,-1):typeof n!="function"?e:n(t,e,r),"convertMarkedBigIntsReviver"),i8t=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&&e8t.test(s.source);return o&&a?BigInt(s.source):typeof e!="function"?n:e(r,n,s)}),"JSONParseV2"),kOe=Number.MAX_SAFE_INTEGER.toString(),vOe=kOe.length,a8t=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,c8t=/^"-?\d+n+"$/,OOe=i((t,e)=>{if(!t)return POe(t,e);if(s8t())return i8t(t,e);let r=t.replace(a8t,(n,s,o,a)=>{let c=n[0]==='"';if(c&&!!n.match(c8t))return n.substring(0,n.length-1)+'n"';let u=o||a,d=s&&(s.length<vOe||s.length===vOe&&s<=kOe);return c||u||d?n:'"'+n+'n"'});return POe(r,(n,s,o)=>o8t(n,s,o,e))},"JSONParse");var CA=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 l8t="10.0.8",u8t={headers:{"user-agent":`octokit-request.js/${l8t} ${sf()}`}};function d8t(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(d8t,"isPlainObject");var LOe=i(()=>"","noop");async function MOe(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=d8t(t.body)||Array.isArray(t.body)?DOe(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 CA(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 CA(a.statusText,c,{response:d,request:t})}if(c===304)throw d.data=await IZ(a),new CA("Not modified",c,{response:d,request:t});if(c>=400)throw d.data=await IZ(a),new CA(f8t(d.data),c,{response:d,request:t});return d.data=n?await IZ(a):a.body,d}i(MOe,"fetchWrapper");async function IZ(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(LOe);let r=(0,FOe.safeParse)(e);if(p8t(r)){let n="";try{return n=await t.text(),OOe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"?t.text().catch(LOe):t.arrayBuffer().catch(()=>new ArrayBuffer(0))}i(IZ,"getResponseData");function p8t(t){return t.type==="application/json"||t.type==="application/scim+json"}i(p8t,"isJSONResponse");function f8t(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(f8t,"toErrorMessage");function SZ(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 MOe(r.parse(a));let c=i((l,u)=>MOe(r.parse(r.merge(l,u))),"request2");return Object.assign(c,{endpoint:r,defaults:SZ.bind(null,r)}),a.request.hook(c,a)},"newApi"),{endpoint:r,defaults:SZ.bind(null,r)})}i(SZ,"withDefaults");var BB=SZ(BOe,u8t);var m8t="0.0.0-development";function h8t(t){return`Request failed due to following response errors:
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}i(h8t,"_buildMessageForResponseErrors");var A8t=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(h8t(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},g8t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],y8t=["query","method","url"],UOe=/\/api\/v3\/?$/;function E8t(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(y8t.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)=>g8t.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 UOe.test(o)&&(s.url=o.replace(UOe,"/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 A8t(s,c,a.data)}return a.data.data})}i(E8t,"graphql");function wZ(t,e){let r=t.defaults(e);return Object.assign(i((s,o)=>E8t(r,s,o),"newApi"),{defaults:wZ.bind(null,r),endpoint:r.endpoint})}i(wZ,"withDefaults");var tYr=wZ(BB,{headers:{"user-agent":`octokit-graphql.js/${m8t} ${sf()}`},method:"POST",url:"/graphql"});function $Oe(t){return wZ(t,{method:"POST",url:"/graphql"})}i($Oe,"withCustomRequest");var xZ="(?:[a-zA-Z0-9_-]+)",qOe="\\.",HOe=new RegExp(`^${xZ}${qOe}${xZ}${qOe}${xZ}$`),C8t=HOe.test.bind(HOe);async function I8t(t){let e=C8t(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(I8t,"auth");function S8t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(S8t,"withAuthorizationPrefix");async function w8t(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=S8t(t),e(s)}i(w8t,"hook");var GOe=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(I8t.bind(null,e),{hook:w8t.bind(null,e)})},"createTokenAuth2");var bZ="7.0.6";var zOe=i(()=>{},"noop"),x8t=console.warn.bind(console),b8t=console.error.bind(console);function B8t(t={}){return typeof t.debug!="function"&&(t.debug=zOe),typeof t.info!="function"&&(t.info=zOe),typeof t.warn!="function"&&(t.warn=x8t),typeof t.error!="function"&&(t.error=b8t),t}i(B8t,"createLogger");var VOe=`octokit-core.js/${bZ} ${sf()}`,_L=class{static{i(this,"Octokit")}static VERSION=bZ;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 EOe.Collection,n={baseUrl:BB.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} ${VOe}`:VOe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=BB.defaults(n),this.graphql=$Oe(this.request).defaults(n),this.log=B8t(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=GOe(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 BZ="17.0.0";var R8t={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"]}},WOe=R8t;var IA=new Map;for(let[t,e]of Object.entries(WOe))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);IA.has(t)||IA.set(t,new Map),IA.get(t).set(r,{scope:t,methodName:r,endpointDefaults:u,decorations:a})}var N8t={has({scope:t},e){return IA.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[...IA.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=IA.get(e).get(n);if(!s)return;let{endpointDefaults:o,decorations:a}=s;return a?r[n]=T8t(t,e,n,o,a):r[n]=t.request.defaults(o),r[n]}};function RZ(t){let e={};for(let r of IA.keys())e[r]=new Proxy({octokit:t,scope:r,cache:{}},N8t);return e}i(RZ,"endpointsToMethods");function T8t(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(T8t,"decorate");function NZ(t){return{rest:RZ(t)}}i(NZ,"restEndpointMethods");NZ.VERSION=BZ;function _8t(t){let e=RZ(t);return{...e,rest:e}}i(_8t,"legacyRestEndpointMethods");_8t.VERSION=BZ;var P8t="0.0.0-development";function v8t(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(v8t,"normalizePaginatedListResponse");function TZ(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=v8t(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(TZ,"iterator");function jOe(t,e,r,n){return typeof r=="function"&&(n=r,r=void 0),JOe(t,[],TZ(t,e,r)[Symbol.asyncIterator](),n)}i(jOe,"paginate");function JOe(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:JOe(t,e,r,n)})}i(JOe,"gather");var RYr=Object.assign(jOe,{iterator:TZ});function _Z(t){return{paginate:Object.assign(jOe.bind(null,t),{iterator:TZ.bind(null,t)})}}i(_Z,"paginateRest");_Z.VERSION=P8t;var QYr=new wC,PZ=fOe(),Q8t={baseUrl:PZ,request:{agent:dOe(PZ),fetch:pOe(PZ)}},YOe=_L.plugin(NZ,_Z).defaults(Q8t);function KOe(t,e){let r=Object.assign({},e||{}),n=uOe(t,r);n&&(r.auth=n);let s=gZ(r.userAgent);return s&&(r.userAgent=s),r}i(KOe,"getOctokitOptions");var BC=new wC;function XOe(t,e,...r){let n=YOe.plugin(...r);return new n(KOe(t,e))}i(XOe,"getOctokit");var tLe=require("stream/consumers");var SA=class extends Error{static{i(this,"InvalidTokenError")}};SA.prototype.name="InvalidTokenError";function k8t(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(k8t,"b64DecodeUnicode");function O8t(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 k8t(e)}catch{return atob(e)}}i(O8t,"base64UrlDecode");function ZOe(t,e){if(typeof t!="string")throw new SA("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 SA(`Invalid token specified: missing part #${r+1}`);let s;try{s=O8t(n)}catch(o){throw new SA(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(s)}catch(o){throw new SA(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}i(ZOe,"jwtDecode");var PL=[1e3,3e3],L8t=new Set(["ECONNRESET","ETIMEDOUT","EAI_AGAIN","ECONNREFUSED","EPIPE","ERR_STREAM_PREMATURE_CLOSE"]),RC=class t{static{i(this,"GitHub")}githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN,this.octokit=XOe(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...BC.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<=PL.length;c++)try{let u=await new ti("docker-actions-toolkit").get(s,o),d=await(0,tLe.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===PL.length)throw a;ae(`${a.message}. Retrying (${c+1}/${PL.length})...`),await new Promise(u=>setTimeout(u,PL[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&&L8t.has(n)||s.includes("socket hang up")||s.includes("read econnreset")}static get context(){return BC}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`${BC.repo.owner}/${BC.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:BC.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?ZOe(e):void 0}static printUntrusted(e){let r=eLe.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 vL=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||Co.default.join(nf.configDir,"buildx")}static get refsDir(){return Co.default.join(t.configDir,"refs")}static get refsGroupDir(){return Co.default.join(t.refsDir,"__group__")}static get certsDir(){return Co.default.join(t.configDir,"certs")}async isStandalone(){let e=this._standalone??!await nf.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 xd.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 xd.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 xd.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,rLe.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=nLe.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=Co.default.join(t.certsDir,`cacert_${a}.pem`);la.default.writeFileSync(c,n.cacert),o.push(`cacert=${c}`)}if(n.cert!==void 0){let c=Co.default.join(t.certsDir,`cert_${a}.pem`);la.default.writeFileSync(c,n.cert),o.push(`cert=${c}`)}if(n.key!==void 0){let c=Co.default.join(t.certsDir,`key_${a}.pem`);la.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=Co.default.join(r||t.refsDir,n,s,o);if(!la.default.existsSync(a))throw new Error(`Local state not found in ${a}`);return t.fixLocalState(JSON.parse(la.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=Co.default.resolve(n);if(e.builderName&&(c=Co.default.join(c,e.builderName)),e.nodeName&&(c=Co.default.join(c,e.nodeName)),!la.default.existsSync(c))return r;let l=la.default.readdirSync(c);for(let u of l){let d=Co.default.join(c,u),p=la.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(la.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 TO.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!==RC.repository){T(`Buildx.convertWarningsToGitHubAnnotations(${l}): not same GitHub repo: ${m} != ${RC.repository}`);continue}a.push({path:u.DockerfilePath,remote:!0});continue}if(!la.default.existsSync(u.DockerfilePath)){T(`Buildx.convertWarningsToGitHubAnnotations: Dockerfile not found from localstate ref ${l}: ${u.DockerfilePath}`);continue}let p=RC.workspace;rf.isPathRelativeTo(p,u.DockerfilePath)?a.push({path:Co.default.relative(p,u.DockerfilePath),content:Buffer.from(la.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(g=>atob(g)).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 g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:p,message:f,file:g.path,startLine:m}),h=!0;break}h||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function oLe(){return{registry:$a("registry"),username:$a("username"),password:$a("password"),scope:$a("scope"),ecr:$a("ecr"),logout:bCe("logout"),registryAuth:$a("registry-auth")}}i(oLe,"getInputs");function iLe(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=wPe(t.registryAuth).map(r=>{r.password&&ns(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:QL(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:QL(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}i(iLe,"getAuthList");function QL(t,e){if(M8t()||!e||e==="")return"";let r=t.indexOf("://"),n=r===-1?t:new URL(`registry://${t.slice(r+3)}`).host,s=wA.default.resolve(vL.configDir,"config"),o=wA.default.resolve(s,n==="docker.io"?"registry-1.docker.io":n);if(!sLe(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=wA.default.resolve(o,c);if(!sLe(o,d))throw new Error(`Invalid scope '${e}': resolved config path escapes the Buildx config directory`);return`${d}${u}`}i(QL,"scopeToConfigDir");function sLe(t,e){let r=wA.default.relative(t,e);return r!==""&&r!==".."&&!r.startsWith(`..${wA.default.sep}`)&&!wA.default.isAbsolute(r)}i(sLe,"isChildPath");function M8t(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?rf.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}i(M8t,"scopeDisabled");var $lt=R(Wit(),1),qlt=R(blt(),1),Ade=R(Yd(),1);var Tlt=R(require("net"),1),_lt=R(require("tls"),1),Plt=R(Dh(),1),vlt=require("events");var Blt=R(require("net"),1),Rlt=R(require("http"),1),Nlt=require("https");var $u=Symbol("AgentBaseInternalState"),y3=class extends Rlt.Agent{static{i(this,"Agent")}constructor(e){super(e),this[$u]={}}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 Blt.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)?Nlt.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[$u].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[$u].currentSocket;if(this[$u].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[$u].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[$u]&&(this[$u].defaultPort=e)}get protocol(){return this[$u].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[$u]&&(this[$u].protocol=e)}};var fde=require("url");function E3(){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(E3,"createNegotiateAuth");var Zw=(0,Plt.default)("http-proxy-agent"),jT=class extends y3{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new fde.URL(e):e,this.proxyHeaders=r?.headers??{},Zw("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=E3():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?nAr(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 fde.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;Zw("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Zw("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),Zw("Output buffer: %o",e.outputData[0].data));let o;this.proxy.protocol==="https:"?(Zw("Creating `tls.Socket`: %o",this.connectOpts),o=_lt.connect(this.connectOpts)):(Zw("Creating `net.Socket`: %o",this.connectOpts),o=Tlt.connect(this.connectOpts)),await(0,vlt.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}};jT.protocols=["http","https"];function nAr(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(nAr,"omit");var Hu=R(require("net"),1),JT=R(require("tls"),1),Mlt=R(require("assert"),1),Flt=R(Dh(),1);var Qlt=R(require("net"),1),Dlt=R(require("http"),1),klt=require("https");var qu=Symbol("AgentBaseInternalState"),C3=class extends Dlt.Agent{static{i(this,"Agent")}constructor(e){super(e),this[qu]={}}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 Qlt.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)?klt.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[qu].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(o,a),n(c)})}createConnection(){let e=this[qu].currentSocket;if(this[qu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[qu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[qu]&&(this[qu].defaultPort=e)}get protocol(){return this[qu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[qu]&&(this[qu].protocol=e)}};var Ult=require("url");var Olt=R(Dh(),1);var I3=(0,Olt.default)("https-proxy-agent:parse-proxy-response");function mde(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(),I3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function l(d){a(),I3("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){I3("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 g=h.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let S of m){if(!S)continue;let b=S.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${S}"`));let N=S.slice(0,b).toLowerCase(),_=S.slice(b+1).trimStart(),v=C[N];typeof v=="string"?C[N]=[v,_]:Array.isArray(v)?v.push(_):C[N]=_}I3("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:p})}i(u,"ondata"),t.on("error",l),t.on("end",c),o()})}i(mde,"parseProxyResponse");var zg=(0,Flt.default)("https-proxy-agent"),S3=i(t=>t.servername===void 0&&t.host&&!Hu.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),YT=class extends C3{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Ult.URL(e):e,this.proxyHeaders=r?.headers??{},zg("Creating new HttpsProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=E3():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?hde(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:"?(zg("Creating `tls.Socket`: %o",this.connectOpts),s=JT.connect(S3(this.connectOpts))):(zg("Creating `net.Socket`: %o",this.connectOpts),s=Hu.connect(this.connectOpts));let o=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Hu.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=mde(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",Llt),r.secureEndpoint?(zg("Upgrading socket connection to TLS"),JT.connect({...hde(S3(r),"host","path","port"),socket:s})):s;if(u.statusCode===407&&this.onProxyAuth){zg("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 Hu.Socket({writable:!1});return p.readable=!0,e.once("socket",f=>{zg("Replaying proxy buffer for failed request"),(0,Mlt.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=JT.connect(S3(this.connectOpts)):o=Hu.connect(this.connectOpts);let a=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},c=Hu.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=mde(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",Llt),r.secureEndpoint?(zg("Upgrading socket connection to TLS"),JT.connect({...hde(S3(r),"host","path","port"),socket:o})):o;throw o.destroy(),new Error(`Proxy authentication failed with status ${d.statusCode} after retry`)}};YT.protocols=["http","https"];function Llt(t){setImmediate(()=>{t.resume()})}i(Llt,"resume");function hde(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(hde,"omit");var gde=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/,sAr=/public\.ecr\.aws|ecr-public\.aws\.com/,Hlt=i(t=>gde.test(t)||w3(t),"isECR"),w3=i(t=>sAr.test(t),"isPubECR"),oAr=i(t=>{if(w3(t))return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1";let e=t.match(gde);return e?e[4]:""},"getRegion"),iAr=i(t=>{if(w3(t))return[];let e=t.match(gde);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"),Glt=i(async(t,e,r)=>{let n=oAr(t),s=iAr(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 jT(c));let l,u=process.env.https_proxy||process.env.HTTPS_PROXY||"";u&&(T(`Using https proxy ${u}`),l=new YT(u));let d=e&&r?{accessKeyId:e,secretAccessKey:r}:void 0;if(w3(t)){ae(`AWS Public ECR detected with ${n} region`);let f=await new qlt.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Ade.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 ns(h[0]),ns(h[1]),[{registry:"public.ecr.aws",username:h[0],password:h[1]}]}else{ae(`AWS ECR detected with ${n} region`);let f=await new $lt.ECR({customUserAgent:"docker-login-action",credentials:d,region:n,requestHandler:new Ade.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);ns(y[0]),ns(y[1]),m.push({registry:h.proxyEndpoint||"",username:y[0],password:y[1]})}return m}},"getRegistriesData");var zlt=/^(?:[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 cAr(t){return typeof t=="string"&&zlt.test(t)}i(cAr,"validate");var yde=cAr;var lAr=new Set(["","docker.io","registry-1.docker.io","registry-1-stage.docker.io","dhi.io"]),uAr=300,Vlt=300,Wlt=21600,jlt=5,Jlt=i((t,e)=>process.env.DOCKERHUB_OIDC_CONNECTIONID!==void 0&&!e&&lAr.has(t),"isDockerHubOIDC"),Ylt=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(!yde(r))throw new Error("Invalid DOCKERHUB_OIDC_CONNECTIONID. Must be a valid UUID.");let n=dAr(),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 NCe(o),c=new ti("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 pAr(c,`https://${s}/oauth/token`,l.toString()),d=JSON.parse(await mAr(u));return ns(d.access_token),ae("Docker Hub OIDC token exchange succeeded"),{username:e,token:d.access_token}},"getOIDCToken"),dAr=i(()=>{let t=process.env.DOCKERHUB_OIDC_EXPIREIN?.trim()||uAr.toString(),e=Number(t);if(isNaN(e)||e<Vlt||e>Wlt)throw new Error(`Invalid DOCKERHUB_OIDC_EXPIREIN: ${t}. Must be between ${Vlt} and ${Wlt}`);return e},"getExpiresIn"),pAr=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||It.InternalServerError}`);for(let s=0;(n.message.statusCode||It.InternalServerError)===It.TooManyRequests&&s<jlt;s++){let o=fAr(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}/${jlt})`),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||It.InternalServerError}`)}return n},"postWithRetry"),fAr=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"),mAr=i(async t=>{let e=await t.readBody(),r=t.message.statusCode||It.InternalServerError;if(T(`Docker Hub OIDC token response status code: ${r}`),r<It.OK||r>=It.MultipleChoices)throw hAr(r,e);return e},"handleResponse"),hAr=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 Ede(t){if(/true/i.test(t.ecr)||t.ecr=="auto"&&Hlt(t.registry))await yAr(t.registry,t.username,t.password,t.scope);else{let e=t.username,r=t.password;if(Jlt(t.registry,r)){let n=await Ylt(t.registry,e);e=n.username,r=n.token}await gAr(t.registry,e,r,t.scope)}}i(Ede,"login");async function Klt(t,e){let r;e!==""&&(r=Object.assign({},process.env,{DOCKER_CONFIG:e}),ae(`Alternative config dir: ${e}`)),await nf.getExecOutput(["logout",t],{ignoreReturnCode:!0,env:r}).then(n=>{n.stderr.length>0&&n.exitCode!=0&&Er(n.stderr.trim())})}i(Klt,"logout");async function gAr(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 Xlt(t,e,r,n)}i(gAr,"loginStandard");async function yAr(t,e,r,n){ae("Retrieving registries data through AWS SDK...");let s=await Glt(t,e,r);for(let o of s)await Xlt(o.registry,o.username,o.password,n)}i(yAr,"loginECR");async function Xlt(t,e,r,n){let s,o=QL(t,n);o!==""?(s=Object.assign({},process.env,{DOCKER_CONFIG:o}),ae(`Logging into ${t} (scope ${n})...`)):ae(`Logging into ${t}...`),await nf.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(Xlt,"loginExec");var Zlt=process.env.STATE_registries?JSON.parse(process.env.STATE_registries):[],eut=/true/i.test(process.env.STATE_logout||"");function tut(t){Ih("registries",JSON.stringify(t))}i(tut,"setRegistries");function rut(t){Ih("logout",t)}i(rut,"setLogout");async function nut(){let t=oLe();rut(t.logout);let e=iLe(t);if(tut(Array.from(new Map(e.map(r=>[`${r.registry}|${r.configDir}`,{registry:r.registry,configDir:r.configDir}])).values())),e.length===1){await Ede(e[0]);return}for(let r of e)await pb(`Login to ${r.registry}`,async()=>{await Ede(r)})}i(nut,"main");async function IAr(){if(eut)for(let t of Zlt)await pb(`Logout from ${t.registry}`,async()=>{await Klt(t.registry,t.configDir)})}i(IAr,"post");G_e(nut,IAr);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