ngth??0;if(O>=w&&H>=2*w)return K?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${O} and ${H} 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 q}constructor(A){this.configProvider=new Promise((q,K)=>{if(typeof A==="function")A().then((Y)=>{q(this.resolveDefaultConfig(Y))}).catch(K);else q(this.resolveDefaultConfig(A))})}resolveDefaultConfig(A){let{requestTimeout:q,connectionTimeout:K,socketTimeout:Y,socketAcquisitionWarningTimeout:z,httpAgent:w,httpsAgent:_,throwOnRequestTimeout:$}=A||{},O=!0,H=50;return{connectionTimeout:K,requestTimeout:q,socketTimeout:Y,socketAcquisitionWarningTimeout:z,throwOnRequestTimeout:$,httpAgent:(()=>{if(w instanceof Cw1.Agent||typeof w?.destroy==="function")return this.externalAgent=!0,w;return new Cw1.Agent({keepAlive:!0,maxSockets:50,...w})})(),httpsAgent:(()=>{if(_ instanceof hw1.Agent||typeof _?.destroy==="function")return this.externalAgent=!0,_;return new hw1.Agent({keepAlive:!0,maxSockets:50,..._})})(),logger:console}}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config)this.config=await this.configProvider;return new Promise((Y,z)=>{let w=this.config,_=void 0,$=[],O=async(y)=>{await _,$.forEach(Uf.clearTimeout),Y(y)},H=async(y)=>{await _,$.forEach(Uf.clearTimeout),z(y)};if(q?.aborted){let y=Error("Request aborted");y.name="AbortError",H(y);return}let j=A.protocol==="https:",J=A.headers??{},M=(J.Expect??J.expect)==="100-continue",D=j?w.httpsAgent:w.httpAgent;if(M&&!this.externalAgent)D=new(j?hw1.Agent:Cw1.Agent)({keepAlive:!1,maxSockets:1/0});$.push(Uf.setTimeout(()=>{this.socketWarningTimestamp=Iw1.checkSocketUsage(D,this.socketWarningTimestamp,w.logger)},w.socketAcquisitionWarningTimeout??(w.requestTimeout??2000)+(w.connectionTimeout??1000)));let X=Q37.buildQueryString(A.query||{}),P=void 0;if(A.username!=null||A.password!=null){let y=A.username??"",R=A.password??"";P=`${y}:${R}`}let W=A.path;if(X)W+=`?${X}`;if(A.fragment)W+=`#${A.fragment}`;let Z=A.hostname??"";if(Z[0]==="["&&Z.endsWith("]"))Z=A.hostname.slice(1,-1);else Z=A.hostname;let G={headers:A.headers,host:Z,method:A.method,path:W,port:A.port,agent:D,auth:P},V=(j?hw1.request:Cw1.request)(G,(y)=>{let R=new F37.HttpResponse({statusCode:y.statusCode||-1,reason:y.statusMessage,headers:p37(y.headers),body:y});O({response:R})});if(V.on("error",(y)=>{if(uS3.includes(y.code))H(Object.assign(y,{name:"TimeoutError"}));else H(y)}),q){let y=()=>{V.destroy();let R=Error("Request aborted");R.name="AbortError",H(R)};if(typeof q.addEventListener==="function"){let R=q;R.addEventListener("abort",y,{once:!0}),V.once("close",()=>R.removeEventListener("abort",y))}else q.onabort=y}let N=K??w.requestTimeout;$.push(BS3(V,H,w.connectionTimeout)),$.push(mS3(V,H,N,w.throwOnRequestTimeout,w.logger??console)),$.push(QS3(V,H,w.socketTimeout));let v=G.agent;if(typeof v==="object"&&"keepAlive"in v)$.push(FS3(V,{keepAlive:v.keepAlive,keepAliveMsecs:v.keepAliveMsecs}));_=d37(V,A,N,this.externalAgent).catch((y)=>{return $.forEach(Uf.clearTimeout),z(y)})})}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return{...K,[A]:q}})}httpHandlerConfigs(){return this.config??{}}}class c37{sessions=[];constructor(A){this.sessions=A??[]}poll(){if(this.sessions.length>0)return this.sessions.shift()}offerLast(A){this.sessions.push(A)}contains(A){return this.sessions.includes(A)}remove(A){this.sessions=this.sessions.filter((q)=>q!==A)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(A){for(let q of this.sessions)if(q===A){if(!q.destroyed)q.destroy()}}}class l37{constructor(A){if(this.config=A,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}config;sessionCache=new Map;lease(A,q){let K=this.getUrlString(A),Y=this.sessionCache.get(K);if(Y){let $=Y.poll();if($&&!this.config.disableConcurrency)return $}let z=bK8.connect(K);if(this.config.maxConcurrency)z.settings({maxConcurrentStreams:this.config.maxConcurrency},($)=>{if($)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+A.destination.toString())});z.unref();let w=()=>{z.destroy(),this.deleteSession(K,z)};if(z.on("goaway",w),z.on("error",w),z.on("frameError",w),z.on("close",()=>this.deleteSession(K,z)),q.requestTimeout)z.setTimeout(q.requestTimeout,w);let _=this.sessionCache.get(K)||new c37;return _.offerLast(z),this.sessionCache.set(K,_),z}deleteSession(A,q){let K=this.sessionCache.get(A);if(!K)return;if(!K.contains(q))return;K.remove(q),this.sessionCache.set(A,K)}release(A,q){let K=this.getUrlString(A);this.sessionCache.get(K)?.offerLast(q)}destroy(){for(let[A,q]of this.sessionCache){for(let K of q){if(!K.destroyed)K.destroy();q.remove(K)}this.sessionCache.delete(A)}}setMaxConcurrentStreams(A){if(A&&A<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=A}setDisableConcurrentStreams(A){this.config.disableConcurrency=A}getUrlString(A){return A.destination.toString()}}class xK8{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new l37({});static create(A){if(typeof A?.handle==="function")return A;return new xK8(A)}constructor(A){this.configProvider=new Promise((q,K)=>{if(typeof A==="function")A().then((Y)=>{q(Y||{})}).catch(K);else q(A||{})})}destroy(){this.connectionManager.destroy()}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config){if(this.config=await this.configProvider,this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||!1),this.config.maxConcurrentStreams)this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}let{requestTimeout:Y,disableConcurrentStreams:z}=this.config,w=K??Y;return new Promise((_,$)=>{let O=!1,H=void 0,j=async(h)=>{await H,_(h)},J=async(h)=>{await H,$(h)};if(q?.aborted){O=!0;let h=Error("Request aborted");h.name="AbortError",J(h);return}let{hostname:M,method:D,port:X,protocol:P,query:W}=A,Z="";if(A.username!=null||A.password!=null){let h=A.username??"",B=A.password??"";Z=`${h}:${B}@`}let G=`${P}//${Z}${M}${X?`:${X}`:""}`,f={destination:new URL(G)},V=this.connectionManager.lease(f,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:z||!1}),N=(h)=>{if(z)this.destroySession(V);O=!0,J(h)},v=Q37.buildQueryString(W||{}),y=A.path;if(v)y+=`?${v}`;if(A.fragment)y+=`#${A.fragment}`;let R=V.request({...A.headers,[bK8.constants.HTTP2_HEADER_PATH]:y,[bK8.constants.HTTP2_HEADER_METHOD]:D});if(V.ref(),R.on("response",(h)=>{let B=new F37.HttpResponse({statusCode:h[":status"]||-1,headers:p37(h),body:R});if(O=!0,j({response:B}),z)V.close(),this.connectionManager.deleteSession(G,V)}),w)R.setTimeout(w,()=>{R.close();let h=Error(`Stream timed out because of no activity for ${w} ms`);h.name="TimeoutError",N(h)});if(q){let h=()=>{R.close();let B=Error("Request aborted");B.name="AbortError",N(B)};if(typeof q.addEventListener==="function"){let B=q;B.addEventListener("abort",h,{once:!0}),R.once("close",()=>B.removeEventListener("abort",h))}else q.onabort=h}R.on("frameError",(h,B,x)=>{N(Error(`Frame type id ${h} in stream id ${x} has failed with code ${B}.`))}),R.on("error",N),R.on("aborted",()=>{N(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${R.rstCode}.`))}),R.on("close",()=>{if(V.unref(),z)V.destroy();if(!O)N(Error("Unexpected error: http2 request did not get a response"))}),H=d37(R,A,w)})}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return{...K,[A]:q}})}httpHandlerConfigs(){return this.config??{}}destroySession(A){if(!A.destroyed)A.destroy()}}class i37 extends U37.Writable{bufferedBytes=[];_write(A,q,K){this.bufferedBytes.push(A),K()}}var dS3=(A)=>{if(cS3(A))return lS3(A);return new Promise((q,K)=>{let Y=new i37;A.pipe(Y),A.on("error",(z)=>{Y.end(),K(z)}),Y.on("error",K),Y.on("finish",function(){let z=new Uint8Array(Buffer.concat(this.bufferedBytes));q(z)})})},cS3=(A)=>typeof ReadableStream==="function"&&A instanceof ReadableStream;async function lS3(A){let q=[],K=A.getReader(),Y=!1,z=0;while(!Y){let{done:$,value:O}=await K.read();if(O)q.push(O),z+=O.length;Y=$}let w=new Uint8Array(z),_=0;for(let $ of q)w.set($,_),_+=$.length;return w}iS3.DEFAULT_REQUEST_TIMEOUT=pS3;iS3.NodeHttp2Handler=xK8;iS3.NodeHttpHandler=Iw1;iS3.streamCollector=dS3});var ON=C((qC3)=>{var uK8={warningEmitted:!1},sS3=(A)=>{if(A&&!uK8.warningEmitted&&parseInt(A.substring(1,A.indexOf(".")))<18)uK8.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
no longer support Node.js 16.x on January 6, 2025.

To continue receiving updates to AWS services, bug fixes, and security
updates please upgrade to a supported Node.js LTS version.

More information can be found at: https://a.co/74kJMmI`)};function tS3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}function eS3(A,q,K){if(!A.__aws_sdk_context)A.__aws_sdk_context={features:{}};else if(!A.__aws_sdk_context.features)A.__aws_sdk_context.features={};A.__aws_sdk_context.features[q]=K}function AC3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}qC3.emitWarningIfUnsupportedVersion=sS3;qC3.setCredentialFeature=tS3;qC3.setFeature=eS3;qC3.setTokenFeature=AC3;qC3.state=uK8});var EM=C((jC3)=>{class iX6 extends Error{name="ProviderError";tryNextLink;constructor(A,q=!0){let K,Y=!0;if(typeof q==="boolean")K=void 0,Y=q;else if(q!=null&&typeof q==="object")K=q.logger,Y=q.tryNextLink??!0;super(A);this.tryNextLink=Y,Object.setPrototypeOf(this,iX6.prototype),K?.debug?.(`@smithy/property-provider ${Y?"->":"(!)"} ${A}`)}static from(A,q=!0){return Object.assign(new this(A.message,q),A)}}class BK8 extends iX6{name="CredentialsProviderError";constructor(A,q=!0){super(A,q);Object.setPrototypeOf(this,BK8.prototype)}}class mK8 extends iX6{name="TokenProviderError";constructor(A,q=!0){super(A,q);Object.setPrototypeOf(this,mK8.prototype)}}var $C3=(...A)=>async()=>{if(A.length===0)throw new iX6("No providers in chain");let q;for(let K of A)try{return await K()}catch(Y){if(q=Y,Y?.tryNextLink)continue;throw Y}throw q},OC3=(A)=>()=>Promise.resolve(A),HC3=(A,q,K)=>{let Y,z,w,_=!1,$=async()=>{if(!z)z=A();try{Y=await z,w=!0,_=!1}finally{z=void 0}return Y};if(q===void 0)return async(O)=>{if(!w||O?.forceRefresh)Y=await $();return Y};return async(O)=>{if(!w||O?.forceRefresh)Y=await $();if(_)return Y;if(K&&!K(Y))return _=!0,Y;if(q(Y))return await $(),Y;return Y}};jC3.CredentialsProviderError=BK8;jC3.ProviderError=iX6;jC3.TokenProviderError=mK8;jC3.chain=$C3;jC3.fromStatic=OC3;jC3.memoize=HC3});var bw1=C((TC3)=>{var ZC3=ON(),GC3=EM(),n37="AWS_ACCESS_KEY_ID",r37="AWS_SECRET_ACCESS_KEY",o37="AWS_SESSION_TOKEN",a37="AWS_CREDENTIAL_EXPIRATION",s37="AWS_CREDENTIAL_SCOPE",t37="AWS_ACCOUNT_ID",fC3=(A)=>async()=>{A?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let q=process.env[n37],K=process.env[r37],Y=process.env[o37],z=process.env[a37],w=process.env[s37],_=process.env[t37];if(q&&K){let $={accessKeyId:q,secretAccessKey:K,...Y&&{sessionToken:Y},...z&&{expiration:new Date(z)},...w&&{credentialScope:w},..._&&{accountId:_}};return ZC3.setCredentialFeature($,"CREDENTIALS_ENV_VARS","g"),$}throw new GC3.CredentialsProviderError("Unable to find environment variable credentials.",{logger:A?.logger})};TC3.ENV_ACCOUNT_ID=t37;TC3.ENV_CREDENTIAL_SCOPE=s37;TC3.ENV_EXPIRATION=a37;TC3.ENV_KEY=n37;TC3.ENV_SECRET=r37;TC3.ENV_SESSION=o37;TC3.fromEnv=fC3});var FK8=C((e37)=>{Object.defineProperty(e37,"__esModule",{value:!0});e37.getHomeDir=void 0;var RC3=g6("os"),SC3=g6("path"),gK8={},CC3=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},hC3=()=>{let{HOME:A,USERPROFILE:q,HOMEPATH:K,HOMEDRIVE:Y=`C:${SC3.sep}`}=process.env;if(A)return A;if(q)return q;if(K)return`${Y}${K}`;let z=CC3();if(!gK8[z])gK8[z]=(0,RC3.homedir)();return gK8[z]};e37.getHomeDir=hC3});var QK8=C((q57)=>{Object.defineProperty(q57,"__esModule",{value:!0});q57.getSSOTokenFilepath=void 0;var IC3=g6("crypto"),bC3=g6("path"),xC3=FK8(),uC3=(A)=>{let K=(0,IC3.createHash)("sha1").update(A).digest("hex");return(0,bC3.join)((0,xC3.getHomeDir)(),".aws","sso","cache",`${K}.json`)};q57.getSSOTokenFilepath=uC3});var w57=C((Y57)=>{Object.defineProperty(Y57,"__esModule",{value:!0});Y57.getSSOTokenFromFile=Y57.tokenIntercept=void 0;var BC3=g6("fs/promises"),mC3=QK8();Y57.tokenIntercept={};var gC3=async(A)=>{if(Y57.tokenIntercept[A])return Y57.tokenIntercept[A];let q=(0,mC3.getSSOTokenFilepath)(A),K=await(0,BC3.readFile)(q,"utf8");return JSON.parse(K)};Y57.getSSOTokenFromFile=gC3});var _57=C((cC3)=>{cC3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(cC3.HttpAuthLocation||(cC3.HttpAuthLocation={}));cC3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(cC3.HttpApiKeyAuthLocation||(cC3.HttpApiKeyAuthLocation={}));cC3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(cC3.EndpointURLScheme||(cC3.EndpointURLScheme={}));cC3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(cC3.AlgorithmId||(cC3.AlgorithmId={}));var FC3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>cC3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>cC3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},QC3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},UC3=(A)=>{return FC3(A)},pC3=(A)=>{return QC3(A)};cC3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(cC3.FieldPosition||(cC3.FieldPosition={}));var dC3="__smithy_context";cC3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(cC3.IniSectionType||(cC3.IniSectionType={}));cC3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(cC3.RequestHandlerProtocol||(cC3.RequestHandlerProtocol={}));cC3.SMITHY_CONTEXT_KEY=dC3;cC3.getDefaultClientConfiguration=UC3;cC3.resolveDefaultRuntimeConfig=pC3});var H57=C(($57)=>{Object.defineProperty($57,"__esModule",{value:!0});$57.readFile=$57.fileIntercept=$57.filePromises=void 0;var rC3=g6("node:fs/promises");$57.filePromises={};$57.fileIntercept={};var oC3=(A,q)=>{if($57.fileIntercept[A]!==void 0)return $57.fileIntercept[A];if(!$57.filePromises[A]||q?.ignoreCache)$57.filePromises[A]=(0,rC3.readFile)(A,"utf8");return $57.filePromises[A]};$57.readFile=oC3});var gm=C((E36)=>{var vu6=FK8(),j57=QK8(),oK8=w57(),uw1=g6("path"),Bw1=_57(),nX6=H57(),M57="AWS_PROFILE",D57="default",aC3=(A)=>A.profile||process.env[M57]||D57,k36=".",sC3=(A)=>Object.entries(A).filter(([q])=>{let K=q.indexOf(k36);if(K===-1)return!1;return Object.values(Bw1.IniSectionType).includes(q.substring(0,K))}).reduce((q,[K,Y])=>{let z=K.indexOf(k36),w=K.substring(0,z)===Bw1.IniSectionType.PROFILE?K.substring(z+1):K;return q[w]=Y,q},{...A.default&&{default:A.default}}),tC3="AWS_CONFIG_FILE",X57=()=>process.env[tC3]||uw1.join(vu6.getHomeDir(),".aws","config"),eC3="AWS_SHARED_CREDENTIALS_FILE",Ah3=()=>process.env[eC3]||uw1.join(vu6.getHomeDir(),".aws","credentials"),qh3=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,Kh3=["__proto__","profile __proto__"],aK8=(A)=>{let q={},K,Y;for(let z of A.split(/\r?\n/)){let w=z.split(/(^|\s)[;#]/)[0].trim();if(w[0]==="["&&w[w.length-1]==="]"){K=void 0,Y=void 0;let $=w.substring(1,w.length-1),O=qh3.exec($);if(O){let[,H,,j]=O;if(Object.values(Bw1.IniSectionType).includes(H))K=[H,j].join(k36)}else K=$;if(Kh3.includes($))throw Error(`Found invalid profile name "${$}"`)}else if(K){let $=w.indexOf("=");if(![0,-1].includes($)){let[O,H]=[w.substring(0,$).trim(),w.substring($+1).trim()];if(H==="")Y=O;else{if(Y&&z.trimStart()===z)Y=void 0;q[K]=q[K]||{};let j=Y?[Y,O].join(k36):O;q[K][j]=H}}}}return q},J57=()=>({}),P57=async(A={})=>{let{filepath:q=Ah3(),configFilepath:K=X57()}=A,Y=vu6.getHomeDir(),z="~/",w=q;if(q.startsWith("~/"))w=uw1.join(Y,q.slice(2));let _=K;if(K.startsWith("~/"))_=uw1.join(Y,K.slice(2));let $=await Promise.all([nX6.readFile(_,{ignoreCache:A.ignoreCache}).then(aK8).then(sC3).catch(J57),nX6.readFile(w,{ignoreCache:A.ignoreCache}).then(aK8).catch(J57)]);return{configFile:$[0],credentialsFile:$[1]}},Yh3=(A)=>Object.entries(A).filter(([q])=>q.startsWith(Bw1.IniSectionType.SSO_SESSION+k36)).reduce((q,[K,Y])=>({...q,[K.substring(K.indexOf(k36)+1)]:Y}),{}),zh3=()=>({}),wh3=async(A={})=>nX6.readFile(A.configFilepath??X57()).then(aK8).then(Yh3).catch(zh3),_h3=(...A)=>{let q={};for(let K of A)for(let[Y,z]of Object.entries(K))if(q[Y]!==void 0)Object.assign(q[Y],z);else q[Y]=z;return q},$h3=async(A)=>{let q=await P57(A);return _h3(q.configFile,q.credentialsFile)},Oh3={getFileRecord(){return nX6.fileIntercept},interceptFile(A,q){nX6.fileIntercept[A]=Promise.resolve(q)},getTokenRecord(){return oK8.tokenIntercept},interceptToken(A,q){oK8.tokenIntercept[A]=q}};Object.defineProperty(E36,"getSSOTokenFromFile",{enumerable:!0,get:function(){return oK8.getSSOTokenFromFile}});Object.defineProperty(E36,"readFile",{enumerable:!0,get:function(){return nX6.readFile}});E36.CONFIG_PREFIX_SEPARATOR=k36;E36.DEFAULT_PROFILE=D57;E36.ENV_PROFILE=M57;E36.externalDataInterceptor=Oh3;E36.getProfileName=aC3;E36.loadSharedConfigFiles=P57;E36.loadSsoSessionData=wh3;E36.parseKnownFiles=$h3;Object.keys(vu6).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(E36,A))Object.defineProperty(E36,A,{enumerable:!0,get:function(){return vu6[A]}})});Object.keys(j57).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(E36,A))Object.defineProperty(E36,A,{enumerable:!0,get:function(){return j57[A]}})})});var HN=C((Nh3)=>{var ku6=EM(),W57=gm();function Z57(A){try{let q=new Set(Array.from(A.match(/([A-Z_]){3,}/g)??[]));return q.delete("CONFIG"),q.delete("CONFIG_PREFIX_SEPARATOR"),q.delete("ENV"),[...q].join(", ")}catch(q){return A}}var Zh3=(A,q)=>async()=>{try{let K=A(process.env,q);if(K===void 0)throw Error();return K}catch(K){throw new ku6.CredentialsProviderError(K.message||`Not found in ENV: ${Z57(A.toString())}`,{logger:q?.logger})}},Gh3=(A,{preferredFile:q="config",...K}={})=>async()=>{let Y=W57.getProfileName(K),{configFile:z,credentialsFile:w}=await W57.loadSharedConfigFiles(K),_=w[Y]||{},$=z[Y]||{},O=q==="config"?{..._,...$}:{...$,..._};try{let j=A(O,q==="config"?z:w);if(j===void 0)throw Error();return j}catch(H){throw new ku6.CredentialsProviderError(H.message||`Not found in config files w/ profile [${Y}]: ${Z57(A.toString())}`,{logger:K.logger})}},fh3=(A)=>typeof A==="function",Th3=(A)=>fh3(A)?async()=>await A():ku6.fromStatic(A),Vh3=({environmentVariableSelector:A,configFileSelector:q,default:K},Y={})=>{let{signingName:z,logger:w}=Y,_={signingName:z,logger:w};return ku6.memoize(ku6.chain(Zh3(A,_),Gh3(q,Y),Th3(K)))};Nh3.loadConfig=Vh3});var G57=C((Eh3)=>{function kh3(A){let q={};if(A=A.replace(/^\?/,""),A)for(let K of A.split("&")){let[Y,z=null]=K.split("=");if(Y=decodeURIComponent(Y),z)z=decodeURIComponent(z);if(!(Y in q))q[Y]=z;else if(Array.isArray(q[Y]))q[Y].push(z);else q[Y]=[q[Y],z]}return q}Eh3.parseQueryString=kh3});var LR=C((Rh3)=>{var yh3=G57(),f57=(A)=>{if(typeof A==="string")return f57(new URL(A));let{hostname:q,pathname:K,port:Y,protocol:z,search:w}=A,_;if(w)_=yh3.parseQueryString(w);return{hostname:q,port:Y?parseInt(Y):void 0,protocol:z,path:K,query:_}};Rh3.parseUrl=f57});var L36=C((zI3)=>{var Fm=EM(),Ch3=g6("url"),hh3=g6("buffer"),Ih3=g6("http"),A38=HN(),bh3=LR();function Lu6(A){return new Promise((q,K)=>{let Y=Ih3.request({method:"GET",...A,hostname:A.hostname?.replace(/^\[(.+)\]$/,"$1")});Y.on("error",(z)=>{K(Object.assign(new Fm.ProviderError("Unable to connect to instance metadata service"),z)),Y.destroy()}),Y.on("timeout",()=>{K(new Fm.ProviderError("TimeoutError from instance metadata service")),Y.destroy()}),Y.on("response",(z)=>{let{statusCode:w=400}=z;if(w<200||300<=w)K(Object.assign(new Fm.ProviderError("Error response received from instance metadata service"),{statusCode:w})),Y.destroy();let _=[];z.on("data",($)=>{_.push($)}),z.on("end",()=>{q(hh3.Buffer.concat(_)),Y.destroy()})}),Y.end()})}var v57=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.AccessKeyId==="string"&&typeof A.SecretAccessKey==="string"&&typeof A.Token==="string"&&typeof A.Expiration==="string",k57=(A)=>({accessKeyId:A.AccessKeyId,secretAccessKey:A.SecretAccessKey,sessionToken:A.Token,expiration:new Date(A.Expiration),...A.AccountId&&{accountId:A.AccountId}}),E57=1000,L57=0,q38=({maxRetries:A=L57,timeout:q=E57})=>({maxRetries:A,timeout:q}),tK8=(A,q)=>{let K=A();for(let Y=0;Y<q;Y++)K=K.catch(A);return K},mw1="AWS_CONTAINER_CREDENTIALS_FULL_URI",gw1="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",eK8="AWS_CONTAINER_AUTHORIZATION_TOKEN",xh3=(A={})=>{let{timeout:q,maxRetries:K}=q38(A);return()=>tK8(async()=>{let Y=await Fh3({logger:A.logger}),z=JSON.parse(await uh3(q,Y));if(!v57(z))throw new Fm.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:A.logger});return k57(z)},K)},uh3=async(A,q)=>{if(process.env[eK8])q.headers={...q.headers,Authorization:process.env[eK8]};return(await Lu6({...q,timeout:A})).toString()},Bh3="169.254.170.2",mh3={localhost:!0,"127.0.0.1":!0},gh3={"http:":!0,"https:":!0},Fh3=async({logger:A})=>{if(process.env[gw1])return{hostname:Bh3,path:process.env[gw1]};if(process.env[mw1]){let q=Ch3.parse(process.env[mw1]);if(!q.hostname||!(q.hostname in mh3))throw new Fm.CredentialsProviderError(`${q.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:A});if(!q.protocol||!(q.protocol in gh3))throw new Fm.CredentialsProviderError(`${q.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:A});return{...q,port:q.port?parseInt(q.port,10):void 0}}throw new Fm.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${gw1} or ${mw1} environment variable is set`,{tryNextLink:!1,logger:A})};class K38 extends Fm.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(A,q=!0){super(A,q);this.tryNextLink=q,Object.setPrototypeOf(this,K38.prototype)}}zI3.Endpoint=void 0;(function(A){A.IPv4="http://169.254.169.254",A.IPv6="http://[fd00:ec2::254]"})(zI3.Endpoint||(zI3.Endpoint={}));var Qh3="AWS_EC2_METADATA_SERVICE_ENDPOINT",Uh3="ec2_metadata_service_endpoint",ph3={environmentVariableSelector:(A)=>A[Qh3],configFileSelector:(A)=>A[Uh3],default:void 0},rX6;(function(A){A.IPv4="IPv4",A.IPv6="IPv6"})(rX6||(rX6={}));var dh3="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",ch3="ec2_metadata_service_endpoint_mode",lh3={environmentVariableSelector:(A)=>A[dh3],configFileSelector:(A)=>A[ch3],default:rX6.IPv4},y57=async()=>bh3.parseUrl(await ih3()||await nh3()),ih3=async()=>A38.loadConfig(ph3)(),nh3=async()=>{let A=await A38.loadConfig(lh3)();switch(A){case rX6.IPv4:return zI3.Endpoint.IPv4;case rX6.IPv6:return zI3.Endpoint.IPv6;default:throw Error(`Unsupported endpoint mode: ${A}. Select from ${Object.values(rX6)}`)}},rh3=300,oh3=300,ah3="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",T57=(A,q)=>{let K=rh3+Math.floor(Math.random()*oh3),Y=new Date(Date.now()+K*1000);q.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(Y)}.
For more information, please visit: `+ah3);let z=A.originalExpiration??A.expiration;return{...A,...z?{originalExpiration:z}:{},expiration:Y}},sh3=(A,q={})=>{let K=q?.logger||console,Y;return async()=>{let z;try{if(z=await A(),z.expiration&&z.expiration.getTime()<Date.now())z=T57(z,K)}catch(w){if(Y)K.warn("Credential renew failed: ",w),z=T57(Y,K);else throw w}return Y=z,z}},R57="/latest/meta-data/iam/security-credentials/",th3="/latest/api/token",sK8="AWS_EC2_METADATA_V1_DISABLED",V57="ec2_metadata_v1_disabled",N57="x-aws-ec2-metadata-token",eh3=(A={})=>sh3(AI3(A),{logger:A.logger}),AI3=(A={})=>{let q=!1,{logger:K,profile:Y}=A,{timeout:z,maxRetries:w}=q38(A),_=async($,O)=>{if(q||O.headers?.[N57]==null){let J=!1,M=!1,D=await A38.loadConfig({environmentVariableSelector:(X)=>{let P=X[sK8];if(M=!!P&&P!=="false",P===void 0)throw new Fm.CredentialsProviderError(`${sK8} not set in env, checking config file next.`,{logger:A.logger});return M},configFileSelector:(X)=>{let P=X[V57];return J=!!P&&P!=="false",J},default:!1},{profile:Y})();if(A.ec2MetadataV1Disabled||D){let X=[];if(A.ec2MetadataV1Disabled)X.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(J)X.push(`config file profile (${V57})`);if(M)X.push(`process environment variable (${sK8})`);throw new K38(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${X.join(", ")}].`)}}let j=(await tK8(async()=>{let J;try{J=await KI3(O)}catch(M){if(M.statusCode===401)q=!1;throw M}return J},$)).trim();return tK8(async()=>{let J;try{J=await YI3(j,O,A)}catch(M){if(M.statusCode===401)q=!1;throw M}return J},$)};return async()=>{let $=await y57();if(q)return K?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),_(w,{...$,timeout:z});else{let O;try{O=(await qI3({...$,timeout:z})).toString()}catch(H){if(H?.statusCode===400)throw Object.assign(H,{message:"EC2 Metadata token request returned error"});else if(H.message==="TimeoutError"||[403,404,405].includes(H.statusCode))q=!0;return K?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),_(w,{...$,timeout:z})}return _(w,{...$,headers:{[N57]:O},timeout:z})}}},qI3=async(A)=>Lu6({...A,path:th3,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),KI3=async(A)=>(await Lu6({...A,path:R57})).toString(),YI3=async(A,q,K)=>{let Y=JSON.parse((await Lu6({...q,path:R57+A})).toString());if(!v57(Y))throw new Fm.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:K.logger});return k57(Y)};zI3.DEFAULT_MAX_RETRIES=L57;zI3.DEFAULT_TIMEOUT=E57;zI3.ENV_CMDS_AUTH_TOKEN=eK8;zI3.ENV_CMDS_FULL_URI=mw1;zI3.ENV_CMDS_RELATIVE_URI=gw1;zI3.fromContainerMetadata=xh3;zI3.fromInstanceMetadata=eh3;zI3.getInstanceMetadataEndpoint=y57;zI3.httpRequest=Lu6;zI3.providerConfigFromInit=q38});var d2=C((Ej2,Uw1)=>{var S57,C57,h57,I57,b57,x57,u57,B57,m57,g57,F57,Q57,U57,Fw1,Y38,p57,d57,c57,oX6,l57,i57,n57,r57,o57,a57,s57,t57,e57,Qw1,A97,q97,K97;(function(A){var q=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(Y){A(K(q,K(Y)))});else if(typeof Uw1==="object"&&typeof Ej2==="object")A(K(q,K(Ej2)));else A(K(q));function K(Y,z){if(Y!==q)if(typeof Object.create==="function")Object.defineProperty(Y,"__esModule",{value:!0});else Y.__esModule=!0;return function(w,_){return Y[w]=z?z(w,_):_}}})(function(A){var q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,_){w.__proto__=_}||function(w,_){for(var $ in _)if(Object.prototype.hasOwnProperty.call(_,$))w[$]=_[$]};S57=function(w,_){if(typeof _!=="function"&&_!==null)throw TypeError("Class extends value "+String(_)+" is not a constructor or null");q(w,_);function $(){this.constructor=w}w.prototype=_===null?Object.create(_):($.prototype=_.prototype,new $)},C57=Object.assign||function(w){for(var _,$=1,O=arguments.length;$<O;$++){_=arguments[$];for(var H in _)if(Object.prototype.hasOwnProperty.call(_,H))w[H]=_[H]}return w},h57=function(w,_){var $={};for(var O in w)if(Object.prototype.hasOwnProperty.call(w,O)&&_.indexOf(O)<0)$[O]=w[O];if(w!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var H=0,O=Object.getOwnPropertySymbols(w);H<O.length;H++)if(_.indexOf(O[H])<0&&Object.prototype.propertyIsEnumerable.call(w,O[H]))$[O[H]]=w[O[H]]}return $},I57=function(w,_,$,O){var H=arguments.length,j=H<3?_:O===null?O=Object.getOwnPropertyDescriptor(_,$):O,J;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")j=Reflect.decorate(w,_,$,O);else for(var M=w.length-1;M>=0;M--)if(J=w[M])j=(H<3?J(j):H>3?J(_,$,j):J(_,$))||j;return H>3&&j&&Object.defineProperty(_,$,j),j},b57=function(w,_){return function($,O){_($,O,w)}},x57=function(w,_,$,O,H,j){function J(v){if(v!==void 0&&typeof v!=="function")throw TypeError("Function expected");return v}var M=O.kind,D=M==="getter"?"get":M==="setter"?"set":"value",X=!_&&w?O.static?w:w.prototype:null,P=_||(X?Object.getOwnPropertyDescriptor(X,O.name):{}),W,Z=!1;for(var G=$.length-1;G>=0;G--){var f={};for(var V in O)f[V]=V==="access"?{}:O[V];for(var V in O.access)f.access[V]=O.access[V];f.addInitializer=function(v){if(Z)throw TypeError("Cannot add initializers after decoration has completed");j.push(J(v||null))};var N=(0,$[G])(M==="accessor"?{get:P.get,set:P.set}:P[D],f);if(M==="accessor"){if(N===void 0)continue;if(N===null||typeof N!=="object")throw TypeError("Object expected");if(W=J(N.get))P.get=W;if(W=J(N.set))P.set=W;if(W=J(N.init))H.unshift(W)}else if(W=J(N))if(M==="field")H.unshift(W);else P[D]=W}if(X)Object.defineProperty(X,O.name,P);Z=!0},u57=function(w,_,$){var O=arguments.length>2;for(var H=0;H<_.length;H++)$=O?_[H].call(w,$):_[H].call(w);return O?$:void 0},B57=function(w){return typeof w==="symbol"?w:"".concat(w)},m57=function(w,_,$){if(typeof _==="symbol")_=_.description?"[".concat(_.description,"]"):"";return Object.defineProperty(w,"name",{configurable:!0,value:$?"".concat($," ",_):_})},g57=function(w,_){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(w,_)},F57=function(w,_,$,O){function H(j){return j instanceof $?j:new $(function(J){J(j)})}return new($||($=Promise))(function(j,J){function M(P){try{X(O.next(P))}catch(W){J(W)}}function D(P){try{X(O.throw(P))}catch(W){J(W)}}function X(P){P.done?j(P.value):H(P.value).then(M,D)}X((O=O.apply(w,_||[])).next())})},Q57=function(w,_){var $={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},O,H,j,J=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return J.next=M(0),J.throw=M(1),J.return=M(2),typeof Symbol==="function"&&(J[Symbol.iterator]=function(){return this}),J;function M(X){return function(P){return D([X,P])}}function D(X){if(O)throw TypeError("Generator is already executing.");while(J&&(J=0,X[0]&&($=0)),$)try{if(O=1,H&&(j=X[0]&2?H.return:X[0]?H.throw||((j=H.return)&&j.call(H),0):H.next)&&!(j=j.call(H,X[1])).done)return j;if(H=0,j)X=[X[0]&2,j.value];switch(X[0]){case 0:case 1:j=X;break;case 4:return $.label++,{value:X[1],done:!1};case 5:$.label++,H=X[1],X=[0];continue;case 7:X=$.ops.pop(),$.trys.pop();continue;default:if((j=$.trys,!(j=j.length>0&&j[j.length-1]))&&(X[0]===6||X[0]===2)){$=0;continue}if(X[0]===3&&(!j||X[1]>j[0]&&X[1]<j[3])){$.label=X[1];break}if(X[0]===6&&$.label<j[1]){$.label=j[1],j=X;break}if(j&&$.label<j[2]){$.label=j[2],$.ops.push(X);break}if(j[2])$.ops.pop();$.trys.pop();continue}X=_.call(w,$)}catch(P){X=[6,P],H=0}finally{O=j=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},U57=function(w,_){for(var $ in w)if($!=="default"&&!Object.prototype.hasOwnProperty.call(_,$))Qw1(_,w,$)},Qw1=Object.create?function(w,_,$,O){if(O===void 0)O=$;var H=Object.getOwnPropertyDescriptor(_,$);if(!H||("get"in H?!_.__esModule:H.writable||H.configurable))H={enumerable:!0,get:function(){return _[$]}};Object.defineProperty(w,O,H)}:function(w,_,$,O){if(O===void 0)O=$;w[O]=_[$]},Fw1=function(w){var _=typeof Symbol==="function"&&Symbol.iterator,$=_&&w[_],O=0;if($)return $.call(w);if(w&&typeof w.length==="number")return{next:function(){if(w&&O>=w.length)w=void 0;return{value:w&&w[O++],done:!w}}};throw TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},Y38=function(w,_){var $=typeof Symbol==="function"&&w[Symbol.iterator];if(!$)return w;var O=$.call(w),H,j=[],J;try{while((_===void 0||_-- >0)&&!(H=O.next()).done)j.push(H.value)}catch(M){J={error:M}}finally{try{if(H&&!H.done&&($=O.return))$.call(O)}finally{if(J)throw J.error}}return j},p57=function(){for(var w=[],_=0;_<arguments.length;_++)w=w.concat(Y38(arguments[_]));return w},d57=function(){for(var w=0,_=0,$=arguments.length;_<$;_++)w+=arguments[_].length;for(var O=Array(w),H=0,_=0;_<$;_++)for(var j=arguments[_],J=0,M=j.length;J<M;J++,H++)O[H]=j[J];return O},c57=function(w,_,$){if($||arguments.length===2){for(var O=0,H=_.length,j;O<H;O++)if(j||!(O in _)){if(!j)j=Array.prototype.slice.call(_,0,O);j[O]=_[O]}}return w.concat(j||Array.prototype.slice.call(_))},oX6=function(w){return this instanceof oX6?(this.v=w,this):new oX6(w)},l57=function(w,_,$){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var O=$.apply(w,_||[]),H,j=[];return H=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),M("next"),M("throw"),M("return",J),H[Symbol.asyncIterator]=function(){return this},H;function J(G){return function(f){return Promise.resolve(f).then(G,W)}}function M(G,f){if(O[G]){if(H[G]=function(V){return new Promise(function(N,v){j.push([G,V,N,v])>1||D(G,V)})},f)H[G]=f(H[G])}}function D(G,f){try{X(O[G](f))}catch(V){Z(j[0][3],V)}}function X(G){G.value instanceof oX6?Promise.resolve(G.value.v).then(P,W):Z(j[0][2],G)}function P(G){D("next",G)}function W(G){D("throw",G)}function Z(G,f){if(G(f),j.shift(),j.length)D(j[0][0],j[0][1])}},i57=function(w){var _,$;return _={},O("next"),O("throw",function(H){throw H}),O("return"),_[Symbol.iterator]=function(){return this},_;function O(H,j){_[H]=w[H]?function(J){return($=!$)?{value:oX6(w[H](J)),done:!1}:j?j(J):J}:j}},n57=function(w){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var _=w[Symbol.asyncIterator],$;return _?_.call(w):(w=typeof Fw1==="function"?Fw1(w):w[Symbol.iterator](),$={},O("next"),O("throw"),O("return"),$[Symbol.asyncIterator]=function(){return this},$);function O(j){$[j]=w[j]&&function(J){return new Promise(function(M,D){J=w[j](J),H(M,D,J.done,J.value)})}}function H(j,J,M,D){Promise.resolve(D).then(function(X){j({value:X,done:M})},J)}},r57=function(w,_){if(Object.defineProperty)Object.defineProperty(w,"raw",{value:_});else w.raw=_;return w};var K=Object.create?function(w,_){Object.defineProperty(w,"default",{enumerable:!0,value:_})}:function(w,_){w.default=_},Y=function(w){return Y=Object.getOwnPropertyNames||function(_){var $=[];for(var O in _)if(Object.prototype.hasOwnProperty.call(_,O))$[$.length]=O;return $},Y(w)};o57=function(w){if(w&&w.__esModule)return w;var _={};if(w!=null){for(var $=Y(w),O=0;O<$.length;O++)if($[O]!=="default")Qw1(_,w,$[O])}return K(_,w),_},a57=function(w){return w&&w.__esModule?w:{default:w}},s57=function(w,_,$,O){if($==="a"&&!O)throw TypeError("Private accessor was defined without a getter");if(typeof _==="function"?w!==_||!O:!_.has(w))throw TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?O:$==="a"?O.call(w):O?O.value:_.get(w)},t57=function(w,_,$,O,H){if(O==="m")throw TypeError("Private method is not writable");if(O==="a"&&!H)throw TypeError("Private accessor was defined without a setter");if(typeof _==="function"?w!==_||!H:!_.has(w))throw TypeError("Cannot write private member to an object whose class did not declare it");return O==="a"?H.call(w,$):H?H.value=$:_.set(w,$),$},e57=function(w,_){if(_===null||typeof _!=="object"&&typeof _!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof w==="function"?_===w:w.has(_)},A97=function(w,_,$){if(_!==null&&_!==void 0){if(typeof _!=="object"&&typeof _!=="function")throw TypeError("Object expected.");var O,H;if($){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");O=_[Symbol.asyncDispose]}if(O===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(O=_[Symbol.dispose],$)H=O}if(typeof O!=="function")throw TypeError("Object not disposable.");if(H)O=function(){try{H.call(this)}catch(j){return Promise.reject(j)}};w.stack.push({value:_,dispose:O,async:$})}else if($)w.stack.push({async:!0});return _};var z=typeof SuppressedError==="function"?SuppressedError:function(w,_,$){var O=Error($);return O.name="SuppressedError",O.error=w,O.suppressed=_,O};q97=function(w){function _(j){w.error=w.hasError?new z(j,w.error,"An error was suppressed during disposal."):j,w.hasError=!0}var $,O=0;function H(){while($=w.stack.pop())try{if(!$.async&&O===1)return O=0,w.stack.push($),Promise.resolve().then(H);if($.dispose){var j=$.dispose.call($.value);if($.async)return O|=2,Promise.resolve(j).then(H,function(J){return _(J),H()})}else O|=1}catch(J){_(J)}if(O===1)return w.hasError?Promise.reject(w.error):Promise.resolve();if(w.hasError)throw w.error}return H()},K97=function(w,_){if(typeof w==="string"&&/^\.\.?\//.test(w))return w.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function($,O,H,j,J){return O?_?".jsx":".js":H&&(!j||!J)?$:H+j+"."+J.toLowerCase()+"js"});return w},A("__extends",S57),A("__assign",C57),A("__rest",h57),A("__decorate",I57),A("__param",b57),A("__esDecorate",x57),A("__runInitializers",u57),A("__propKey",B57),A("__setFunctionName",m57),A("__metadata",g57),A("__awaiter",F57),A("__generator",Q57),A("__exportStar",U57),A("__createBinding",Qw1),A("__values",Fw1),A("__read",Y38),A("__spread",p57),A("__spreadArrays",d57),A("__spreadArray",c57),A("__await",oX6),A("__asyncGenerator",l57),A("__asyncDelegator",i57),A("__asyncValues",n57),A("__makeTemplateObject",r57),A("__importStar",o57),A("__importDefault",a57),A("__classPrivateFieldGet",s57),A("__classPrivateFieldSet",t57),A("__classPrivateFieldIn",e57),A("__addDisposableResource",A97),A("__disposeResources",q97),A("__rewriteRelativeImportExtension",K97)})});var w97=C((Y97)=>{Object.defineProperty(Y97,"__esModule",{value:!0});Y97.checkUrl=void 0;var PI3=EM(),WI3="169.254.170.2",ZI3="169.254.170.23",GI3="[fd00:ec2::23]",fI3=(A,q)=>{if(A.protocol==="https:")return;if(A.hostname===WI3||A.hostname===ZI3||A.hostname===GI3)return;if(A.hostname.includes("[")){if(A.hostname==="[::1]"||A.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(A.hostname==="localhost")return;let K=A.hostname.split("."),Y=(z)=>{let w=parseInt(z,10);return 0<=w&&w<=255};if(K[0]==="127"&&Y(K[1])&&Y(K[2])&&Y(K[3])&&K.length===4)return}throw new PI3.CredentialsProviderError(`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:q})};Y97.checkUrl=fI3});var j38=C((EI3)=>{EI3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(EI3.HttpAuthLocation||(EI3.HttpAuthLocation={}));EI3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(EI3.HttpApiKeyAuthLocation||(EI3.HttpApiKeyAuthLocation={}));EI3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(EI3.EndpointURLScheme||(EI3.EndpointURLScheme={}));EI3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(EI3.AlgorithmId||(EI3.AlgorithmId={}));var TI3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>EI3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>EI3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},VI3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},NI3=(A)=>{return TI3(A)},vI3=(A)=>{return VI3(A)};EI3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(EI3.FieldPosition||(EI3.FieldPosition={}));var kI3="__smithy_context";EI3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(EI3.IniSectionType||(EI3.IniSectionType={}));EI3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(EI3.RequestHandlerProtocol||(EI3.RequestHandlerProtocol={}));EI3.SMITHY_CONTEXT_KEY=kI3;EI3.getDefaultClientConfiguration=NI3;EI3.resolveDefaultRuntimeConfig=vI3});var H97=C((xI3)=>{var SI3=j38(),CI3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},hI3=(A)=>{return{httpHandler:A.httpHandler()}};class _97{name;kind;values;constructor({name:A,kind:q=SI3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class $97{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class pw1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new pw1({...A,headers:{...A.headers}});if(q.query)q.query=II3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return pw1.clone(this)}}function II3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class O97{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function bI3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}xI3.Field=_97;xI3.Fields=$97;xI3.HttpRequest=pw1;xI3.HttpResponse=O97;xI3.getHttpHandlerExtensionConfiguration=CI3;xI3.isValidHostname=bI3;xI3.resolveHttpHandlerRuntimeConfig=hI3});var Qm=C((pI3)=>{var y36=(A,q)=>{let K=[];if(A)K.push(A);if(q)for(let Y of q)K.push(Y);return K},$t=(A,q)=>{return`${A||"anonymous"}${q&&q.length>0?` (a.k.a. ${q.join(",")})`:""}`},J38=()=>{let A=[],q=[],K=!1,Y=new Set,z=(J)=>J.sort((M,D)=>j97[D.step]-j97[M.step]||J97[D.priority||"normal"]-J97[M.priority||"normal"]),w=(J)=>{let M=!1,D=(X)=>{let P=y36(X.name,X.aliases);if(P.includes(J)){M=!0;for(let W of P)Y.delete(W);return!1}return!0};return A=A.filter(D),q=q.filter(D),M},_=(J)=>{let M=!1,D=(X)=>{if(X.middleware===J){M=!0;for(let P of y36(X.name,X.aliases))Y.delete(P);return!1}return!0};return A=A.filter(D),q=q.filter(D),M},$=(J)=>{return A.forEach((M)=>{J.add(M.middleware,{...M})}),q.forEach((M)=>{J.addRelativeTo(M.middleware,{...M})}),J.identifyOnResolve?.(j.identifyOnResolve()),J},O=(J)=>{let M=[];return J.before.forEach((D)=>{if(D.before.length===0&&D.after.length===0)M.push(D);else M.push(...O(D))}),M.push(J),J.after.reverse().forEach((D)=>{if(D.before.length===0&&D.after.length===0)M.push(D);else M.push(...O(D))}),M},H=(J=!1)=>{let M=[],D=[],X={};return A.forEach((W)=>{let Z={...W,before:[],after:[]};for(let G of y36(Z.name,Z.aliases))X[G]=Z;M.push(Z)}),q.forEach((W)=>{let Z={...W,before:[],after:[]};for(let G of y36(Z.name,Z.aliases))X[G]=Z;D.push(Z)}),D.forEach((W)=>{if(W.toMiddleware){let Z=X[W.toMiddleware];if(Z===void 0){if(J)return;throw Error(`${W.toMiddleware} is not found when adding ${$t(W.name,W.aliases)} middleware ${W.relation} ${W.toMiddleware}`)}if(W.relation==="after")Z.after.push(W);if(W.relation==="before")Z.before.push(W)}}),z(M).map(O).reduce((W,Z)=>{return W.push(...Z),W},[])},j={add:(J,M={})=>{let{name:D,override:X,aliases:P}=M,W={step:"initialize",priority:"normal",middleware:J,...M},Z=y36(D,P);if(Z.length>0){if(Z.some((G)=>Y.has(G))){if(!X)throw Error(`Duplicate middleware name '${$t(D,P)}'`);for(let G of Z){let f=A.findIndex((N)=>N.name===G||N.aliases?.some((v)=>v===G));if(f===-1)continue;let V=A[f];if(V.step!==W.step||W.priority!==V.priority)throw Error(`"${$t(V.name,V.aliases)}" middleware with ${V.priority} priority in ${V.step} step cannot be overridden by "${$t(D,P)}" middleware with ${W.priority} priority in ${W.step} step.`);A.splice(f,1)}}for(let G of Z)Y.add(G)}A.push(W)},addRelativeTo:(J,M)=>{let{name:D,override:X,aliases:P}=M,W={middleware:J,...M},Z=y36(D,P);if(Z.length>0){if(Z.some((G)=>Y.has(G))){if(!X)throw Error(`Duplicate middleware name '${$t(D,P)}'`);for(let G of Z){let f=q.findIndex((N)=>N.name===G||N.aliases?.some((v)=>v===G));if(f===-1)continue;let V=q[f];if(V.toMiddleware!==W.toMiddleware||V.relation!==W.relation)throw Error(`"${$t(V.name,V.aliases)}" middleware ${V.relation} "${V.toMiddleware}" middleware cannot be overridden by "${$t(D,P)}" middleware ${W.relation} "${W.toMiddleware}" middleware.`);q.splice(f,1)}}for(let G of Z)Y.add(G)}q.push(W)},clone:()=>$(J38()),use:(J)=>{J.applyToStack(j)},remove:(J)=>{if(typeof J==="string")return w(J);else return _(J)},removeByTag:(J)=>{let M=!1,D=(X)=>{let{tags:P,name:W,aliases:Z}=X;if(P&&P.includes(J)){let G=y36(W,Z);for(let f of G)Y.delete(f);return M=!0,!1}return!0};return A=A.filter(D),q=q.filter(D),M},concat:(J)=>{let M=$(J38());return M.use(J),M.identifyOnResolve(K||M.identifyOnResolve()||(J.identifyOnResolve?.()??!1)),M},applyToStack:$,identify:()=>{return H(!0).map((J)=>{let M=J.step??J.relation+" "+J.toMiddleware;return $t(J.name,J.aliases)+" - "+M})},identifyOnResolve(J){if(typeof J==="boolean")K=J;return K},resolve:(J,M)=>{for(let D of H().map((X)=>X.middleware).reverse())J=D(J,M);if(K)console.log(j.identify());return J}};return j},j97={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},J97={high:3,normal:2,low:1};pI3.constructStack=J38});var M97=C((lI3)=>{var cI3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";lI3.isArrayBuffer=cI3});var dw1=C((aI3)=>{var nI3=M97(),M38=g6("buffer"),rI3=(A,q=0,K=A.byteLength-q)=>{if(!nI3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return M38.Buffer.from(A,q,K)},oI3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?M38.Buffer.from(A,q):M38.Buffer.from(A)};aI3.fromArrayBuffer=rI3;aI3.fromString=oI3});var P97=C((D97)=>{Object.defineProperty(D97,"__esModule",{value:!0});D97.fromBase64=void 0;var eI3=dw1(),Ab3=/^[A-Za-z0-9+/]*={0,2}$/,qb3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Ab3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,eI3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};D97.fromBase64=qb3});var W97=C((Yb3)=>{var Kb3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";Yb3.isArrayBuffer=Kb3});var Z97=C((Ob3)=>{var wb3=W97(),D38=g6("buffer"),_b3=(A,q=0,K=A.byteLength-q)=>{if(!wb3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return D38.Buffer.from(A,q,K)},$b3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?D38.Buffer.from(A,q):D38.Buffer.from(A)};Ob3.fromArrayBuffer=_b3;Ob3.fromString=$b3});var Z2=C((Db3)=>{var G97=Z97(),f97=(A)=>{let q=G97.fromString(A,"utf8");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT)},Jb3=(A)=>{if(typeof A==="string")return f97(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(A)},Mb3=(A)=>{if(typeof A==="string")return A;if(typeof A!=="object"||typeof A.byteOffset!=="number"||typeof A.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return G97.fromArrayBuffer(A.buffer,A.byteOffset,A.byteLength).toString("utf8")};Db3.fromUtf8=f97;Db3.toUint8Array=Jb3;Db3.toUtf8=Mb3});var N97=C((T97)=>{Object.defineProperty(T97,"__esModule",{value:!0});T97.toBase64=void 0;var Zb3=dw1(),Gb3=Z2(),fb3=(A)=>{let q;if(typeof A==="string")q=(0,Gb3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Zb3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};T97.toBase64=fb3});var aX6=C((Ru6)=>{var v97=P97(),k97=N97();Object.keys(v97).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ru6,A))Object.defineProperty(Ru6,A,{enumerable:!0,get:function(){return v97[A]}})});Object.keys(k97).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ru6,A))Object.defineProperty(Ru6,A,{enumerable:!0,get:function(){return k97[A]}})})});var X38=C((L97)=>{Object.defineProperty(L97,"__esModule",{value:!0});L97.ChecksumStream=void 0;var Tb3=aX6(),Vb3=g6("stream");class E97 extends Vb3.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:A,checksum:q,source:K,checksumSourceLocation:Y,base64Encoder:z}){super();if(typeof K.pipe==="function")this.source=K;else throw Error(`@smithy/util-stream: unsupported source type ${K?.constructor?.name??K} in ChecksumStream.`);this.base64Encoder=z??Tb3.toBase64,this.expectedChecksum=A,this.checksum=q,this.checksumSourceLocation=Y,this.source.pipe(this)}_read(A){}_write(A,q,K){try{this.checksum.update(A),this.push(A)}catch(Y){return K(Y)}return K()}async _final(A){try{let q=await this.checksum.digest(),K=this.base64Encoder(q);if(this.expectedChecksum!==K)return A(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${K}" in response header "${this.checksumSourceLocation}".`))}catch(q){return A(q)}return this.push(null),A()}}L97.ChecksumStream=E97});var Ot=C((R97)=>{Object.defineProperty(R97,"__esModule",{value:!0});R97.isBlob=R97.isReadableStream=void 0;var Nb3=(A)=>typeof ReadableStream==="function"&&(A?.constructor?.name===ReadableStream.name||A instanceof ReadableStream);R97.isReadableStream=Nb3;var vb3=(A)=>{return typeof Blob==="function"&&(A?.constructor?.name===Blob.name||A instanceof Blob)};R97.isBlob=vb3});var b97=C((h97)=>{Object.defineProperty(h97,"__esModule",{value:!0});h97.ChecksumStream=void 0;var Eb3=typeof ReadableStream==="function"?ReadableStream:function(){};class C97 extends Eb3{}h97.ChecksumStream=C97});var B97=C((x97)=>{Object.defineProperty(x97,"__esModule",{value:!0});x97.createChecksumStream=void 0;var Lb3=aX6(),yb3=Ot(),Rb3=b97(),Sb3=({expectedChecksum:A,checksum:q,source:K,checksumSourceLocation:Y,base64Encoder:z})=>{if(!(0,yb3.isReadableStream)(K))throw Error(`@smithy/util-stream: unsupported source type ${K?.constructor?.name??K} in ChecksumStream.`);let w=z??Lb3.toBase64;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let _=new TransformStream({start(){},async transform(O,H){q.update(O),H.enqueue(O)},async flush(O){let H=await q.digest(),j=w(H);if(A!==j){let J=Error(`Checksum mismatch: expected "${A}" but received "${j}" in response header "${Y}".`);O.error(J)}else O.terminate()}});K.pipeThrough(_);let $=_.readable;return Object.setPrototypeOf($,Rb3.ChecksumStream.prototype),$};x97.createChecksumStream=Sb3});var g97=C((m97)=>{Object.defineProperty(m97,"__esModule",{value:!0});m97.createChecksumStream=bb3;var Cb3=Ot(),hb3=X38(),Ib3=B97();function bb3(A){if(typeof ReadableStream==="function"&&(0,Cb3.isReadableStream)(A.source))return(0,Ib3.createChecksumStream)(A);return new hb3.ChecksumStream(A)}});var P38=C((Q97)=>{Object.defineProperty(Q97,"__esModule",{value:!0});Q97.ByteArrayCollector=void 0;class F97{allocByteArray;byteLength=0;byteArrays=[];constructor(A){this.allocByteArray=A}push(A){this.byteArrays.push(A),this.byteLength+=A.byteLength}flush(){if(this.byteArrays.length===1){let K=this.byteArrays[0];return this.reset(),K}let A=this.allocByteArray(this.byteLength),q=0;for(let K=0;K<this.byteArrays.length;++K){let Y=this.byteArrays[K];A.set(Y,q),q+=Y.byteLength}return this.reset(),A}reset(){this.byteArrays=[],this.byteLength=0}}Q97.ByteArrayCollector=F97});var n97=C((l97)=>{Object.defineProperty(l97,"__esModule",{value:!0});l97.createBufferedReadable=void 0;l97.createBufferedReadableStream=p97;l97.merge=d97;l97.flush=cw1;l97.sizeOf=sX6;l97.modeOf=c97;var ub3=P38();function p97(A,q,K){let Y=A.getReader(),z=!1,w=0,_=["",new ub3.ByteArrayCollector((H)=>new Uint8Array(H))],$=-1,O=async(H)=>{let{value:j,done:J}=await Y.read(),M=j;if(J){if($!==-1){let D=cw1(_,$);if(sX6(D)>0)H.enqueue(D)}H.close()}else{let D=c97(M,!1);if($!==D){if($>=0)H.enqueue(cw1(_,$));$=D}if($===-1){H.enqueue(M);return}let X=sX6(M);w+=X;let P=sX6(_[$]);if(X>=q&&P===0)H.enqueue(M);else{let W=d97(_,$,M);if(!z&&w>q*2)z=!0,K?.warn(`@smithy/util-stream - stream chunk size ${X} is below threshold of ${q}, automatically buffering.`);if(W>=q)H.enqueue(cw1(_,$));else await O(H)}}};return new ReadableStream({pull:O})}l97.createBufferedReadable=p97;function d97(A,q,K){switch(q){case 0:return A[0]+=K,sX6(A[0]);case 1:case 2:return A[q].push(K),sX6(A[q])}}function cw1(A,q){switch(q){case 0:let K=A[0];return A[0]="",K;case 1:case 2:return A[q].flush()}throw Error(`@smithy/util-stream - invalid index ${q} given to flush()`)}function sX6(A){return A?.byteLength??A?.length??0}function c97(A,q=!0){if(q&&typeof Buffer<"u"&&A instanceof Buffer)return 2;if(A instanceof Uint8Array)return 1;if(typeof A==="string")return 0;return-1}});var a97=C((o97)=>{Object.defineProperty(o97,"__esModule",{value:!0});o97.createBufferedReadable=db3;var Ub3=g6("node:stream"),r97=P38(),Hc=n97(),pb3=Ot();function db3(A,q,K){if((0,pb3.isReadableStream)(A))return(0,Hc.createBufferedReadableStream)(A,q,K);let Y=new Ub3.Readable({read(){}}),z=!1,w=0,_=["",new r97.ByteArrayCollector((O)=>new Uint8Array(O)),new r97.ByteArrayCollector((O)=>Buffer.from(new Uint8Array(O)))],$=-1;return A.on("data",(O)=>{let H=(0,Hc.modeOf)(O,!0);if($!==H){if($>=0)Y.push((0,Hc.flush)(_,$));$=H}if($===-1){Y.push(O);return}let j=(0,Hc.sizeOf)(O);w+=j;let J=(0,Hc.sizeOf)(_[$]);if(j>=q&&J===0)Y.push(O);else{let M=(0,Hc.merge)(_,$,O);if(!z&&w>q*2)z=!0,K?.warn(`@smithy/util-stream - stream chunk size ${j} is below threshold of ${q}, automatically buffering.`);if(M>=q)Y.push((0,Hc.flush)(_,$))}}),A.on("end",()=>{if($!==-1){let O=(0,Hc.flush)(_,$);if((0,Hc.sizeOf)(O)>0)Y.push(O)}Y.push(null)}),Y}});var e97=C((s97)=>{Object.defineProperty(s97,"__esModule",{value:!0});s97.getAwsChunkedEncodingStream=void 0;var lb3=g6("stream"),ib3=(A,q)=>{let{base64Encoder:K,bodyLengthChecker:Y,checksumAlgorithmFn:z,checksumLocationName:w,streamHasher:_}=q,$=K!==void 0&&z!==void 0&&w!==void 0&&_!==void 0,O=$?_(z,A):void 0,H=new lb3.Readable({read:()=>{}});return A.on("data",(j)=>{let J=Y(j)||0;H.push(`${J.toString(16)}\r
`),H.push(j),H.push(`\r
`)}),A.on("end",async()=>{if(H.push(`0\r
`),$){let j=K(await O);H.push(`${w}:${j}\r
`),H.push(`\r
`)}H.push(null)}),H};s97.getAwsChunkedEncodingStream=ib3});var qY7=C((AY7)=>{Object.defineProperty(AY7,"__esModule",{value:!0});AY7.headStream=nb3;async function nb3(A,q){let K=0,Y=[],z=A.getReader(),w=!1;while(!w){let{done:O,value:H}=await z.read();if(H)Y.push(H),K+=H?.byteLength??0;if(K>=q)break;w=O}z.releaseLock();let _=new Uint8Array(Math.min(q,K)),$=0;for(let O of Y){if(O.byteLength>_.byteLength-$){_.set(O.subarray(0,_.byteLength-$),$);break}else _.set(O,$);$+=O.length}return _}});var wY7=C((YY7)=>{Object.defineProperty(YY7,"__esModule",{value:!0});YY7.headStream=void 0;var ob3=g6("stream"),ab3=qY7(),sb3=Ot(),tb3=(A,q)=>{if((0,sb3.isReadableStream)(A))return(0,ab3.headStream)(A,q);return new Promise((K,Y)=>{let z=new KY7;z.limit=q,A.pipe(z),A.on("error",(w)=>{z.end(),Y(w)}),z.on("error",Y),z.on("finish",function(){let w=new Uint8Array(Buffer.concat(this.buffers));K(w)})})};YY7.headStream=tb3;class KY7 extends ob3.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(A,q,K){if(this.buffers.push(A),this.bytesBuffered+=A.byteLength??0,this.bytesBuffered>=this.limit){let Y=this.bytesBuffered-this.limit,z=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=z.subarray(0,z.byteLength-Y),this.emit("finish")}K()}}});var _Y7=C((zx3)=>{zx3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(zx3.HttpAuthLocation||(zx3.HttpAuthLocation={}));zx3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(zx3.HttpApiKeyAuthLocation||(zx3.HttpApiKeyAuthLocation={}));zx3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(zx3.EndpointURLScheme||(zx3.EndpointURLScheme={}));zx3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(zx3.AlgorithmId||(zx3.AlgorithmId={}));var eb3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>zx3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>zx3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Ax3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},qx3=(A)=>{return eb3(A)},Kx3=(A)=>{return Ax3(A)};zx3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(zx3.FieldPosition||(zx3.FieldPosition={}));var Yx3="__smithy_context";zx3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(zx3.IniSectionType||(zx3.IniSectionType={}));zx3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(zx3.RequestHandlerProtocol||(zx3.RequestHandlerProtocol={}));zx3.SMITHY_CONTEXT_KEY=Yx3;zx3.getDefaultClientConfiguration=qx3;zx3.resolveDefaultRuntimeConfig=Kx3});var jY7=C((Dx3)=>{var Ox3=_Y7(),Hx3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},jx3=(A)=>{return{httpHandler:A.httpHandler()}};class $Y7{name;kind;values;constructor({name:A,kind:q=Ox3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class OY7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class lw1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new lw1({...A,headers:{...A.headers}});if(q.query)q.query=Jx3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return lw1.clone(this)}}function Jx3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class HY7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Mx3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Dx3.Field=$Y7;Dx3.Fields=OY7;Dx3.HttpRequest=lw1;Dx3.HttpResponse=HY7;Dx3.getHttpHandlerExtensionConfiguration=Hx3;Dx3.isValidHostname=Mx3;Dx3.resolveHttpHandlerRuntimeConfig=jx3});var MY7=C((vx3)=>{var JY7=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,Vx3),Vx3=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,Nx3=(A)=>A.split("/").map(JY7).join("/");vx3.escapeUri=JY7;vx3.escapeUriPath=Nx3});var DY7=C((yx3)=>{var N38=MY7();function Lx3(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=N38.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${N38.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${N38.escapeUri(Y)}`;q.push(z)}}return q.join("&")}yx3.buildQueryString=Lx3});var WY7=C((Bx3)=>{var XY7=jY7(),Sx3=DY7(),Cx3=aX6();function PY7(A,q){return new Request(A,q)}function hx3(A=0){return new Promise((q,K)=>{if(A)setTimeout(()=>{let Y=Error(`Request did not complete within ${A} ms`);Y.name="TimeoutError",K(Y)},A)})}var iw1={supported:void 0};class v38{config;configProvider;static create(A){if(typeof A?.handle==="function")return A;return new v38(A)}constructor(A){if(typeof A==="function")this.configProvider=A().then((q)=>q||{});else this.config=A??{},this.configProvider=Promise.resolve(this.config);if(iw1.supported===void 0)iw1.supported=Boolean(typeof Request<"u"&&"keepalive"in PY7("https://[::1]"))}destroy(){}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config)this.config=await this.configProvider;let Y=K??this.config.requestTimeout,z=this.config.keepAlive===!0,w=this.config.credentials;if(q?.aborted){let Z=Error("Request aborted");return Z.name="AbortError",Promise.reject(Z)}let _=A.path,$=Sx3.buildQueryString(A.query||{});if($)_+=`?${$}`;if(A.fragment)_+=`#${A.fragment}`;let O="";if(A.username!=null||A.password!=null){let Z=A.username??"",G=A.password??"";O=`${Z}:${G}@`}let{port:H,method:j}=A,J=`${A.protocol}//${O}${A.hostname}${H?`:${H}`:""}${_}`,M=j==="GET"||j==="HEAD"?void 0:A.body,D={body:M,headers:new Headers(A.headers),method:j,credentials:w};if(this.config?.cache)D.cache=this.config.cache;if(M)D.duplex="half";if(typeof AbortController<"u")D.signal=q;if(iw1.supported)D.keepalive=z;if(typeof this.config.requestInit==="function")Object.assign(D,this.config.requestInit(A));let X=()=>{},P=PY7(J,D),W=[fetch(P).then((Z)=>{let G=Z.headers,f={};for(let N of G.entries())f[N[0]]=N[1];if(Z.body==null)return Z.blob().then((N)=>({response:new XY7.HttpResponse({headers:f,reason:Z.statusText,statusCode:Z.status,body:N})}));return{response:new XY7.HttpResponse({headers:f,reason:Z.statusText,statusCode:Z.status,body:Z.body})}}),hx3(Y)];if(q)W.push(new Promise((Z,G)=>{let f=()=>{let V=Error("Request aborted");V.name="AbortError",G(V)};if(typeof q.addEventListener==="function"){let V=q;V.addEventListener("abort",f,{once:!0}),X=()=>V.removeEventListener("abort",f)}else q.onabort=f}));return Promise.race(W).finally(X)}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return K[A]=q,K})}httpHandlerConfigs(){return this.config??{}}}var Ix3=async(A)=>{if(typeof Blob==="function"&&A instanceof Blob||A.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await A.arrayBuffer());return bx3(A)}return xx3(A)};async function bx3(A){let q=await ux3(A),K=Cx3.fromBase64(q);return new Uint8Array(K)}async function xx3(A){let q=[],K=A.getReader(),Y=!1,z=0;while(!Y){let{done:$,value:O}=await K.read();if(O)q.push(O),z+=O.length;Y=$}let w=new Uint8Array(z),_=0;for(let $ of q)w.set($,_),_+=$.length;return w}function ux3(A){return new Promise((q,K)=>{let Y=new FileReader;Y.onloadend=()=>{if(Y.readyState!==2)return K(Error("Reader aborted too early"));let z=Y.result??"",w=z.indexOf(","),_=w>-1?w+1:z.length;q(z.substring(_))},Y.onabort=()=>K(Error("Read aborted")),Y.onerror=()=>K(Y.error),Y.readAsDataURL(A)})}Bx3.FetchHttpHandler=v38;Bx3.keepAliveSupport=iw1;Bx3.streamCollector=Ix3});var GY7=C((px3)=>{var ZY7={},k38={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;ZY7[A]=q,k38[q]=A}function Qx3(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in k38)q[K/2]=k38[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function Ux3(A){let q="";for(let K=0;K<A.byteLength;K++)q+=ZY7[A[K]];return q}px3.fromHex=Qx3;px3.toHex=Ux3});var kY7=C((NY7)=>{Object.defineProperty(NY7,"__esModule",{value:!0});NY7.sdkStreamMixin=void 0;var lx3=WY7(),ix3=aX6(),nx3=GY7(),rx3=Z2(),fY7=Ot(),TY7="The stream has already been transformed.",ox3=(A)=>{if(!VY7(A)&&!(0,fY7.isReadableStream)(A)){let z=A?.__proto__?.constructor?.name||A;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${z}`)}let q=!1,K=async()=>{if(q)throw Error(TY7);return q=!0,await(0,lx3.streamCollector)(A)},Y=(z)=>{if(typeof z.stream!=="function")throw 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 z.stream()};return Object.assign(A,{transformToByteArray:K,transformToString:async(z)=>{let w=await K();if(z==="base64")return(0,ix3.toBase64)(w);else if(z==="hex")return(0,nx3.toHex)(w);else if(z===void 0||z==="utf8"||z==="utf-8")return(0,rx3.toUtf8)(w);else if(typeof TextDecoder==="function")return new TextDecoder(z).decode(w);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(q)throw Error(TY7);if(q=!0,VY7(A))return Y(A);else if((0,fY7.isReadableStream)(A))return A;else throw Error(`Cannot transform payload to web stream, got ${A}`)}})};NY7.sdkStreamMixin=ox3;var VY7=(A)=>typeof Blob==="function"&&A instanceof Blob});var RY7=C((LY7)=>{Object.defineProperty(LY7,"__esModule",{value:!0});LY7.sdkStreamMixin=void 0;var ax3=$N(),sx3=dw1(),E38=g6("stream"),tx3=kY7(),EY7="The stream has already been transformed.",ex3=(A)=>{if(!(A instanceof E38.Readable))try{return(0,tx3.sdkStreamMixin)(A)}catch(Y){let z=A?.__proto__?.constructor?.name||A;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${z}`)}let q=!1,K=async()=>{if(q)throw Error(EY7);return q=!0,await(0,ax3.streamCollector)(A)};return Object.assign(A,{transformToByteArray:K,transformToString:async(Y)=>{let z=await K();if(Y===void 0||Buffer.isEncoding(Y))return(0,sx3.fromArrayBuffer)(z.buffer,z.byteOffset,z.byteLength).toString(Y);else return new TextDecoder(Y).decode(z)},transformToWebStream:()=>{if(q)throw Error(EY7);if(A.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof E38.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return q=!0,E38.Readable.toWeb(A)}})};LY7.sdkStreamMixin=ex3});var CY7=C((SY7)=>{Object.defineProperty(SY7,"__esModule",{value:!0});SY7.splitStream=Au3;async function Au3(A){if(typeof A.stream==="function")A=A.stream();return A.tee()}});var xY7=C((bY7)=>{Object.defineProperty(bY7,"__esModule",{value:!0});bY7.splitStream=Yu3;var hY7=g6("stream"),Ku3=CY7(),IY7=Ot();async function Yu3(A){if((0,IY7.isReadableStream)(A)||(0,IY7.isBlob)(A))return(0,Ku3.splitStream)(A);let q=new hY7.PassThrough,K=new hY7.PassThrough;return A.pipe(q),A.pipe(K),[q,K]}});var L38=C((S0)=>{var uY7=aX6(),BY7=Z2(),mY7=X38(),gY7=g97(),FY7=a97(),QY7=e97(),UY7=wY7(),pY7=RY7(),dY7=xY7(),cY7=Ot();class Cu6 extends Uint8Array{static fromString(A,q="utf-8"){if(typeof A==="string"){if(q==="base64")return Cu6.mutate(uY7.fromBase64(A));return Cu6.mutate(BY7.fromUtf8(A))}throw Error(`Unsupported conversion from ${typeof A} to Uint8ArrayBlobAdapter.`)}static mutate(A){return Object.setPrototypeOf(A,Cu6.prototype),A}transformToString(A="utf-8"){if(A==="base64")return uY7.toBase64(this);return BY7.toUtf8(this)}}S0.Uint8ArrayBlobAdapter=Cu6;Object.keys(mY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return mY7[A]}})});Object.keys(gY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return gY7[A]}})});Object.keys(FY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return FY7[A]}})});Object.keys(QY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return QY7[A]}})});Object.keys(UY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return UY7[A]}})});Object.keys(pY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return pY7[A]}})});Object.keys(dY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return dY7[A]}})});Object.keys(cY7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(S0,A))Object.defineProperty(S0,A,{enumerable:!0,get:function(){return cY7[A]}})})});var b38=C((Ju3)=>{Ju3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ju3.HttpAuthLocation||(Ju3.HttpAuthLocation={}));Ju3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ju3.HttpApiKeyAuthLocation||(Ju3.HttpApiKeyAuthLocation={}));Ju3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Ju3.EndpointURLScheme||(Ju3.EndpointURLScheme={}));Ju3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Ju3.AlgorithmId||(Ju3.AlgorithmId={}));var _u3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Ju3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Ju3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},$u3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Ou3=(A)=>{return _u3(A)},Hu3=(A)=>{return $u3(A)};Ju3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Ju3.FieldPosition||(Ju3.FieldPosition={}));var ju3="__smithy_context";Ju3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Ju3.IniSectionType||(Ju3.IniSectionType={}));Ju3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Ju3.RequestHandlerProtocol||(Ju3.RequestHandlerProtocol={}));Ju3.SMITHY_CONTEXT_KEY=ju3;Ju3.getDefaultClientConfiguration=Ou3;Ju3.resolveDefaultRuntimeConfig=Hu3});var Iu6=C((Tu3)=>{var Pu3=b38(),Wu3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Zu3=(A)=>{return{httpHandler:A.httpHandler()}};class lY7{name;kind;values;constructor({name:A,kind:q=Pu3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class iY7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class nw1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new nw1({...A,headers:{...A.headers}});if(q.query)q.query=Gu3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return nw1.clone(this)}}function Gu3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class nY7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function fu3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Tu3.Field=lY7;Tu3.Fields=iY7;Tu3.HttpRequest=nw1;Tu3.HttpResponse=nY7;Tu3.getHttpHandlerExtensionConfiguration=Wu3;Tu3.isValidHostname=fu3;Tu3.resolveHttpHandlerRuntimeConfig=Zu3});var rY7=C((bu3)=>{bu3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(bu3.HttpAuthLocation||(bu3.HttpAuthLocation={}));bu3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(bu3.HttpApiKeyAuthLocation||(bu3.HttpApiKeyAuthLocation={}));bu3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(bu3.EndpointURLScheme||(bu3.EndpointURLScheme={}));bu3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(bu3.AlgorithmId||(bu3.AlgorithmId={}));var Ru3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>bu3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>bu3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Su3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Cu3=(A)=>{return Ru3(A)},hu3=(A)=>{return Su3(A)};bu3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(bu3.FieldPosition||(bu3.FieldPosition={}));var Iu3="__smithy_context";bu3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(bu3.IniSectionType||(bu3.IniSectionType={}));bu3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(bu3.RequestHandlerProtocol||(bu3.RequestHandlerProtocol={}));bu3.SMITHY_CONTEXT_KEY=Iu3;bu3.getDefaultClientConfiguration=Cu3;bu3.resolveDefaultRuntimeConfig=hu3});var pZ=C((Fu3)=>{var oY7=rY7(),mu3=(A)=>A[oY7.SMITHY_CONTEXT_KEY]||(A[oY7.SMITHY_CONTEXT_KEY]={}),gu3=(A)=>{if(typeof A==="function")return A;let q=Promise.resolve(A);return()=>q};Fu3.getSmithyContext=mu3;Fu3.normalizeProvider=gu3});var lO=C((AB3)=>{var pu3=Iu6(),aY7=pZ(),rw1=(A)=>{if(typeof A==="function")return A();return A},p38=(A,q,K,Y,z)=>({name:q,namespace:A,traits:K,input:Y,output:z}),du3=(A)=>(q,K)=>async(Y)=>{let{response:z}=await q(Y),{operationSchema:w}=aY7.getSmithyContext(K),[,_,$,O,H,j]=w??[];try{let J=await A.protocol.deserializeResponse(p38(_,$,O,H,j),{...A,...K},z);return{response:z,output:J}}catch(J){if(Object.defineProperty(J,"$response",{value:z,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in J)){try{J.message+=`
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(D){if(!K.logger||K.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else K.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof J.$responseBodyText<"u"){if(J.$response)J.$response.body=J.$responseBodyText}try{if(pu3.HttpResponse.isInstance(z)){let{headers:D={}}=z,X=Object.entries(D);J.$metadata={httpStatusCode:z.statusCode,requestId:Q38(/^x-[\w-]+-request-?id$/,X),extendedRequestId:Q38(/^x-[\w-]+-id-2$/,X),cfId:Q38(/^x-[\w-]+-cf-id$/,X)}}}catch(D){}}throw J}},Q38=(A,q)=>{return(q.find(([K])=>{return K.match(A)})||[void 0,void 0])[1]},cu3=(A)=>(q,K)=>async(Y)=>{let{operationSchema:z}=aY7.getSmithyContext(K),[,w,_,$,O,H]=z??[],j=K.endpointV2?.url&&A.urlParser?async()=>A.urlParser(K.endpointV2.url):A.endpoint,J=await A.protocol.serializeRequest(p38(w,_,$,O,H),Y.input,{...A,...K,endpoint:j});return q({...Y,request:J})},sY7={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tY7={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function lu3(A){return{applyToStack:(q)=>{q.add(cu3(A),tY7),q.add(du3(A),sY7),A.protocol.setSerdeContext(A)}}}class jN{name;namespace;traits;static assign(A,q){return Object.assign(A,q)}static[Symbol.hasInstance](A){let q=this.prototype.isPrototypeOf(A);if(!q&&typeof A==="object"&&A!==null)return A.symbol===this.symbol;return q}getName(){return this.namespace+"#"+this.name}}class ow1 extends jN{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ow1.symbol}var iu3=(A,q,K,Y)=>jN.assign(new ow1,{name:q,namespace:A,traits:K,valueSchema:Y});class aw1 extends jN{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=aw1.symbol}var nu3=(A,q,K,Y,z)=>jN.assign(new aw1,{name:q,namespace:A,traits:K,keySchema:Y,valueSchema:z});class sw1 extends jN{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=sw1.symbol}var ru3=(A,q,K,Y,z)=>jN.assign(new sw1,{name:q,namespace:A,traits:K,input:Y,output:z});class Bu6 extends jN{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=Bu6.symbol}var ou3=(A,q,K,Y,z)=>jN.assign(new Bu6,{name:q,namespace:A,traits:K,memberNames:Y,memberList:z});class tw1 extends Bu6{static symbol=Symbol.for("@smithy/err");ctor;symbol=tw1.symbol}var au3=(A,q,K,Y,z,w)=>jN.assign(new tw1,{name:q,namespace:A,traits:K,memberNames:Y,memberList:z,ctor:null});function uu6(A){if(typeof A==="object")return A;A=A|0;let q={},K=0;for(let Y of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if((A>>K++&1)===1)q[Y]=1;return q}class Jc{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=Jc.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(A,q){this.ref=A,this.memberName=q;let K=[],Y=A,z=A;this._isMemberSchema=!1;while(U38(Y))K.push(Y[1]),Y=Y[0],z=rw1(Y),this._isMemberSchema=!0;if(K.length>0){this.memberTraits={};for(let w=K.length-1;w>=0;--w){let _=K[w];Object.assign(this.memberTraits,uu6(_))}}else this.memberTraits=0;if(z instanceof Jc){let w=this.memberTraits;Object.assign(this,z),this.memberTraits=Object.assign({},w,z.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=q??z.memberName;return}if(this.schema=rw1(z),eY7(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(z),this.traits=0;if(this._isMemberSchema&&!q)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](A){let q=this.prototype.isPrototypeOf(A);if(!q&&typeof A==="object"&&A!==null)return A.symbol===this.symbol;return q}static of(A){let q=rw1(A);if(q instanceof Jc)return q;if(U38(q)){let[K,Y]=q;if(K instanceof Jc)return Object.assign(K.getMergedTraits(),uu6(Y)),K;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(A,null,2)}.`)}return new Jc(q)}getSchema(){let A=this.schema;if(A[0]===0)return A[4];return A}getName(A=!1){let{name:q}=this;return!A&&q&&q.includes("#")?q.split("#")[1]:q||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let A=this.getSchema();return typeof A==="number"?A>=64&&A<128:A[0]===1}isMapSchema(){let A=this.getSchema();return typeof A==="number"?A>=128&&A<=255:A[0]===2}isStructSchema(){let A=this.getSchema();return A[0]===3||A[0]===-3}isBlobSchema(){let A=this.getSchema();return A===21||A===42}isTimestampSchema(){let A=this.getSchema();return typeof A==="number"&&A>=4&&A<=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:A}=this.getMergedTraits();return!!A||this.getSchema()===42}isIdempotencyToken(){let A=(z)=>(z&4)===4||!!z?.idempotencyToken,{normalizedTraits:q,traits:K,memberTraits:Y}=this;return A(q)||A(K)||A(Y)}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return uu6(this.memberTraits)}getOwnTraits(){return uu6(this.traits)}getKeySchema(){let[A,q]=[this.isDocumentSchema(),this.isMapSchema()];if(!A&&!q)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let K=this.getSchema(),Y=A?15:K[4]??0;return xu6([Y,0],"key")}getValueSchema(){let A=this.getSchema(),[q,K,Y]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],z=typeof A==="number"?63&A:A&&typeof A==="object"&&(K||Y)?A[3+A[0]]:q?15:void 0;if(z!=null)return xu6([z,0],K?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(A){let q=this.getSchema();if(this.isStructSchema()&&q[4].includes(A)){let K=q[4].indexOf(A),Y=q[5][K];return xu6(U38(Y)?Y:[Y,0],A)}if(this.isDocumentSchema())return xu6([15,0],A);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no no member=${A}.`)}getMemberSchemas(){let A={};try{for(let[q,K]of this.structIterator())A[q]=K}catch(q){}return A}getEventStreamMember(){if(this.isStructSchema()){for(let[A,q]of this.structIterator())if(q.isStreaming()&&q.isStructSchema())return A}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let A=this.getSchema();for(let q=0;q<A[4].length;++q)yield[A[4][q],xu6([A[5][q],0],A[4][q])]}}function xu6(A,q){if(A instanceof Jc)return Object.assign(A,{memberName:q,_isMemberSchema:!0});return new Jc(A,q)}var U38=(A)=>Array.isArray(A)&&A.length===2,eY7=(A)=>Array.isArray(A)&&A.length>=5;class mu6 extends jN{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=mu6.symbol}var su3=(A,q,K,Y)=>jN.assign(new mu6,{name:q,namespace:A,traits:Y,schemaRef:K}),tu3=(A,q,K,Y)=>jN.assign(new mu6,{name:q,namespace:A,traits:K,schemaRef:Y}),eu3={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};class jc{namespace;schemas;exceptions;static registries=new Map;constructor(A,q=new Map,K=new Map){this.namespace=A,this.schemas=q,this.exceptions=K}static for(A){if(!jc.registries.has(A))jc.registries.set(A,new jc(A));return jc.registries.get(A)}register(A,q){let K=this.normalizeShapeId(A);jc.for(K.split("#")[0]).schemas.set(K,q)}getSchema(A){let q=this.normalizeShapeId(A);if(!this.schemas.has(q))throw Error(`@smithy/core/schema - schema not found for ${q}`);return this.schemas.get(q)}registerError(A,q){let K=A,Y=jc.for(K[1]);Y.schemas.set(K[1]+"#"+K[2],K),Y.exceptions.set(K,q)}getErrorCtor(A){let q=A;return jc.for(q[1]).exceptions.get(q)}getBaseException(){for(let A of this.exceptions.keys())if(Array.isArray(A)){let[,q,K]=A,Y=q+"#"+K;if(Y.startsWith("smithy.ts.sdk.synthetic.")&&Y.endsWith("ServiceException"))return A}return}find(A){return[...this.schemas.values()].find(A)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(A){if(A.includes("#"))return A;return this.namespace+"#"+A}}AB3.ErrorSchema=tw1;AB3.ListSchema=ow1;AB3.MapSchema=aw1;AB3.NormalizedSchema=Jc;AB3.OperationSchema=sw1;AB3.SCHEMA=eu3;AB3.Schema=jN;AB3.SimpleSchema=mu6;AB3.StructureSchema=Bu6;AB3.TypeRegistry=jc;AB3.deref=rw1;AB3.deserializerMiddlewareOption=sY7;AB3.error=au3;AB3.getSchemaSerdePlugin=lu3;AB3.isStaticSchema=eY7;AB3.list=iu3;AB3.map=nu3;AB3.op=ru3;AB3.operation=p38;AB3.serializerMiddlewareOption=tY7;AB3.sim=su3;AB3.simAdapter=tu3;AB3.struct=ou3;AB3.translateTraits=uu6});var Yz7=C((qz7)=>{Object.defineProperty(qz7,"__esModule",{value:!0});qz7.randomUUID=void 0;var EB3=d2(),Az7=EB3.__importDefault(g6("crypto"));qz7.randomUUID=Az7.default.randomUUID.bind(Az7.default)});var d38=C((yB3)=>{var zz7=Yz7(),dZ=Array.from({length:256},(A,q)=>q.toString(16).padStart(2,"0")),LB3=()=>{if(zz7.randomUUID)return zz7.randomUUID();let A=new Uint8Array(16);return crypto.getRandomValues(A),A[6]=A[6]&15|64,A[8]=A[8]&63|128,dZ[A[0]]+dZ[A[1]]+dZ[A[2]]+dZ[A[3]]+"-"+dZ[A[4]]+dZ[A[5]]+"-"+dZ[A[6]]+dZ[A[7]]+"-"+dZ[A[8]]+dZ[A[9]]+"-"+dZ[A[10]]+dZ[A[11]]+dZ[A[12]]+dZ[A[13]]+dZ[A[14]]+dZ[A[15]]};yB3.v4=LB3});var JN=C((Dz7)=>{var SB3=d38(),CB3=(A,q,K=(Y)=>Y)=>A,hB3=(A)=>{switch(A){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${A}"`)}},IB3=(A)=>{if(A===null||A===void 0)return;if(typeof A==="number"){if(A===0||A===1)Uu6.warn(A21(`Expected boolean, got ${typeof A}: ${A}`));if(A===0)return!1;if(A===1)return!0}if(typeof A==="string"){let q=A.toLowerCase();if(q==="false"||q==="true")Uu6.warn(A21(`Expected boolean, got ${typeof A}: ${A}`));if(q==="false")return!1;if(q==="true")return!0}if(typeof A==="boolean")return A;throw TypeError(`Expected boolean, got ${typeof A}: ${A}`)},Fu6=(A)=>{if(A===null||A===void 0)return;if(typeof A==="string"){let q=parseFloat(A);if(!Number.isNaN(q)){if(String(q)!==String(A))Uu6.warn(A21(`Expected number but observed string: ${A}`));return q}}if(typeof A==="number")return A;throw TypeError(`Expected number, got ${typeof A}: ${A}`)},bB3=Math.ceil(340282346638528860000000000000000000000),ew1=(A)=>{let q=Fu6(A);if(q!==void 0&&!Number.isNaN(q)&&q!==1/0&&q!==-1/0){if(Math.abs(q)>bB3)throw TypeError(`Expected 32-bit float, got ${A}`)}return q},Qu6=(A)=>{if(A===null||A===void 0)return;if(Number.isInteger(A)&&!Number.isNaN(A))return A;throw TypeError(`Expected integer, got ${typeof A}: ${A}`)},xB3=Qu6,l38=(A)=>r38(A,32),i38=(A)=>r38(A,16),n38=(A)=>r38(A,8),r38=(A,q)=>{let K=Qu6(A);if(K!==void 0&&uB3(K,q)!==K)throw TypeError(`Expected ${q}-bit integer, got ${A}`);return K},uB3=(A,q)=>{switch(q){case 32:return Int32Array.of(A)[0];case 16:return Int16Array.of(A)[0];case 8:return Int8Array.of(A)[0]}},BB3=(A,q)=>{if(A===null||A===void 0){if(q)throw TypeError(`Expected a non-null value for ${q}`);throw TypeError("Expected a non-null value")}return A},_z7=(A)=>{if(A===null||A===void 0)return;if(typeof A==="object"&&!Array.isArray(A))return A;let q=Array.isArray(A)?"array":typeof A;throw TypeError(`Expected object, got ${q}: ${A}`)},mB3=(A)=>{if(A===null||A===void 0)return;if(typeof A==="string")return A;if(["boolean","number","bigint"].includes(typeof A))return Uu6.warn(A21(`Expected string, got ${typeof A}: ${A}`)),String(A);throw TypeError(`Expected string, got ${typeof A}: ${A}`)},gB3=(A)=>{if(A===null||A===void 0)return;let q=_z7(A),K=Object.entries(q).filter(([,Y])=>Y!=null).map(([Y])=>Y);if(K.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(K.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${K} were not null.`);return q},o38=(A)=>{if(typeof A=="string")return Fu6(AP6(A));return Fu6(A)},FB3=o38,$z7=(A)=>{if(typeof A=="string")return ew1(AP6(A));return ew1(A)},QB3=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,AP6=(A)=>{let q=A.match(QB3);if(q===null||q[0].length!==A.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat(A)},a38=(A)=>{if(typeof A=="string")return Oz7(A);return Fu6(A)},UB3=a38,pB3=a38,dB3=(A)=>{if(typeof A=="string")return Oz7(A);return ew1(A)},Oz7=(A)=>{switch(A){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${A}`)}},Hz7=(A)=>{if(typeof A==="string")return Qu6(AP6(A));return Qu6(A)},cB3=Hz7,lB3=(A)=>{if(typeof A==="string")return l38(AP6(A));return l38(A)},tX6=(A)=>{if(typeof A==="string")return i38(AP6(A));return i38(A)},jz7=(A)=>{if(typeof A==="string")return n38(AP6(A));return n38(A)},A21=(A)=>{return String(TypeError(A).stack||A).split(`
`).slice(0,5).filter((q)=>!q.includes("stackTraceWarning")).join(`
`)},Uu6={warn:console.warn},iB3=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s38=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nB3(A){let q=A.getUTCFullYear(),K=A.getUTCMonth(),Y=A.getUTCDay(),z=A.getUTCDate(),w=A.getUTCHours(),_=A.getUTCMinutes(),$=A.getUTCSeconds(),O=z<10?`0${z}`:`${z}`,H=w<10?`0${w}`:`${w}`,j=_<10?`0${_}`:`${_}`,J=$<10?`0${$}`:`${$}`;return`${iB3[Y]}, ${O} ${s38[K]} ${q} ${H}:${j}:${J} GMT`}var rB3=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),oB3=(A)=>{if(A===null||A===void 0)return;if(typeof A!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let q=rB3.exec(A);if(!q)throw TypeError("Invalid RFC-3339 date-time value");let[K,Y,z,w,_,$,O,H]=q,j=tX6(eX6(Y)),J=Um(z,"month",1,12),M=Um(w,"day",1,31);return gu6(j,J,M,{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H})},aB3=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),sB3=(A)=>{if(A===null||A===void 0)return;if(typeof A!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let q=aB3.exec(A);if(!q)throw TypeError("Invalid RFC-3339 date-time value");let[K,Y,z,w,_,$,O,H,j]=q,J=tX6(eX6(Y)),M=Um(z,"month",1,12),D=Um(w,"day",1,31),X=gu6(J,M,D,{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H});if(j.toUpperCase()!="Z")X.setTime(X.getTime()-jm3(j));return X},tB3=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$/),eB3=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$/),Am3=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})$/),qm3=(A)=>{if(A===null||A===void 0)return;if(typeof A!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let q=tB3.exec(A);if(q){let[K,Y,z,w,_,$,O,H]=q;return gu6(tX6(eX6(w)),c38(z),Um(Y,"day",1,31),{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H})}if(q=eB3.exec(A),q){let[K,Y,z,w,_,$,O,H]=q;return wm3(gu6(Ym3(w),c38(z),Um(Y,"day",1,31),{hours:_,minutes:$,seconds:O,fractionalMilliseconds:H}))}if(q=Am3.exec(A),q){let[K,Y,z,w,_,$,O,H]=q;return gu6(tX6(eX6(H)),c38(Y),Um(z.trimLeft(),"day",1,31),{hours:w,minutes:_,seconds:$,fractionalMilliseconds:O})}throw TypeError("Invalid RFC-7231 date-time value")},Km3=(A)=>{if(A===null||A===void 0)return;let q;if(typeof A==="number")q=A;else if(typeof A==="string")q=o38(A);else if(typeof A==="object"&&A.tag===1)q=A.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(q)||q===1/0||q===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(q*1000))},gu6=(A,q,K,Y)=>{let z=q-1;return $m3(A,z,K),new Date(Date.UTC(A,z,K,Um(Y.hours,"hour",0,23),Um(Y.minutes,"minute",0,59),Um(Y.seconds,"seconds",0,60),Hm3(Y.fractionalMilliseconds)))},Ym3=(A)=>{let q=new Date().getUTCFullYear(),K=Math.floor(q/100)*100+tX6(eX6(A));if(K<q)return K+100;return K},zm3=1576800000000,wm3=(A)=>{if(A.getTime()-new Date().getTime()>zm3)return new Date(Date.UTC(A.getUTCFullYear()-100,A.getUTCMonth(),A.getUTCDate(),A.getUTCHours(),A.getUTCMinutes(),A.getUTCSeconds(),A.getUTCMilliseconds()));return A},c38=(A)=>{let q=s38.indexOf(A);if(q<0)throw TypeError(`Invalid month: ${A}`);return q+1},_m3=[31,28,31,30,31,30,31,31,30,31,30,31],$m3=(A,q,K)=>{let Y=_m3[q];if(q===1&&Om3(A))Y=29;if(K>Y)throw TypeError(`Invalid day for ${s38[q]} in ${A}: ${K}`)},Om3=(A)=>{return A%4===0&&(A%100!==0||A%400===0)},Um=(A,q,K,Y)=>{let z=jz7(eX6(A));if(z<K||z>Y)throw TypeError(`${q} must be between ${K} and ${Y}, inclusive`);return z},Hm3=(A)=>{if(A===null||A===void 0)return 0;return $z7("0."+A)*1000},jm3=(A)=>{let q=A[0],K=1;if(q=="+")K=1;else if(q=="-")K=-1;else throw TypeError(`Offset direction, ${q}, must be "+" or "-"`);let Y=Number(A.substring(1,3)),z=Number(A.substring(4,6));return K*(Y*60+z)*60*1000},eX6=(A)=>{let q=0;while(q<A.length-1&&A.charAt(q)==="0")q++;if(q===0)return A;return A.slice(q)},R36=function(q){return Object.assign(new String(q),{deserializeJSON(){return JSON.parse(String(q))},toString(){return String(q)},toJSON(){return String(q)}})};R36.from=(A)=>{if(A&&typeof A==="object"&&(A instanceof R36||("deserializeJSON"in A)))return A;else if(typeof A==="string"||Object.getPrototypeOf(A)===String.prototype)return R36(String(A));return R36(JSON.stringify(A))};R36.fromObject=R36.from;function Jm3(A){if(A.includes(",")||A.includes('"'))A=`"${A.replace(/"/g,"\\\"")}"`;return A}var t38="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",e38="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",A58="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Jz7="(\\d?\\d)",Mz7="(\\d{4})",Mm3=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Dm3=new RegExp(`^${t38}, ${Jz7} ${e38} ${Mz7} ${A58} GMT$`),Xm3=new RegExp(`^${t38}, ${Jz7}-${e38}-(\\d\\d) ${A58} GMT$`),Pm3=new RegExp(`^${t38} ${e38} ( [1-9]|\\d\\d) ${A58} ${Mz7}$`),Wm3=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Zm3=(A)=>{if(A==null)return;let q=NaN;if(typeof A==="number")q=A;else if(typeof A==="string"){if(!/^-?\d*\.?\d+$/.test(A))throw TypeError("parseEpochTimestamp - numeric string invalid.");q=Number.parseFloat(A)}else if(typeof A==="object"&&A.tag===1)q=A.value;if(isNaN(q)||Math.abs(q)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(q*1000))},Gm3=(A)=>{if(A==null)return;if(typeof A!=="string")throw TypeError("RFC3339 timestamps must be strings");let q=Mm3.exec(A);if(!q)throw TypeError(`Invalid RFC3339 timestamp format ${A}`);let[,K,Y,z,w,_,$,,O,H]=q;Mc(Y,1,12),Mc(z,1,31),Mc(w,0,23),Mc(_,0,59),Mc($,0,60);let j=new Date(Date.UTC(Number(K),Number(Y)-1,Number(z),Number(w),Number(_),Number($),Number(O)?Math.round(parseFloat(`0.${O}`)*1000):0));if(j.setUTCFullYear(Number(K)),H.toUpperCase()!="Z"){let[,J,M,D]=/([+-])(\d\d):(\d\d)/.exec(H)||[void 0,"+",0,0],X=J==="-"?1:-1;j.setTime(j.getTime()+X*(Number(M)*60*60*1000+Number(D)*60*1000))}return j},fm3=(A)=>{if(A==null)return;if(typeof A!=="string")throw TypeError("RFC7231 timestamps must be strings.");let q,K,Y,z,w,_,$,O;if(O=Dm3.exec(A))[,q,K,Y,z,w,_,$]=O;else if(O=Xm3.exec(A))[,q,K,Y,z,w,_,$]=O,Y=(Number(Y)+1900).toString();else if(O=Pm3.exec(A))[,K,q,z,w,_,$,Y]=O;if(Y&&_){let H=Date.UTC(Number(Y),Wm3.indexOf(K),Number(q),Number(z),Number(w),Number(_),$?Math.round(parseFloat(`0.${$}`)*1000):0);Mc(q,1,31),Mc(z,0,23),Mc(w,0,59),Mc(_,0,60);let j=new Date(H);return j.setUTCFullYear(Number(Y)),j}throw TypeError(`Invalid RFC7231 date-time value ${A}.`)};function Mc(A,q,K){let Y=Number(A);if(Y<q||Y>K)throw Error(`Value ${Y} out of range [${q}, ${K}]`)}function Tm3(A,q,K){if(K<=0||!Number.isInteger(K))throw Error("Invalid number of delimiters ("+K+") for splitEvery.");let Y=A.split(q);if(K===1)return Y;let z=[],w="";for(let _=0;_<Y.length;_++){if(w==="")w=Y[_];else w+=q+Y[_];if((_+1)%K===0)z.push(w),w=""}if(w!=="")z.push(w);return z}var Vm3=(A)=>{let q=A.length,K=[],Y=!1,z=void 0,w=0;for(let _=0;_<q;++_){let $=A[_];switch($){case'"':if(z!=="\\")Y=!Y;break;case",":if(!Y)K.push(A.slice(w,_)),w=_+1;break}z=$}return K.push(A.slice(w)),K.map((_)=>{_=_.trim();let $=_.length;if($<2)return _;if(_[0]==='"'&&_[$-1]==='"')_=_.slice(1,$-1);return _.replace(/\\"/g,'"')})},wz7=/^-?\d*(\.\d+)?$/;class q21{string;type;constructor(A,q){if(this.string=A,this.type=q,!wz7.test(A))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](A){if(!A||typeof A!=="object")return!1;let q=A;return q21.prototype.isPrototypeOf(A)||q.type==="bigDecimal"&&wz7.test(q.string)}}function Nm3(A){return new q21(String(A),"bigDecimal")}Object.defineProperty(Dz7,"generateIdempotencyToken",{enumerable:!0,get:function(){return SB3.v4}});Dz7.LazyJsonString=R36;Dz7.NumericValue=q21;Dz7._parseEpochTimestamp=Zm3;Dz7._parseRfc3339DateTimeWithOffset=Gm3;Dz7._parseRfc7231DateTime=fm3;Dz7.copyDocumentWithTransform=CB3;Dz7.dateToUtcString=nB3;Dz7.expectBoolean=IB3;Dz7.expectByte=n38;Dz7.expectFloat32=ew1;Dz7.expectInt=xB3;Dz7.expectInt32=l38;Dz7.expectLong=Qu6;Dz7.expectNonNull=BB3;Dz7.expectNumber=Fu6;Dz7.expectObject=_z7;Dz7.expectShort=i38;Dz7.expectString=mB3;Dz7.expectUnion=gB3;Dz7.handleFloat=UB3;Dz7.limitedParseDouble=a38;Dz7.limitedParseFloat=pB3;Dz7.limitedParseFloat32=dB3;Dz7.logger=Uu6;Dz7.nv=Nm3;Dz7.parseBoolean=hB3;Dz7.parseEpochTimestamp=Km3;Dz7.parseRfc3339DateTime=oB3;Dz7.parseRfc3339DateTimeWithOffset=sB3;Dz7.parseRfc7231DateTime=qm3;Dz7.quoteHeader=Jm3;Dz7.splitEvery=Tm3;Dz7.splitHeader=Vm3;Dz7.strictParseByte=jz7;Dz7.strictParseDouble=o38;Dz7.strictParseFloat=FB3;Dz7.strictParseFloat32=$z7;Dz7.strictParseInt=cB3;Dz7.strictParseInt32=lB3;Dz7.strictParseLong=Hz7;Dz7.strictParseShort=tX6});var Xz7=C((Jg3)=>{var jg3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";Jg3.isArrayBuffer=jg3});var K58=C((Wg3)=>{var Dg3=Xz7(),q58=g6("buffer"),Xg3=(A,q=0,K=A.byteLength-q)=>{if(!Dg3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return q58.Buffer.from(A,q,K)},Pg3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?q58.Buffer.from(A,q):q58.Buffer.from(A)};Wg3.fromArrayBuffer=Xg3;Wg3.fromString=Pg3});var Zz7=C((Pz7)=>{Object.defineProperty(Pz7,"__esModule",{value:!0});Pz7.fromBase64=void 0;var fg3=K58(),Tg3=/^[A-Za-z0-9+/]*={0,2}$/,Vg3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Tg3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,fg3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};Pz7.fromBase64=Vg3});var Tz7=C((Gz7)=>{Object.defineProperty(Gz7,"__esModule",{value:!0});Gz7.toBase64=void 0;var Ng3=K58(),vg3=Z2(),kg3=(A)=>{let q;if(typeof A==="string")q=(0,vg3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Ng3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};Gz7.toBase64=kg3});var Y58=C((pu6)=>{var Vz7=Zz7(),Nz7=Tz7();Object.keys(Vz7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(pu6,A))Object.defineProperty(pu6,A,{enumerable:!0,get:function(){return Vz7[A]}})});Object.keys(Nz7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(pu6,A))Object.defineProperty(pu6,A,{enumerable:!0,get:function(){return Nz7[A]}})})});var Ez7=C((Eg3)=>{var vz7=Z2();class kz7{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:A,serializer:q,deserializer:K,serdeContext:Y,defaultContentType:z}){this.marshaller=A,this.serializer=q,this.deserializer=K,this.serdeContext=Y,this.defaultContentType=z}async serializeEventStream({eventStream:A,requestSchema:q,initialRequest:K}){let Y=this.marshaller,z=q.getEventStreamMember(),w=q.getMemberSchema(z),_=this.serializer,$=this.defaultContentType,O=Symbol("initialRequestMarker"),H={async*[Symbol.asyncIterator](){if(K){let j={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:$}};_.write(q,K);let J=_.flush();yield{[O]:!0,headers:j,body:J}}for await(let j of A)yield j}};return Y.serialize(H,(j)=>{if(j[O])return{headers:j.headers,body:j.body};let J=Object.keys(j).find((Z)=>{return Z!=="__type"})??"",{additionalHeaders:M,body:D,eventType:X,explicitPayloadContentType:P}=this.writeEventBody(J,w,j);return{headers:{":event-type":{type:"string",value:X},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:P??$},...M},body:D}})}async deserializeEventStream({response:A,responseSchema:q,initialResponseContainer:K}){let Y=this.marshaller,z=q.getEventStreamMember(),_=q.getMemberSchema(z).getMemberSchemas(),$=Symbol("initialResponseMarker"),O=Y.deserialize(A.body,async(J)=>{let M=Object.keys(J).find((X)=>{return X!=="__type"})??"",D=J[M].body;if(M==="initial-response"){let X=await this.deserializer.read(q,D);return delete X[z],{[$]:!0,...X}}else if(M in _){let X=_[M];if(X.isStructSchema()){let P={},W=!1;for(let[Z,G]of X.structIterator()){let{eventHeader:f,eventPayload:V}=G.getMergedTraits();if(W=W||Boolean(f||V),V){if(G.isBlobSchema())P[Z]=D;else if(G.isStringSchema())P[Z]=(this.serdeContext?.utf8Encoder??vz7.toUtf8)(D);else if(G.isStructSchema())P[Z]=await this.deserializer.read(G,D)}else if(f){let N=J[M].headers[Z]?.value;if(N!=null)if(G.isNumericSchema())if(N&&typeof N==="object"&&"bytes"in N)P[Z]=BigInt(N.toString());else P[Z]=Number(N);else P[Z]=N}}if(W)return{[M]:P}}return{[M]:await this.deserializer.read(X,D)}}else return{$unknown:J}}),H=O[Symbol.asyncIterator](),j=await H.next();if(j.done)return O;if(j.value?.[$]){if(!q)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let[J,M]of Object.entries(j.value))K[J]=M}return{async*[Symbol.asyncIterator](){if(!j?.value?.[$])yield j.value;while(!0){let{done:J,value:M}=await H.next();if(J)break;yield M}}}}writeEventBody(A,q,K){let Y=this.serializer,z=A,w=null,_,$=(()=>{return q.getSchema()[4].includes(A)})(),O={};if(!$){let[J,M]=K[A];z=J,Y.write(15,M)}else{let J=q.getMemberSchema(A);if(J.isStructSchema()){for(let[M,D]of J.structIterator()){let{eventHeader:X,eventPayload:P}=D.getMergedTraits();if(P){w=M;break}else if(X){let W=K[A][M],Z="binary";if(D.isNumericSchema())if(-2147483648<=W&&W<=2147483647)Z="integer";else Z="long";else if(D.isTimestampSchema())Z="timestamp";else if(D.isStringSchema())Z="string";else if(D.isBooleanSchema())Z="boolean";if(W!=null)O[M]={type:Z,value:W},delete K[A][M]}}if(w!==null){let M=J.getMemberSchema(w);if(M.isBlobSchema())_="application/octet-stream";else if(M.isStringSchema())_="text/plain";Y.write(M,K[A][w])}else Y.write(J,K[A])}else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let H=Y.flush();return{body:typeof H==="string"?(this.serdeContext?.utf8Decoder??vz7.fromUtf8)(H):H,eventType:z,explicitPayloadContentType:_,additionalHeaders:O}}}Eg3.EventStreamSerde=kz7});var MN=C((Rg3)=>{var K21=L38(),RR=lO(),yR=JN(),du6=Iu6(),Y21=Y58(),z58=Z2(),S36=async(A=new Uint8Array,q)=>{if(A instanceof Uint8Array)return K21.Uint8ArrayBlobAdapter.mutate(A);if(!A)return K21.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let K=q.streamCollector(A);return K21.Uint8ArrayBlobAdapter.mutate(await K)};function cu6(A){return encodeURIComponent(A).replace(/[!'()*]/g,function(q){return"%"+q.charCodeAt(0).toString(16).toUpperCase()})}class qP6{serdeContext;setSerdeContext(A){this.serdeContext=A}}class z21 extends qP6{options;constructor(A){super();this.options=A}getRequestType(){return du6.HttpRequest}getResponseType(){return du6.HttpResponse}setSerdeContext(A){if(this.serdeContext=A,this.serializer.setSerdeContext(A),this.deserializer.setSerdeContext(A),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext(A)}updateServiceEndpoint(A,q){if("url"in q){if(A.protocol=q.url.protocol,A.hostname=q.url.hostname,A.port=q.url.port?Number(q.url.port):void 0,A.path=q.url.pathname,A.fragment=q.url.hash||void 0,A.username=q.url.username||void 0,A.password=q.url.password||void 0,!A.query)A.query={};for(let[K,Y]of q.url.searchParams.entries())A.query[K]=Y;return A}else return A.protocol=q.protocol,A.hostname=q.hostname,A.port=q.port?Number(q.port):void 0,A.path=q.path,A.query={...q.query},A}setHostPrefix(A,q,K){let Y=RR.NormalizedSchema.of(q.input),z=RR.translateTraits(q.traits??{});if(z.endpoint){let w=z.endpoint?.[0];if(typeof w==="string"){let _=[...Y.structIterator()].filter(([,$])=>$.getMergedTraits().hostLabel);for(let[$]of _){let O=K[$];if(typeof O!=="string")throw Error(`@smithy/core/schema - ${$} in input must be a string as hostLabel.`);w=w.replace(`{${$}}`,O)}A.hostname=w+A.hostname}}}deserializeMetadata(A){return{httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:A,requestSchema:q,initialRequest:K}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:A,requestSchema:q,initialRequest:K})}async deserializeEventStream({response:A,responseSchema:q,initialResponseContainer:K}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:A,responseSchema:q,initialResponseContainer:K})}async loadEventStreamCapability(){let{EventStreamSerde:A}=await Promise.resolve().then(() => e(Ez7()));return new A({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(A,q,K,Y,z){return[]}getEventStreamMarshaller(){let A=this.serdeContext;if(!A.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return A.eventStreamMarshaller}}class Lz7 extends z21{async serializeRequest(A,q,K){let Y={...q??{}},z=this.serializer,w={},_={},$=await K.endpoint(),O=RR.NormalizedSchema.of(A?.input),H=O.getSchema(),j=!1,J,M=new du6.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:w,headers:_,body:void 0});if($){this.updateServiceEndpoint(M,$),this.setHostPrefix(M,A,Y);let D=RR.translateTraits(A.traits);if(D.http){M.method=D.http[0];let[X,P]=D.http[1].split("?");if(M.path=="/")M.path=X;else M.path+=X;let W=new URLSearchParams(P??"");Object.assign(w,Object.fromEntries(W))}}for(let[D,X]of O.structIterator()){let P=X.getMergedTraits()??{},W=Y[D];if(W==null&&!X.isIdempotencyToken())continue;if(P.httpPayload){if(X.isStreaming())if(X.isStructSchema()){if(Y[D])J=await this.serializeEventStream({eventStream:Y[D],requestSchema:O})}else J=W;else z.write(X,W),J=z.flush();delete Y[D]}else if(P.httpLabel){z.write(X,W);let Z=z.flush();if(M.path.includes(`{${D}+}`))M.path=M.path.replace(`{${D}+}`,Z.split("/").map(cu6).join("/"));else if(M.path.includes(`{${D}}`))M.path=M.path.replace(`{${D}}`,cu6(Z));delete Y[D]}else if(P.httpHeader)z.write(X,W),_[P.httpHeader.toLowerCase()]=String(z.flush()),delete Y[D];else if(typeof P.httpPrefixHeaders==="string"){for(let[Z,G]of Object.entries(W)){let f=P.httpPrefixHeaders+Z;z.write([X.getValueSchema(),{httpHeader:f}],G),_[f.toLowerCase()]=z.flush()}delete Y[D]}else if(P.httpQuery||P.httpQueryParams)this.serializeQuery(X,W,w),delete Y[D];else j=!0}if(j&&Y)z.write(H,Y),J=z.flush();return M.headers=_,M.query=w,M.body=J,M}serializeQuery(A,q,K){let Y=this.serializer,z=A.getMergedTraits();if(z.httpQueryParams){for(let[w,_]of Object.entries(q))if(!(w in K)){let $=A.getValueSchema();Object.assign($.getMergedTraits(),{...z,httpQuery:w,httpQueryParams:void 0}),this.serializeQuery($,_,K)}return}if(A.isListSchema()){let w=!!A.getMergedTraits().sparse,_=[];for(let $ of q){Y.write([A.getValueSchema(),z],$);let O=Y.flush();if(w||O!==void 0)_.push(O)}K[z.httpQuery]=_}else Y.write([A,z],q),K[z.httpQuery]=Y.flush()}async deserializeResponse(A,q,K){let Y=this.deserializer,z=RR.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let $=await S36(K.body,q);if($.byteLength>0)Object.assign(w,await Y.read(15,$));throw await this.handleError(A,q,K,w,this.deserializeMetadata(K)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let $ in K.headers){let O=K.headers[$];delete K.headers[$],K.headers[$.toLowerCase()]=O}let _=await this.deserializeHttpMessage(z,q,K,w);if(_.length){let $=await S36(K.body,q);if($.byteLength>0){let O=await Y.read(z,$);for(let H of _)w[H]=O[H]}}else if(_.discardResponseBody)await S36(K.body,q);return w.$metadata=this.deserializeMetadata(K),w}async deserializeHttpMessage(A,q,K,Y,z){let w;if(Y instanceof Set)w=z;else w=Y;let _=!0,$=this.deserializer,O=RR.NormalizedSchema.of(A),H=[];for(let[j,J]of O.structIterator()){let M=J.getMemberTraits();if(M.httpPayload){if(_=!1,J.isStreaming())if(J.isStructSchema())w[j]=await this.deserializeEventStream({response:K,responseSchema:O});else w[j]=K21.sdkStreamMixin(K.body);else if(K.body){let X=await S36(K.body,q);if(X.byteLength>0)w[j]=await $.read(J,X)}}else if(M.httpHeader){let D=String(M.httpHeader).toLowerCase(),X=K.headers[D];if(X!=null)if(J.isListSchema()){let P=J.getValueSchema();P.getMergedTraits().httpHeader=D;let W;if(P.isTimestampSchema()&&P.getSchema()===4)W=yR.splitEvery(X,",",2);else W=yR.splitHeader(X);let Z=[];for(let G of W)Z.push(await $.read(P,G.trim()));w[j]=Z}else w[j]=await $.read(J,X)}else if(M.httpPrefixHeaders!==void 0){w[j]={};for(let[D,X]of Object.entries(K.headers))if(D.startsWith(M.httpPrefixHeaders)){let P=J.getValueSchema();P.getMergedTraits().httpHeader=D,w[j][D.slice(M.httpPrefixHeaders.length)]=await $.read(P,X)}}else if(M.httpResponseCode)w[j]=K.statusCode;else H.push(j)}return H.discardResponseBody=_,H}}class yz7 extends z21{async serializeRequest(A,q,K){let Y=this.serializer,z={},w={},_=await K.endpoint(),$=RR.NormalizedSchema.of(A?.input),O=$.getSchema(),H,j=new du6.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:z,headers:w,body:void 0});if(_)this.updateServiceEndpoint(j,_),this.setHostPrefix(j,A,q);let J={...q};if(q){let M=$.getEventStreamMember();if(M){if(J[M]){let D={};for(let[X,P]of $.structIterator())if(X!==M&&J[X])Y.write(P,J[X]),D[X]=Y.flush();H=await this.serializeEventStream({eventStream:J[M],requestSchema:$,initialRequest:D})}}else Y.write(O,J),H=Y.flush()}return j.headers=w,j.query=z,j.body=H,j.method="POST",j}async deserializeResponse(A,q,K){let Y=this.deserializer,z=RR.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let $=await S36(K.body,q);if($.byteLength>0)Object.assign(w,await Y.read(15,$));throw await this.handleError(A,q,K,w,this.deserializeMetadata(K)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let $ in K.headers){let O=K.headers[$];delete K.headers[$],K.headers[$.toLowerCase()]=O}let _=z.getEventStreamMember();if(_)w[_]=await this.deserializeEventStream({response:K,responseSchema:z,initialResponseContainer:w});else{let $=await S36(K.body,q);if($.byteLength>0)Object.assign(w,await Y.read(z,$))}return w.$metadata=this.deserializeMetadata(K),w}}var Rz7=(A,q,K,Y,z,w)=>{if(q!=null&&q[K]!==void 0){let _=Y();if(_.length<=0)throw Error("Empty value provided for input HTTP label: "+K+".");A=A.replace(z,w?_.split("/").map(($)=>cu6($)).join("/"):cu6(_))}else throw Error("No value provided for input HTTP label: "+K+".");return A};function yg3(A,q){return new w58(A,q)}class w58{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(A,q){this.input=A,this.context=q}async build(){let{hostname:A,protocol:q="https",port:K,path:Y}=await this.context.endpoint();this.path=Y;for(let z of this.resolvePathStack)z(this.path);return new du6.HttpRequest({protocol:q,hostname:this.hostname||A,port:K,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(A){return this.hostname=A,this}bp(A){return this.resolvePathStack.push((q)=>{this.path=`${q?.endsWith("/")?q.slice(0,-1):q||""}`+A}),this}p(A,q,K,Y){return this.resolvePathStack.push((z)=>{this.path=Rz7(z,this.input,A,q,K,Y)}),this}h(A){return this.headers=A,this}q(A){return this.query=A,this}b(A){return this.body=A,this}m(A){return this.method=A,this}}function _58(A,q){if(q.timestampFormat.useTrait){if(A.isTimestampSchema()&&(A.getSchema()===5||A.getSchema()===6||A.getSchema()===7))return A.getSchema()}let{httpLabel:K,httpPrefixHeaders:Y,httpHeader:z,httpQuery:w}=A.getMergedTraits();return(q.httpBindings?typeof Y==="string"||Boolean(z)?6:Boolean(w)||Boolean(K)?5:void 0:void 0)??q.timestampFormat.default}class $58 extends qP6{settings;constructor(A){super();this.settings=A}read(A,q){let K=RR.NormalizedSchema.of(A);if(K.isListSchema())return yR.splitHeader(q).map((Y)=>this.read(K.getValueSchema(),Y));if(K.isBlobSchema())return(this.serdeContext?.base64Decoder??Y21.fromBase64)(q);if(K.isTimestampSchema())switch(_58(K,this.settings)){case 5:return yR._parseRfc3339DateTimeWithOffset(q);case 6:return yR._parseRfc7231DateTime(q);case 7:return yR._parseEpochTimestamp(q);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",q),new Date(q)}if(K.isStringSchema()){let Y=K.getMergedTraits().mediaType,z=q;if(Y){if(K.getMergedTraits().httpHeader)z=this.base64ToUtf8(z);if(Y==="application/json"||Y.endsWith("+json"))z=yR.LazyJsonString.from(z);return z}}if(K.isNumericSchema())return Number(q);if(K.isBigIntegerSchema())return BigInt(q);if(K.isBigDecimalSchema())return new yR.NumericValue(q,"bigDecimal");if(K.isBooleanSchema())return String(q).toLowerCase()==="true";return q}base64ToUtf8(A){return(this.serdeContext?.utf8Encoder??z58.toUtf8)((this.serdeContext?.base64Decoder??Y21.fromBase64)(A))}}class Sz7 extends qP6{codecDeserializer;stringDeserializer;constructor(A,q){super();this.codecDeserializer=A,this.stringDeserializer=new $58(q)}setSerdeContext(A){this.stringDeserializer.setSerdeContext(A),this.codecDeserializer.setSerdeContext(A),this.serdeContext=A}read(A,q){let K=RR.NormalizedSchema.of(A),Y=K.getMergedTraits(),z=this.serdeContext?.utf8Encoder??z58.toUtf8;if(Y.httpHeader||Y.httpResponseCode)return this.stringDeserializer.read(K,z(q));if(Y.httpPayload){if(K.isBlobSchema()){let w=this.serdeContext?.utf8Decoder??z58.fromUtf8;if(typeof q==="string")return w(q);return q}else if(K.isStringSchema()){if("byteLength"in q)return z(q);return q}}return this.codecDeserializer.read(K,q)}}class O58 extends qP6{settings;stringBuffer="";constructor(A){super();this.settings=A}write(A,q){let K=RR.NormalizedSchema.of(A);switch(typeof q){case"object":if(q===null){this.stringBuffer="null";return}if(K.isTimestampSchema()){if(!(q instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${q} when schema expected Date in ${K.getName(!0)}`);switch(_58(K,this.settings)){case 5:this.stringBuffer=q.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=yR.dateToUtcString(q);break;case 7:this.stringBuffer=String(q.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",q),this.stringBuffer=String(q.getTime()/1000)}return}if(K.isBlobSchema()&&"byteLength"in q){this.stringBuffer=(this.serdeContext?.base64Encoder??Y21.toBase64)(q);return}if(K.isListSchema()&&Array.isArray(q)){let w="";for(let _ of q){this.write([K.getValueSchema(),K.getMergedTraits()],_);let $=this.flush(),O=K.getValueSchema().isTimestampSchema()?$:yR.quoteHeader($);if(w!=="")w+=", ";w+=O}this.stringBuffer=w;return}this.stringBuffer=JSON.stringify(q,null,2);break;case"string":let Y=K.getMergedTraits().mediaType,z=q;if(Y){if(Y==="application/json"||Y.endsWith("+json"))z=yR.LazyJsonString.from(z);if(K.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??Y21.toBase64)(z.toString());return}}this.stringBuffer=q;break;default:if(K.isIdempotencyToken())this.stringBuffer=yR.generateIdempotencyToken();else this.stringBuffer=String(q)}}flush(){let A=this.stringBuffer;return this.stringBuffer="",A}}class Cz7{codecSerializer;stringSerializer;buffer;constructor(A,q,K=new O58(q)){this.codecSerializer=A,this.stringSerializer=K}setSerdeContext(A){this.codecSerializer.setSerdeContext(A),this.stringSerializer.setSerdeContext(A)}write(A,q){let K=RR.NormalizedSchema.of(A),Y=K.getMergedTraits();if(Y.httpHeader||Y.httpLabel||Y.httpQuery){this.stringSerializer.write(K,q),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(K,q)}flush(){if(this.buffer!==void 0){let A=this.buffer;return this.buffer=void 0,A}return this.codecSerializer.flush()}}Rg3.FromStringShapeDeserializer=$58;Rg3.HttpBindingProtocol=Lz7;Rg3.HttpInterceptingShapeDeserializer=Sz7;Rg3.HttpInterceptingShapeSerializer=Cz7;Rg3.HttpProtocol=z21;Rg3.RequestBuilder=w58;Rg3.RpcProtocol=yz7;Rg3.SerdeContext=qP6;Rg3.ToStringShapeSerializer=O58;Rg3.collectBody=S36;Rg3.determineTimestampFormat=_58;Rg3.extendedEncodeURIComponent=cu6;Rg3.requestBuilder=yg3;Rg3.resolvedPath=Rz7});var dz7=C((YP6)=>{var bz7=Qm(),D58=MN(),j58=j38(),dg3=lO(),hz7=JN();class xz7{config;middlewareStack=bz7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var H58="***SensitiveInformation***";function J58(A,q){if(q==null)return q;let K=dg3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return H58;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return H58}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return H58}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=J58(_,Y[w]);return z}return q}class X58{middlewareStack=bz7.constructStack();schema;static classBuilder(){return new uz7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[j58.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class uz7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends X58{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?J58.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?J58.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var cg3="***SensitiveInformation***",lg3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class KP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return KP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===KP6)return KP6.isInstance(A);if(KP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var Bz7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},mz7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=ng3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw Bz7(_,q)},ig3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{mz7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},ng3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),rg3=(A)=>{switch(A){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:30000};default:return{}}},Iz7=!1,og3=(A)=>{if(A&&!Iz7&&parseInt(A.substring(1,A.indexOf(".")))<16)Iz7=!0},ag3=(A)=>{let q=[];for(let K in j58.AlgorithmId){let Y=j58.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},sg3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},tg3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},eg3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},gz7=(A)=>{return Object.assign(ag3(A),tg3(A))},AF3=gz7,qF3=(A)=>{return Object.assign(sg3(A),eg3(A))},KF3=(A)=>Array.isArray(A)?A:[A],Fz7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=Fz7(A[K]);return A},YF3=(A)=>{return A!=null};class Qz7{trace(){}debug(){}info(){}warn(){}error(){}}function Uz7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,_F3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}pz7(Y,null,w,_)}return Y}var zF3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},wF3=(A,q)=>{let K={};for(let Y in q)pz7(K,A,q,Y);return K},_F3=(A,q,K)=>{return Uz7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},pz7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=$F3,O=OF3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},$F3=(A)=>A!=null,OF3=(A)=>A,HF3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},jF3=(A)=>A.toISOString().replace(".000Z","Z"),M58=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(M58);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=M58(A[K])}return q}return A};Object.defineProperty(YP6,"collectBody",{enumerable:!0,get:function(){return D58.collectBody}});Object.defineProperty(YP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return D58.extendedEncodeURIComponent}});Object.defineProperty(YP6,"resolvedPath",{enumerable:!0,get:function(){return D58.resolvedPath}});YP6.Client=xz7;YP6.Command=X58;YP6.NoOpLogger=Qz7;YP6.SENSITIVE_STRING=cg3;YP6.ServiceException=KP6;YP6._json=M58;YP6.convertMap=zF3;YP6.createAggregatedClient=lg3;YP6.decorateServiceException=Bz7;YP6.emitWarningIfUnsupportedVersion=og3;YP6.getArrayIfSingleItem=KF3;YP6.getDefaultClientConfiguration=AF3;YP6.getDefaultExtensionConfiguration=gz7;YP6.getValueFromTextNode=Fz7;YP6.isSerializableHeaderValue=YF3;YP6.loadConfigsForDefaultMode=rg3;YP6.map=Uz7;YP6.resolveDefaultRuntimeConfig=qF3;YP6.serializeDateTime=jF3;YP6.serializeFloat=HF3;YP6.take=wF3;YP6.throwDefaultError=mz7;YP6.withBaseException=ig3;Object.keys(hz7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(YP6,A))Object.defineProperty(YP6,A,{enumerable:!0,get:function(){return hz7[A]}})})});var lz7=C((cz7)=>{Object.defineProperty(cz7,"__esModule",{value:!0});cz7.createGetRequest=mF3;cz7.getCredentials=gF3;var P58=EM(),xF3=H97(),uF3=dz7(),BF3=L38();function mF3(A){return new xF3.HttpRequest({protocol:A.protocol,hostname:A.hostname,port:Number(A.port),path:A.pathname,query:Array.from(A.searchParams.entries()).reduce((q,[K,Y])=>{return q[K]=Y,q},{}),fragment:A.hash})}async function gF3(A,q){let Y=await(0,BF3.sdkStreamMixin)(A.body).transformToString();if(A.statusCode===200){let z=JSON.parse(Y);if(typeof z.AccessKeyId!=="string"||typeof z.SecretAccessKey!=="string"||typeof z.Token!=="string"||typeof z.Expiration!=="string")throw new P58.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:q});return{accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:(0,uF3.parseRfc3339DateTime)(z.Expiration)}}if(A.statusCode>=400&&A.statusCode<500){let z={};try{z=JSON.parse(Y)}catch(w){}throw Object.assign(new P58.CredentialsProviderError(`Server responded with status: ${A.statusCode}`,{logger:q}),{Code:z.Code,Message:z.Message})}throw new P58.CredentialsProviderError(`Server responded with status: ${A.statusCode}`,{logger:q})}});var rz7=C((iz7)=>{Object.defineProperty(iz7,"__esModule",{value:!0});iz7.retryWrapper=void 0;var UF3=(A,q,K)=>{return async()=>{for(let Y=0;Y<q;++Y)try{return await A()}catch(z){await new Promise((w)=>setTimeout(w,K))}return await A()}};iz7.retryWrapper=UF3});var ez7=C((sz7)=>{Object.defineProperty(sz7,"__esModule",{value:!0});sz7.fromHttp=void 0;var pF3=d2(),dF3=ON(),cF3=$N(),oz7=EM(),lF3=pF3.__importDefault(g6("fs/promises")),iF3=w97(),az7=lz7(),nF3=rz7(),rF3="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",oF3="http://169.254.170.2",aF3="AWS_CONTAINER_CREDENTIALS_FULL_URI",sF3="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",tF3="AWS_CONTAINER_AUTHORIZATION_TOKEN",eF3=(A={})=>{A.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let q,K=A.awsContainerCredentialsRelativeUri??process.env[rF3],Y=A.awsContainerCredentialsFullUri??process.env[aF3],z=A.awsContainerAuthorizationToken??process.env[tF3],w=A.awsContainerAuthorizationTokenFile??process.env[sF3],_=A.logger?.constructor?.name==="NoOpLogger"||!A.logger?.warn?console.warn:A.logger.warn.bind(A.logger);if(K&&Y)_("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),_("awsContainerCredentialsFullUri will take precedence.");if(z&&w)_("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),_("awsContainerAuthorizationToken will take precedence.");if(Y)q=Y;else if(K)q=`${oF3}${K}`;else throw new oz7.CredentialsProviderError(`No HTTP credential provider host provided.
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:A.logger});let $=new URL(q);(0,iF3.checkUrl)($,A.logger);let O=cF3.NodeHttpHandler.create({requestTimeout:A.timeout??1000,connectionTimeout:A.timeout??1000});return(0,nF3.retryWrapper)(async()=>{let H=(0,az7.createGetRequest)($);if(z)H.headers.Authorization=z;else if(w)H.headers.Authorization=(await lF3.default.readFile(w)).toString();try{let j=await O.handle(H);return(0,az7.getCredentials)(j.response).then((J)=>(0,dF3.setCredentialFeature)(J,"CREDENTIALS_HTTP","z"))}catch(j){throw new oz7.CredentialsProviderError(String(j),{logger:A.logger})}},A.maxRetries??3,A.timeout??1000)};sz7.fromHttp=eF3});var w21=C((W58)=>{Object.defineProperty(W58,"__esModule",{value:!0});W58.fromHttp=void 0;var AQ3=ez7();Object.defineProperty(W58,"fromHttp",{enumerable:!0,get:function(){return AQ3.fromHttp}})});var v58=C(($Q3)=>{$Q3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})($Q3.HttpAuthLocation||($Q3.HttpAuthLocation={}));$Q3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})($Q3.HttpApiKeyAuthLocation||($Q3.HttpApiKeyAuthLocation={}));$Q3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})($Q3.EndpointURLScheme||($Q3.EndpointURLScheme={}));$Q3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})($Q3.AlgorithmId||($Q3.AlgorithmId={}));var KQ3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>$Q3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>$Q3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},YQ3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},zQ3=(A)=>{return KQ3(A)},wQ3=(A)=>{return YQ3(A)};$Q3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})($Q3.FieldPosition||($Q3.FieldPosition={}));var _Q3="__smithy_context";$Q3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})($Q3.IniSectionType||($Q3.IniSectionType={}));$Q3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})($Q3.RequestHandlerProtocol||($Q3.RequestHandlerProtocol={}));$Q3.SMITHY_CONTEXT_KEY=_Q3;$Q3.getDefaultClientConfiguration=zQ3;$Q3.resolveDefaultRuntimeConfig=wQ3});var $21=C((WQ3)=>{var JQ3=v58(),MQ3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},DQ3=(A)=>{return{httpHandler:A.httpHandler()}};class Aw7{name;kind;values;constructor({name:A,kind:q=JQ3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class qw7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class _21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new _21({...A,headers:{...A.headers}});if(q.query)q.query=XQ3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return _21.clone(this)}}function XQ3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class Kw7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function PQ3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}WQ3.Field=Aw7;WQ3.Fields=qw7;WQ3.HttpRequest=_21;WQ3.HttpResponse=Kw7;WQ3.getHttpHandlerExtensionConfiguration=MQ3;WQ3.isValidHostname=PQ3;WQ3.resolveHttpHandlerRuntimeConfig=DQ3});var Yw7=C((SQ3)=>{SQ3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(SQ3.HttpAuthLocation||(SQ3.HttpAuthLocation={}));SQ3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(SQ3.HttpApiKeyAuthLocation||(SQ3.HttpApiKeyAuthLocation={}));SQ3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(SQ3.EndpointURLScheme||(SQ3.EndpointURLScheme={}));SQ3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(SQ3.AlgorithmId||(SQ3.AlgorithmId={}));var kQ3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>SQ3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>SQ3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},EQ3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},LQ3=(A)=>{return kQ3(A)},yQ3=(A)=>{return EQ3(A)};SQ3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(SQ3.FieldPosition||(SQ3.FieldPosition={}));var RQ3="__smithy_context";SQ3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(SQ3.IniSectionType||(SQ3.IniSectionType={}));SQ3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(SQ3.RequestHandlerProtocol||(SQ3.RequestHandlerProtocol={}));SQ3.SMITHY_CONTEXT_KEY=RQ3;SQ3.getDefaultClientConfiguration=LQ3;SQ3.resolveDefaultRuntimeConfig=yQ3});var $w7=C((gQ3)=>{var bQ3=Yw7(),xQ3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},uQ3=(A)=>{return{httpHandler:A.httpHandler()}};class zw7{name;kind;values;constructor({name:A,kind:q=bQ3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class ww7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class O21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new O21({...A,headers:{...A.headers}});if(q.query)q.query=BQ3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return O21.clone(this)}}function BQ3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class _w7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function mQ3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}gQ3.Field=zw7;gQ3.Fields=ww7;gQ3.HttpRequest=O21;gQ3.HttpResponse=_w7;gQ3.getHttpHandlerExtensionConfiguration=xQ3;gQ3.isValidHostname=mQ3;gQ3.resolveHttpHandlerRuntimeConfig=uQ3});var h58=C((rQ3)=>{var iQ3=$w7(),Ow7=(A,q)=>(K,Y)=>async(z)=>{let{response:w}=await K(z);try{let _=await q(w,A);return{response:w,output:_}}catch(_){if(Object.defineProperty(_,"$response",{value:w,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in _)){try{_.message+=`
  Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(O){if(!Y.logger||Y.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else Y.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof _.$responseBodyText<"u"){if(_.$response)_.$response.body=_.$responseBodyText}try{if(iQ3.HttpResponse.isInstance(w)){let{headers:O={}}=w,H=Object.entries(O);_.$metadata={httpStatusCode:w.statusCode,requestId:C58(/^x-[\w-]+-request-?id$/,H),extendedRequestId:C58(/^x-[\w-]+-id-2$/,H),cfId:C58(/^x-[\w-]+-cf-id$/,H)}}}catch(O){}}throw _}},C58=(A,q)=>{return(q.find(([K])=>{return K.match(A)})||[void 0,void 0])[1]},Hw7=(A,q)=>(K,Y)=>async(z)=>{let w=A,_=Y.endpointV2?.url&&w.urlParser?async()=>w.urlParser(Y.endpointV2.url):w.endpoint;if(!_)throw Error("No valid endpoint provider available.");let $=await q(z.input,{...A,endpoint:_});return K({...z,request:$})},jw7={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Jw7={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function nQ3(A,q,K){return{applyToStack:(Y)=>{Y.add(Ow7(A,K),jw7),Y.add(Hw7(A,q),Jw7)}}}rQ3.deserializerMiddleware=Ow7;rQ3.deserializerMiddlewareOption=jw7;rQ3.getSerdePlugin=nQ3;rQ3.serializerMiddleware=Hw7;rQ3.serializerMiddlewareOption=Jw7});var pw=C((kw7)=>{var H21=b38(),Mw7=pZ(),AU3=h58(),I58=Iu6(),qU3=MN(),KU3=(A)=>A[H21.SMITHY_CONTEXT_KEY]||(A[H21.SMITHY_CONTEXT_KEY]={}),YU3=(A,q)=>{if(!q||q.length===0)return A;let K=[];for(let Y of q)for(let z of A)if(z.schemeId.split("#")[1]===Y)K.push(z);for(let Y of A)if(!K.find(({schemeId:z})=>z===Y.schemeId))K.push(Y);return K};function zU3(A){let q=new Map;for(let K of A)q.set(K.schemeId,K);return q}var b58=(A,q)=>(K,Y)=>async(z)=>{let w=A.httpAuthSchemeProvider(await q.httpAuthSchemeParametersProvider(A,Y,z.input)),_=A.authSchemePreference?await A.authSchemePreference():[],$=YU3(w,_),O=zU3(A.httpAuthSchemes),H=Mw7.getSmithyContext(Y),j=[];for(let J of $){let M=O.get(J.schemeId);if(!M){j.push(`HttpAuthScheme \`${J.schemeId}\` was not enabled for this service.`);continue}let D=M.identityProvider(await q.identityProviderConfigProvider(A));if(!D){j.push(`HttpAuthScheme \`${J.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:X={},signingProperties:P={}}=J.propertiesExtractor?.(A,Y)||{};J.identityProperties=Object.assign(J.identityProperties||{},X),J.signingProperties=Object.assign(J.signingProperties||{},P),H.selectedHttpAuthScheme={httpAuthOption:J,identity:await D(J.identityProperties),signer:M.signer};break}if(!H.selectedHttpAuthScheme)throw Error(j.join(`
`));return K(z)},Dw7={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},wU3=(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K})=>({applyToStack:(Y)=>{Y.addRelativeTo(b58(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K}),Dw7)}}),Xw7={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:AU3.serializerMiddlewareOption.name},_U3=(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K})=>({applyToStack:(Y)=>{Y.addRelativeTo(b58(A,{httpAuthSchemeParametersProvider:q,identityProviderConfigProvider:K}),Xw7)}}),$U3=(A)=>(q)=>{throw q},OU3=(A,q)=>{},Pw7=(A)=>(q,K)=>async(Y)=>{if(!I58.HttpRequest.isInstance(Y.request))return q(Y);let w=Mw7.getSmithyContext(K).selectedHttpAuthScheme;if(!w)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:_={}},identity:$,signer:O}=w,H=await q({...Y,request:await O.sign(Y.request,$,_)}).catch((O.errorHandler||$U3)(_));return(O.successHandler||OU3)(H.response,_),H},Ww7={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},HU3=(A)=>({applyToStack:(q)=>{q.addRelativeTo(Pw7(),Ww7)}}),jU3=(A)=>{if(typeof A==="function")return A;let q=Promise.resolve(A);return()=>q},JU3=async(A,q,K,Y=(w)=>w,...z)=>{let w=new A(K);return w=Y(w)??w,await q.send(w,...z)};function MU3(A,q,K,Y,z){return async function*(_,$,...O){let H=$,j=_.startingToken??H[K],J=!0,M;while(J){if(H[K]=j,z)H[z]=H[z]??_.pageSize;if(_.client instanceof A)M=await JU3(q,_.client,$,_.withCommand,...O);else throw Error(`Invalid client, expected instance of ${A.name}`);yield M;let D=j;j=DU3(M,Y),J=!!(j&&(!_.stopOnSameToken||j!==D))}return}}var DU3=(A,q)=>{let K=A,Y=q.split(".");for(let z of Y){if(!K||typeof K!=="object")return;K=K[z]}return K};function XU3(A,q,K){if(!A.__smithy_context)A.__smithy_context={features:{}};else if(!A.__smithy_context.features)A.__smithy_context.features={};A.__smithy_context.features[q]=K}class Zw7{authSchemes=new Map;constructor(A){for(let[q,K]of Object.entries(A))if(K!==void 0)this.authSchemes.set(q,K)}getIdentityProvider(A){return this.authSchemes.get(A)}}class Gw7{async sign(A,q,K){if(!K)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!K.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!K.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!q.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let Y=I58.HttpRequest.clone(A);if(K.in===H21.HttpApiKeyAuthLocation.QUERY)Y.query[K.name]=q.apiKey;else if(K.in===H21.HttpApiKeyAuthLocation.HEADER)Y.headers[K.name]=K.scheme?`${K.scheme} ${q.apiKey}`:q.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+K.in+"`");return Y}}class fw7{async sign(A,q,K){let Y=I58.HttpRequest.clone(A);if(!q.token)throw Error("request could not be signed with `token` since the `token` is not defined");return Y.headers.Authorization=`Bearer ${q.token}`,Y}}class Tw7{async sign(A,q,K){return A}}var Vw7=(A)=>function(K){return vw7(K)&&K.expiration.getTime()-Date.now()<A},Nw7=300000,PU3=Vw7(Nw7),vw7=(A)=>A.expiration!==void 0,WU3=(A,q,K)=>{if(A===void 0)return;let Y=typeof A!=="function"?async()=>Promise.resolve(A):A,z,w,_,$=!1,O=async(H)=>{if(!w)w=Y(H);try{z=await w,_=!0,$=!1}finally{w=void 0}return z};if(q===void 0)return async(H)=>{if(!_||H?.forceRefresh)z=await O(H);return z};return async(H)=>{if(!_||H?.forceRefresh)z=await O(H);if($)return z;if(!K(z))return $=!0,z;if(q(z))return await O(H),z;return z}};Object.defineProperty(kw7,"requestBuilder",{enumerable:!0,get:function(){return qU3.requestBuilder}});kw7.DefaultIdentityProviderConfig=Zw7;kw7.EXPIRATION_MS=Nw7;kw7.HttpApiKeyAuthSigner=Gw7;kw7.HttpBearerAuthSigner=fw7;kw7.NoAuthSigner=Tw7;kw7.createIsIdentityExpiredFunction=Vw7;kw7.createPaginator=MU3;kw7.doesIdentityRequireRefresh=vw7;kw7.getHttpAuthSchemeEndpointRuleSetPlugin=wU3;kw7.getHttpAuthSchemePlugin=_U3;kw7.getHttpSigningPlugin=HU3;kw7.getSmithyContext=KU3;kw7.httpAuthSchemeEndpointRuleSetMiddlewareOptions=Dw7;kw7.httpAuthSchemeMiddleware=b58;kw7.httpAuthSchemeMiddlewareOptions=Xw7;kw7.httpSigningMiddleware=Pw7;kw7.httpSigningMiddlewareOptions=Ww7;kw7.isIdentityExpired=PU3;kw7.memoizeIdentityProvider=WU3;kw7.normalizeProvider=jU3;kw7.setFeature=XU3});var Lw7=C((QU3)=>{var Ew7={},x58={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;Ew7[A]=q,x58[q]=A}function gU3(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in x58)q[K/2]=x58[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function FU3(A){let q="";for(let K=0;K<A.byteLength;K++)q+=Ew7[A[K]];return q}QU3.fromHex=gU3;QU3.toHex=FU3});var yw7=C((cU3)=>{var dU3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";cU3.isArrayBuffer=dU3});var Sw7=C((rU3)=>{var Rw7=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,iU3),iU3=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,nU3=(A)=>A.split("/").map(Rw7).join("/");rU3.escapeUri=Rw7;rU3.escapeUriPath=nU3});var l58=C(($p3)=>{var Ht=Lw7(),C36=Z2(),sU3=yw7(),bw7=$21(),Cw7=pZ(),j21=Sw7(),xw7="X-Amz-Algorithm",uw7="X-Amz-Credential",m58="X-Amz-Date",Bw7="X-Amz-SignedHeaders",mw7="X-Amz-Expires",g58="X-Amz-Signature",F58="X-Amz-Security-Token",tU3="X-Amz-Region-Set",Q58="authorization",U58=m58.toLowerCase(),gw7="date",Fw7=[Q58,U58,gw7],Qw7=g58.toLowerCase(),P21="x-amz-content-sha256",Uw7=F58.toLowerCase(),eU3="host",pw7={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},dw7=/^proxy-/,cw7=/^sec-/,Ap3=[/^proxy-/i,/^sec-/i],J21="AWS4-HMAC-SHA256",qp3="AWS4-ECDSA-P256-SHA256",lw7="AWS4-HMAC-SHA256-PAYLOAD",iw7="UNSIGNED-PAYLOAD",nw7=50,p58="aws4_request",rw7=604800,zP6={},M21=[],D21=(A,q,K)=>`${A}/${q}/${K}/${p58}`,ow7=async(A,q,K,Y,z)=>{let w=await hw7(A,q.secretAccessKey,q.accessKeyId),_=`${K}:${Y}:${z}:${Ht.toHex(w)}:${q.sessionToken}`;if(_ in zP6)return zP6[_];M21.push(_);while(M21.length>nw7)delete zP6[M21.shift()];let $=`AWS4${q.secretAccessKey}`;for(let O of[K,Y,z,p58])$=await hw7(A,$,O);return zP6[_]=$},Kp3=()=>{M21.length=0,Object.keys(zP6).forEach((A)=>{delete zP6[A]})},hw7=(A,q,K)=>{let Y=new A(q);return Y.update(C36.toUint8Array(K)),Y.digest()},u58=({headers:A},q,K)=>{let Y={};for(let z of Object.keys(A).sort()){if(A[z]==null)continue;let w=z.toLowerCase();if(w in pw7||q?.has(w)||dw7.test(w)||cw7.test(w)){if(!K||K&&!K.has(w))continue}Y[w]=A[z].trim().replace(/\s+/g," ")}return Y},X21=async({headers:A,body:q},K)=>{for(let Y of Object.keys(A))if(Y.toLowerCase()===P21)return A[Y];if(q==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof q==="string"||ArrayBuffer.isView(q)||sU3.isArrayBuffer(q)){let Y=new K;return Y.update(C36.toUint8Array(q)),Ht.toHex(await Y.digest())}return iw7};class aw7{format(A){let q=[];for(let z of Object.keys(A)){let w=C36.fromUtf8(z);q.push(Uint8Array.from([w.byteLength]),w,this.formatHeaderValue(A[z]))}let K=new Uint8Array(q.reduce((z,w)=>z+w.byteLength,0)),Y=0;for(let z of q)K.set(z,Y),Y+=z.byteLength;return K}formatHeaderValue(A){switch(A.type){case"boolean":return Uint8Array.from([A.value?0:1]);case"byte":return Uint8Array.from([2,A.value]);case"short":let q=new DataView(new ArrayBuffer(3));return q.setUint8(0,3),q.setInt16(1,A.value,!1),new Uint8Array(q.buffer);case"integer":let K=new DataView(new ArrayBuffer(5));return K.setUint8(0,4),K.setInt32(1,A.value,!1),new Uint8Array(K.buffer);case"long":let Y=new Uint8Array(9);return Y[0]=5,Y.set(A.value.bytes,1),Y;case"binary":let z=new DataView(new ArrayBuffer(3+A.value.byteLength));z.setUint8(0,6),z.setUint16(1,A.value.byteLength,!1);let w=new Uint8Array(z.buffer);return w.set(A.value,3),w;case"string":let _=C36.fromUtf8(A.value),$=new DataView(new ArrayBuffer(3+_.byteLength));$.setUint8(0,7),$.setUint16(1,_.byteLength,!1);let O=new Uint8Array($.buffer);return O.set(_,3),O;case"timestamp":let H=new Uint8Array(9);return H[0]=8,H.set(d58.fromNumber(A.value.valueOf()).bytes,1),H;case"uuid":if(!Yp3.test(A.value))throw Error(`Invalid UUID received: ${A.value}`);let j=new Uint8Array(17);return j[0]=9,j.set(Ht.fromHex(A.value.replace(/\-/g,"")),1),j}}}var Yp3=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class d58{bytes;constructor(A){if(this.bytes=A,A.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(A){if(A>9223372036854776000||A<-9223372036854776000)throw Error(`${A} is too large (or, if negative, too small) to represent as an Int64`);let q=new Uint8Array(8);for(let K=7,Y=Math.abs(Math.round(A));K>-1&&Y>0;K--,Y/=256)q[K]=Y;if(A<0)Iw7(q);return new d58(q)}valueOf(){let A=this.bytes.slice(0),q=A[0]&128;if(q)Iw7(A);return parseInt(Ht.toHex(A),16)*(q?-1:1)}toString(){return String(this.valueOf())}}function Iw7(A){for(let q=0;q<8;q++)A[q]^=255;for(let q=7;q>-1;q--)if(A[q]++,A[q]!==0)break}var sw7=(A,q)=>{A=A.toLowerCase();for(let K of Object.keys(q))if(A===K.toLowerCase())return!0;return!1},tw7=(A,q={})=>{let{headers:K,query:Y={}}=bw7.HttpRequest.clone(A);for(let z of Object.keys(K)){let w=z.toLowerCase();if(w.slice(0,6)==="x-amz-"&&!q.unhoistableHeaders?.has(w)||q.hoistableHeaders?.has(w))Y[z]=K[z],delete K[z]}return{...A,headers:K,query:Y}},B58=(A)=>{A=bw7.HttpRequest.clone(A);for(let q of Object.keys(A.headers))if(Fw7.indexOf(q.toLowerCase())>-1)delete A.headers[q];return A},ew7=({query:A={}})=>{let q=[],K={};for(let Y of Object.keys(A)){if(Y.toLowerCase()===Qw7)continue;let z=j21.escapeUri(Y);q.push(z);let w=A[Y];if(typeof w==="string")K[z]=`${z}=${j21.escapeUri(w)}`;else if(Array.isArray(w))K[z]=w.slice(0).reduce((_,$)=>_.concat([`${z}=${j21.escapeUri($)}`]),[]).sort().join("&")}return q.sort().map((Y)=>K[Y]).filter((Y)=>Y).join("&")},zp3=(A)=>wp3(A).toISOString().replace(/\.\d{3}Z$/,"Z"),wp3=(A)=>{if(typeof A==="number")return new Date(A*1000);if(typeof A==="string"){if(Number(A))return new Date(Number(A)*1000);return new Date(A)}return A};class c58{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:A,credentials:q,region:K,service:Y,sha256:z,uriEscapePath:w=!0}){this.service=Y,this.sha256=z,this.uriEscapePath=w,this.applyChecksum=typeof A==="boolean"?A:!0,this.regionProvider=Cw7.normalizeProvider(K),this.credentialProvider=Cw7.normalizeProvider(q)}createCanonicalRequest(A,q,K){let Y=Object.keys(q).sort();return`${A.method}
${this.getCanonicalPath(A)}
${ew7(A)}
${Y.map((z)=>`${z}:${q[z]}`).join(`
`)}

${Y.join(";")}
${K}`}async createStringToSign(A,q,K,Y){let z=new this.sha256;z.update(C36.toUint8Array(K));let w=await z.digest();return`${Y}
${A}
${q}
${Ht.toHex(w)}`}getCanonicalPath({path:A}){if(this.uriEscapePath){let q=[];for(let z of A.split("/")){if(z?.length===0)continue;if(z===".")continue;if(z==="..")q.pop();else q.push(z)}let K=`${A?.startsWith("/")?"/":""}${q.join("/")}${q.length>0&&A?.endsWith("/")?"/":""}`;return j21.escapeUri(K).replace(/%2F/g,"/")}return A}validateResolvedCredentials(A){if(typeof A!=="object"||typeof A.accessKeyId!=="string"||typeof A.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(A){let q=zp3(A).replace(/[\-:]/g,"");return{longDate:q,shortDate:q.slice(0,8)}}getCanonicalHeaderList(A){return Object.keys(A).sort().join(";")}}class A27 extends c58{headerFormatter=new aw7;constructor({applyChecksum:A,credentials:q,region:K,service:Y,sha256:z,uriEscapePath:w=!0}){super({applyChecksum:A,credentials:q,region:K,service:Y,sha256:z,uriEscapePath:w})}async presign(A,q={}){let{signingDate:K=new Date,expiresIn:Y=3600,unsignableHeaders:z,unhoistableHeaders:w,signableHeaders:_,hoistableHeaders:$,signingRegion:O,signingService:H}=q,j=await this.credentialProvider();this.validateResolvedCredentials(j);let J=O??await this.regionProvider(),{longDate:M,shortDate:D}=this.formatDate(K);if(Y>rw7)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let X=D21(D,J,H??this.service),P=tw7(B58(A),{unhoistableHeaders:w,hoistableHeaders:$});if(j.sessionToken)P.query[F58]=j.sessionToken;P.query[xw7]=J21,P.query[uw7]=`${j.accessKeyId}/${X}`,P.query[m58]=M,P.query[mw7]=Y.toString(10);let W=u58(P,z,_);return P.query[Bw7]=this.getCanonicalHeaderList(W),P.query[g58]=await this.getSignature(M,X,this.getSigningKey(j,J,D,H),this.createCanonicalRequest(P,W,await X21(A,this.sha256))),P}async sign(A,q){if(typeof A==="string")return this.signString(A,q);else if(A.headers&&A.payload)return this.signEvent(A,q);else if(A.message)return this.signMessage(A,q);else return this.signRequest(A,q)}async signEvent({headers:A,payload:q},{signingDate:K=new Date,priorSignature:Y,signingRegion:z,signingService:w}){let _=z??await this.regionProvider(),{shortDate:$,longDate:O}=this.formatDate(K),H=D21($,_,w??this.service),j=await X21({headers:{},body:q},this.sha256),J=new this.sha256;J.update(A);let M=Ht.toHex(await J.digest()),D=[lw7,O,H,Y,M,j].join(`
`);return this.signString(D,{signingDate:K,signingRegion:_,signingService:w})}async signMessage(A,{signingDate:q=new Date,signingRegion:K,signingService:Y}){return this.signEvent({headers:this.headerFormatter.format(A.message.headers),payload:A.message.body},{signingDate:q,signingRegion:K,signingService:Y,priorSignature:A.priorSignature}).then((w)=>{return{message:A.message,signature:w}})}async signString(A,{signingDate:q=new Date,signingRegion:K,signingService:Y}={}){let z=await this.credentialProvider();this.validateResolvedCredentials(z);let w=K??await this.regionProvider(),{shortDate:_}=this.formatDate(q),$=new this.sha256(await this.getSigningKey(z,w,_,Y));return $.update(C36.toUint8Array(A)),Ht.toHex(await $.digest())}async signRequest(A,{signingDate:q=new Date,signableHeaders:K,unsignableHeaders:Y,signingRegion:z,signingService:w}={}){let _=await this.credentialProvider();this.validateResolvedCredentials(_);let $=z??await this.regionProvider(),O=B58(A),{longDate:H,shortDate:j}=this.formatDate(q),J=D21(j,$,w??this.service);if(O.headers[U58]=H,_.sessionToken)O.headers[Uw7]=_.sessionToken;let M=await X21(O,this.sha256);if(!sw7(P21,O.headers)&&this.applyChecksum)O.headers[P21]=M;let D=u58(O,Y,K),X=await this.getSignature(H,J,this.getSigningKey(_,$,j,w),this.createCanonicalRequest(O,D,M));return O.headers[Q58]=`${J21} Credential=${_.accessKeyId}/${J}, SignedHeaders=${this.getCanonicalHeaderList(D)}, Signature=${X}`,O}async getSignature(A,q,K,Y){let z=await this.createStringToSign(A,q,Y,J21),w=new this.sha256(await K);return w.update(C36.toUint8Array(z)),Ht.toHex(await w.digest())}getSigningKey(A,q,K,Y){return ow7(this.sha256,A,K,q,Y||this.service)}}var _p3={SignatureV4a:null};$p3.ALGORITHM_IDENTIFIER=J21;$p3.ALGORITHM_IDENTIFIER_V4A=qp3;$p3.ALGORITHM_QUERY_PARAM=xw7;$p3.ALWAYS_UNSIGNABLE_HEADERS=pw7;$p3.AMZ_DATE_HEADER=U58;$p3.AMZ_DATE_QUERY_PARAM=m58;$p3.AUTH_HEADER=Q58;$p3.CREDENTIAL_QUERY_PARAM=uw7;$p3.DATE_HEADER=gw7;$p3.EVENT_ALGORITHM_IDENTIFIER=lw7;$p3.EXPIRES_QUERY_PARAM=mw7;$p3.GENERATED_HEADERS=Fw7;$p3.HOST_HEADER=eU3;$p3.KEY_TYPE_IDENTIFIER=p58;$p3.MAX_CACHE_SIZE=nw7;$p3.MAX_PRESIGNED_TTL=rw7;$p3.PROXY_HEADER_PATTERN=dw7;$p3.REGION_SET_PARAM=tU3;$p3.SEC_HEADER_PATTERN=cw7;$p3.SHA256_HEADER=P21;$p3.SIGNATURE_HEADER=Qw7;$p3.SIGNATURE_QUERY_PARAM=g58;$p3.SIGNED_HEADERS_QUERY_PARAM=Bw7;$p3.SignatureV4=A27;$p3.SignatureV4Base=c58;$p3.TOKEN_HEADER=Uw7;$p3.TOKEN_QUERY_PARAM=F58;$p3.UNSIGNABLE_PATTERNS=Ap3;$p3.UNSIGNED_PAYLOAD=iw7;$p3.clearCredentialCache=Kp3;$p3.createScope=D21;$p3.getCanonicalHeaders=u58;$p3.getCanonicalQuery=ew7;$p3.getPayloadHash=X21;$p3.getSigningKey=ow7;$p3.hasHeader=sw7;$p3.moveHeadersToQuery=tw7;$p3.prepareRequest=B58;$p3.signatureV4aContainer=_p3});var J27=C((Kd3)=>{var i58=$21(),jt=pw(),q27=EM(),np3=ON(),K27=l58(),Y27=(A)=>i58.HttpResponse.isInstance(A)?A.headers?.date??A.headers?.Date:void 0,n58=(A)=>new Date(Date.now()+A),rp3=(A,q)=>Math.abs(n58(q).getTime()-A)>=300000,z27=(A,q)=>{let K=Date.parse(A);if(rp3(K,q))return K-Date.now();return q},nu6=(A,q)=>{if(!q)throw Error(`Property \`${A}\` is not resolved for AWS SDK SigV4Auth`);return q},r58=async(A)=>{let q=nu6("context",A.context),K=nu6("config",A.config),Y=q.endpointV2?.properties?.authSchemes?.[0],w=await nu6("signer",K.signer)(Y),_=A?.signingRegion,$=A?.signingRegionSet,O=A?.signingName;return{config:K,signer:w,signingRegion:_,signingRegionSet:$,signingName:O}};class W21{async sign(A,q,K){if(!i58.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let Y=await r58(K),{config:z,signer:w}=Y,{signingRegion:_,signingName:$}=Y,O=K.context;if(O?.authSchemes?.length??!1){let[j,J]=O.authSchemes;if(j?.name==="sigv4a"&&J?.name==="sigv4")_=J?.signingRegion??_,$=J?.signingName??$}return await w.sign(A,{signingDate:n58(z.systemClockOffset),signingRegion:_,signingService:$})}errorHandler(A){return(q)=>{let K=q.ServerTime??Y27(q.$response);if(K){let Y=nu6("config",A.config),z=Y.systemClockOffset;if(Y.systemClockOffset=z27(K,Y.systemClockOffset),Y.systemClockOffset!==z&&q.$metadata)q.$metadata.clockSkewCorrected=!0}throw q}}successHandler(A,q){let K=Y27(A);if(K){let Y=nu6("config",q.config);Y.systemClockOffset=z27(K,Y.systemClockOffset)}}}var op3=W21;class O27 extends W21{async sign(A,q,K){if(!i58.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:Y,signer:z,signingRegion:w,signingRegionSet:_,signingName:$}=await r58(K),H=(await Y.sigv4aSigningRegionSet?.()??_??[w]).join(",");return await z.sign(A,{signingDate:n58(Y.systemClockOffset),signingRegion:H,signingService:$})}}var w27=(A)=>typeof A==="string"&&A.length>0?A.split(",").map((q)=>q.trim()):[],H27=(A)=>`AWS_BEARER_TOKEN_${A.replace(/[\s-]/g,"_").toUpperCase()}`,_27="AWS_AUTH_SCHEME_PREFERENCE",$27="auth_scheme_preference",ap3={environmentVariableSelector:(A,q)=>{if(q?.signingName){if(H27(q.signingName)in A)return["httpBearerAuth"]}if(!(_27 in A))return;return w27(A[_27])},configFileSelector:(A)=>{if(!($27 in A))return;return w27(A[$27])},default:[]},sp3=(A)=>{return A.sigv4aSigningRegionSet=jt.normalizeProvider(A.sigv4aSigningRegionSet),A},tp3={environmentVariableSelector(A){if(A.AWS_SIGV4A_SIGNING_REGION_SET)return A.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((q)=>q.trim());throw new q27.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(A){if(A.sigv4a_signing_region_set)return(A.sigv4a_signing_region_set??"").split(",").map((q)=>q.trim());throw new q27.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},j27=(A)=>{let q=A.credentials,K=!!A.credentials,Y=void 0;Object.defineProperty(A,"credentials",{set(H){if(H&&H!==q&&H!==Y)K=!0;q=H;let j=Ad3(A,{credentials:q,credentialDefaultProvider:A.credentialDefaultProvider}),J=qd3(A,j);if(K&&!J.attributed)Y=async(M)=>J(M).then((D)=>np3.setCredentialFeature(D,"CREDENTIALS_CODE","e")),Y.memoized=J.memoized,Y.configBound=J.configBound,Y.attributed=!0;else Y=J},get(){return Y},enumerable:!0,configurable:!0}),A.credentials=q;let{signingEscapePath:z=!0,systemClockOffset:w=A.systemClockOffset||0,sha256:_}=A,$;if(A.signer)$=jt.normalizeProvider(A.signer);else if(A.regionInfoProvider)$=()=>jt.normalizeProvider(A.region)().then(async(H)=>[await A.regionInfoProvider(H,{useFipsEndpoint:await A.useFipsEndpoint(),useDualstackEndpoint:await A.useDualstackEndpoint()})||{},H]).then(([H,j])=>{let{signingRegion:J,signingService:M}=H;A.signingRegion=A.signingRegion||J||j,A.signingName=A.signingName||M||A.serviceId;let D={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||K27.SignatureV4)(D)});else $=async(H)=>{H=Object.assign({},{name:"sigv4",signingName:A.signingName||A.defaultSigningName,signingRegion:await jt.normalizeProvider(A.region)(),properties:{}},H);let{signingRegion:j,signingName:J}=H;A.signingRegion=A.signingRegion||j,A.signingName=A.signingName||J||A.serviceId;let M={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||K27.SignatureV4)(M)};return Object.assign(A,{systemClockOffset:w,signingEscapePath:z,signer:$})},ep3=j27;function Ad3(A,{credentials:q,credentialDefaultProvider:K}){let Y;if(q)if(!q?.memoized)Y=jt.memoizeIdentityProvider(q,jt.isIdentityExpired,jt.doesIdentityRequireRefresh);else Y=q;else if(K)Y=jt.normalizeProvider(K(Object.assign({},A,{parentClientConfig:A})));else Y=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return Y.memoized=!0,Y}function qd3(A,q){if(q.configBound)return q;let K=async(Y)=>q({...Y,callerClientConfig:A});return K.memoized=q.memoized,K.configBound=!0,K}Kd3.AWSSDKSigV4Signer=op3;Kd3.AwsSdkSigV4ASigner=O27;Kd3.AwsSdkSigV4Signer=W21;Kd3.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=ap3;Kd3.NODE_SIGV4A_CONFIG_OPTIONS=tp3;Kd3.getBearerTokenEnvKey=H27;Kd3.resolveAWSSDKSigV4Config=ep3;Kd3.resolveAwsSdkSigV4AConfig=sp3;Kd3.resolveAwsSdkSigV4Config=j27;Kd3.validateSigningProperties=r58});var M27=C((Gd3)=>{Gd3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Gd3.HttpAuthLocation||(Gd3.HttpAuthLocation={}));Gd3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Gd3.HttpApiKeyAuthLocation||(Gd3.HttpApiKeyAuthLocation={}));Gd3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Gd3.EndpointURLScheme||(Gd3.EndpointURLScheme={}));Gd3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Gd3.AlgorithmId||(Gd3.AlgorithmId={}));var Dd3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Gd3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Gd3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Xd3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Pd3=(A)=>{return Dd3(A)},Wd3=(A)=>{return Xd3(A)};Gd3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Gd3.FieldPosition||(Gd3.FieldPosition={}));var Zd3="__smithy_context";Gd3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Gd3.IniSectionType||(Gd3.IniSectionType={}));Gd3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Gd3.RequestHandlerProtocol||(Gd3.RequestHandlerProtocol={}));Gd3.SMITHY_CONTEXT_KEY=Zd3;Gd3.getDefaultClientConfiguration=Pd3;Gd3.resolveDefaultRuntimeConfig=Wd3});var W27=C((yd3)=>{var Nd3=M27(),vd3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},kd3=(A)=>{return{httpHandler:A.httpHandler()}};class D27{name;kind;values;constructor({name:A,kind:q=Nd3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class X27{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class Z21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new Z21({...A,headers:{...A.headers}});if(q.query)q.query=Ed3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return Z21.clone(this)}}function Ed3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class P27{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Ld3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}yd3.Field=D27;yd3.Fields=X27;yd3.HttpRequest=Z21;yd3.HttpResponse=P27;yd3.getHttpHandlerExtensionConfiguration=vd3;yd3.isValidHostname=Ld3;yd3.resolveHttpHandlerRuntimeConfig=kd3});var Dc=C((gd3)=>{var ud3=W27();function Bd3(A){return A}var Z27=(A)=>(q)=>async(K)=>{if(!ud3.HttpRequest.isInstance(K.request))return q(K);let{request:Y}=K,{handlerProtocol:z=""}=A.requestHandler.metadata||{};if(z.indexOf("h2")>=0&&!Y.headers[":authority"])delete Y.headers.host,Y.headers[":authority"]=Y.hostname+(Y.port?":"+Y.port:"");else if(!Y.headers.host){let w=Y.hostname;if(Y.port!=null)w+=`:${Y.port}`;Y.headers.host=w}return q(K)},G27={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},md3=(A)=>({applyToStack:(q)=>{q.add(Z27(A),G27)}});gd3.getHostHeaderPlugin=md3;gd3.hostHeaderMiddleware=Z27;gd3.hostHeaderMiddlewareOptions=G27;gd3.resolveHostHeaderConfig=Bd3});var Xc=C((cd3)=>{var f27=()=>(A,q)=>async(K)=>{try{let Y=await A(K),{clientName:z,commandName:w,logger:_,dynamoDbDocumentClientOptions:$={}}=q,{overrideInputFilterSensitiveLog:O,overrideOutputFilterSensitiveLog:H}=$,j=O??q.inputFilterSensitiveLog,J=H??q.outputFilterSensitiveLog,{$metadata:M,...D}=Y.output;return _?.info?.({clientName:z,commandName:w,input:j(K.input),output:J(D),metadata:M}),Y}catch(Y){let{clientName:z,commandName:w,logger:_,dynamoDbDocumentClientOptions:$={}}=q,{overrideInputFilterSensitiveLog:O}=$,H=O??q.inputFilterSensitiveLog;throw _?.error?.({clientName:z,commandName:w,input:H(K.input),error:Y,metadata:Y.$metadata}),Y}},T27={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},dd3=(A)=>({applyToStack:(q)=>{q.add(f27(),T27)}});cd3.getLoggerPlugin=dd3;cd3.loggerMiddleware=f27;cd3.loggerMiddlewareOptions=T27});var N27=C((rd3)=>{var ou6={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")},q98=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!q98)globalThis.awslambda=globalThis.awslambda||{};class G21{static PROTECTED_KEYS=ou6;isProtectedKey(A){return Object.values(ou6).includes(A)}getRequestId(){return this.get(ou6.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(ou6.X_RAY_TRACE_ID)}getTenantId(){return this.get(ou6.TENANT_ID)}}class V27 extends G21{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(A){return this.currentContext?.[A]}set(A,q){if(this.isProtectedKey(A))throw Error(`Cannot modify protected Lambda context field: ${String(A)}`);this.currentContext=this.currentContext||{},this.currentContext[A]=q}run(A,q){this.currentContext=A;try{return q()}finally{this.currentContext=void 0}}}class Y98 extends G21{als;static async create(){let A=new Y98,q=await import("node:async_hooks");return A.als=new q.AsyncLocalStorage,A}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(A){return this.als.getStore()?.[A]}set(A,q){if(this.isProtectedKey(A))throw Error(`Cannot modify protected Lambda context field: ${String(A)}`);let K=this.als.getStore();if(!K)throw Error("No context available");K[A]=q}run(A,q){return this.als.run(A,q)}}rd3.InvokeStore=void 0;(function(A){let q=null;async function K(){if(!q)q=(async()=>{let z="AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await Y98.create():new V27;if(!q98&&globalThis.awslambda?.InvokeStore)return globalThis.awslambda.InvokeStore;else if(!q98&&globalThis.awslambda)return globalThis.awslambda.InvokeStore=z,z;else return z})();return q}A.getInstanceAsync=K,A._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{if(q=null,globalThis.awslambda?.InvokeStore)delete globalThis.awslambda.InvokeStore;globalThis.awslambda={}}}:void 0})(rd3.InvokeStore||(rd3.InvokeStore={}));rd3.InvokeStoreBase=G21});var v27=C((qc3)=>{qc3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(qc3.HttpAuthLocation||(qc3.HttpAuthLocation={}));qc3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(qc3.HttpApiKeyAuthLocation||(qc3.HttpApiKeyAuthLocation={}));qc3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(qc3.EndpointURLScheme||(qc3.EndpointURLScheme={}));qc3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(qc3.AlgorithmId||(qc3.AlgorithmId={}));var ad3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>qc3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>qc3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},sd3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},td3=(A)=>{return ad3(A)},ed3=(A)=>{return sd3(A)};qc3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(qc3.FieldPosition||(qc3.FieldPosition={}));var Ac3="__smithy_context";qc3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(qc3.IniSectionType||(qc3.IniSectionType={}));qc3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(qc3.RequestHandlerProtocol||(qc3.RequestHandlerProtocol={}));qc3.SMITHY_CONTEXT_KEY=Ac3;qc3.getDefaultClientConfiguration=td3;qc3.resolveDefaultRuntimeConfig=ed3});var y27=C((jc3)=>{var wc3=v27(),_c3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},$c3=(A)=>{return{httpHandler:A.httpHandler()}};class k27{name;kind;values;constructor({name:A,kind:q=wc3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class E27{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class f21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new f21({...A,headers:{...A.headers}});if(q.query)q.query=Oc3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return f21.clone(this)}}function Oc3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class L27{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Hc3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}jc3.Field=k27;jc3.Fields=E27;jc3.HttpRequest=f21;jc3.HttpResponse=L27;jc3.getHttpHandlerExtensionConfiguration=_c3;jc3.isValidHostname=Hc3;jc3.resolveHttpHandlerRuntimeConfig=$c3});var C27=C((R27)=>{Object.defineProperty(R27,"__esModule",{value:!0});R27.recursionDetectionMiddleware=void 0;var Gc3=N27(),fc3=y27(),j98="X-Amzn-Trace-Id",Tc3="AWS_LAMBDA_FUNCTION_NAME",Vc3="_X_AMZN_TRACE_ID",Nc3=()=>(A)=>async(q)=>{let{request:K}=q;if(!fc3.HttpRequest.isInstance(K))return A(q);let Y=Object.keys(K.headers??{}).find((j)=>j.toLowerCase()===j98.toLowerCase())??j98;if(K.headers.hasOwnProperty(Y))return A(q);let z=process.env[Tc3],w=process.env[Vc3],O=(await Gc3.InvokeStore.getInstanceAsync())?.getXRayTraceId()??w,H=(j)=>typeof j==="string"&&j.length>0;if(H(z)&&H(O))K.headers[j98]=O;return A({...q,request:K})};R27.recursionDetectionMiddleware=Nc3});var Pc=C((M98)=>{var J98=C27(),vc3={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},kc3=(A)=>({applyToStack:(q)=>{q.add(J98.recursionDetectionMiddleware(),vc3)}});M98.getRecursionDetectionPlugin=kc3;Object.keys(J98).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(M98,A))Object.defineProperty(M98,A,{enumerable:!0,get:function(){return J98[A]}})})});var h27=C((hc3)=>{hc3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(hc3.HttpAuthLocation||(hc3.HttpAuthLocation={}));hc3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(hc3.HttpApiKeyAuthLocation||(hc3.HttpApiKeyAuthLocation={}));hc3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(hc3.EndpointURLScheme||(hc3.EndpointURLScheme={}));hc3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(hc3.AlgorithmId||(hc3.AlgorithmId={}));var Lc3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>hc3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>hc3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},yc3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Rc3=(A)=>{return Lc3(A)},Sc3=(A)=>{return yc3(A)};hc3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(hc3.FieldPosition||(hc3.FieldPosition={}));var Cc3="__smithy_context";hc3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(hc3.IniSectionType||(hc3.IniSectionType={}));hc3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(hc3.RequestHandlerProtocol||(hc3.RequestHandlerProtocol={}));hc3.SMITHY_CONTEXT_KEY=Cc3;hc3.getDefaultClientConfiguration=Rc3;hc3.resolveDefaultRuntimeConfig=Sc3});var Ab=C((Al3)=>{var T98=h27();class I27{capacity;data=new Map;parameters=[];constructor({size:A,params:q}){if(this.capacity=A??50,q)this.parameters=q}get(A,q){let K=this.hash(A);if(K===!1)return q();if(!this.data.has(K)){if(this.data.size>this.capacity+10){let Y=this.data.keys(),z=0;while(!0){let{value:w,done:_}=Y.next();if(this.data.delete(w),_||++z>10)break}}this.data.set(K,q())}return this.data.get(K)}size(){return this.data.size}hash(A){let q="",{parameters:K}=this;if(K.length===0)return!1;for(let Y of K){let z=String(A[Y]??"");if(z.includes("|;"))return!1;q+=z+"|;"}return q}}var uc3=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}$"),b27=(A)=>uc3.test(A)||A.startsWith("[")&&A.endsWith("]"),Bc3=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),N98=(A,q=!1)=>{if(!q)return Bc3.test(A);let K=A.split(".");for(let Y of K)if(!N98(Y))return!1;return!0},V98={},tu6="endpoints";function Jt(A){if(typeof A!=="object"||A==null)return A;if("ref"in A)return`$${Jt(A.ref)}`;if("fn"in A)return`${A.fn}(${(A.argv||[]).map(Jt).join(", ")})`;return JSON.stringify(A,null,2)}class pf extends Error{constructor(A){super(A);this.name="EndpointError"}}var mc3=(A,q)=>A===q,gc3=(A)=>{let q=A.split("."),K=[];for(let Y of q){let z=Y.indexOf("[");if(z!==-1){if(Y.indexOf("]")!==Y.length-1)throw new pf(`Path: '${A}' does not end with ']'`);let w=Y.slice(z+1,-1);if(Number.isNaN(parseInt(w)))throw new pf(`Invalid array index: '${w}' in path: '${A}'`);if(z!==0)K.push(Y.slice(0,z));K.push(w)}else K.push(Y)}return K},x27=(A,q)=>gc3(q).reduce((K,Y)=>{if(typeof K!=="object")throw new pf(`Index '${Y}' in '${q}' not found in '${JSON.stringify(A)}'`);else if(Array.isArray(K))return K[parseInt(Y)];return K[Y]},A),Fc3=(A)=>A!=null,Qc3=(A)=>!A,f98={[T98.EndpointURLScheme.HTTP]:80,[T98.EndpointURLScheme.HTTPS]:443},Uc3=(A)=>{let q=(()=>{try{if(A instanceof URL)return A;if(typeof A==="object"&&"hostname"in A){let{hostname:M,port:D,protocol:X="",path:P="",query:W={}}=A,Z=new URL(`${X}//${M}${D?`:${D}`:""}${P}`);return Z.search=Object.entries(W).map(([G,f])=>`${G}=${f}`).join("&"),Z}return new URL(A)}catch(M){return null}})();if(!q)return console.error(`Unable to parse ${JSON.stringify(A)} as a whatwg URL.`),null;let K=q.href,{host:Y,hostname:z,pathname:w,protocol:_,search:$}=q;if($)return null;let O=_.slice(0,-1);if(!Object.values(T98.EndpointURLScheme).includes(O))return null;let H=b27(z),j=K.includes(`${Y}:${f98[O]}`)||typeof A==="string"&&A.includes(`${Y}:${f98[O]}`),J=`${Y}${j?`:${f98[O]}`:""}`;return{scheme:O,authority:J,path:w,normalizedPath:w.endsWith("/")?w:`${w}/`,isIp:H}},pc3=(A,q)=>A===q,dc3=(A,q,K,Y)=>{if(q>=K||A.length<K)return null;if(!Y)return A.substring(q,K);return A.substring(A.length-K,A.length-q)},cc3=(A)=>encodeURIComponent(A).replace(/[!*'()]/g,(q)=>`%${q.charCodeAt(0).toString(16).toUpperCase()}`),lc3={booleanEquals:mc3,getAttr:x27,isSet:Fc3,isValidHostLabel:N98,not:Qc3,parseURL:Uc3,stringEquals:pc3,substring:dc3,uriEncode:cc3},u27=(A,q)=>{let K=[],Y={...q.endpointParams,...q.referenceRecord},z=0;while(z<A.length){let w=A.indexOf("{",z);if(w===-1){K.push(A.slice(z));break}K.push(A.slice(z,w));let _=A.indexOf("}",w);if(_===-1){K.push(A.slice(w));break}if(A[w+1]==="{"&&A[_+1]==="}")K.push(A.slice(w+1,_)),z=_+2;let $=A.substring(w+1,_);if($.includes("#")){let[O,H]=$.split("#");K.push(x27(Y[O],H))}else K.push(Y[$]);z=_+1}return K.join("")},ic3=({ref:A},q)=>{return{...q.endpointParams,...q.referenceRecord}[A]},T21=(A,q,K)=>{if(typeof A==="string")return u27(A,K);else if(A.fn)return m27.callFunction(A,K);else if(A.ref)return ic3(A,K);throw new pf(`'${q}': ${String(A)} is not a string, function or reference.`)},B27=({fn:A,argv:q},K)=>{let Y=q.map((w)=>["boolean","number"].includes(typeof w)?w:m27.evaluateExpression(w,"arg",K)),z=A.split(".");if(z[0]in V98&&z[1]!=null)return V98[z[0]][z[1]](...Y);return lc3[A](...Y)},m27={evaluateExpression:T21,callFunction:B27},nc3=({assign:A,...q},K)=>{if(A&&A in K.referenceRecord)throw new pf(`'${A}' is already defined in Reference Record.`);let Y=B27(q,K);return K.logger?.debug?.(`${tu6} evaluateCondition: ${Jt(q)} = ${Jt(Y)}`),{result:Y===""?!0:!!Y,...A!=null&&{toAssign:{name:A,value:Y}}}},v98=(A=[],q)=>{let K={};for(let Y of A){let{result:z,toAssign:w}=nc3(Y,{...q,referenceRecord:{...q.referenceRecord,...K}});if(!z)return{result:z};if(w)K[w.name]=w.value,q.logger?.debug?.(`${tu6} assign: ${w.name} := ${Jt(w.value)}`)}return{result:!0,referenceRecord:K}},rc3=(A,q)=>Object.entries(A).reduce((K,[Y,z])=>({...K,[Y]:z.map((w)=>{let _=T21(w,"Header value entry",q);if(typeof _!=="string")throw new pf(`Header '${Y}' value '${_}' is not a string`);return _})}),{}),g27=(A,q)=>Object.entries(A).reduce((K,[Y,z])=>({...K,[Y]:Q27.getEndpointProperty(z,q)}),{}),F27=(A,q)=>{if(Array.isArray(A))return A.map((K)=>F27(K,q));switch(typeof A){case"string":return u27(A,q);case"object":if(A===null)throw new pf(`Unexpected endpoint property: ${A}`);return Q27.getEndpointProperties(A,q);case"boolean":return A;default:throw new pf(`Unexpected endpoint property type: ${typeof A}`)}},Q27={getEndpointProperty:F27,getEndpointProperties:g27},oc3=(A,q)=>{let K=T21(A,"Endpoint URL",q);if(typeof K==="string")try{return new URL(K)}catch(Y){throw console.error(`Failed to construct URL with ${K}`,Y),Y}throw new pf(`Endpoint URL must be a string, got ${typeof K}`)},ac3=(A,q)=>{let{conditions:K,endpoint:Y}=A,{result:z,referenceRecord:w}=v98(K,q);if(!z)return;let _={...q,referenceRecord:{...q.referenceRecord,...w}},{url:$,properties:O,headers:H}=Y;return q.logger?.debug?.(`${tu6} Resolving endpoint from template: ${Jt(Y)}`),{...H!=null&&{headers:rc3(H,_)},...O!=null&&{properties:g27(O,_)},url:oc3($,_)}},sc3=(A,q)=>{let{conditions:K,error:Y}=A,{result:z,referenceRecord:w}=v98(K,q);if(!z)return;throw new pf(T21(Y,"Error",{...q,referenceRecord:{...q.referenceRecord,...w}}))},U27=(A,q)=>{for(let K of A)if(K.type==="endpoint"){let Y=ac3(K,q);if(Y)return Y}else if(K.type==="error")sc3(K,q);else if(K.type==="tree"){let Y=p27.evaluateTreeRule(K,q);if(Y)return Y}else throw new pf(`Unknown endpoint rule: ${K}`);throw new pf("Rules evaluation failed")},tc3=(A,q)=>{let{conditions:K,rules:Y}=A,{result:z,referenceRecord:w}=v98(K,q);if(!z)return;return p27.evaluateRules(Y,{...q,referenceRecord:{...q.referenceRecord,...w}})},p27={evaluateRules:U27,evaluateTreeRule:tc3},ec3=(A,q)=>{let{endpointParams:K,logger:Y}=q,{parameters:z,rules:w}=A;q.logger?.debug?.(`${tu6} Initial EndpointParams: ${Jt(K)}`);let _=Object.entries(z).filter(([,H])=>H.default!=null).map(([H,j])=>[H,j.default]);if(_.length>0)for(let[H,j]of _)K[H]=K[H]??j;let $=Object.entries(z).filter(([,H])=>H.required).map(([H])=>H);for(let H of $)if(K[H]==null)throw new pf(`Missing required parameter: '${H}'`);let O=U27(w,{endpointParams:K,logger:Y,referenceRecord:{}});return q.logger?.debug?.(`${tu6} Resolved endpoint: ${Jt(O)}`),O};Al3.EndpointCache=I27;Al3.EndpointError=pf;Al3.customEndpointFunctions=V98;Al3.isIpAddress=b27;Al3.isValidHostLabel=N98;Al3.resolveEndpoint=ec3});var pm=C((V21)=>{var wP6=Ab(),$l3=LR(),c27=(A,q=!1)=>{if(q){for(let K of A.split("."))if(!c27(K))return!1;return!0}if(!wP6.isValidHostLabel(A))return!1;if(A.length<3||A.length>63)return!1;if(A!==A.toLowerCase())return!1;if(wP6.isIpAddress(A))return!1;return!0},d27=":",Ol3="/",Hl3=(A)=>{let q=A.split(d27);if(q.length<6)return null;let[K,Y,z,w,_,...$]=q;if(K!=="arn"||Y===""||z===""||$.join(d27)==="")return null;let O=$.map((H)=>H.split(Ol3)).flat();return{partition:Y,service:z,region:w,accountId:_,resourceId:O}},jl3=[{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:"EU (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)"}}}],Jl3="1.1",l27={partitions:jl3,version:Jl3},i27=l27,n27="",r27=(A)=>{let{partitions:q}=i27;for(let Y of q){let{regions:z,outputs:w}=Y;for(let[_,$]of Object.entries(z))if(_===A)return{...w,...$}}for(let Y of q){let{regionRegex:z,outputs:w}=Y;if(new RegExp(z).test(A))return{...w}}let K=q.find((Y)=>Y.id==="aws");if(!K)throw Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...K.outputs}},o27=(A,q="")=>{i27=A,n27=q},Ml3=()=>{o27(l27,"")},Dl3=()=>n27,a27={isVirtualHostableS3Bucket:c27,parseArn:Hl3,partition:r27};wP6.customEndpointFunctions.aws=a27;var Xl3=(A)=>{if(typeof A.endpointProvider!=="function")throw Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:q}=A;if(q===void 0)A.endpoint=async()=>{return s27(A.endpointProvider({Region:typeof A.region==="function"?await A.region():A.region,UseDualStack:typeof A.useDualstackEndpoint==="function"?await A.useDualstackEndpoint():A.useDualstackEndpoint,UseFIPS:typeof A.useFipsEndpoint==="function"?await A.useFipsEndpoint():A.useFipsEndpoint,Endpoint:void 0},{logger:A.logger}))};return A},s27=(A)=>$l3.parseUrl(A.url);Object.defineProperty(V21,"EndpointError",{enumerable:!0,get:function(){return wP6.EndpointError}});Object.defineProperty(V21,"isIpAddress",{enumerable:!0,get:function(){return wP6.isIpAddress}});Object.defineProperty(V21,"resolveEndpoint",{enumerable:!0,get:function(){return wP6.resolveEndpoint}});V21.awsEndpointFunctions=a27;V21.getUserAgentPrefix=Dl3;V21.partition=r27;V21.resolveDefaultAwsRegionalEndpointsConfig=Xl3;V21.setPartitionInfo=o27;V21.toEndpointV1=s27;V21.useDefaultPartitionInfo=Ml3});var t27=C((yl3)=>{yl3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(yl3.HttpAuthLocation||(yl3.HttpAuthLocation={}));yl3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(yl3.HttpApiKeyAuthLocation||(yl3.HttpApiKeyAuthLocation={}));yl3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(yl3.EndpointURLScheme||(yl3.EndpointURLScheme={}));yl3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(yl3.AlgorithmId||(yl3.AlgorithmId={}));var Nl3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>yl3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>yl3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},vl3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},kl3=(A)=>{return Nl3(A)},El3=(A)=>{return vl3(A)};yl3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(yl3.FieldPosition||(yl3.FieldPosition={}));var Ll3="__smithy_context";yl3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(yl3.IniSectionType||(yl3.IniSectionType={}));yl3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(yl3.RequestHandlerProtocol||(yl3.RequestHandlerProtocol={}));yl3.SMITHY_CONTEXT_KEY=Ll3;yl3.getDefaultClientConfiguration=kl3;yl3.resolveDefaultRuntimeConfig=El3});var K_7=C((Bl3)=>{var hl3=t27(),Il3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},bl3=(A)=>{return{httpHandler:A.httpHandler()}};class e27{name;kind;values;constructor({name:A,kind:q=hl3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class A_7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class N21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new N21({...A,headers:{...A.headers}});if(q.query)q.query=xl3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return N21.clone(this)}}function xl3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class q_7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function ul3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Bl3.Field=e27;Bl3.Fields=A_7;Bl3.HttpRequest=N21;Bl3.HttpResponse=q_7;Bl3.getHttpHandlerExtensionConfiguration=Il3;Bl3.isValidHostname=ul3;Bl3.resolveHttpHandlerRuntimeConfig=bl3});var z_7=C((ll3)=>{var Y_7=typeof TextEncoder=="function"?new TextEncoder:null,cl3=(A)=>{if(typeof A==="string"){if(Y_7)return Y_7.encode(A).byteLength;let q=A.length;for(let K=q-1;K>=0;K--){let Y=A.charCodeAt(K);if(Y>127&&Y<=2047)q++;else if(Y>2047&&Y<=65535)q+=2;if(Y>=56320&&Y<=57343)K--}return q}else if(typeof A.byteLength==="number")return A.byteLength;else if(typeof A.size==="number")return A.size;throw Error(`Body Length computation failed for ${A}`)};ll3.calculateBodyLength=cl3});var d98=C((Pi3)=>{var y21=JN(),O_7=Z2(),qB6=MN(),nl3=Iu6(),rl3=z_7(),_P6=lO(),ol3=pZ(),H_7=Y58(),E21=0,L21=1,h36=2,Mt=3,AB6=4,v21=5,j_7=6,C98=7,J_7=20,b98=21,M_7=22,al3=23,u98=24,I36=25,b36=26,Dt=27,B98=31;function $P6(A){return typeof Buffer<"u"?Buffer.alloc(A):new Uint8Array(A)}var m98=Symbol("@smithy/core/cbor::tagSymbol");function g98(A){return A[m98]=!0,A}var sl3=typeof TextDecoder<"u",tl3=typeof Buffer<"u",c2=$P6(0),Gc=new DataView(c2.buffer,c2.byteOffset,c2.byteLength),w_7=sl3?new TextDecoder:null,u9=0;function el3(A){c2=A,Gc=new DataView(c2.buffer,c2.byteOffset,c2.byteLength)}function fc(A,q){if(A>=q)throw Error("unexpected end of (decode) payload.");let K=(c2[A]&224)>>5,Y=c2[A]&31;switch(K){case E21:case L21:case j_7:let z,w;if(Y<24)z=Y,w=1;else switch(Y){case u98:case I36:case b36:case Dt:let _=X_7[Y],$=_+1;if(w=$,q-A<$)throw Error(`countLength ${_} greater than remaining buf len.`);let O=A+1;if(_===1)z=c2[O];else if(_===2)z=Gc.getUint16(O);else if(_===4)z=Gc.getUint32(O);else z=Gc.getBigUint64(O);break;default:throw Error(`unexpected minor value ${Y}.`)}if(K===E21)return u9=w,h98(z);else if(K===L21){let _;if(typeof z==="bigint")_=BigInt(-1)-z;else _=-1-z;return u9=w,h98(_)}else if(Y===2||Y===3){let _=KB6(A+w,q),$=BigInt(0),O=A+w+u9;for(let H=O;H<O+_;++H)$=$<<BigInt(8)|BigInt(c2[H]);return u9=w+u9+_,Y===3?-$-BigInt(1):$}else if(Y===4){let _=fc(A+w,q),[$,O]=_,H=O<0?-1:1,j="0".repeat(Math.abs($)+1)+String(BigInt(H)*BigInt(O)),J,M=O<0?"-":"";if(J=$===0?j:j.slice(0,j.length+$)+"."+j.slice($),J=J.replace(/^0+/g,""),J==="")J="0";if(J[0]===".")J="0"+J;return J=M+J,u9=w+u9,y21.nv(J)}else{let _=fc(A+w,q);return u9=w+u9,g98({tag:h98(z),value:_})}case Mt:case v21:case AB6:case h36:if(Y===B98)switch(K){case Mt:return Yi3(A,q);case v21:return Oi3(A,q);case AB6:return _i3(A,q);case h36:return zi3(A,q)}else switch(K){case Mt:return Ki3(A,q);case v21:return $i3(A,q);case AB6:return wi3(A,q);case h36:return F98(A,q)}default:return Hi3(A,q)}}function D_7(A,q,K){if(tl3&&A.constructor?.name==="Buffer")return A.toString("utf-8",q,K);if(w_7)return w_7.decode(A.subarray(q,K));return O_7.toUtf8(A.subarray(q,K))}function Ai3(A){let q=Number(A);if(q<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<q)console.warn(Error(`@smithy/core/cbor - truncating BigInt(${A}) to ${q} with loss of precision.`));return q}var X_7={[u98]:1,[I36]:2,[b36]:4,[Dt]:8};function qi3(A,q){let K=A>>7,Y=(A&124)>>2,z=(A&3)<<8|q,w=K===0?1:-1,_,$;if(Y===0)if(z===0)return 0;else _=Math.pow(2,-14),$=0;else if(Y===31)if(z===0)return w*(1/0);else return NaN;else _=Math.pow(2,Y-15),$=1;return $+=z/1024,w*(_*$)}function KB6(A,q){let K=c2[A]&31;if(K<24)return u9=1,K;if(K===u98||K===I36||K===b36||K===Dt){let Y=X_7[K];if(u9=Y+1,q-A<u9)throw Error(`countLength ${Y} greater than remaining buf len.`);let z=A+1;if(Y===1)return c2[z];else if(Y===2)return Gc.getUint16(z);else if(Y===4)return Gc.getUint32(z);return Ai3(Gc.getBigUint64(z))}throw Error(`unexpected minor value ${K}.`)}function Ki3(A,q){let K=KB6(A,q),Y=u9;if(A+=Y,q-A<K)throw Error(`string len ${K} greater than remaining buf len.`);let z=D_7(c2,A,A+K);return u9=Y+K,z}function Yi3(A,q){A+=1;let K=[];for(let Y=A;A<q;){if(c2[A]===255){let O=$P6(K.length);return O.set(K,0),u9=A-Y+2,D_7(O,0,O.length)}let z=(c2[A]&224)>>5,w=c2[A]&31;if(z!==Mt)throw Error(`unexpected major type ${z} in indefinite string.`);if(w===B98)throw Error("nested indefinite string.");let _=F98(A,q);A+=u9;for(let O=0;O<_.length;++O)K.push(_[O])}throw Error("expected break marker.")}function F98(A,q){let K=KB6(A,q),Y=u9;if(A+=Y,q-A<K)throw Error(`unstructured byte string len ${K} greater than remaining buf len.`);let z=c2.subarray(A,A+K);return u9=Y+K,z}function zi3(A,q){A+=1;let K=[];for(let Y=A;A<q;){if(c2[A]===255){let O=$P6(K.length);return O.set(K,0),u9=A-Y+2,O}let z=(c2[A]&224)>>5,w=c2[A]&31;if(z!==h36)throw Error(`unexpected major type ${z} in indefinite string.`);if(w===B98)throw Error("nested indefinite string.");let _=F98(A,q);A+=u9;for(let O=0;O<_.length;++O)K.push(_[O])}throw Error("expected break marker.")}function wi3(A,q){let K=KB6(A,q),Y=u9;A+=Y;let z=A,w=Array(K);for(let _=0;_<K;++_){let $=fc(A,q),O=u9;w[_]=$,A+=O}return u9=Y+(A-z),w}function _i3(A,q){A+=1;let K=[];for(let Y=A;A<q;){if(c2[A]===255)return u9=A-Y+2,K;let z=fc(A,q);A+=u9,K.push(z)}throw Error("expected break marker.")}function $i3(A,q){let K=KB6(A,q),Y=u9;A+=Y;let z=A,w={};for(let _=0;_<K;++_){if(A>=q)throw Error("unexpected end of map payload.");let $=(c2[A]&224)>>5;if($!==Mt)throw Error(`unexpected major type ${$} for map key at index ${A}.`);let O=fc(A,q);A+=u9;let H=fc(A,q);A+=u9,w[O]=H}return u9=Y+(A-z),w}function Oi3(A,q){A+=1;let K=A,Y={};for(;A<q;){if(A>=q)throw Error("unexpected end of map payload.");if(c2[A]===255)return u9=A-K+2,Y;let z=(c2[A]&224)>>5;if(z!==Mt)throw Error(`unexpected major type ${z} for map key.`);let w=fc(A,q);A+=u9;let _=fc(A,q);A+=u9,Y[w]=_}throw Error("expected break marker.")}function Hi3(A,q){let K=c2[A]&31;switch(K){case b98:case J_7:return u9=1,K===b98;case M_7:return u9=1,null;case al3:return u9=1,null;case I36:if(q-A<3)throw Error("incomplete float16 at end of buf.");return u9=3,qi3(c2[A+1],c2[A+2]);case b36:if(q-A<5)throw Error("incomplete float32 at end of buf.");return u9=5,Gc.getFloat32(A+1);case Dt:if(q-A<9)throw Error("incomplete float64 at end of buf.");return u9=9,Gc.getFloat64(A+1);default:throw Error(`unexpected minor value ${K}.`)}}function h98(A){if(typeof A==="number")return A;let q=Number(A);if(Number.MIN_SAFE_INTEGER<=q&&q<=Number.MAX_SAFE_INTEGER)return q;return A}var __7=typeof Buffer<"u",ji3=2048,m3=$P6(ji3),Zc=new DataView(m3.buffer,m3.byteOffset,m3.byteLength),tq=0;function I98(A){if(m3.byteLength-tq<A)if(tq<16000000)x98(Math.max(m3.byteLength*4,m3.byteLength+A));else x98(m3.byteLength+A+16000000)}function $_7(){let A=$P6(tq);return A.set(m3.subarray(0,tq),0),tq=0,A}function x98(A){let q=m3;if(m3=$P6(A),q)if(q.copy)q.copy(m3,0,0,q.byteLength);else m3.set(q,0);Zc=new DataView(m3.buffer,m3.byteOffset,m3.byteLength)}function Wc(A,q){if(q<24)m3[tq++]=A<<5|q;else if(q<256)m3[tq++]=A<<5|24,m3[tq++]=q;else if(q<65536)m3[tq++]=A<<5|I36,Zc.setUint16(tq,q),tq+=2;else if(q<4294967296)m3[tq++]=A<<5|b36,Zc.setUint32(tq,q),tq+=4;else m3[tq++]=A<<5|Dt,Zc.setBigUint64(tq,typeof q==="bigint"?q:BigInt(q)),tq+=8}function Ji3(A){let q=[A];while(q.length){let K=q.pop();if(I98(typeof K==="string"?K.length*4:64),typeof K==="string"){if(__7)Wc(Mt,Buffer.byteLength(K)),tq+=m3.write(K,tq);else{let Y=O_7.fromUtf8(K);Wc(Mt,Y.byteLength),m3.set(Y,tq),tq+=Y.byteLength}continue}else if(typeof K==="number"){if(Number.isInteger(K)){let Y=K>=0,z=Y?E21:L21,w=Y?K:-K-1;if(w<24)m3[tq++]=z<<5|w;else if(w<256)m3[tq++]=z<<5|24,m3[tq++]=w;else if(w<65536)m3[tq++]=z<<5|I36,m3[tq++]=w>>8,m3[tq++]=w;else if(w<4294967296)m3[tq++]=z<<5|b36,Zc.setUint32(tq,w),tq+=4;else m3[tq++]=z<<5|Dt,Zc.setBigUint64(tq,BigInt(w)),tq+=8;continue}m3[tq++]=C98<<5|Dt,Zc.setFloat64(tq,K),tq+=8;continue}else if(typeof K==="bigint"){let Y=K>=0,z=Y?E21:L21,w=Y?K:-K-BigInt(1),_=Number(w);if(_<24)m3[tq++]=z<<5|_;else if(_<256)m3[tq++]=z<<5|24,m3[tq++]=_;else if(_<65536)m3[tq++]=z<<5|I36,m3[tq++]=_>>8,m3[tq++]=_&255;else if(_<4294967296)m3[tq++]=z<<5|b36,Zc.setUint32(tq,_),tq+=4;else if(w<BigInt("18446744073709551616"))m3[tq++]=z<<5|Dt,Zc.setBigUint64(tq,w),tq+=8;else{let $=w.toString(2),O=new Uint8Array(Math.ceil($.length/8)),H=w,j=0;while(O.byteLength-++j>=0)O[O.byteLength-j]=Number(H&BigInt(255)),H>>=BigInt(8);if(I98(O.byteLength*2),m3[tq++]=Y?194:195,__7)Wc(h36,Buffer.byteLength(O));else Wc(h36,O.byteLength);m3.set(O,tq),tq+=O.byteLength}continue}else if(K===null){m3[tq++]=C98<<5|M_7;continue}else if(typeof K==="boolean"){m3[tq++]=C98<<5|(K?b98:J_7);continue}else if(typeof K>"u")throw Error("@smithy/core/cbor: client may not serialize undefined value.");else if(Array.isArray(K)){for(let Y=K.length-1;Y>=0;--Y)q.push(K[Y]);Wc(AB6,K.length);continue}else if(typeof K.byteLength==="number"){I98(K.length*2),Wc(h36,K.length),m3.set(K,tq),tq+=K.byteLength;continue}else if(typeof K==="object"){if(K instanceof y21.NumericValue){let z=K.string.indexOf("."),w=z===-1?0:z-K.string.length+1,_=BigInt(K.string.replace(".",""));m3[tq++]=196,q.push(_),q.push(w),Wc(AB6,2);continue}if(K[m98])if("tag"in K&&"value"in K){q.push(K.value),Wc(j_7,K.tag);continue}else throw Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(K));let Y=Object.keys(K);for(let z=Y.length-1;z>=0;--z){let w=Y[z];q.push(K[w]),q.push(w)}Wc(v21,Y.length);continue}throw Error(`data type ${K?.constructor?.name??typeof K} not compatible for encoding.`)}}var R21={deserialize(A){return el3(A),fc(0,A.length)},serialize(A){try{return Ji3(A),$_7()}catch(q){throw $_7(),q}},resizeEncodingBuffer(A){x98(A)}},P_7=(A,q)=>{return qB6.collectBody(A,q).then(async(K)=>{if(K.length)try{return R21.deserialize(K)}catch(Y){throw Object.defineProperty(Y,"$responseBodyText",{value:q.utf8Encoder(K)}),Y}return{}})},k21=(A)=>{return g98({tag:1,value:A.getTime()/1000})},Mi3=async(A,q)=>{let K=await P_7(A,q);return K.message=K.message??K.Message,K},W_7=(A,q)=>{let K=(z)=>{let w=z;if(typeof w==="number")w=w.toString();if(w.indexOf(",")>=0)w=w.split(",")[0];if(w.indexOf(":")>=0)w=w.split(":")[0];if(w.indexOf("#")>=0)w=w.split("#")[1];return w};if(q.__type!==void 0)return K(q.__type);let Y=Object.keys(q).find((z)=>z.toLowerCase()==="code");if(Y&&q[Y]!==void 0)return K(q[Y])},Di3=(A)=>{if(String(A.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor")throw Error("Malformed RPCv2 CBOR response, status: "+A.statusCode)},Xi3=async(A,q,K,Y,z)=>{let{hostname:w,protocol:_="https",port:$,path:O}=await A.endpoint(),H={protocol:_,hostname:w,port:$,method:"POST",path:O.endsWith("/")?O.slice(0,-1)+K:O+K,headers:{...q}};if(Y!==void 0)H.hostname=Y;if(z!==void 0){H.body=z;try{H.headers["content-length"]=String(rl3.calculateBodyLength(z))}catch(j){}}return new nl3.HttpRequest(H)};class Q98 extends qB6.SerdeContext{createSerializer(){let A=new U98;return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new p98;return A.setSerdeContext(this.serdeContext),A}}class U98 extends qB6.SerdeContext{value;write(A,q){this.value=this.serialize(A,q)}serialize(A,q){let K=_P6.NormalizedSchema.of(A);if(q==null){if(K.isIdempotencyToken())return y21.generateIdempotencyToken();return q}if(K.isBlobSchema()){if(typeof q==="string")return(this.serdeContext?.base64Decoder??H_7.fromBase64)(q);return q}if(K.isTimestampSchema()){if(typeof q==="number"||typeof q==="bigint")return k21(new Date(Number(q)/1000|0));return k21(q)}if(typeof q==="function"||typeof q==="object"){let Y=q;if(K.isListSchema()&&Array.isArray(Y)){let w=!!K.getMergedTraits().sparse,_=[],$=0;for(let O of Y){let H=this.serialize(K.getValueSchema(),O);if(H!=null||w)_[$++]=H}return _}if(Y instanceof Date)return k21(Y);let z={};if(K.isMapSchema()){let w=!!K.getMergedTraits().sparse;for(let _ of Object.keys(Y)){let $=this.serialize(K.getValueSchema(),Y[_]);if($!=null||w)z[_]=$}}else if(K.isStructSchema())for(let[w,_]of K.structIterator()){let $=this.serialize(_,Y[w]);if($!=null)z[w]=$}else if(K.isDocumentSchema())for(let w of Object.keys(Y))z[w]=this.serialize(K.getValueSchema(),Y[w]);return z}return q}flush(){let A=R21.serialize(this.value);return this.value=void 0,A}}class p98 extends qB6.SerdeContext{read(A,q){let K=R21.deserialize(q);return this.readValue(A,K)}readValue(A,q){let K=_P6.NormalizedSchema.of(A);if(K.isTimestampSchema()&&typeof q==="number")return y21._parseEpochTimestamp(q);if(K.isBlobSchema()){if(typeof q==="string")return(this.serdeContext?.base64Decoder??H_7.fromBase64)(q);return q}if(typeof q>"u"||typeof q==="boolean"||typeof q==="number"||typeof q==="string"||typeof q==="bigint"||typeof q==="symbol")return q;else if(typeof q==="function"||typeof q==="object"){if(q===null)return null;if("byteLength"in q)return q;if(q instanceof Date)return q;if(K.isDocumentSchema())return q;if(K.isListSchema()){let z=[],w=K.getValueSchema(),_=!!K.getMergedTraits().sparse;for(let $ of q){let O=this.readValue(w,$);if(O!=null||_)z.push(O)}return z}let Y={};if(K.isMapSchema()){let z=!!K.getMergedTraits().sparse,w=K.getValueSchema();for(let _ of Object.keys(q)){let $=this.readValue(w,q[_]);if($!=null||z)Y[_]=$}}else if(K.isStructSchema())for(let[z,w]of K.structIterator()){let _=this.readValue(w,q[z]);if(_!=null)Y[z]=_}return Y}else return q}}class Z_7 extends qB6.RpcProtocol{codec=new Q98;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:A}){super({defaultNamespace:A})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(Object.assign(Y.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),_P6.deref(A.input)==="unit")delete Y.body,delete Y.headers["content-type"];else{if(!Y.body)this.serializer.write(15,{}),Y.body=this.serializer.flush();try{Y.headers["content-length"]=String(Y.body.byteLength)}catch($){}}let{service:z,operation:w}=ol3.getSmithyContext(K),_=`/service/${z}/operation/${w}`;if(Y.path.endsWith("/"))Y.path+=_.slice(1);else Y.path+=_;return Y}async deserializeResponse(A,q,K){return super.deserializeResponse(A,q,K)}async handleError(A,q,K,Y,z){let w=W_7(K,Y)??"Unknown",_=this.options.defaultNamespace;if(w.includes("#"))[_]=w.split("#");let $={$metadata:z,$fault:K.statusCode<=500?"client":"server"},O=_P6.TypeRegistry.for(_),H;try{H=O.getSchema(w)}catch(P){if(Y.Message)Y.message=Y.Message;let W=_P6.TypeRegistry.for("smithy.ts.sdk.synthetic."+_),Z=W.getBaseException();if(Z){let G=W.getErrorCtor(Z);throw Object.assign(new G({name:w}),$,Y)}throw Object.assign(Error(w),$,Y)}let j=_P6.NormalizedSchema.of(H),J=O.getErrorCtor(H),M=Y.message??Y.Message??"Unknown",D=new J(M),X={};for(let[P,W]of j.structIterator())X[P]=this.deserializer.readValue(W,Y[P]);throw Object.assign(D,$,{$fault:j.getMergedTraits().error,message:M},X)}getDefaultContentType(){return"application/cbor"}}Pi3.CborCodec=Q98;Pi3.CborShapeDeserializer=p98;Pi3.CborShapeSerializer=U98;Pi3.SmithyRpcV2CborProtocol=Z_7;Pi3.buildHttpRpcRequest=Xi3;Pi3.cbor=R21;Pi3.checkCborResponse=Di3;Pi3.dateToTag=k21;Pi3.loadSmithyRpcV2CborErrorCode=W_7;Pi3.parseCborBody=P_7;Pi3.parseCborErrorBody=Mi3;Pi3.tag=g98;Pi3.tagSymbol=m98});var a98=C((HP6)=>{var T_7=Qm(),r98=MN(),l98=v58(),Si3=lO(),G_7=JN();class V_7{config;middlewareStack=T_7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var c98="***SensitiveInformation***";function i98(A,q){if(q==null)return q;let K=Si3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return c98;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return c98}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return c98}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=i98(_,Y[w]);return z}return q}class o98{middlewareStack=T_7.constructStack();schema;static classBuilder(){return new N_7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[l98.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class N_7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends o98{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?i98.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?i98.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var Ci3="***SensitiveInformation***",hi3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class OP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return OP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===OP6)return OP6.isInstance(A);if(OP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var v_7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},k_7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=bi3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw v_7(_,q)},Ii3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{k_7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},bi3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),xi3=(A)=>{switch(A){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:30000};default:return{}}},f_7=!1,ui3=(A)=>{if(A&&!f_7&&parseInt(A.substring(1,A.indexOf(".")))<16)f_7=!0},Bi3=(A)=>{let q=[];for(let K in l98.AlgorithmId){let Y=l98.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},mi3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},gi3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},Fi3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},E_7=(A)=>{return Object.assign(Bi3(A),gi3(A))},Qi3=E_7,Ui3=(A)=>{return Object.assign(mi3(A),Fi3(A))},pi3=(A)=>Array.isArray(A)?A:[A],L_7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=L_7(A[K]);return A},di3=(A)=>{return A!=null};class y_7{trace(){}debug(){}info(){}warn(){}error(){}}function R_7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,ii3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}S_7(Y,null,w,_)}return Y}var ci3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},li3=(A,q)=>{let K={};for(let Y in q)S_7(K,A,q,Y);return K},ii3=(A,q,K)=>{return R_7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},S_7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=ni3,O=ri3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},ni3=(A)=>A!=null,ri3=(A)=>A,oi3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},ai3=(A)=>A.toISOString().replace(".000Z","Z"),n98=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(n98);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=n98(A[K])}return q}return A};Object.defineProperty(HP6,"collectBody",{enumerable:!0,get:function(){return r98.collectBody}});Object.defineProperty(HP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return r98.extendedEncodeURIComponent}});Object.defineProperty(HP6,"resolvedPath",{enumerable:!0,get:function(){return r98.resolvedPath}});HP6.Client=V_7;HP6.Command=o98;HP6.NoOpLogger=y_7;HP6.SENSITIVE_STRING=Ci3;HP6.ServiceException=OP6;HP6._json=n98;HP6.convertMap=ci3;HP6.createAggregatedClient=hi3;HP6.decorateServiceException=v_7;HP6.emitWarningIfUnsupportedVersion=ui3;HP6.getArrayIfSingleItem=pi3;HP6.getDefaultClientConfiguration=Qi3;HP6.getDefaultExtensionConfiguration=E_7;HP6.getValueFromTextNode=L_7;HP6.isSerializableHeaderValue=di3;HP6.loadConfigsForDefaultMode=xi3;HP6.map=R_7;HP6.resolveDefaultRuntimeConfig=Ui3;HP6.serializeDateTime=ai3;HP6.serializeFloat=oi3;HP6.take=li3;HP6.throwDefaultError=k_7;HP6.withBaseException=Ii3;Object.keys(G_7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(HP6,A))Object.defineProperty(HP6,A,{enumerable:!0,get:function(){return G_7[A]}})})});var C_7=C((Vn3)=>{var Tn3=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";Vn3.isArrayBuffer=Tn3});var t98=C((Ln3)=>{var vn3=C_7(),s98=g6("buffer"),kn3=(A,q=0,K=A.byteLength-q)=>{if(!vn3.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return s98.Buffer.from(A,q,K)},En3=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?s98.Buffer.from(A,q):s98.Buffer.from(A)};Ln3.fromArrayBuffer=kn3;Ln3.fromString=En3});var b_7=C((h_7)=>{Object.defineProperty(h_7,"__esModule",{value:!0});h_7.fromBase64=void 0;var Sn3=t98(),Cn3=/^[A-Za-z0-9+/]*={0,2}$/,hn3=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Cn3.exec(A))throw TypeError("Invalid base64 string.");let q=(0,Sn3.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};h_7.fromBase64=hn3});var B_7=C((x_7)=>{Object.defineProperty(x_7,"__esModule",{value:!0});x_7.toBase64=void 0;var In3=t98(),bn3=Z2(),xn3=(A)=>{let q;if(typeof A==="string")q=(0,bn3.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,In3.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};x_7.toBase64=xn3});var e98=C((YB6)=>{var m_7=b_7(),g_7=B_7();Object.keys(m_7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(YB6,A))Object.defineProperty(YB6,A,{enumerable:!0,get:function(){return m_7[A]}})});Object.keys(g_7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(YB6,A))Object.defineProperty(YB6,A,{enumerable:!0,get:function(){return g_7[A]}})})});var Q_7=C(($M2,F_7)=>{(()=>{var A={d:(T6,v6)=>{for(var A1 in v6)A.o(v6,A1)&&!A.o(T6,A1)&&Object.defineProperty(T6,A1,{enumerable:!0,get:v6[A1]})},o:(T6,v6)=>Object.prototype.hasOwnProperty.call(T6,v6),r:(T6)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(T6,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(T6,"__esModule",{value:!0})}},q={};A.r(q),A.d(q,{XMLBuilder:()=>u6,XMLParser:()=>V6,XMLValidator:()=>v1});let K=":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",Y=new RegExp("^["+K+"]["+K+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function z(T6,v6){let A1=[],F6=v6.exec(T6);for(;F6;){let m6=[];m6.startIndex=v6.lastIndex-F6[0].length;let l6=F6.length;for(let N1=0;N1<l6;N1++)m6.push(F6[N1]);A1.push(m6),F6=v6.exec(T6)}return A1}let w=function(T6){return Y.exec(T6)!=null},_={allowBooleanAttributes:!1,unpairedTags:[]};function $(T6,v6){v6=Object.assign({},_,v6);let A1=[],F6=!1,m6=!1;T6[0]==="\uFEFF"&&(T6=T6.substr(1));for(let l6=0;l6<T6.length;l6++)if(T6[l6]==="<"&&T6[l6+1]==="?"){if(l6+=2,l6=H(T6,l6),l6.err)return l6}else{if(T6[l6]!=="<"){if(O(T6[l6]))continue;return Z("InvalidChar","char '"+T6[l6]+"' is not expected.",f(T6,l6))}{let N1=l6;if(l6++,T6[l6]==="!"){l6=j(T6,l6);continue}{let X1=!1;T6[l6]==="/"&&(X1=!0,l6++);let k1="";for(;l6<T6.length&&T6[l6]!==">"&&T6[l6]!==" "&&T6[l6]!=="\t"&&T6[l6]!==`
`&&T6[l6]!=="\r";l6++)k1+=T6[l6];if(k1=k1.trim(),k1[k1.length-1]==="/"&&(k1=k1.substring(0,k1.length-1),l6--),!w(k1)){let s8;return s8=k1.trim().length===0?"Invalid space after '<'.":"Tag '"+k1+"' is an invalid name.",Z("InvalidTag",s8,f(T6,l6))}let i1=D(T6,l6);if(i1===!1)return Z("InvalidAttr","Attributes for '"+k1+"' have open quote.",f(T6,l6));let t8=i1.value;if(l6=i1.index,t8[t8.length-1]==="/"){let s8=l6-t8.length;t8=t8.substring(0,t8.length-1);let _7=P(t8,v6);if(_7!==!0)return Z(_7.err.code,_7.err.msg,f(T6,s8+_7.err.line));F6=!0}else if(X1){if(!i1.tagClosed)return Z("InvalidTag","Closing tag '"+k1+"' doesn't have proper closing.",f(T6,l6));if(t8.trim().length>0)return Z("InvalidTag","Closing tag '"+k1+"' can't have attributes or invalid starting.",f(T6,N1));if(A1.length===0)return Z("InvalidTag","Closing tag '"+k1+"' has not been opened.",f(T6,N1));{let s8=A1.pop();if(k1!==s8.tagName){let _7=f(T6,s8.tagStartPos);return Z("InvalidTag","Expected closing tag '"+s8.tagName+"' (opened in line "+_7.line+", col "+_7.col+") instead of closing tag '"+k1+"'.",f(T6,N1))}A1.length==0&&(m6=!0)}}else{let s8=P(t8,v6);if(s8!==!0)return Z(s8.err.code,s8.err.msg,f(T6,l6-t8.length+s8.err.line));if(m6===!0)return Z("InvalidXml","Multiple possible root nodes found.",f(T6,l6));v6.unpairedTags.indexOf(k1)!==-1||A1.push({tagName:k1,tagStartPos:N1}),F6=!0}for(l6++;l6<T6.length;l6++)if(T6[l6]==="<"){if(T6[l6+1]==="!"){l6++,l6=j(T6,l6);continue}if(T6[l6+1]!=="?")break;if(l6=H(T6,++l6),l6.err)return l6}else if(T6[l6]==="&"){let s8=W(T6,l6);if(s8==-1)return Z("InvalidChar","char '&' is not expected.",f(T6,l6));l6=s8}else if(m6===!0&&!O(T6[l6]))return Z("InvalidXml","Extra text at the end",f(T6,l6));T6[l6]==="<"&&l6--}}}return F6?A1.length==1?Z("InvalidTag","Unclosed tag '"+A1[0].tagName+"'.",f(T6,A1[0].tagStartPos)):!(A1.length>0)||Z("InvalidXml","Invalid '"+JSON.stringify(A1.map((l6)=>l6.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):Z("InvalidXml","Start tag expected.",1)}function O(T6){return T6===" "||T6==="\t"||T6===`
`||T6==="\r"}function H(T6,v6){let A1=v6;for(;v6<T6.length;v6++)if(T6[v6]!="?"&&T6[v6]!=" ");else{let F6=T6.substr(A1,v6-A1);if(v6>5&&F6==="xml")return Z("InvalidXml","XML declaration allowed only at the start of the document.",f(T6,v6));if(T6[v6]=="?"&&T6[v6+1]==">"){v6++;break}}return v6}function j(T6,v6){if(T6.length>v6+5&&T6[v6+1]==="-"&&T6[v6+2]==="-"){for(v6+=3;v6<T6.length;v6++)if(T6[v6]==="-"&&T6[v6+1]==="-"&&T6[v6+2]===">"){v6+=2;break}}else if(T6.length>v6+8&&T6[v6+1]==="D"&&T6[v6+2]==="O"&&T6[v6+3]==="C"&&T6[v6+4]==="T"&&T6[v6+5]==="Y"&&T6[v6+6]==="P"&&T6[v6+7]==="E"){let A1=1;for(v6+=8;v6<T6.length;v6++)if(T6[v6]==="<")A1++;else if(T6[v6]===">"&&(A1--,A1===0))break}else if(T6.length>v6+9&&T6[v6+1]==="["&&T6[v6+2]==="C"&&T6[v6+3]==="D"&&T6[v6+4]==="A"&&T6[v6+5]==="T"&&T6[v6+6]==="A"&&T6[v6+7]==="["){for(v6+=8;v6<T6.length;v6++)if(T6[v6]==="]"&&T6[v6+1]==="]"&&T6[v6+2]===">"){v6+=2;break}}return v6}let J='"',M="'";function D(T6,v6){let A1="",F6="",m6=!1;for(;v6<T6.length;v6++){if(T6[v6]===J||T6[v6]===M)F6===""?F6=T6[v6]:F6!==T6[v6]||(F6="");else if(T6[v6]===">"&&F6===""){m6=!0;break}A1+=T6[v6]}return F6===""&&{value:A1,index:v6,tagClosed:m6}}let X=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function P(T6,v6){let A1=z(T6,X),F6={};for(let m6=0;m6<A1.length;m6++){if(A1[m6][1].length===0)return Z("InvalidAttr","Attribute '"+A1[m6][2]+"' has no space in starting.",V(A1[m6]));if(A1[m6][3]!==void 0&&A1[m6][4]===void 0)return Z("InvalidAttr","Attribute '"+A1[m6][2]+"' is without value.",V(A1[m6]));if(A1[m6][3]===void 0&&!v6.allowBooleanAttributes)return Z("InvalidAttr","boolean attribute '"+A1[m6][2]+"' is not allowed.",V(A1[m6]));let l6=A1[m6][2];if(!G(l6))return Z("InvalidAttr","Attribute '"+l6+"' is an invalid name.",V(A1[m6]));if(F6.hasOwnProperty(l6))return Z("InvalidAttr","Attribute '"+l6+"' is repeated.",V(A1[m6]));F6[l6]=1}return!0}function W(T6,v6){if(T6[++v6]===";")return-1;if(T6[v6]==="#")return function(F6,m6){let l6=/\d/;for(F6[m6]==="x"&&(m6++,l6=/[\da-fA-F]/);m6<F6.length;m6++){if(F6[m6]===";")return m6;if(!F6[m6].match(l6))break}return-1}(T6,++v6);let A1=0;for(;v6<T6.length;v6++,A1++)if(!(T6[v6].match(/\w/)&&A1<20)){if(T6[v6]===";")break;return-1}return v6}function Z(T6,v6,A1){return{err:{code:T6,msg:v6,line:A1.line||A1,col:A1.col}}}function G(T6){return w(T6)}function f(T6,v6){let A1=T6.substring(0,v6).split(/\r?\n/);return{line:A1.length,col:A1[A1.length-1].length+1}}function V(T6){return T6.startIndex+T6[1].length}let N={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(T6,v6){return v6},attributeValueProcessor:function(T6,v6){return v6},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(T6,v6,A1){return T6},captureMetaData:!1},v;v=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class y{constructor(T6){this.tagname=T6,this.child=[],this[":@"]={}}add(T6,v6){T6==="__proto__"&&(T6="#__proto__"),this.child.push({[T6]:v6})}addChild(T6,v6){T6.tagname==="__proto__"&&(T6.tagname="#__proto__"),T6[":@"]&&Object.keys(T6[":@"]).length>0?this.child.push({[T6.tagname]:T6.child,":@":T6[":@"]}):this.child.push({[T6.tagname]:T6.child}),v6!==void 0&&(this.child[this.child.length-1][v]={startIndex:v6})}static getMetaDataSymbol(){return v}}function R(T6,v6){let A1={};if(T6[v6+3]!=="O"||T6[v6+4]!=="C"||T6[v6+5]!=="T"||T6[v6+6]!=="Y"||T6[v6+7]!=="P"||T6[v6+8]!=="E")throw Error("Invalid Tag instead of DOCTYPE");{v6+=9;let F6=1,m6=!1,l6=!1,N1="";for(;v6<T6.length;v6++)if(T6[v6]!=="<"||l6)if(T6[v6]===">"){if(l6?T6[v6-1]==="-"&&T6[v6-2]==="-"&&(l6=!1,F6--):F6--,F6===0)break}else T6[v6]==="["?m6=!0:N1+=T6[v6];else{if(m6&&b(T6,"!ENTITY",v6)){let X1,k1;v6+=7,[X1,k1,v6]=B(T6,v6+1),k1.indexOf("&")===-1&&(A1[X1]={regx:RegExp(`&${X1};`,"g"),val:k1})}else if(m6&&b(T6,"!ELEMENT",v6)){v6+=8;let{index:X1}=g(T6,v6+1);v6=X1}else if(m6&&b(T6,"!ATTLIST",v6))v6+=8;else if(m6&&b(T6,"!NOTATION",v6)){v6+=9;let{index:X1}=x(T6,v6+1);v6=X1}else{if(!b(T6,"!--",v6))throw Error("Invalid DOCTYPE");l6=!0}F6++,N1=""}if(F6!==0)throw Error("Unclosed DOCTYPE")}return{entities:A1,i:v6}}let h=(T6,v6)=>{for(;v6<T6.length&&/\s/.test(T6[v6]);)v6++;return v6};function B(T6,v6){v6=h(T6,v6);let A1="";for(;v6<T6.length&&!/\s/.test(T6[v6])&&T6[v6]!=='"'&&T6[v6]!=="'";)A1+=T6[v6],v6++;if(U(A1),v6=h(T6,v6),T6.substring(v6,v6+6).toUpperCase()==="SYSTEM")throw Error("External entities are not supported");if(T6[v6]==="%")throw Error("Parameter entities are not supported");let F6="";return[v6,F6]=F(T6,v6,"entity"),[A1,F6,--v6]}function x(T6,v6){v6=h(T6,v6);let A1="";for(;v6<T6.length&&!/\s/.test(T6[v6]);)A1+=T6[v6],v6++;U(A1),v6=h(T6,v6);let F6=T6.substring(v6,v6+6).toUpperCase();if(F6!=="SYSTEM"&&F6!=="PUBLIC")throw Error(`Expected SYSTEM or PUBLIC, found "${F6}"`);v6+=F6.length,v6=h(T6,v6);let m6=null,l6=null;if(F6==="PUBLIC")[v6,m6]=F(T6,v6,"publicIdentifier"),T6[v6=h(T6,v6)]!=='"'&&T6[v6]!=="'"||([v6,l6]=F(T6,v6,"systemIdentifier"));else if(F6==="SYSTEM"&&([v6,l6]=F(T6,v6,"systemIdentifier"),!l6))throw Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:A1,publicIdentifier:m6,systemIdentifier:l6,index:--v6}}function F(T6,v6,A1){let F6="",m6=T6[v6];if(m6!=='"'&&m6!=="'")throw Error(`Expected quoted string, found "${m6}"`);for(v6++;v6<T6.length&&T6[v6]!==m6;)F6+=T6[v6],v6++;if(T6[v6]!==m6)throw Error(`Unterminated ${A1} value`);return[++v6,F6]}function g(T6,v6){v6=h(T6,v6);let A1="";for(;v6<T6.length&&!/\s/.test(T6[v6]);)A1+=T6[v6],v6++;if(!U(A1))throw Error(`Invalid element name: "${A1}"`);let F6="";if(T6[v6=h(T6,v6)]==="E"&&b(T6,"MPTY",v6))v6+=4;else if(T6[v6]==="A"&&b(T6,"NY",v6))v6+=2;else{if(T6[v6]!=="(")throw Error(`Invalid Element Expression, found "${T6[v6]}"`);for(v6++;v6<T6.length&&T6[v6]!==")";)F6+=T6[v6],v6++;if(T6[v6]!==")")throw Error("Unterminated content model")}return{elementName:A1,contentModel:F6.trim(),index:v6}}function b(T6,v6,A1){for(let F6=0;F6<v6.length;F6++)if(v6[F6]!==T6[A1+F6+1])return!1;return!0}function U(T6){if(w(T6))return T6;throw Error(`Invalid entity name ${T6}`)}let d=/^[-+]?0x[a-fA-F0-9]+$/,l=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,t={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0},s=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function H6(T6){return typeof T6=="function"?T6:Array.isArray(T6)?(v6)=>{for(let A1 of T6){if(typeof A1=="string"&&v6===A1)return!0;if(A1 instanceof RegExp&&A1.test(v6))return!0}}:()=>!1}class Z6{constructor(T6){this.options=T6,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(v6,A1)=>String.fromCodePoint(Number.parseInt(A1,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(v6,A1)=>String.fromCodePoint(Number.parseInt(A1,16))}},this.addExternalEntities=G6,this.parseXml=k6,this.parseTextData=q6,this.resolveNameSpace=w6,this.buildAttributesMap=_6,this.isItStopNode=z6,this.replaceEntitiesValue=A6,this.readStopNodeData=X6,this.saveTextToParentTag=K6,this.addChild=P6,this.ignoreAttributesFn=H6(this.options.ignoreAttributes)}}function G6(T6){let v6=Object.keys(T6);for(let A1=0;A1<v6.length;A1++){let F6=v6[A1];this.lastEntities[F6]={regex:new RegExp("&"+F6+";","g"),val:T6[F6]}}}function q6(T6,v6,A1,F6,m6,l6,N1){if(T6!==void 0&&(this.options.trimValues&&!F6&&(T6=T6.trim()),T6.length>0)){N1||(T6=this.replaceEntitiesValue(T6));let X1=this.options.tagValueProcessor(v6,T6,A1,m6,l6);return X1==null?T6:typeof X1!=typeof T6||X1!==T6?X1:this.options.trimValues||T6.trim()===T6?O6(T6,this.options.parseTagValue,this.options.numberParseOptions):T6}}function w6(T6){if(this.options.removeNSPrefix){let v6=T6.split(":"),A1=T6.charAt(0)==="/"?"/":"";if(v6[0]==="xmlns")return"";v6.length===2&&(T6=A1+v6[1])}return T6}let j6=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function _6(T6,v6,A1){if(this.options.ignoreAttributes!==!0&&typeof T6=="string"){let F6=z(T6,j6),m6=F6.length,l6={};for(let N1=0;N1<m6;N1++){let X1=this.resolveNameSpace(F6[N1][1]);if(this.ignoreAttributesFn(X1,v6))continue;let k1=F6[N1][4],i1=this.options.attributeNamePrefix+X1;if(X1.length)if(this.options.transformAttributeName&&(i1=this.options.transformAttributeName(i1)),i1==="__proto__"&&(i1="#__proto__"),k1!==void 0){this.options.trimValues&&(k1=k1.trim()),k1=this.replaceEntitiesValue(k1);let t8=this.options.attributeValueProcessor(X1,k1,v6);l6[i1]=t8==null?k1:typeof t8!=typeof k1||t8!==k1?t8:O6(k1,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(l6[i1]=!0)}if(!Object.keys(l6).length)return;if(this.options.attributesGroupName){let N1={};return N1[this.options.attributesGroupName]=l6,N1}return l6}}let k6=function(T6){T6=T6.replace(/\r\n?/g,`
`);let v6=new y("!xml"),A1=v6,F6="",m6="";for(let l6=0;l6<T6.length;l6++)if(T6[l6]==="<")if(T6[l6+1]==="/"){let N1=a(T6,">",l6,"Closing Tag is not closed."),X1=T6.substring(l6+2,N1).trim();if(this.options.removeNSPrefix){let t8=X1.indexOf(":");t8!==-1&&(X1=X1.substr(t8+1))}this.options.transformTagName&&(X1=this.options.transformTagName(X1)),A1&&(F6=this.saveTextToParentTag(F6,A1,m6));let k1=m6.substring(m6.lastIndexOf(".")+1);if(X1&&this.options.unpairedTags.indexOf(X1)!==-1)throw Error(`Unpaired tag can not be used as closing tag: </${X1}>`);let i1=0;k1&&this.options.unpairedTags.indexOf(k1)!==-1?(i1=m6.lastIndexOf(".",m6.lastIndexOf(".")-1),this.tagsNodeStack.pop()):i1=m6.lastIndexOf("."),m6=m6.substring(0,i1),A1=this.tagsNodeStack.pop(),F6="",l6=N1}else if(T6[l6+1]==="?"){let N1=r(T6,l6,!1,"?>");if(!N1)throw Error("Pi Tag is not closed.");if(F6=this.saveTextToParentTag(F6,A1,m6),this.options.ignoreDeclaration&&N1.tagName==="?xml"||this.options.ignorePiTags);else{let X1=new y(N1.tagName);X1.add(this.options.textNodeName,""),N1.tagName!==N1.tagExp&&N1.attrExpPresent&&(X1[":@"]=this.buildAttributesMap(N1.tagExp,m6,N1.tagName)),this.addChild(A1,X1,m6,l6)}l6=N1.closeIndex+1}else if(T6.substr(l6+1,3)==="!--"){let N1=a(T6,"-->",l6+4,"Comment is not closed.");if(this.options.commentPropName){let X1=T6.substring(l6+4,N1-2);F6=this.saveTextToParentTag(F6,A1,m6),A1.add(this.options.commentPropName,[{[this.options.textNodeName]:X1}])}l6=N1}else if(T6.substr(l6+1,2)==="!D"){let N1=R(T6,l6);this.docTypeEntities=N1.entities,l6=N1.i}else if(T6.substr(l6+1,2)==="!["){let N1=a(T6,"]]>",l6,"CDATA is not closed.")-2,X1=T6.substring(l6+9,N1);F6=this.saveTextToParentTag(F6,A1,m6);let k1=this.parseTextData(X1,A1.tagname,m6,!0,!1,!0,!0);k1==null&&(k1=""),this.options.cdataPropName?A1.add(this.options.cdataPropName,[{[this.options.textNodeName]:X1}]):A1.add(this.options.textNodeName,k1),l6=N1+2}else{let N1=r(T6,l6,this.options.removeNSPrefix),X1=N1.tagName,k1=N1.rawTagName,i1=N1.tagExp,t8=N1.attrExpPresent,s8=N1.closeIndex;this.options.transformTagName&&(X1=this.options.transformTagName(X1)),A1&&F6&&A1.tagname!=="!xml"&&(F6=this.saveTextToParentTag(F6,A1,m6,!1));let _7=A1;_7&&this.options.unpairedTags.indexOf(_7.tagname)!==-1&&(A1=this.tagsNodeStack.pop(),m6=m6.substring(0,m6.lastIndexOf("."))),X1!==v6.tagname&&(m6+=m6?"."+X1:X1);let X7=l6;if(this.isItStopNode(this.options.stopNodes,m6,X1)){let RA="";if(i1.length>0&&i1.lastIndexOf("/")===i1.length-1)X1[X1.length-1]==="/"?(X1=X1.substr(0,X1.length-1),m6=m6.substr(0,m6.length-1),i1=X1):i1=i1.substr(0,i1.length-1),l6=N1.closeIndex;else if(this.options.unpairedTags.indexOf(X1)!==-1)l6=N1.closeIndex;else{let Fq=this.readStopNodeData(T6,k1,s8+1);if(!Fq)throw Error(`Unexpected end of ${k1}`);l6=Fq.i,RA=Fq.tagContent}let M7=new y(X1);X1!==i1&&t8&&(M7[":@"]=this.buildAttributesMap(i1,m6,X1)),RA&&(RA=this.parseTextData(RA,X1,m6,!0,t8,!0,!0)),m6=m6.substr(0,m6.lastIndexOf(".")),M7.add(this.options.textNodeName,RA),this.addChild(A1,M7,m6,X7)}else{if(i1.length>0&&i1.lastIndexOf("/")===i1.length-1){X1[X1.length-1]==="/"?(X1=X1.substr(0,X1.length-1),m6=m6.substr(0,m6.length-1),i1=X1):i1=i1.substr(0,i1.length-1),this.options.transformTagName&&(X1=this.options.transformTagName(X1));let RA=new y(X1);X1!==i1&&t8&&(RA[":@"]=this.buildAttributesMap(i1,m6,X1)),this.addChild(A1,RA,m6,X7),m6=m6.substr(0,m6.lastIndexOf("."))}else{let RA=new y(X1);this.tagsNodeStack.push(A1),X1!==i1&&t8&&(RA[":@"]=this.buildAttributesMap(i1,m6,X1)),this.addChild(A1,RA,m6,X7),A1=RA}F6="",l6=s8}}else F6+=T6[l6];return v6.child};function P6(T6,v6,A1,F6){this.options.captureMetaData||(F6=void 0);let m6=this.options.updateTag(v6.tagname,A1,v6[":@"]);m6===!1||(typeof m6=="string"?(v6.tagname=m6,T6.addChild(v6,F6)):T6.addChild(v6,F6))}let A6=function(T6){if(this.options.processEntities){for(let v6 in this.docTypeEntities){let A1=this.docTypeEntities[v6];T6=T6.replace(A1.regx,A1.val)}for(let v6 in this.lastEntities){let A1=this.lastEntities[v6];T6=T6.replace(A1.regex,A1.val)}if(this.options.htmlEntities)for(let v6 in this.htmlEntities){let A1=this.htmlEntities[v6];T6=T6.replace(A1.regex,A1.val)}T6=T6.replace(this.ampEntity.regex,this.ampEntity.val)}return T6};function K6(T6,v6,A1,F6){return T6&&(F6===void 0&&(F6=v6.child.length===0),(T6=this.parseTextData(T6,v6.tagname,A1,!1,!!v6[":@"]&&Object.keys(v6[":@"]).length!==0,F6))!==void 0&&T6!==""&&v6.add(this.options.textNodeName,T6),T6=""),T6}function z6(T6,v6,A1){let F6="*."+A1;for(let m6 in T6){let l6=T6[m6];if(F6===l6||v6===l6)return!0}return!1}function a(T6,v6,A1,F6){let m6=T6.indexOf(v6,A1);if(m6===-1)throw Error(F6);return m6+v6.length-1}function r(T6,v6,A1,F6=">"){let m6=function(s8,_7,X7=">"){let RA,M7="";for(let Fq=_7;Fq<s8.length;Fq++){let aA=s8[Fq];if(RA)aA===RA&&(RA="");else if(aA==='"'||aA==="'")RA=aA;else if(aA===X7[0]){if(!X7[1])return{data:M7,index:Fq};if(s8[Fq+1]===X7[1])return{data:M7,index:Fq}}else aA==="\t"&&(aA=" ");M7+=aA}}(T6,v6+1,F6);if(!m6)return;let{data:l6,index:N1}=m6,X1=l6.search(/\s/),k1=l6,i1=!0;X1!==-1&&(k1=l6.substring(0,X1),l6=l6.substring(X1+1).trimStart());let t8=k1;if(A1){let s8=k1.indexOf(":");s8!==-1&&(k1=k1.substr(s8+1),i1=k1!==m6.data.substr(s8+1))}return{tagName:k1,tagExp:l6,closeIndex:N1,attrExpPresent:i1,rawTagName:t8}}function X6(T6,v6,A1){let F6=A1,m6=1;for(;A1<T6.length;A1++)if(T6[A1]==="<")if(T6[A1+1]==="/"){let l6=a(T6,">",A1,`${v6} is not closed`);if(T6.substring(A1+2,l6).trim()===v6&&(m6--,m6===0))return{tagContent:T6.substring(F6,A1),i:l6};A1=l6}else if(T6[A1+1]==="?")A1=a(T6,"?>",A1+1,"StopNode is not closed.");else if(T6.substr(A1+1,3)==="!--")A1=a(T6,"-->",A1+3,"StopNode is not closed.");else if(T6.substr(A1+1,2)==="![")A1=a(T6,"]]>",A1,"StopNode is not closed.")-2;else{let l6=r(T6,A1,">");l6&&((l6&&l6.tagName)===v6&&l6.tagExp[l6.tagExp.length-1]!=="/"&&m6++,A1=l6.closeIndex)}}function O6(T6,v6,A1){if(v6&&typeof T6=="string"){let F6=T6.trim();return F6==="true"||F6!=="false"&&function(m6,l6={}){if(l6=Object.assign({},t,l6),!m6||typeof m6!="string")return m6;let N1=m6.trim();if(l6.skipLike!==void 0&&l6.skipLike.test(N1))return m6;if(m6==="0")return 0;if(l6.hex&&d.test(N1))return function(k1){if(parseInt)return parseInt(k1,16);if(Number.parseInt)return Number.parseInt(k1,16);if(window&&window.parseInt)return window.parseInt(k1,16);throw Error("parseInt, Number.parseInt, window.parseInt are not supported")}(N1);if(N1.search(/.+[eE].+/)!==-1)return function(k1,i1,t8){if(!t8.eNotation)return k1;let s8=i1.match(s);if(s8){let _7=s8[1]||"",X7=s8[3].indexOf("e")===-1?"E":"e",RA=s8[2],M7=_7?k1[RA.length+1]===X7:k1[RA.length]===X7;return RA.length>1&&M7?k1:RA.length!==1||!s8[3].startsWith(`.${X7}`)&&s8[3][0]!==X7?t8.leadingZeros&&!M7?(i1=(s8[1]||"")+s8[3],Number(i1)):k1:Number(i1)}return k1}(m6,N1,l6);{let k1=l.exec(N1);if(k1){let i1=k1[1]||"",t8=k1[2],s8=(X1=k1[3])&&X1.indexOf(".")!==-1?((X1=X1.replace(/0+$/,""))==="."?X1="0":X1[0]==="."?X1="0"+X1:X1[X1.length-1]==="."&&(X1=X1.substring(0,X1.length-1)),X1):X1,_7=i1?m6[t8.length+1]===".":m6[t8.length]===".";if(!l6.leadingZeros&&(t8.length>1||t8.length===1&&!_7))return m6;{let X7=Number(N1),RA=String(X7);if(X7===0||X7===-0)return X7;if(RA.search(/[eE]/)!==-1)return l6.eNotation?X7:m6;if(N1.indexOf(".")!==-1)return RA==="0"||RA===s8||RA===`${i1}${s8}`?X7:m6;let M7=t8?s8:N1;return t8?M7===RA||i1+M7===RA?X7:m6:M7===RA||M7===i1+RA?X7:m6}}return m6}var X1}(T6,A1)}return T6!==void 0?T6:""}let D6=y.getMetaDataSymbol();function y6(T6,v6){return C6(T6,v6)}function C6(T6,v6,A1){let F6,m6={};for(let l6=0;l6<T6.length;l6++){let N1=T6[l6],X1=h6(N1),k1="";if(k1=A1===void 0?X1:A1+"."+X1,X1===v6.textNodeName)F6===void 0?F6=N1[X1]:F6+=""+N1[X1];else{if(X1===void 0)continue;if(N1[X1]){let i1=C6(N1[X1],v6,k1),t8=M6(i1,v6);N1[D6]!==void 0&&(i1[D6]=N1[D6]),N1[":@"]?f6(i1,N1[":@"],k1,v6):Object.keys(i1).length!==1||i1[v6.textNodeName]===void 0||v6.alwaysCreateTextNode?Object.keys(i1).length===0&&(v6.alwaysCreateTextNode?i1[v6.textNodeName]="":i1=""):i1=i1[v6.textNodeName],m6[X1]!==void 0&&m6.hasOwnProperty(X1)?(Array.isArray(m6[X1])||(m6[X1]=[m6[X1]]),m6[X1].push(i1)):v6.isArray(X1,k1,t8)?m6[X1]=[i1]:m6[X1]=i1}}}return typeof F6=="string"?F6.length>0&&(m6[v6.textNodeName]=F6):F6!==void 0&&(m6[v6.textNodeName]=F6),m6}function h6(T6){let v6=Object.keys(T6);for(let A1=0;A1<v6.length;A1++){let F6=v6[A1];if(F6!==":@")return F6}}function f6(T6,v6,A1,F6){if(v6){let m6=Object.keys(v6),l6=m6.length;for(let N1=0;N1<l6;N1++){let X1=m6[N1];F6.isArray(X1,A1+"."+X1,!0,!0)?T6[X1]=[v6[X1]]:T6[X1]=v6[X1]}}}function M6(T6,v6){let{textNodeName:A1}=v6,F6=Object.keys(T6).length;return F6===0||!(F6!==1||!T6[A1]&&typeof T6[A1]!="boolean"&&T6[A1]!==0)}class V6{constructor(T6){this.externalEntities={},this.options=function(v6){return Object.assign({},N,v6)}(T6)}parse(T6,v6){if(typeof T6=="string");else{if(!T6.toString)throw Error("XML data is accepted in String or Bytes[] form.");T6=T6.toString()}if(v6){v6===!0&&(v6={});let m6=$(T6,v6);if(m6!==!0)throw Error(`${m6.err.msg}:${m6.err.line}:${m6.err.col}`)}let A1=new Z6(this.options);A1.addExternalEntities(this.externalEntities);let F6=A1.parseXml(T6);return this.options.preserveOrder||F6===void 0?F6:y6(F6,this.options)}addEntity(T6,v6){if(v6.indexOf("&")!==-1)throw Error("Entity value can't have '&'");if(T6.indexOf("&")!==-1||T6.indexOf(";")!==-1)throw Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(v6==="&")throw Error("An entity with value '&' is not permitted");this.externalEntities[T6]=v6}static getMetaDataSymbol(){return y.getMetaDataSymbol()}}function p6(T6,v6){let A1="";return v6.format&&v6.indentBy.length>0&&(A1=`
`),b6(T6,v6,"",A1)}function b6(T6,v6,A1,F6){let m6="",l6=!1;for(let N1=0;N1<T6.length;N1++){let X1=T6[N1],k1=R6(X1);if(k1===void 0)continue;let i1="";if(i1=A1.length===0?k1:`${A1}.${k1}`,k1===v6.textNodeName){let X7=X1[k1];d6(i1,v6)||(X7=v6.tagValueProcessor(k1,X7),X7=t6(X7,v6)),l6&&(m6+=F6),m6+=X7,l6=!1;continue}if(k1===v6.cdataPropName){l6&&(m6+=F6),m6+=`<![CDATA[${X1[k1][0][v6.textNodeName]}]]>`,l6=!1;continue}if(k1===v6.commentPropName){m6+=F6+`<!--${X1[k1][0][v6.textNodeName]}-->`,l6=!0;continue}if(k1[0]==="?"){let X7=x6(X1[":@"],v6),RA=k1==="?xml"?"":F6,M7=X1[k1][0][v6.textNodeName];M7=M7.length!==0?" "+M7:"",m6+=RA+`<${k1}${M7}${X7}?>`,l6=!0;continue}let t8=F6;t8!==""&&(t8+=v6.indentBy);let s8=F6+`<${k1}${x6(X1[":@"],v6)}`,_7=b6(X1[k1],v6,i1,t8);v6.unpairedTags.indexOf(k1)!==-1?v6.suppressUnpairedNode?m6+=s8+">":m6+=s8+"/>":_7&&_7.length!==0||!v6.suppressEmptyNode?_7&&_7.endsWith(">")?m6+=s8+`>${_7}${F6}</${k1}>`:(m6+=s8+">",_7&&F6!==""&&(_7.includes("/>")||_7.includes("</"))?m6+=F6+v6.indentBy+_7+F6:m6+=_7,m6+=`</${k1}>`):m6+=s8+"/>",l6=!0}return m6}function R6(T6){let v6=Object.keys(T6);for(let A1=0;A1<v6.length;A1++){let F6=v6[A1];if(T6.hasOwnProperty(F6)&&F6!==":@")return F6}}function x6(T6,v6){let A1="";if(T6&&!v6.ignoreAttributes)for(let F6 in T6){if(!T6.hasOwnProperty(F6))continue;let m6=v6.attributeValueProcessor(F6,T6[F6]);m6=t6(m6,v6),m6===!0&&v6.suppressBooleanAttributes?A1+=` ${F6.substr(v6.attributeNamePrefix.length)}`:A1+=` ${F6.substr(v6.attributeNamePrefix.length)}="${m6}"`}return A1}function d6(T6,v6){let A1=(T6=T6.substr(0,T6.length-v6.textNodeName.length-1)).substr(T6.lastIndexOf(".")+1);for(let F6 in v6.stopNodes)if(v6.stopNodes[F6]===T6||v6.stopNodes[F6]==="*."+A1)return!0;return!1}function t6(T6,v6){if(T6&&T6.length>0&&v6.processEntities)for(let A1=0;A1<v6.entities.length;A1++){let F6=v6.entities[A1];T6=T6.replace(F6.regex,F6.val)}return T6}let L6={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(T6,v6){return v6},attributeValueProcessor:function(T6,v6){return v6},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};function u6(T6){this.options=Object.assign({},L6,T6),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=H6(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Z1),this.processTextOrObjNode=e6,this.options.format?(this.indentate=H1,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function e6(T6,v6,A1,F6){let m6=this.j2x(T6,A1+1,F6.concat(v6));return T6[this.options.textNodeName]!==void 0&&Object.keys(T6).length===1?this.buildTextValNode(T6[this.options.textNodeName],v6,m6.attrStr,A1):this.buildObjectNode(m6.val,v6,m6.attrStr,A1)}function H1(T6){return this.options.indentBy.repeat(T6)}function Z1(T6){return!(!T6.startsWith(this.options.attributeNamePrefix)||T6===this.options.textNodeName)&&T6.substr(this.attrPrefixLen)}u6.prototype.build=function(T6){return this.options.preserveOrder?p6(T6,this.options):(Array.isArray(T6)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(T6={[this.options.arrayNodeName]:T6}),this.j2x(T6,0,[]).val)},u6.prototype.j2x=function(T6,v6,A1){let F6="",m6="",l6=A1.join(".");for(let N1 in T6)if(Object.prototype.hasOwnProperty.call(T6,N1))if(T6[N1]===void 0)this.isAttribute(N1)&&(m6+="");else if(T6[N1]===null)this.isAttribute(N1)||N1===this.options.cdataPropName?m6+="":N1[0]==="?"?m6+=this.indentate(v6)+"<"+N1+"?"+this.tagEndChar:m6+=this.indentate(v6)+"<"+N1+"/"+this.tagEndChar;else if(T6[N1]instanceof Date)m6+=this.buildTextValNode(T6[N1],N1,"",v6);else if(typeof T6[N1]!="object"){let X1=this.isAttribute(N1);if(X1&&!this.ignoreAttributesFn(X1,l6))F6+=this.buildAttrPairStr(X1,""+T6[N1]);else if(!X1)if(N1===this.options.textNodeName){let k1=this.options.tagValueProcessor(N1,""+T6[N1]);m6+=this.replaceEntitiesValue(k1)}else m6+=this.buildTextValNode(T6[N1],N1,"",v6)}else if(Array.isArray(T6[N1])){let X1=T6[N1].length,k1="",i1="";for(let t8=0;t8<X1;t8++){let s8=T6[N1][t8];if(s8===void 0);else if(s8===null)N1[0]==="?"?m6+=this.indentate(v6)+"<"+N1+"?"+this.tagEndChar:m6+=this.indentate(v6)+"<"+N1+"/"+this.tagEndChar;else if(typeof s8=="object")if(this.options.oneListGroup){let _7=this.j2x(s8,v6+1,A1.concat(N1));k1+=_7.val,this.options.attributesGroupName&&s8.hasOwnProperty(this.options.attributesGroupName)&&(i1+=_7.attrStr)}else k1+=this.processTextOrObjNode(s8,N1,v6,A1);else if(this.options.oneListGroup){let _7=this.options.tagValueProcessor(N1,s8);_7=this.replaceEntitiesValue(_7),k1+=_7}else k1+=this.buildTextValNode(s8,N1,"",v6)}this.options.oneListGroup&&(k1=this.buildObjectNode(k1,N1,i1,v6)),m6+=k1}else if(this.options.attributesGroupName&&N1===this.options.attributesGroupName){let X1=Object.keys(T6[N1]),k1=X1.length;for(let i1=0;i1<k1;i1++)F6+=this.buildAttrPairStr(X1[i1],""+T6[N1][X1[i1]])}else m6+=this.processTextOrObjNode(T6[N1],N1,v6,A1);return{attrStr:F6,val:m6}},u6.prototype.buildAttrPairStr=function(T6,v6){return v6=this.options.attributeValueProcessor(T6,""+v6),v6=this.replaceEntitiesValue(v6),this.options.suppressBooleanAttributes&&v6==="true"?" "+T6:" "+T6+'="'+v6+'"'},u6.prototype.buildObjectNode=function(T6,v6,A1,F6){if(T6==="")return v6[0]==="?"?this.indentate(F6)+"<"+v6+A1+"?"+this.tagEndChar:this.indentate(F6)+"<"+v6+A1+this.closeTag(v6)+this.tagEndChar;{let m6="</"+v6+this.tagEndChar,l6="";return v6[0]==="?"&&(l6="?",m6=""),!A1&&A1!==""||T6.indexOf("<")!==-1?this.options.commentPropName!==!1&&v6===this.options.commentPropName&&l6.length===0?this.indentate(F6)+`<!--${T6}-->`+this.newLine:this.indentate(F6)+"<"+v6+A1+l6+this.tagEndChar+T6+this.indentate(F6)+m6:this.indentate(F6)+"<"+v6+A1+l6+">"+T6+m6}},u6.prototype.closeTag=function(T6){let v6="";return this.options.unpairedTags.indexOf(T6)!==-1?this.options.suppressUnpairedNode||(v6="/"):v6=this.options.suppressEmptyNode?"/":`></${T6}`,v6},u6.prototype.buildTextValNode=function(T6,v6,A1,F6){if(this.options.cdataPropName!==!1&&v6===this.options.cdataPropName)return this.indentate(F6)+`<![CDATA[${T6}]]>`+this.newLine;if(this.options.commentPropName!==!1&&v6===this.options.commentPropName)return this.indentate(F6)+`<!--${T6}-->`+this.newLine;if(v6[0]==="?")return this.indentate(F6)+"<"+v6+A1+"?"+this.tagEndChar;{let m6=this.options.tagValueProcessor(v6,T6);return m6=this.replaceEntitiesValue(m6),m6===""?this.indentate(F6)+"<"+v6+A1+this.closeTag(v6)+this.tagEndChar:this.indentate(F6)+"<"+v6+A1+">"+m6+"</"+v6+this.tagEndChar}},u6.prototype.replaceEntitiesValue=function(T6){if(T6&&T6.length>0&&this.options.processEntities)for(let v6=0;v6<this.options.entities.length;v6++){let A1=this.options.entities[v6];T6=T6.replace(A1.regex,A1.val)}return T6};let v1={validate:$};F_7.exports=q})()});var p_7=C((U_7)=>{Object.defineProperty(U_7,"__esModule",{value:!0});U_7.parseXML=Bn3;var un3=Q_7(),AY8=new un3.XMLParser({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(A,q)=>q.trim()===""&&q.includes(`
`)?"":void 0});AY8.addEntity("#xD","\r");AY8.addEntity("#10",`
`);function Bn3(A){return AY8.parse(A,!0)}});var KY8=C((d_7)=>{var gn3=p_7();function Fn3(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Qn3(A){return A.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class qY8{value;constructor(A){this.value=A}toString(){return Qn3(""+this.value)}}class zB6{name;children;attributes={};static of(A,q,K){let Y=new zB6(A);if(q!==void 0)Y.addChildNode(new qY8(q));if(K!==void 0)Y.withName(K);return Y}constructor(A,q=[]){this.name=A,this.children=q}withName(A){return this.name=A,this}addAttribute(A,q){return this.attributes[A]=q,this}addChildNode(A){return this.children.push(A),this}removeAttribute(A){return delete this.attributes[A],this}n(A){return this.name=A,this}c(A){return this.children.push(A),this}a(A,q){if(q!=null)this.attributes[A]=q;return this}cc(A,q,K=q){if(A[q]!=null){let Y=zB6.of(q,A[q]).withName(K);this.c(Y)}}l(A,q,K,Y){if(A[q]!=null)Y().map((w)=>{w.withName(K),this.c(w)})}lc(A,q,K,Y){if(A[q]!=null){let z=Y(),w=new zB6(K);z.map((_)=>{w.c(_)}),this.c(w)}}toString(){let A=Boolean(this.children.length),q=`<${this.name}`,K=this.attributes;for(let Y of Object.keys(K)){let z=K[Y];if(z!=null)q+=` ${Y}="${Fn3(""+z)}"`}return q+=!A?"/>":`>${this.children.map((Y)=>Y.toString()).join("")}</${this.name}>`}}Object.defineProperty(d_7,"parseXML",{enumerable:!0,get:function(){return gn3.parseXML}});d_7.XmlNode=zB6;d_7.XmlText=qY8});var O$=C((Hr3)=>{var zY8=$21(),Xt=pw(),c_7=EM(),dn3=ON(),l_7=l58(),i_7=d98(),G2=lO(),Tc=a98(),C0=MN(),oX=JN(),_B6=e98(),e_7=Z2(),SR=KY8(),YY8={warningEmitted:!1},cn3=(A)=>{if(A&&!YY8.warningEmitted&&parseInt(A.substring(1,A.indexOf(".")))<18)YY8.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
no longer support Node.js 16.x on January 6, 2025.

To continue receiving updates to AWS services, bug fixes, and security
updates please upgrade to a supported Node.js LTS version.

More information can be found at: https://a.co/74kJMmI`)};function ln3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}function in3(A,q,K){if(!A.__aws_sdk_context)A.__aws_sdk_context={features:{}};else if(!A.__aws_sdk_context.features)A.__aws_sdk_context.features={};A.__aws_sdk_context.features[q]=K}function nn3(A,q,K){if(!A.$source)A.$source={};return A.$source[q]=K,A}var n_7=(A)=>zY8.HttpResponse.isInstance(A)?A.headers?.date??A.headers?.Date:void 0,wY8=(A)=>new Date(Date.now()+A),rn3=(A,q)=>Math.abs(wY8(q).getTime()-A)>=300000,r_7=(A,q)=>{let K=Date.parse(A);if(rn3(K,q))return K-Date.now();return q},wB6=(A,q)=>{if(!q)throw Error(`Property \`${A}\` is not resolved for AWS SDK SigV4Auth`);return q},_Y8=async(A)=>{let q=wB6("context",A.context),K=wB6("config",A.config),Y=q.endpointV2?.properties?.authSchemes?.[0],w=await wB6("signer",K.signer)(Y),_=A?.signingRegion,$=A?.signingRegionSet,O=A?.signingName;return{config:K,signer:w,signingRegion:_,signingRegionSet:$,signingName:O}};class S21{async sign(A,q,K){if(!zY8.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let Y=await _Y8(K),{config:z,signer:w}=Y,{signingRegion:_,signingName:$}=Y,O=K.context;if(O?.authSchemes?.length??!1){let[j,J]=O.authSchemes;if(j?.name==="sigv4a"&&J?.name==="sigv4")_=J?.signingRegion??_,$=J?.signingName??$}return await w.sign(A,{signingDate:wY8(z.systemClockOffset),signingRegion:_,signingService:$})}errorHandler(A){return(q)=>{let K=q.ServerTime??n_7(q.$response);if(K){let Y=wB6("config",A.config),z=Y.systemClockOffset;if(Y.systemClockOffset=r_7(K,Y.systemClockOffset),Y.systemClockOffset!==z&&q.$metadata)q.$metadata.clockSkewCorrected=!0}throw q}}successHandler(A,q){let K=n_7(A);if(K){let Y=wB6("config",q.config);Y.systemClockOffset=r_7(K,Y.systemClockOffset)}}}var on3=S21;class A$7 extends S21{async sign(A,q,K){if(!zY8.HttpRequest.isInstance(A))throw Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:Y,signer:z,signingRegion:w,signingRegionSet:_,signingName:$}=await _Y8(K),H=(await Y.sigv4aSigningRegionSet?.()??_??[w]).join(",");return await z.sign(A,{signingDate:wY8(Y.systemClockOffset),signingRegion:H,signingService:$})}}var o_7=(A)=>typeof A==="string"&&A.length>0?A.split(",").map((q)=>q.trim()):[],q$7=(A)=>`AWS_BEARER_TOKEN_${A.replace(/[\s-]/g,"_").toUpperCase()}`,a_7="AWS_AUTH_SCHEME_PREFERENCE",s_7="auth_scheme_preference",an3={environmentVariableSelector:(A,q)=>{if(q?.signingName){if(q$7(q.signingName)in A)return["httpBearerAuth"]}if(!(a_7 in A))return;return o_7(A[a_7])},configFileSelector:(A)=>{if(!(s_7 in A))return;return o_7(A[s_7])},default:[]},sn3=(A)=>{return A.sigv4aSigningRegionSet=Xt.normalizeProvider(A.sigv4aSigningRegionSet),A},tn3={environmentVariableSelector(A){if(A.AWS_SIGV4A_SIGNING_REGION_SET)return A.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((q)=>q.trim());throw new c_7.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(A){if(A.sigv4a_signing_region_set)return(A.sigv4a_signing_region_set??"").split(",").map((q)=>q.trim());throw new c_7.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0},K$7=(A)=>{let q=A.credentials,K=!!A.credentials,Y=void 0;Object.defineProperty(A,"credentials",{set(H){if(H&&H!==q&&H!==Y)K=!0;q=H;let j=Ar3(A,{credentials:q,credentialDefaultProvider:A.credentialDefaultProvider}),J=qr3(A,j);if(K&&!J.attributed)Y=async(M)=>J(M).then((D)=>dn3.setCredentialFeature(D,"CREDENTIALS_CODE","e")),Y.memoized=J.memoized,Y.configBound=J.configBound,Y.attributed=!0;else Y=J},get(){return Y},enumerable:!0,configurable:!0}),A.credentials=q;let{signingEscapePath:z=!0,systemClockOffset:w=A.systemClockOffset||0,sha256:_}=A,$;if(A.signer)$=Xt.normalizeProvider(A.signer);else if(A.regionInfoProvider)$=()=>Xt.normalizeProvider(A.region)().then(async(H)=>[await A.regionInfoProvider(H,{useFipsEndpoint:await A.useFipsEndpoint(),useDualstackEndpoint:await A.useDualstackEndpoint()})||{},H]).then(([H,j])=>{let{signingRegion:J,signingService:M}=H;A.signingRegion=A.signingRegion||J||j,A.signingName=A.signingName||M||A.serviceId;let D={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||l_7.SignatureV4)(D)});else $=async(H)=>{H=Object.assign({},{name:"sigv4",signingName:A.signingName||A.defaultSigningName,signingRegion:await Xt.normalizeProvider(A.region)(),properties:{}},H);let{signingRegion:j,signingName:J}=H;A.signingRegion=A.signingRegion||j,A.signingName=A.signingName||J||A.serviceId;let M={...A,credentials:A.credentials,region:A.signingRegion,service:A.signingName,sha256:_,uriEscapePath:z};return new(A.signerConstructor||l_7.SignatureV4)(M)};return Object.assign(A,{systemClockOffset:w,signingEscapePath:z,signer:$})},en3=K$7;function Ar3(A,{credentials:q,credentialDefaultProvider:K}){let Y;if(q)if(!q?.memoized)Y=Xt.memoizeIdentityProvider(q,Xt.isIdentityExpired,Xt.doesIdentityRequireRefresh);else Y=q;else if(K)Y=Xt.normalizeProvider(K(Object.assign({},A,{parentClientConfig:A})));else Y=async()=>{throw Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return Y.memoized=!0,Y}function qr3(A,q){if(q.configBound)return q;let K=async(Y)=>q({...Y,callerClientConfig:A});return K.memoized=q.memoized,K.configBound=!0,K}class jP6{queryCompat;constructor(A=!1){this.queryCompat=A}resolveRestContentType(A,q){let K=q.getMemberSchemas(),Y=Object.values(K).find((z)=>{return!!z.getMergedTraits().httpPayload});if(Y){let z=Y.getMergedTraits().mediaType;if(z)return z;else if(Y.isStringSchema())return"text/plain";else if(Y.isBlobSchema())return"application/octet-stream";else return A}else if(!q.isUnitSchema()){if(Object.values(K).find((w)=>{let{httpQuery:_,httpQueryParams:$,httpHeader:O,httpLabel:H,httpPrefixHeaders:j}=w.getMergedTraits();return!_&&!$&&!O&&!H&&j===void 0}))return A}}async getErrorSchemaOrThrowBaseException(A,q,K,Y,z,w){let _=q,$=A;if(A.includes("#"))[_,$]=A.split("#");let O={$metadata:z,$fault:K.statusCode<500?"client":"server"},H=G2.TypeRegistry.for(_);try{return{errorSchema:w?.(H,$)??H.getSchema(A),errorMetadata:O}}catch(j){Y.message=Y.message??Y.Message??"UnknownError";let J=G2.TypeRegistry.for("smithy.ts.sdk.synthetic."+_),M=J.getBaseException();if(M){let D=J.getErrorCtor(M)??Error;throw this.decorateServiceException(Object.assign(new D({name:$}),O),Y)}throw this.decorateServiceException(Object.assign(Error($),O),Y)}}decorateServiceException(A,q={}){if(this.queryCompat){let K=A.Message??q.Message,Y=Tc.decorateServiceException(A,q);if(K)Y.Message=K,Y.message=K;return Y}return Tc.decorateServiceException(A,q)}setQueryCompatError(A,q){let K=q.headers?.["x-amzn-query-error"];if(A!==void 0&&K!=null){let[Y,z]=K.split(";"),w=Object.entries(A),_={Code:Y,Type:z};Object.assign(A,_);for(let[$,O]of w)_[$]=O;delete _.__type,A.Error=_}}queryCompatOutput(A,q){if(A.Error)q.Error=A.Error;if(A.Type)q.Type=A.Type;if(A.Code)q.Code=A.Code}}class Y$7 extends i_7.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:A,awsQueryCompatible:q}){super({defaultNamespace:A});this.awsQueryCompatible=!!q,this.mixin=new jP6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";return Y}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=i_7.loadSmithyRpcV2CborErrorCode(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=G2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(G2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator())M[D]=this.deserializer.readValue(X,Y[D]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}var Kr3=(A)=>{if(A==null)return A;if(typeof A==="number"||typeof A==="bigint"){let q=Error(`Received number ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}if(typeof A==="boolean"){let q=Error(`Received boolean ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}return A},Yr3=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=A.toLowerCase();if(A!==""&&q!=="false"&&q!=="true"){let K=Error(`Received string "${A}" where a boolean was expected.`);K.name="Warning",console.warn(K)}return A!==""&&q!=="false"}return A},zr3=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=Number(A);if(q.toString()!==A){let K=Error(`Received string "${A}" where a number was expected.`);return K.name="Warning",console.warn(K),A}return q}return A};class Pt{serdeContext;setSerdeContext(A){this.serdeContext=A}}function wr3(A,q,K){if(K?.source){let Y=K.source;if(typeof q==="number"){if(q>Number.MAX_SAFE_INTEGER||q<Number.MIN_SAFE_INTEGER||Y!==String(q))if(Y.includes("."))return new oX.NumericValue(Y,"bigDecimal");else return BigInt(Y)}}return q}var z$7=(A,q)=>Tc.collectBody(A,q).then((K)=>(q?.utf8Encoder??e_7.toUtf8)(K)),$Y8=(A,q)=>z$7(A,q).then((K)=>{if(K.length)try{return JSON.parse(K)}catch(Y){if(Y?.name==="SyntaxError")Object.defineProperty(Y,"$responseBodyText",{value:K});throw Y}return{}}),_r3=async(A,q)=>{let K=await $Y8(A,q);return K.message=K.message??K.Message,K},OY8=(A,q)=>{let K=(w,_)=>Object.keys(w).find(($)=>$.toLowerCase()===_.toLowerCase()),Y=(w)=>{let _=w;if(typeof _==="number")_=_.toString();if(_.indexOf(",")>=0)_=_.split(",")[0];if(_.indexOf(":")>=0)_=_.split(":")[0];if(_.indexOf("#")>=0)_=_.split("#")[1];return _},z=K(A.headers,"x-amzn-errortype");if(z!==void 0)return Y(A.headers[z]);if(q&&typeof q==="object"){let w=K(q,"code");if(w&&q[w]!==void 0)return Y(q[w]);if(q.__type!==void 0)return Y(q.__type)}};class HY8 extends Pt{settings;constructor(A){super();this.settings=A}async read(A,q){return this._read(A,typeof q==="string"?JSON.parse(q,wr3):await $Y8(q,this.serdeContext))}readObject(A,q){return this._read(A,q)}_read(A,q){let K=q!==null&&typeof q==="object",Y=G2.NormalizedSchema.of(A);if(Y.isListSchema()&&Array.isArray(q)){let w=Y.getValueSchema(),_=[],$=!!Y.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._read(w,O));return _}else if(Y.isMapSchema()&&K){let w=Y.getValueSchema(),_={},$=!!Y.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._read(w,H);return _}else if(Y.isStructSchema()&&K){let w={};for(let[_,$]of Y.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._read($,q[O]);if(H!=null)w[_]=H}return w}if(Y.isBlobSchema()&&typeof q==="string")return _B6.fromBase64(q);let z=Y.getMergedTraits().mediaType;if(Y.isStringSchema()&&typeof q==="string"&&z){if(z==="application/json"||z.endsWith("+json"))return oX.LazyJsonString.from(q)}if(Y.isTimestampSchema()&&q!=null)switch(C0.determineTimestampFormat(Y,this.settings)){case 5:return oX.parseRfc3339DateTimeWithOffset(q);case 6:return oX.parseRfc7231DateTime(q);case 7:return oX.parseEpochTimestamp(q);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",q),new Date(q)}if(Y.isBigIntegerSchema()&&(typeof q==="number"||typeof q==="string"))return BigInt(q);if(Y.isBigDecimalSchema()&&q!=null){if(q instanceof oX.NumericValue)return q;let w=q;if(w.type==="bigDecimal"&&"string"in w)return new oX.NumericValue(w.string,w.type);return new oX.NumericValue(String(q),"bigDecimal")}if(Y.isNumericSchema()&&typeof q==="string")switch(q){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(Y.isDocumentSchema())if(K){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof oX.NumericValue)w[_]=$;else w[_]=this._read(Y,$);return w}else return structuredClone(q);return q}}var t_7=String.fromCharCode(925);class w$7{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(A,q)=>{if(q instanceof oX.NumericValue){let K=`${t_7+"nv"+this.counter++}_`+q.string;return this.values.set(`"${K}"`,q.string),K}if(typeof q==="bigint"){let K=q.toString(),Y=`${t_7+"b"+this.counter++}_`+K;return this.values.set(`"${Y}"`,K),Y}return q}}replaceInJson(A){if(this.stage===0)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return A;for(let[q,K]of this.values)A=A.replace(q,K);return A}}class jY8 extends Pt{settings;buffer;rootSchema;constructor(A){super();this.settings=A}write(A,q){this.rootSchema=G2.NormalizedSchema.of(A),this.buffer=this._write(this.rootSchema,q)}writeDiscriminatedDocument(A,q){if(this.write(A,q),typeof this.buffer==="object")this.buffer.__type=G2.NormalizedSchema.of(A).getName(!0)}flush(){let{rootSchema:A}=this;if(this.rootSchema=void 0,A?.isStructSchema()||A?.isDocumentSchema()){let q=new w$7;return q.replaceInJson(JSON.stringify(this.buffer,q.createReplacer(),0))}return this.buffer}_write(A,q,K){let Y=q!==null&&typeof q==="object",z=G2.NormalizedSchema.of(A);if(z.isListSchema()&&Array.isArray(q)){let w=z.getValueSchema(),_=[],$=!!z.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._write(w,O));return _}else if(z.isMapSchema()&&Y){let w=z.getValueSchema(),_={},$=!!z.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._write(w,H);return _}else if(z.isStructSchema()&&Y){let w={};for(let[_,$]of z.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._write($,q[_],z);if(H!==void 0)w[O]=H}return w}if(q===null&&K?.isStructSchema())return;if(z.isBlobSchema()&&(q instanceof Uint8Array||typeof q==="string")||z.isDocumentSchema()&&q instanceof Uint8Array){if(z===this.rootSchema)return q;return(this.serdeContext?.base64Encoder??_B6.toBase64)(q)}if((z.isTimestampSchema()||z.isDocumentSchema())&&q instanceof Date)switch(C0.determineTimestampFormat(z,this.settings)){case 5:return q.toISOString().replace(".000Z","Z");case 6:return oX.dateToUtcString(q);case 7:return q.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",q),q.getTime()/1000}if(z.isNumericSchema()&&typeof q==="number"){if(Math.abs(q)===1/0||isNaN(q))return String(q)}if(z.isStringSchema()){if(typeof q>"u"&&z.isIdempotencyToken())return oX.generateIdempotencyToken();let w=z.getMergedTraits().mediaType;if(q!=null&&w){if(w==="application/json"||w.endsWith("+json"))return oX.LazyJsonString.from(q)}}if(z.isDocumentSchema())if(Y){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof oX.NumericValue)w[_]=$;else w[_]=this._write(z,$);return w}else return structuredClone(q);return q}}class C21 extends Pt{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new jY8(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new HY8(this.settings);return A.setSerdeContext(this.serdeContext),A}}class h21 extends C0.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A});this.serviceTarget=q,this.codec=new C21({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!K,this.mixin=new jP6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${A.name}`}),this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";if(G2.deref(A.input)==="unit"||!Y.body)Y.body="{}";return Y}getPayloadCodec(){return this.codec}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=OY8(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=G2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(G2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}class _$7 extends h21{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class $$7 extends h21{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class O$7 extends C0.HttpBindingProtocol{serializer;deserializer;codec;mixin=new jP6;constructor({defaultNamespace:A}){super({defaultNamespace:A});let q={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new C21(q),this.serializer=new C0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new C0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(A){this.codec.setSerdeContext(A),super.setSerdeContext(A)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=G2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.body==null&&Y.headers["content-type"]===this.getDefaultContentType())Y.body="{}";return Y}async deserializeResponse(A,q,K){let Y=await super.deserializeResponse(A,q,K),z=G2.NormalizedSchema.of(A.output);for(let[w,_]of z.structIterator())if(_.getMemberTraits().httpPayload&&!(w in Y))Y[w]=null;return Y}async handleError(A,q,K,Y,z){let w=OY8(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=G2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(G2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/json"}}var $r3=(A)=>{if(A==null)return;if(typeof A==="object"&&"__type"in A)delete A.__type;return Tc.expectUnion(A)};class I21 extends Pt{settings;stringDeserializer;constructor(A){super();this.settings=A,this.stringDeserializer=new C0.FromStringShapeDeserializer(A)}setSerdeContext(A){this.serdeContext=A,this.stringDeserializer.setSerdeContext(A)}read(A,q,K){let Y=G2.NormalizedSchema.of(A),z=Y.getMemberSchemas();if(Y.isStructSchema()&&Y.isMemberSchema()&&!!Object.values(z).find((O)=>{return!!O.getMemberTraits().eventPayload})){let O={},H=Object.keys(z)[0];if(z[H].isBlobSchema())O[H]=q;else O[H]=this.read(z[H],q);return O}let _=(this.serdeContext?.utf8Encoder??e_7.toUtf8)(q),$=this.parseXml(_);return this.readSchema(A,K?$[K]:$)}readSchema(A,q){let K=G2.NormalizedSchema.of(A);if(K.isUnitSchema())return;let Y=K.getMergedTraits();if(K.isListSchema()&&!Array.isArray(q))return this.readSchema(K,[q]);if(q==null)return q;if(typeof q==="object"){let z=!!Y.sparse,w=!!Y.xmlFlattened;if(K.isListSchema()){let $=K.getValueSchema(),O=[],H=$.getMergedTraits().xmlName??"member",j=w?q:(q[0]??q)[H],J=Array.isArray(j)?j:[j];for(let M of J)if(M!=null||z)O.push(this.readSchema($,M));return O}let _={};if(K.isMapSchema()){let $=K.getKeySchema(),O=K.getValueSchema(),H;if(w)H=Array.isArray(q)?q:[q];else H=Array.isArray(q.entry)?q.entry:[q.entry];let j=$.getMergedTraits().xmlName??"key",J=O.getMergedTraits().xmlName??"value";for(let M of H){let D=M[j],X=M[J];if(X!=null||z)_[D]=this.readSchema(O,X)}return _}if(K.isStructSchema()){for(let[$,O]of K.structIterator()){let H=O.getMergedTraits(),j=!H.httpPayload?O.getMemberTraits().xmlName??$:H.xmlName??O.getName();if(q[j]!=null)_[$]=this.readSchema(O,q[j])}return _}if(K.isDocumentSchema())return q;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${K.getName(!0)}`)}if(K.isListSchema())return[];if(K.isMapSchema()||K.isStructSchema())return{};return this.stringDeserializer.read(K,q)}parseXml(A){if(A.length){let q;try{q=SR.parseXML(A)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:A});throw w}let K="#text",Y=Object.keys(q)[0],z=q[Y];if(z[K])z[Y]=z[K],delete z[K];return Tc.getValueFromTextNode(z)}return{}}}class H$7 extends Pt{settings;buffer;constructor(A){super();this.settings=A}write(A,q,K=""){if(this.buffer===void 0)this.buffer="";let Y=G2.NormalizedSchema.of(A);if(K&&!K.endsWith("."))K+=".";if(Y.isBlobSchema()){if(typeof q==="string"||q instanceof Uint8Array)this.writeKey(K),this.writeValue((this.serdeContext?.base64Encoder??_B6.toBase64)(q))}else if(Y.isBooleanSchema()||Y.isNumericSchema()||Y.isStringSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q));else if(Y.isIdempotencyToken())this.writeKey(K),this.writeValue(oX.generateIdempotencyToken())}else if(Y.isBigIntegerSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q))}else if(Y.isBigDecimalSchema()){if(q!=null)this.writeKey(K),this.writeValue(q instanceof oX.NumericValue?q.string:String(q))}else if(Y.isTimestampSchema()){if(q instanceof Date)switch(this.writeKey(K),C0.determineTimestampFormat(Y,this.settings)){case 5:this.writeValue(q.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Tc.dateToUtcString(q));break;case 7:this.writeValue(String(q.getTime()/1000));break}}else if(Y.isDocumentSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${Y.getName(!0)}`);else if(Y.isListSchema()){if(Array.isArray(q))if(q.length===0){if(this.settings.serializeEmptyLists)this.writeKey(K),this.writeValue("")}else{let z=Y.getValueSchema(),w=this.settings.flattenLists||Y.getMergedTraits().xmlFlattened,_=1;for(let $ of q){if($==null)continue;let O=this.getKey("member",z.getMergedTraits().xmlName),H=w?`${K}${_}`:`${K}${O}.${_}`;this.write(z,$,H),++_}}}else if(Y.isMapSchema()){if(q&&typeof q==="object"){let z=Y.getKeySchema(),w=Y.getValueSchema(),_=Y.getMergedTraits().xmlFlattened,$=1;for(let[O,H]of Object.entries(q)){if(H==null)continue;let j=this.getKey("key",z.getMergedTraits().xmlName),J=_?`${K}${$}.${j}`:`${K}entry.${$}.${j}`,M=this.getKey("value",w.getMergedTraits().xmlName),D=_?`${K}${$}.${M}`:`${K}entry.${$}.${M}`;this.write(z,O,J),this.write(w,H,D),++$}}}else if(Y.isStructSchema()){if(q&&typeof q==="object")for(let[z,w]of Y.structIterator()){if(q[z]==null&&!w.isIdempotencyToken())continue;let _=this.getKey(z,w.getMergedTraits().xmlName),$=`${K}${_}`;this.write(w,q[z],$)}}else if(Y.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${Y.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let A=this.buffer;return delete this.buffer,A}getKey(A,q){let K=q??A;if(this.settings.capitalizeKeys)return K[0].toUpperCase()+K.slice(1);return K}writeKey(A){if(A.endsWith("."))A=A.slice(0,A.length-1);this.buffer+=`&${C0.extendedEncodeURIComponent(A)}=`}writeValue(A){this.buffer+=C0.extendedEncodeURIComponent(A)}}class JY8 extends C0.RpcProtocol{options;serializer;deserializer;mixin=new jP6;constructor(A){super({defaultNamespace:A.defaultNamespace});this.options=A;let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace,serializeEmptyLists:!0};this.serializer=new H$7(q),this.deserializer=new I21(q)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(A){this.serializer.setSerdeContext(A),this.deserializer.setSerdeContext(A)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":"application/x-www-form-urlencoded"}),G2.deref(A.input)==="unit"||!Y.body)Y.body="";let z=A.name.split("#")[1]??A.name;if(Y.body=`Action=${z}&Version=${this.options.version}`+Y.body,Y.body.endsWith("&"))Y.body=Y.body.slice(-1);return Y}async deserializeResponse(A,q,K){let Y=this.deserializer,z=G2.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let j=await C0.collectBody(K.body,q);if(j.byteLength>0)Object.assign(w,await Y.read(15,j));await this.handleError(A,q,K,w,this.deserializeMetadata(K))}for(let j in K.headers){let J=K.headers[j];delete K.headers[j],K.headers[j.toLowerCase()]=J}let _=A.name.split("#")[1]??A.name,$=z.isStructSchema()&&this.useNestedResult()?_+"Result":void 0,O=await C0.collectBody(K.body,q);if(O.byteLength>0)Object.assign(w,await Y.read(z,O,$));return{$metadata:this.deserializeMetadata(K),...w}}useNestedResult(){return!0}async handleError(A,q,K,Y,z){let w=this.loadQueryErrorCode(K,Y)??"Unknown",_=this.loadQueryError(Y),$=this.loadQueryErrorMessage(Y);_.message=$,_.Error={Type:_.Type,Code:_.Code,Message:$};let{errorSchema:O,errorMetadata:H}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,_,z,(X,P)=>{try{return X.getSchema(P)}catch(W){return X.find((Z)=>G2.NormalizedSchema.of(Z).getMergedTraits().awsQueryError?.[0]===P)}}),j=G2.NormalizedSchema.of(O),M=new(G2.TypeRegistry.for(O[1]).getErrorCtor(O)??Error)($),D={Error:_.Error};for(let[X,P]of j.structIterator()){let W=P.getMergedTraits().xmlName??X,Z=_[W]??Y[W];D[X]=this.deserializer.readSchema(P,Z)}throw this.mixin.decorateServiceException(Object.assign(M,H,{$fault:j.getMergedTraits().error,message:$},D),Y)}loadQueryErrorCode(A,q){let K=(q.Errors?.[0]?.Error??q.Errors?.Error??q.Error)?.Code;if(K!==void 0)return K;if(A.statusCode==404)return"NotFound"}loadQueryError(A){return A.Errors?.[0]?.Error??A.Errors?.Error??A.Error}loadQueryErrorMessage(A){let q=this.loadQueryError(A);return q?.message??q?.Message??A.message??A.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class j$7 extends JY8{options;constructor(A){super(A);this.options=A;let q={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1};Object.assign(this.serializer.settings,q)}useNestedResult(){return!1}}var J$7=(A,q)=>z$7(A,q).then((K)=>{if(K.length){let Y;try{Y=SR.parseXML(K)}catch($){if($&&typeof $==="object")Object.defineProperty($,"$responseBodyText",{value:K});throw $}let z="#text",w=Object.keys(Y)[0],_=Y[w];if(_[z])_[w]=_[z],delete _[z];return Tc.getValueFromTextNode(_)}return{}}),Or3=async(A,q)=>{let K=await J$7(A,q);if(K.Error)K.Error.message=K.Error.message??K.Error.Message;return K},M$7=(A,q)=>{if(q?.Error?.Code!==void 0)return q.Error.Code;if(q?.Code!==void 0)return q.Code;if(A.statusCode==404)return"NotFound"};class MY8 extends Pt{settings;stringBuffer;byteBuffer;buffer;constructor(A){super();this.settings=A}write(A,q){let K=G2.NormalizedSchema.of(A);if(K.isStringSchema()&&typeof q==="string")this.stringBuffer=q;else if(K.isBlobSchema())this.byteBuffer="byteLength"in q?q:(this.serdeContext?.base64Decoder??_B6.fromBase64)(q);else{this.buffer=this.writeStruct(K,q,void 0);let Y=K.getMergedTraits();if(Y.httpPayload&&!Y.xmlName)this.buffer.withName(K.getName())}}flush(){if(this.byteBuffer!==void 0){let q=this.byteBuffer;return delete this.byteBuffer,q}if(this.stringBuffer!==void 0){let q=this.stringBuffer;return delete this.stringBuffer,q}let A=this.buffer;if(this.settings.xmlNamespace){if(!A?.attributes?.xmlns)A.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,A.toString()}writeStruct(A,q,K){let Y=A.getMergedTraits(),z=A.isMemberSchema()&&!Y.httpPayload?A.getMemberTraits().xmlName??A.getMemberName():Y.xmlName??A.getName();if(!z||!A.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${A.getName(!0)}.`);let w=SR.XmlNode.of(z),[_,$]=this.getXmlnsAttribute(A,K);for(let[O,H]of A.structIterator()){let j=q[O];if(j!=null||H.isIdempotencyToken()){if(H.getMergedTraits().xmlAttribute){w.addAttribute(H.getMergedTraits().xmlName??O,this.writeSimple(H,j));continue}if(H.isListSchema())this.writeList(H,j,w,$);else if(H.isMapSchema())this.writeMap(H,j,w,$);else if(H.isStructSchema())w.addChildNode(this.writeStruct(H,j,$));else{let J=SR.XmlNode.of(H.getMergedTraits().xmlName??H.getMemberName());this.writeSimpleInto(H,j,J,$),w.addChildNode(J)}}}if($)w.addAttribute(_,$);return w}writeList(A,q,K,Y){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${A.getName(!0)}`);let z=A.getMergedTraits(),w=A.getValueSchema(),_=w.getMergedTraits(),$=!!_.sparse,O=!!z.xmlFlattened,[H,j]=this.getXmlnsAttribute(A,Y),J=(M,D)=>{if(w.isListSchema())this.writeList(w,Array.isArray(D)?D:[D],M,j);else if(w.isMapSchema())this.writeMap(w,D,M,j);else if(w.isStructSchema()){let X=this.writeStruct(w,D,j);M.addChildNode(X.withName(O?z.xmlName??A.getMemberName():_.xmlName??"member"))}else{let X=SR.XmlNode.of(O?z.xmlName??A.getMemberName():_.xmlName??"member");this.writeSimpleInto(w,D,X,j),M.addChildNode(X)}};if(O){for(let M of q)if($||M!=null)J(K,M)}else{let M=SR.XmlNode.of(z.xmlName??A.getMemberName());if(j)M.addAttribute(H,j);for(let D of q)if($||D!=null)J(M,D);K.addChildNode(M)}}writeMap(A,q,K,Y,z=!1){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${A.getName(!0)}`);let w=A.getMergedTraits(),_=A.getKeySchema(),O=_.getMergedTraits().xmlName??"key",H=A.getValueSchema(),j=H.getMergedTraits(),J=j.xmlName??"value",M=!!j.sparse,D=!!w.xmlFlattened,[X,P]=this.getXmlnsAttribute(A,Y),W=(Z,G,f)=>{let V=SR.XmlNode.of(O,G),[N,v]=this.getXmlnsAttribute(_,P);if(v)V.addAttribute(N,v);Z.addChildNode(V);let y=SR.XmlNode.of(J);if(H.isListSchema())this.writeList(H,f,y,P);else if(H.isMapSchema())this.writeMap(H,f,y,P,!0);else if(H.isStructSchema())y=this.writeStruct(H,f,P);else this.writeSimpleInto(H,f,y,P);Z.addChildNode(y)};if(D){for(let[Z,G]of Object.entries(q))if(M||G!=null){let f=SR.XmlNode.of(w.xmlName??A.getMemberName());W(f,Z,G),K.addChildNode(f)}}else{let Z;if(!z){if(Z=SR.XmlNode.of(w.xmlName??A.getMemberName()),P)Z.addAttribute(X,P);K.addChildNode(Z)}for(let[G,f]of Object.entries(q))if(M||f!=null){let V=SR.XmlNode.of("entry");W(V,G,f),(z?K:Z).addChildNode(V)}}}writeSimple(A,q){if(q===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let K=G2.NormalizedSchema.of(A),Y=null;if(q&&typeof q==="object")if(K.isBlobSchema())Y=(this.serdeContext?.base64Encoder??_B6.toBase64)(q);else if(K.isTimestampSchema()&&q instanceof Date)switch(C0.determineTimestampFormat(K,this.settings)){case 5:Y=q.toISOString().replace(".000Z","Z");break;case 6:Y=Tc.dateToUtcString(q);break;case 7:Y=String(q.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",q),Y=Tc.dateToUtcString(q);break}else if(K.isBigDecimalSchema()&&q){if(q instanceof oX.NumericValue)return q.string;return String(q)}else if(K.isMapSchema()||K.isListSchema())throw Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${K.getName(!0)}`);if(K.isBooleanSchema()||K.isNumericSchema()||K.isBigIntegerSchema()||K.isBigDecimalSchema())Y=String(q);if(K.isStringSchema())if(q===void 0&&K.isIdempotencyToken())Y=oX.generateIdempotencyToken();else Y=String(q);if(Y===null)throw Error(`Unhandled schema-value pair ${K.getName(!0)}=${q}`);return Y}writeSimpleInto(A,q,K,Y){let z=this.writeSimple(A,q),w=G2.NormalizedSchema.of(A),_=new SR.XmlText(z),[$,O]=this.getXmlnsAttribute(w,Y);if(O)K.addAttribute($,O);K.addChildNode(_)}getXmlnsAttribute(A,q){let K=A.getMergedTraits(),[Y,z]=K.xmlNamespace??[];if(z&&z!==q)return[Y?`xmlns:${Y}`:"xmlns",z];return[void 0,void 0]}}class DY8 extends Pt{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new MY8(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new I21(this.settings);return A.setSerdeContext(this.serdeContext),A}}class D$7 extends C0.HttpBindingProtocol{codec;serializer;deserializer;mixin=new jP6;constructor(A){super(A);let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace};this.codec=new DY8(q),this.serializer=new C0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new C0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=G2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.headers["content-type"]===this.getDefaultContentType()){if(typeof Y.body==="string")Y.body='<?xml version="1.0" encoding="UTF-8"?>'+Y.body}return Y}async deserializeResponse(A,q,K){return super.deserializeResponse(A,q,K)}async handleError(A,q,K,Y,z){let w=M$7(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=G2.NormalizedSchema.of(_),H=Y.Error?.message??Y.Error?.Message??Y.message??Y.Message??"Unknown",J=new(G2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().xmlName??D,W=Y.Error?.[P]??Y[P];M[D]=this.codec.createDeserializer().readSchema(X,W)}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/xml"}}Hr3.AWSSDKSigV4Signer=on3;Hr3.AwsEc2QueryProtocol=j$7;Hr3.AwsJson1_0Protocol=_$7;Hr3.AwsJson1_1Protocol=$$7;Hr3.AwsJsonRpcProtocol=h21;Hr3.AwsQueryProtocol=JY8;Hr3.AwsRestJsonProtocol=O$7;Hr3.AwsRestXmlProtocol=D$7;Hr3.AwsSdkSigV4ASigner=A$7;Hr3.AwsSdkSigV4Signer=S21;Hr3.AwsSmithyRpcV2CborProtocol=Y$7;Hr3.JsonCodec=C21;Hr3.JsonShapeDeserializer=HY8;Hr3.JsonShapeSerializer=jY8;Hr3.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=an3;Hr3.NODE_SIGV4A_CONFIG_OPTIONS=tn3;Hr3.XmlCodec=DY8;Hr3.XmlShapeDeserializer=I21;Hr3.XmlShapeSerializer=MY8;Hr3._toBool=Yr3;Hr3._toNum=zr3;Hr3._toStr=Kr3;Hr3.awsExpectUnion=$r3;Hr3.emitWarningIfUnsupportedVersion=cn3;Hr3.getBearerTokenEnvKey=q$7;Hr3.loadRestJsonErrorCode=OY8;Hr3.loadRestXmlErrorCode=M$7;Hr3.parseJsonBody=$Y8;Hr3.parseJsonErrorBody=_r3;Hr3.parseXmlBody=J$7;Hr3.parseXmlErrorBody=Or3;Hr3.resolveAWSSDKSigV4Config=en3;Hr3.resolveAwsSdkSigV4AConfig=sn3;Hr3.resolveAwsSdkSigV4Config=K$7;Hr3.setCredentialFeature=ln3;Hr3.setFeature=in3;Hr3.setTokenFeature=nn3;Hr3.state=YY8;Hr3.validateSigningProperties=_Y8});var cm=C(($o3)=>{var or3=pw(),ar3=pm(),sr3=K_7(),dm=O$(),Z$7=void 0;function tr3(A){if(A===void 0)return!0;return typeof A==="string"&&A.length<=50}function er3(A){let q=or3.normalizeProvider(A.userAgentAppId??Z$7),{customUserAgent:K}=A;return Object.assign(A,{customUserAgent:typeof K==="string"?[[K]]:K,userAgentAppId:async()=>{let Y=await q();if(!tr3(Y)){let z=A.logger?.constructor?.name==="NoOpLogger"||!A.logger?console:A.logger;if(typeof Y!=="string")z?.warn("userAgentAppId must be a string or undefined.");else if(Y.length>50)z?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return Y}})}var Ao3=/\d{12}\.ddb/;async function qo3(A,q,K){if(K.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor")dm.setFeature(A,"PROTOCOL_RPC_V2_CBOR","M");if(typeof q.retryStrategy==="function"){let w=await q.retryStrategy();if(typeof w.acquireInitialRetryToken==="function")if(w.constructor?.name?.includes("Adaptive"))dm.setFeature(A,"RETRY_MODE_ADAPTIVE","F");else dm.setFeature(A,"RETRY_MODE_STANDARD","E");else dm.setFeature(A,"RETRY_MODE_LEGACY","D")}if(typeof q.accountIdEndpointMode==="function"){let w=A.endpointV2;if(String(w?.url?.hostname).match(Ao3))dm.setFeature(A,"ACCOUNT_ID_ENDPOINT","O");switch(await q.accountIdEndpointMode?.()){case"disabled":dm.setFeature(A,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":dm.setFeature(A,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":dm.setFeature(A,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let z=A.__smithy_context?.selectedHttpAuthScheme?.identity;if(z?.$source){let w=z;if(w.accountId)dm.setFeature(A,"RESOLVED_ACCOUNT_ID","T");for(let[_,$]of Object.entries(w.$source??{}))dm.setFeature(A,_,$)}}var X$7="user-agent",XY8="x-amz-user-agent",P$7=" ",PY8="/",Ko3=/[^!$%&'*+\-.^_`|~\w]/g,Yo3=/[^!$%&'*+\-.^_`|~\w#]/g,W$7="-",zo3=1024;function wo3(A){let q="";for(let K in A){let Y=A[K];if(q.length+Y.length+1<=zo3){if(q.length)q+=","+Y;else q+=Y;continue}break}return q}var G$7=(A)=>(q,K)=>async(Y)=>{let{request:z}=Y;if(!sr3.HttpRequest.isInstance(z))return q(Y);let{headers:w}=z,_=K?.userAgent?.map(b21)||[],$=(await A.defaultUserAgentProvider()).map(b21);await qo3(K,A,Y);let O=K;$.push(`m/${wo3(Object.assign({},K.__smithy_context?.features,O.__aws_sdk_context?.features))}`);let H=A?.customUserAgent?.map(b21)||[],j=await A.userAgentAppId();if(j)$.push(b21(["app",`${j}`]));let J=ar3.getUserAgentPrefix(),M=(J?[J]:[]).concat([...$,..._,...H]).join(P$7),D=[...$.filter((X)=>X.startsWith("aws-sdk-")),...H].join(P$7);if(A.runtime!=="browser"){if(D)w[XY8]=w[XY8]?`${w[X$7]} ${D}`:D;w[X$7]=M}else w[XY8]=M;return q({...Y,request:z})},b21=(A)=>{let q=A[0].split(PY8).map((_)=>_.replace(Ko3,W$7)).join(PY8),K=A[1]?.replace(Yo3,W$7),Y=q.indexOf(PY8),z=q.substring(0,Y),w=q.substring(Y+1);if(z==="api")w=w.toLowerCase();return[z,w,K].filter((_)=>_&&_.length>0).reduce((_,$,O)=>{switch(O){case 0:return $;case 1:return`${_}/${$}`;default:return`${_}#${$}`}},"")},f$7={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},_o3=(A)=>({applyToStack:(q)=>{q.add(G$7(A),f$7)}});$o3.DEFAULT_UA_APP_ID=Z$7;$o3.getUserAgentMiddlewareOptions=f$7;$o3.getUserAgentPlugin=_o3;$o3.resolveUserAgentConfig=er3;$o3.userAgentMiddleware=G$7});var T$7=C((Po3)=>{var Do3=(A,q,K)=>{if(!(q in A))return;if(A[q]==="true")return!0;if(A[q]==="false")return!1;throw Error(`Cannot load ${K} "${q}". Expected "true" or "false", got ${A[q]}.`)},Xo3=(A,q,K)=>{if(!(q in A))return;let Y=parseInt(A[q],10);if(Number.isNaN(Y))throw TypeError(`Cannot load ${K} '${q}'. Expected number, got '${A[q]}'.`);return Y};Po3.SelectorType=void 0;(function(A){A.ENV="env",A.CONFIG="shared config entry"})(Po3.SelectorType||(Po3.SelectorType={}));Po3.booleanSelector=Do3;Po3.numberSelector=Xo3});var NJ=C((uo3)=>{var Wt=T$7(),x21=pZ(),Go3=Ab(),v$7="AWS_USE_DUALSTACK_ENDPOINT",k$7="use_dualstack_endpoint",fo3=!1,To3={environmentVariableSelector:(A)=>Wt.booleanSelector(A,v$7,Wt.SelectorType.ENV),configFileSelector:(A)=>Wt.booleanSelector(A,k$7,Wt.SelectorType.CONFIG),default:!1},E$7="AWS_USE_FIPS_ENDPOINT",L$7="use_fips_endpoint",Vo3=!1,No3={environmentVariableSelector:(A)=>Wt.booleanSelector(A,E$7,Wt.SelectorType.ENV),configFileSelector:(A)=>Wt.booleanSelector(A,L$7,Wt.SelectorType.CONFIG),default:!1},vo3=(A)=>{let{tls:q,endpoint:K,urlParser:Y,useDualstackEndpoint:z}=A;return Object.assign(A,{tls:q??!0,endpoint:x21.normalizeProvider(typeof K==="string"?Y(K):K),isCustomEndpoint:!0,useDualstackEndpoint:x21.normalizeProvider(z??!1)})},ko3=async(A)=>{let{tls:q=!0}=A,K=await A.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(K))throw Error("Invalid region in client config");let z=await A.useDualstackEndpoint(),w=await A.useFipsEndpoint(),{hostname:_}=await A.regionInfoProvider(K,{useDualstackEndpoint:z,useFipsEndpoint:w})??{};if(!_)throw Error("Cannot resolve hostname from client config");return A.urlParser(`${q?"https:":"http:"}//${_}`)},Eo3=(A)=>{let q=x21.normalizeProvider(A.useDualstackEndpoint??!1),{endpoint:K,useFipsEndpoint:Y,urlParser:z,tls:w}=A;return Object.assign(A,{tls:w??!0,endpoint:K?x21.normalizeProvider(typeof K==="string"?z(K):K):()=>ko3({...A,useDualstackEndpoint:q,useFipsEndpoint:Y}),isCustomEndpoint:!!K,useDualstackEndpoint:q})},y$7="AWS_REGION",R$7="region",Lo3={environmentVariableSelector:(A)=>A[y$7],configFileSelector:(A)=>A[R$7],default:()=>{throw Error("Region is missing")}},yo3={preferredFile:"credentials"},V$7=new Set,Ro3=(A,q=Go3.isValidHostLabel)=>{if(!V$7.has(A)&&!q(A))if(A==="*")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 Error(`Region not accepted: region="${A}" is not a valid hostname component.`);else V$7.add(A)},S$7=(A)=>typeof A==="string"&&(A.startsWith("fips-")||A.endsWith("-fips")),So3=(A)=>S$7(A)?["fips-aws-global","aws-fips"].includes(A)?"us-east-1":A.replace(/fips-(dkr-|prod-)?|-fips/,""):A,Co3=(A)=>{let{region:q,useFipsEndpoint:K}=A;if(!q)throw Error("Region is missing");return Object.assign(A,{region:async()=>{let Y=typeof q==="function"?await q():q,z=So3(Y);return Ro3(z),z},useFipsEndpoint:async()=>{let Y=typeof q==="string"?q:await q();if(S$7(Y))return!0;return typeof K!=="function"?Promise.resolve(!!K):K()}})},N$7=(A=[],{useFipsEndpoint:q,useDualstackEndpoint:K})=>A.find(({tags:Y})=>q===Y.includes("fips")&&K===Y.includes("dualstack"))?.hostname,ho3=(A,{regionHostname:q,partitionHostname:K})=>q?q:K?K.replace("{region}",A):void 0,Io3=(A,{partitionHash:q})=>Object.keys(q||{}).find((K)=>q[K].regions.includes(A))??"aws",bo3=(A,{signingRegion:q,regionRegex:K,useFipsEndpoint:Y})=>{if(q)return q;else if(Y){let z=K.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),w=A.match(z);if(w)return w[0].slice(1,-1)}},xo3=(A,{useFipsEndpoint:q=!1,useDualstackEndpoint:K=!1,signingService:Y,regionHash:z,partitionHash:w})=>{let _=Io3(A,{partitionHash:w}),$=A in z?A:w[_]?.endpoint??A,O={useFipsEndpoint:q,useDualstackEndpoint:K},H=N$7(z[$]?.variants,O),j=N$7(w[_]?.variants,O),J=ho3($,{regionHostname:H,partitionHostname:j});if(J===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:$,useFipsEndpoint:q,useDualstackEndpoint:K}}`);let M=bo3(J,{signingRegion:z[$]?.signingRegion,regionRegex:w[_].regionRegex,useFipsEndpoint:q});return{partition:_,signingService:Y,hostname:J,...M&&{signingRegion:M},...z[$]?.signingService&&{signingService:z[$].signingService}}};uo3.CONFIG_USE_DUALSTACK_ENDPOINT=k$7;uo3.CONFIG_USE_FIPS_ENDPOINT=L$7;uo3.DEFAULT_USE_DUALSTACK_ENDPOINT=fo3;uo3.DEFAULT_USE_FIPS_ENDPOINT=Vo3;uo3.ENV_USE_DUALSTACK_ENDPOINT=v$7;uo3.ENV_USE_FIPS_ENDPOINT=E$7;uo3.NODE_REGION_CONFIG_FILE_OPTIONS=yo3;uo3.NODE_REGION_CONFIG_OPTIONS=Lo3;uo3.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=To3;uo3.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=No3;uo3.REGION_ENV_NAME=y$7;uo3.REGION_INI_NAME=R$7;uo3.getRegionInfo=xo3;uo3.resolveCustomEndpointsConfig=vo3;uo3.resolveEndpointsConfig=Eo3;uo3.resolveRegionConfig=Co3});var C$7=C((Ya3)=>{Ya3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ya3.HttpAuthLocation||(Ya3.HttpAuthLocation={}));Ya3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ya3.HttpApiKeyAuthLocation||(Ya3.HttpApiKeyAuthLocation={}));Ya3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Ya3.EndpointURLScheme||(Ya3.EndpointURLScheme={}));Ya3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Ya3.AlgorithmId||(Ya3.AlgorithmId={}));var to3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Ya3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Ya3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},eo3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Aa3=(A)=>{return to3(A)},qa3=(A)=>{return eo3(A)};Ya3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Ya3.FieldPosition||(Ya3.FieldPosition={}));var Ka3="__smithy_context";Ya3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Ya3.IniSectionType||(Ya3.IniSectionType={}));Ya3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Ya3.RequestHandlerProtocol||(Ya3.RequestHandlerProtocol={}));Ya3.SMITHY_CONTEXT_KEY=Ka3;Ya3.getDefaultClientConfiguration=Aa3;Ya3.resolveDefaultRuntimeConfig=qa3});var x$7=C((Ma3)=>{var $a3=C$7(),Oa3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Ha3=(A)=>{return{httpHandler:A.httpHandler()}};class h$7{name;kind;values;constructor({name:A,kind:q=$a3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class I$7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class u21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new u21({...A,headers:{...A.headers}});if(q.query)q.query=ja3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return u21.clone(this)}}function ja3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class b$7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Ja3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}Ma3.Field=h$7;Ma3.Fields=I$7;Ma3.HttpRequest=u21;Ma3.HttpResponse=b$7;Ma3.getHttpHandlerExtensionConfiguration=Oa3;Ma3.isValidHostname=Ja3;Ma3.resolveHttpHandlerRuntimeConfig=Ha3});var Vc=C((Na3)=>{var Ta3=x$7(),u$7="content-length";function B$7(A){return(q)=>async(K)=>{let Y=K.request;if(Ta3.HttpRequest.isInstance(Y)){let{body:z,headers:w}=Y;if(z&&Object.keys(w).map((_)=>_.toLowerCase()).indexOf(u$7)===-1)try{let _=A(z);Y.headers={...Y.headers,[u$7]:String(_)}}catch(_){}}return q({...K,request:Y})}}var m$7={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Va3=(A)=>({applyToStack:(q)=>{q.add(B$7(A.bodyLengthChecker),m$7)}});Na3.contentLengthMiddleware=B$7;Na3.contentLengthMiddlewareOptions=m$7;Na3.getContentLengthPlugin=Va3});var d$7=C((U$7)=>{Object.defineProperty(U$7,"__esModule",{value:!0});U$7.getEndpointUrlConfig=void 0;var g$7=gm(),F$7="AWS_ENDPOINT_URL",Q$7="endpoint_url",La3=(A)=>({environmentVariableSelector:(q)=>{let K=A.split(" ").map((w)=>w.toUpperCase()),Y=q[[F$7,...K].join("_")];if(Y)return Y;let z=q[F$7];if(z)return z;return},configFileSelector:(q,K)=>{if(K&&q.services){let z=K[["services",q.services].join(g$7.CONFIG_PREFIX_SEPARATOR)];if(z){let w=A.split(" ").map(($)=>$.toLowerCase()),_=z[[w.join("_"),Q$7].join(g$7.CONFIG_PREFIX_SEPARATOR)];if(_)return _}}let Y=q[Q$7];if(Y)return Y;return},default:void 0});U$7.getEndpointUrlConfig=La3});var i$7=C((c$7)=>{Object.defineProperty(c$7,"__esModule",{value:!0});c$7.getEndpointFromConfig=void 0;var ya3=HN(),Ra3=d$7(),Sa3=async(A)=>(0,ya3.loadConfig)((0,Ra3.getEndpointUrlConfig)(A??""))();c$7.getEndpointFromConfig=Sa3});var qb=C((pa3)=>{var r$7=i$7(),n$7=LR(),Ca3=pw(),B21=pZ(),ha3=h58(),Ia3=async(A)=>{let q=A?.Bucket||"";if(typeof A.Bucket==="string")A.Bucket=q.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(ma3(q)){if(A.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!Ba3(q)||q.indexOf(".")!==-1&&!String(A.Endpoint).startsWith("http:")||q.toLowerCase()!==q||q.length<3)A.ForcePathStyle=!0;if(A.DisableMultiRegionAccessPoints)A.disableMultiRegionAccessPoints=!0,A.DisableMRAP=!0;return A},ba3=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,xa3=/(\d+\.){3}\d+/,ua3=/\.\./,Ba3=(A)=>ba3.test(A)&&!xa3.test(A)&&!ua3.test(A),ma3=(A)=>{let[q,K,Y,,,z]=A.split(":"),w=q==="arn"&&A.split(":").length>=6,_=Boolean(w&&K&&Y&&z);if(w&&!_)throw Error(`Invalid ARN: ${A} was an invalid ARN.`);return _},ga3=(A,q,K)=>{let Y=async()=>{let z=K[A]??K[q];if(typeof z==="function")return z();return z};if(A==="credentialScope"||q==="CredentialScope")return async()=>{let z=typeof K.credentials==="function"?await K.credentials():K.credentials;return z?.credentialScope??z?.CredentialScope};if(A==="accountId"||q==="AccountId")return async()=>{let z=typeof K.credentials==="function"?await K.credentials():K.credentials;return z?.accountId??z?.AccountId};if(A==="endpoint"||q==="endpoint")return async()=>{if(K.isCustomEndpoint===!1)return;let z=await Y();if(z&&typeof z==="object"){if("url"in z)return z.url.href;if("hostname"in z){let{protocol:w,hostname:_,port:$,path:O}=z;return`${w}//${_}${$?":"+$:""}${O}`}}return z};return Y},vY8=(A)=>{if(typeof A==="object"){if("url"in A)return n$7.parseUrl(A.url);return A}return n$7.parseUrl(A)},o$7=async(A,q,K,Y)=>{if(!K.isCustomEndpoint){let _;if(K.serviceConfiguredEndpoint)_=await K.serviceConfiguredEndpoint();else _=await r$7.getEndpointFromConfig(K.serviceId);if(_)K.endpoint=()=>Promise.resolve(vY8(_)),K.isCustomEndpoint=!0}let z=await a$7(A,q,K);if(typeof K.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");return K.endpointProvider(z,Y)},a$7=async(A,q,K)=>{let Y={},z=q?.getEndpointParameterInstructions?.()||{};for(let[w,_]of Object.entries(z))switch(_.type){case"staticContextParams":Y[w]=_.value;break;case"contextParams":Y[w]=A[_.name];break;case"clientContextParams":case"builtInParams":Y[w]=await ga3(_.name,w,K)();break;case"operationContextParams":Y[w]=_.get(A);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(_))}if(Object.keys(z).length===0)Object.assign(Y,K);if(String(K.serviceId).toLowerCase()==="s3")await Ia3(Y);return Y},s$7=({config:A,instructions:q})=>{return(K,Y)=>async(z)=>{if(A.isCustomEndpoint)Ca3.setFeature(Y,"ENDPOINT_OVERRIDE","N");let w=await o$7(z.input,{getEndpointParameterInstructions(){return q}},{...A},Y);Y.endpointV2=w,Y.authSchemes=w.properties?.authSchemes;let _=Y.authSchemes?.[0];if(_){Y.signing_region=_.signingRegion,Y.signing_service=_.signingName;let O=B21.getSmithyContext(Y)?.selectedHttpAuthScheme?.httpAuthOption;if(O)O.signingProperties=Object.assign(O.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return K({...z})}},t$7={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:ha3.serializerMiddlewareOption.name},Fa3=(A,q)=>({applyToStack:(K)=>{K.addRelativeTo(s$7({config:A,instructions:q}),t$7)}}),Qa3=(A)=>{let q=A.tls??!0,{endpoint:K,useDualstackEndpoint:Y,useFipsEndpoint:z}=A,w=K!=null?async()=>vY8(await B21.normalizeProvider(K)()):void 0,$=Object.assign(A,{endpoint:w,tls:q,isCustomEndpoint:!!K,useDualstackEndpoint:B21.normalizeProvider(Y??!1),useFipsEndpoint:B21.normalizeProvider(z??!1)}),O=void 0;return $.serviceConfiguredEndpoint=async()=>{if(A.serviceId&&!O)O=r$7.getEndpointFromConfig(A.serviceId);return O},$},Ua3=(A)=>{let{endpoint:q}=A;if(q===void 0)A.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return A};pa3.endpointMiddleware=s$7;pa3.endpointMiddlewareOptions=t$7;pa3.getEndpointFromInstructions=o$7;pa3.getEndpointPlugin=Fa3;pa3.resolveEndpointConfig=Qa3;pa3.resolveEndpointRequiredConfig=Ua3;pa3.resolveParams=a$7;pa3.toEndpointV1=vY8});var EY8=C((_s3)=>{var sa3=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],ta3=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ea3=["TimeoutError","RequestTimeout","RequestTimeoutException"],As3=[500,502,503,504],qs3=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Ks3=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],e$7=(A)=>A?.$retryable!==void 0,Ys3=(A)=>sa3.includes(A.name),AO7=(A)=>A.$metadata?.clockSkewCorrected,qO7=(A)=>{let q=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(A&&A instanceof TypeError))return!1;return q.has(A.message)},zs3=(A)=>A.$metadata?.httpStatusCode===429||ta3.includes(A.name)||A.$retryable?.throttling==!0,kY8=(A,q=0)=>e$7(A)||AO7(A)||ea3.includes(A.name)||qs3.includes(A?.code||"")||Ks3.includes(A?.code||"")||As3.includes(A.$metadata?.httpStatusCode||0)||qO7(A)||A.cause!==void 0&&q<=10&&kY8(A.cause,q+1),ws3=(A)=>{if(A.$metadata?.httpStatusCode!==void 0){let q=A.$metadata.httpStatusCode;if(500<=q&&q<=599&&!kY8(A))return!0;return!1}return!1};_s3.isBrowserNetworkError=qO7;_s3.isClockSkewCorrectedError=AO7;_s3.isClockSkewError=Ys3;_s3.isRetryableByTrait=e$7;_s3.isServerError=ws3;_s3.isThrottlingError=zs3;_s3.isTransientError=kY8});var lm=C((fs3)=>{var Xs3=EY8();fs3.RETRY_MODES=void 0;(function(A){A.STANDARD="standard",A.ADAPTIVE="adaptive"})(fs3.RETRY_MODES||(fs3.RETRY_MODES={}));var LY8=3,Ps3=fs3.RETRY_MODES.STANDARD;class m21{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;currentCapacity=0;enabled=!1;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(A){this.beta=A?.beta??0.7,this.minCapacity=A?.minCapacity??1,this.minFillRate=A?.minFillRate??0.5,this.scaleConstant=A?.scaleConstant??0.4,this.smooth=A?.smooth??0.8;let q=this.getCurrentTimeInSeconds();this.lastThrottleTime=q,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1000}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(A){if(!this.enabled)return;if(this.refillTokenBucket(),A>this.currentCapacity){let q=(A-this.currentCapacity)/this.fillRate*1000;await new Promise((K)=>m21.setTimeoutFn(K,q))}this.currentCapacity=this.currentCapacity-A}refillTokenBucket(){let A=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=A;return}let q=(A-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+q),this.lastTimestamp=A}updateClientSendingRate(A){let q;if(this.updateMeasuredRate(),Xs3.isThrottlingError(A)){let Y=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=Y,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),q=this.cubicThrottle(Y),this.enableTokenBucket()}else this.calculateTimeWindow(),q=this.cubicSuccess(this.getCurrentTimeInSeconds());let K=Math.min(q,2*this.measuredTxRate);this.updateTokenBucketRate(K)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(A){return this.getPrecise(A*this.beta)}cubicSuccess(A){return this.getPrecise(this.scaleConstant*Math.pow(A-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(A){this.refillTokenBucket(),this.fillRate=Math.max(A,this.minFillRate),this.maxCapacity=Math.max(A,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let A=this.getCurrentTimeInSeconds(),q=Math.floor(A*2)/2;if(this.requestCount++,q>this.lastTxRateBucket){let K=this.requestCount/(q-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(K*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=q}}getPrecise(A){return parseFloat(A.toFixed(8))}}var OB6=100,RY8=20000,YO7=500,yY8=500,zO7=5,wO7=10,_O7=1,Ws3="amz-sdk-invocation-id",Zs3="amz-sdk-request",Gs3=()=>{let A=OB6;return{computeNextBackoffDelay:(Y)=>{return Math.floor(Math.min(RY8,Math.random()*2**Y*A))},setDelayBase:(Y)=>{A=Y}}},KO7=({retryDelay:A,retryCount:q,retryCost:K})=>{return{getRetryCount:()=>q,getRetryDelay:()=>Math.min(RY8,A),getRetryCost:()=>K}};class g21{maxAttempts;mode=fs3.RETRY_MODES.STANDARD;capacity=yY8;retryBackoffStrategy=Gs3();maxAttemptsProvider;constructor(A){this.maxAttempts=A,this.maxAttemptsProvider=typeof A==="function"?A:async()=>A}async acquireInitialRetryToken(A){return KO7({retryDelay:OB6,retryCount:0})}async refreshRetryTokenForRetry(A,q){let K=await this.getMaxAttempts();if(this.shouldRetry(A,q,K)){let Y=q.errorType;this.retryBackoffStrategy.setDelayBase(Y==="THROTTLING"?YO7:OB6);let z=this.retryBackoffStrategy.computeNextBackoffDelay(A.getRetryCount()),w=q.retryAfterHint?Math.max(q.retryAfterHint.getTime()-Date.now()||0,z):z,_=this.getCapacityCost(Y);return this.capacity-=_,KO7({retryDelay:w,retryCount:A.getRetryCount()+1,retryCost:_})}throw Error("No retry token available")}recordSuccess(A){this.capacity=Math.max(yY8,this.capacity+(A.getRetryCost()??_O7))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(A){return console.warn(`Max attempts provider could not resolve. Using default of ${LY8}`),LY8}}shouldRetry(A,q,K){return A.getRetryCount()+1<K&&this.capacity>=this.getCapacityCost(q.errorType)&&this.isRetryableError(q.errorType)}getCapacityCost(A){return A==="TRANSIENT"?wO7:zO7}isRetryableError(A){return A==="THROTTLING"||A==="TRANSIENT"}}class $O7{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=fs3.RETRY_MODES.ADAPTIVE;constructor(A,q){this.maxAttemptsProvider=A;let{rateLimiter:K}=q??{};this.rateLimiter=K??new m21,this.standardRetryStrategy=new g21(A)}async acquireInitialRetryToken(A){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(A)}async refreshRetryTokenForRetry(A,q){return this.rateLimiter.updateClientSendingRate(q),this.standardRetryStrategy.refreshRetryTokenForRetry(A,q)}recordSuccess(A){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(A)}}class OO7 extends g21{computeNextBackoffDelay;constructor(A,q=OB6){super(typeof A==="function"?A:async()=>A);if(typeof q==="number")this.computeNextBackoffDelay=()=>q;else this.computeNextBackoffDelay=q}async refreshRetryTokenForRetry(A,q){let K=await super.refreshRetryTokenForRetry(A,q);return K.getRetryDelay=()=>this.computeNextBackoffDelay(K.getRetryCount()),K}}fs3.AdaptiveRetryStrategy=$O7;fs3.ConfiguredRetryStrategy=OO7;fs3.DEFAULT_MAX_ATTEMPTS=LY8;fs3.DEFAULT_RETRY_DELAY_BASE=OB6;fs3.DEFAULT_RETRY_MODE=Ps3;fs3.DefaultRateLimiter=m21;fs3.INITIAL_RETRY_TOKENS=yY8;fs3.INVOCATION_ID_HEADER=Ws3;fs3.MAXIMUM_RETRY_DELAY=RY8;fs3.NO_RETRY_INCREMENT=_O7;fs3.REQUEST_HEADER=Zs3;fs3.RETRY_COST=zO7;fs3.StandardRetryStrategy=g21;fs3.THROTTLING_RETRY_DELAY_BASE=YO7;fs3.TIMEOUT_RETRY_COST=wO7});var uY8=C((Qs3)=>{Qs3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Qs3.HttpAuthLocation||(Qs3.HttpAuthLocation={}));Qs3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Qs3.HttpApiKeyAuthLocation||(Qs3.HttpApiKeyAuthLocation={}));Qs3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Qs3.EndpointURLScheme||(Qs3.EndpointURLScheme={}));Qs3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Qs3.AlgorithmId||(Qs3.AlgorithmId={}));var us3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Qs3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Qs3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Bs3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},ms3=(A)=>{return us3(A)},gs3=(A)=>{return Bs3(A)};Qs3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Qs3.FieldPosition||(Qs3.FieldPosition={}));var Fs3="__smithy_context";Qs3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Qs3.IniSectionType||(Qs3.IniSectionType={}));Qs3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Qs3.RequestHandlerProtocol||(Qs3.RequestHandlerProtocol={}));Qs3.SMITHY_CONTEXT_KEY=Fs3;Qs3.getDefaultClientConfiguration=ms3;Qs3.resolveDefaultRuntimeConfig=gs3});var MO7=C((os3)=>{var cs3=uY8(),ls3=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},is3=(A)=>{return{httpHandler:A.httpHandler()}};class HO7{name;kind;values;constructor({name:A,kind:q=cs3.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class jO7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class F21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new F21({...A,headers:{...A.headers}});if(q.query)q.query=ns3(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return F21.clone(this)}}function ns3(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class JO7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function rs3(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}os3.Field=HO7;os3.Fields=jO7;os3.HttpRequest=F21;os3.HttpResponse=JO7;os3.getHttpHandlerExtensionConfiguration=ls3;os3.isValidHostname=rs3;os3.resolveHttpHandlerRuntimeConfig=is3});var EO7=C((DP6)=>{var PO7=Qm(),QY8=MN(),mY8=uY8(),Yt3=lO(),DO7=JN();class WO7{config;middlewareStack=PO7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var BY8="***SensitiveInformation***";function gY8(A,q){if(q==null)return q;let K=Yt3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return BY8;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return BY8}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return BY8}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=gY8(_,Y[w]);return z}return q}class UY8{middlewareStack=PO7.constructStack();schema;static classBuilder(){return new ZO7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[mY8.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class ZO7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends UY8{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?gY8.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?gY8.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var zt3="***SensitiveInformation***",wt3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class MP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return MP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===MP6)return MP6.isInstance(A);if(MP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var GO7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},fO7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=$t3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw GO7(_,q)},_t3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{fO7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},$t3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),Ot3=(A)=>{switch(A){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:30000};default:return{}}},XO7=!1,Ht3=(A)=>{if(A&&!XO7&&parseInt(A.substring(1,A.indexOf(".")))<16)XO7=!0},jt3=(A)=>{let q=[];for(let K in mY8.AlgorithmId){let Y=mY8.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Jt3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Mt3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},Dt3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},TO7=(A)=>{return Object.assign(jt3(A),Mt3(A))},Xt3=TO7,Pt3=(A)=>{return Object.assign(Jt3(A),Dt3(A))},Wt3=(A)=>Array.isArray(A)?A:[A],VO7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=VO7(A[K]);return A},Zt3=(A)=>{return A!=null};class NO7{trace(){}debug(){}info(){}warn(){}error(){}}function vO7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,Tt3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}kO7(Y,null,w,_)}return Y}var Gt3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},ft3=(A,q)=>{let K={};for(let Y in q)kO7(K,A,q,Y);return K},Tt3=(A,q,K)=>{return vO7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},kO7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=Vt3,O=Nt3,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},Vt3=(A)=>A!=null,Nt3=(A)=>A,vt3=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},kt3=(A)=>A.toISOString().replace(".000Z","Z"),FY8=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(FY8);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=FY8(A[K])}return q}return A};Object.defineProperty(DP6,"collectBody",{enumerable:!0,get:function(){return QY8.collectBody}});Object.defineProperty(DP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return QY8.extendedEncodeURIComponent}});Object.defineProperty(DP6,"resolvedPath",{enumerable:!0,get:function(){return QY8.resolvedPath}});DP6.Client=WO7;DP6.Command=UY8;DP6.NoOpLogger=NO7;DP6.SENSITIVE_STRING=zt3;DP6.ServiceException=MP6;DP6._json=FY8;DP6.convertMap=Gt3;DP6.createAggregatedClient=wt3;DP6.decorateServiceException=GO7;DP6.emitWarningIfUnsupportedVersion=Ht3;DP6.getArrayIfSingleItem=Wt3;DP6.getDefaultClientConfiguration=Xt3;DP6.getDefaultExtensionConfiguration=TO7;DP6.getValueFromTextNode=VO7;DP6.isSerializableHeaderValue=Zt3;DP6.loadConfigsForDefaultMode=Ot3;DP6.map=vO7;DP6.resolveDefaultRuntimeConfig=Pt3;DP6.serializeDateTime=kt3;DP6.serializeFloat=vt3;DP6.take=ft3;DP6.throwDefaultError=fO7;DP6.withBaseException=_t3;Object.keys(DO7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(DP6,A))Object.defineProperty(DP6,A,{enumerable:!0,get:function(){return DO7[A]}})})});var RO7=C((LO7)=>{Object.defineProperty(LO7,"__esModule",{value:!0});LO7.isStreamingPayload=void 0;var rt3=g6("stream"),ot3=(A)=>A?.body instanceof rt3.Readable||typeof ReadableStream<"u"&&A?.body instanceof ReadableStream;LO7.isStreamingPayload=ot3});var h0=C((Oe3)=>{var gH=lm(),XP6=MO7(),Zt=EY8(),CO7=d38(),SO7=pZ(),at3=EO7(),st3=RO7(),tt3=(A,q)=>{let K=A,Y=gH.NO_RETRY_INCREMENT,z=gH.RETRY_COST,w=gH.TIMEOUT_RETRY_COST,_=A,$=(J)=>J.name==="TimeoutError"?w:z,O=(J)=>$(J)<=_;return Object.freeze({hasRetryTokens:O,retrieveRetryTokens:(J)=>{if(!O(J))throw Error("No retry token available");let M=$(J);return _-=M,M},releaseRetryTokens:(J)=>{_+=J??Y,_=Math.min(_,K)}})},hO7=(A,q)=>Math.floor(Math.min(gH.MAXIMUM_RETRY_DELAY,Math.random()*2**q*A)),IO7=(A)=>{if(!A)return!1;return Zt.isRetryableByTrait(A)||Zt.isClockSkewError(A)||Zt.isThrottlingError(A)||Zt.isTransientError(A)},bO7=(A)=>{if(A instanceof Error)return A;if(A instanceof Object)return Object.assign(Error(),A);if(typeof A==="string")return Error(A);return Error(`AWS SDK error wrapper for ${A}`)};class cY8{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=gH.RETRY_MODES.STANDARD;constructor(A,q){this.maxAttemptsProvider=A,this.retryDecider=q?.retryDecider??IO7,this.delayDecider=q?.delayDecider??hO7,this.retryQuota=q?.retryQuota??tt3(gH.INITIAL_RETRY_TOKENS)}shouldRetry(A,q,K){return q<K&&this.retryDecider(A)&&this.retryQuota.hasRetryTokens(A)}async getMaxAttempts(){let A;try{A=await this.maxAttemptsProvider()}catch(q){A=gH.DEFAULT_MAX_ATTEMPTS}return A}async retry(A,q,K){let Y,z=0,w=0,_=await this.getMaxAttempts(),{request:$}=q;if(XP6.HttpRequest.isInstance($))$.headers[gH.INVOCATION_ID_HEADER]=CO7.v4();while(!0)try{if(XP6.HttpRequest.isInstance($))$.headers[gH.REQUEST_HEADER]=`attempt=${z+1}; max=${_}`;if(K?.beforeRequest)await K.beforeRequest();let{response:O,output:H}=await A(q);if(K?.afterRequest)K.afterRequest(O);return this.retryQuota.releaseRetryTokens(Y),H.$metadata.attempts=z+1,H.$metadata.totalRetryDelay=w,{response:O,output:H}}catch(O){let H=bO7(O);if(z++,this.shouldRetry(H,z,_)){Y=this.retryQuota.retrieveRetryTokens(H);let j=this.delayDecider(Zt.isThrottlingError(H)?gH.THROTTLING_RETRY_DELAY_BASE:gH.DEFAULT_RETRY_DELAY_BASE,z),J=et3(H.$response),M=Math.max(J||0,j);w+=M,await new Promise((D)=>setTimeout(D,M));continue}if(!H.$metadata)H.$metadata={};throw H.$metadata.attempts=z,H.$metadata.totalRetryDelay=w,H}}}var et3=(A)=>{if(!XP6.HttpResponse.isInstance(A))return;let q=Object.keys(A.headers).find((w)=>w.toLowerCase()==="retry-after");if(!q)return;let K=A.headers[q],Y=Number(K);if(!Number.isNaN(Y))return Y*1000;return new Date(K).getTime()-Date.now()};class xO7 extends cY8{rateLimiter;constructor(A,q){let{rateLimiter:K,...Y}=q??{};super(A,Y);this.rateLimiter=K??new gH.DefaultRateLimiter,this.mode=gH.RETRY_MODES.ADAPTIVE}async retry(A,q){return super.retry(A,q,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(K)=>{this.rateLimiter.updateClientSendingRate(K)}})}}var pY8="AWS_MAX_ATTEMPTS",dY8="max_attempts",Ae3={environmentVariableSelector:(A)=>{let q=A[pY8];if(!q)return;let K=parseInt(q);if(Number.isNaN(K))throw Error(`Environment variable ${pY8} mast be a number, got "${q}"`);return K},configFileSelector:(A)=>{let q=A[dY8];if(!q)return;let K=parseInt(q);if(Number.isNaN(K))throw Error(`Shared config file entry ${dY8} mast be a number, got "${q}"`);return K},default:gH.DEFAULT_MAX_ATTEMPTS},qe3=(A)=>{let{retryStrategy:q,retryMode:K,maxAttempts:Y}=A,z=SO7.normalizeProvider(Y??gH.DEFAULT_MAX_ATTEMPTS);return Object.assign(A,{maxAttempts:z,retryStrategy:async()=>{if(q)return q;if(await SO7.normalizeProvider(K)()===gH.RETRY_MODES.ADAPTIVE)return new gH.AdaptiveRetryStrategy(z);return new gH.StandardRetryStrategy(z)}})},uO7="AWS_RETRY_MODE",BO7="retry_mode",Ke3={environmentVariableSelector:(A)=>A[uO7],configFileSelector:(A)=>A[BO7],default:gH.DEFAULT_RETRY_MODE},mO7=()=>(A)=>async(q)=>{let{request:K}=q;if(XP6.HttpRequest.isInstance(K))delete K.headers[gH.INVOCATION_ID_HEADER],delete K.headers[gH.REQUEST_HEADER];return A(q)},gO7={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},Ye3=(A)=>({applyToStack:(q)=>{q.addRelativeTo(mO7(),gO7)}}),FO7=(A)=>(q,K)=>async(Y)=>{let z=await A.retryStrategy(),w=await A.maxAttempts();if(ze3(z)){z=z;let _=await z.acquireInitialRetryToken(K.partition_id),$=Error(),O=0,H=0,{request:j}=Y,J=XP6.HttpRequest.isInstance(j);if(J)j.headers[gH.INVOCATION_ID_HEADER]=CO7.v4();while(!0)try{if(J)j.headers[gH.REQUEST_HEADER]=`attempt=${O+1}; max=${w}`;let{response:M,output:D}=await q(Y);return z.recordSuccess(_),D.$metadata.attempts=O+1,D.$metadata.totalRetryDelay=H,{response:M,output:D}}catch(M){let D=we3(M);if($=bO7(M),J&&st3.isStreamingPayload(j))throw(K.logger instanceof at3.NoOpLogger?console:K.logger)?.warn("An error was encountered in a non-retryable streaming request."),$;try{_=await z.refreshRetryTokenForRetry(_,D)}catch(P){if(!$.$metadata)$.$metadata={};throw $.$metadata.attempts=O+1,$.$metadata.totalRetryDelay=H,$}O=_.getRetryCount();let X=_.getRetryDelay();H+=X,await new Promise((P)=>setTimeout(P,X))}}else{if(z=z,z?.mode)K.userAgent=[...K.userAgent||[],["cfg/retry-mode",z.mode]];return z.retry(q,Y)}},ze3=(A)=>typeof A.acquireInitialRetryToken<"u"&&typeof A.refreshRetryTokenForRetry<"u"&&typeof A.recordSuccess<"u",we3=(A)=>{let q={error:A,errorType:_e3(A)},K=UO7(A.$response);if(K)q.retryAfterHint=K;return q},_e3=(A)=>{if(Zt.isThrottlingError(A))return"THROTTLING";if(Zt.isTransientError(A))return"TRANSIENT";if(Zt.isServerError(A))return"SERVER_ERROR";return"CLIENT_ERROR"},QO7={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},$e3=(A)=>({applyToStack:(q)=>{q.add(FO7(A),QO7)}}),UO7=(A)=>{if(!XP6.HttpResponse.isInstance(A))return;let q=Object.keys(A.headers).find((w)=>w.toLowerCase()==="retry-after");if(!q)return;let K=A.headers[q],Y=Number(K);if(!Number.isNaN(Y))return new Date(Y*1000);return new Date(K)};Oe3.AdaptiveRetryStrategy=xO7;Oe3.CONFIG_MAX_ATTEMPTS=dY8;Oe3.CONFIG_RETRY_MODE=BO7;Oe3.ENV_MAX_ATTEMPTS=pY8;Oe3.ENV_RETRY_MODE=uO7;Oe3.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ae3;Oe3.NODE_RETRY_MODE_CONFIG_OPTIONS=Ke3;Oe3.StandardRetryStrategy=cY8;Oe3.defaultDelayDecider=hO7;Oe3.defaultRetryDecider=IO7;Oe3.getOmitRetryHeadersPlugin=Ye3;Oe3.getRetryAfterHint=UO7;Oe3.getRetryPlugin=$e3;Oe3.omitRetryHeadersMiddleware=mO7;Oe3.omitRetryHeadersMiddlewareOptions=gO7;Oe3.resolveRetryConfig=qe3;Oe3.retryMiddleware=FO7;Oe3.retryMiddlewareOptions=QO7});var sY8=C((Ie3)=>{Ie3.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ie3.HttpAuthLocation||(Ie3.HttpAuthLocation={}));Ie3.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Ie3.HttpApiKeyAuthLocation||(Ie3.HttpApiKeyAuthLocation={}));Ie3.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Ie3.EndpointURLScheme||(Ie3.EndpointURLScheme={}));Ie3.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Ie3.AlgorithmId||(Ie3.AlgorithmId={}));var ye3=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Ie3.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Ie3.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Re3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Se3=(A)=>{return ye3(A)},Ce3=(A)=>{return Re3(A)};Ie3.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Ie3.FieldPosition||(Ie3.FieldPosition={}));var he3="__smithy_context";Ie3.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Ie3.IniSectionType||(Ie3.IniSectionType={}));Ie3.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Ie3.RequestHandlerProtocol||(Ie3.RequestHandlerProtocol={}));Ie3.SMITHY_CONTEXT_KEY=he3;Ie3.getDefaultClientConfiguration=Se3;Ie3.resolveDefaultRuntimeConfig=Ce3});var df=C((WP6)=>{var cO7=Qm(),Kz8=MN(),eY8=sY8(),Be3=lO(),pO7=JN();class lO7{config;middlewareStack=cO7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var tY8="***SensitiveInformation***";function Az8(A,q){if(q==null)return q;let K=Be3.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return tY8;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return tY8}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return tY8}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=Az8(_,Y[w]);return z}return q}class Yz8{middlewareStack=cO7.constructStack();schema;static classBuilder(){return new iO7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[eY8.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class iO7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends Yz8{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?Az8.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?Az8.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var me3="***SensitiveInformation***",ge3=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class PP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return PP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===PP6)return PP6.isInstance(A);if(PP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var nO7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},rO7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=Qe3(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw nO7(_,q)},Fe3=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{rO7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},Qe3=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),Ue3=(A)=>{switch(A){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:30000};default:return{}}},dO7=!1,pe3=(A)=>{if(A&&!dO7&&parseInt(A.substring(1,A.indexOf(".")))<16)dO7=!0},de3=(A)=>{let q=[];for(let K in eY8.AlgorithmId){let Y=eY8.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},ce3=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},le3=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},ie3=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},oO7=(A)=>{return Object.assign(de3(A),le3(A))},ne3=oO7,re3=(A)=>{return Object.assign(ce3(A),ie3(A))},oe3=(A)=>Array.isArray(A)?A:[A],aO7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=aO7(A[K]);return A},ae3=(A)=>{return A!=null};class sO7{trace(){}debug(){}info(){}warn(){}error(){}}function tO7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,ee3(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}eO7(Y,null,w,_)}return Y}var se3=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},te3=(A,q)=>{let K={};for(let Y in q)eO7(K,A,q,Y);return K},ee3=(A,q,K)=>{return tO7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},eO7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=A65,O=q65,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},A65=(A)=>A!=null,q65=(A)=>A,K65=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},Y65=(A)=>A.toISOString().replace(".000Z","Z"),qz8=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(qz8);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=qz8(A[K])}return q}return A};Object.defineProperty(WP6,"collectBody",{enumerable:!0,get:function(){return Kz8.collectBody}});Object.defineProperty(WP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Kz8.extendedEncodeURIComponent}});Object.defineProperty(WP6,"resolvedPath",{enumerable:!0,get:function(){return Kz8.resolvedPath}});WP6.Client=lO7;WP6.Command=Yz8;WP6.NoOpLogger=sO7;WP6.SENSITIVE_STRING=me3;WP6.ServiceException=PP6;WP6._json=qz8;WP6.convertMap=se3;WP6.createAggregatedClient=ge3;WP6.decorateServiceException=nO7;WP6.emitWarningIfUnsupportedVersion=pe3;WP6.getArrayIfSingleItem=oe3;WP6.getDefaultClientConfiguration=ne3;WP6.getDefaultExtensionConfiguration=oO7;WP6.getValueFromTextNode=aO7;WP6.isSerializableHeaderValue=ae3;WP6.loadConfigsForDefaultMode=Ue3;WP6.map=tO7;WP6.resolveDefaultRuntimeConfig=re3;WP6.serializeDateTime=Y65;WP6.serializeFloat=K65;WP6.take=te3;WP6.throwDefaultError=rO7;WP6.withBaseException=Fe3;Object.keys(pO7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(WP6,A))Object.defineProperty(WP6,A,{enumerable:!0,get:function(){return pO7[A]}})})});var wz8=C((AH7)=>{Object.defineProperty(AH7,"__esModule",{value:!0});AH7.resolveHttpAuthSchemeConfig=AH7.defaultSSOOIDCHttpAuthSchemeProvider=AH7.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var y65=O$(),zz8=pZ(),R65=async(A,q,K)=>{return{operation:(0,zz8.getSmithyContext)(q).operation,region:await(0,zz8.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};AH7.defaultSSOOIDCHttpAuthSchemeParametersProvider=R65;function S65(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function C65(A){return{schemeId:"smithy.api#noAuth"}}var h65=(A)=>{let q=[];switch(A.operation){case"CreateToken":{q.push(C65(A));break}default:q.push(S65(A))}return q};AH7.defaultSSOOIDCHttpAuthSchemeProvider=h65;var I65=(A)=>{let q=(0,y65.resolveAwsSdkSigV4Config)(A);return Object.assign(q,{authSchemePreference:(0,zz8.normalizeProvider)(A.authSchemePreference??[])})};AH7.resolveHttpAuthSchemeConfig=I65});var Q21=C((IM2,u65)=>{u65.exports={name:"@aws-sdk/nested-clients",version:"3.936.0",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=18.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sts.d.ts","./sts.js","dist-*/**"],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/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},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"}}}});var Nc=C((U65)=>{var KH7=g6("os"),_z8=g6("process"),B65=cm(),YH7={isCrtAvailable:!1},m65=()=>{if(YH7.isCrtAvailable)return["md/crt-avail"];return null},zH7=({serviceId:A,clientVersion:q})=>{return async(K)=>{let Y=[["aws-sdk-js",q],["ua","2.1"],[`os/${KH7.platform()}`,KH7.release()],["lang/js"],["md/nodejs",`${_z8.versions.node}`]],z=m65();if(z)Y.push(z);if(A)Y.push([`api/${A}`,q]);if(_z8.env.AWS_EXECUTION_ENV)Y.push([`exec-env/${_z8.env.AWS_EXECUTION_ENV}`]);let w=await K?.userAgentAppId?.();return w?[...Y,[`app/${w}`]]:[...Y]}},g65=zH7,wH7="AWS_SDK_UA_APP_ID",_H7="sdk_ua_app_id",F65="sdk-ua-app-id",Q65={environmentVariableSelector:(A)=>A[wH7],configFileSelector:(A)=>A[_H7]??A[F65],default:B65.DEFAULT_UA_APP_ID};U65.NODE_APP_ID_CONFIG_OPTIONS=Q65;U65.UA_APP_ID_ENV_NAME=wH7;U65.UA_APP_ID_INI_NAME=_H7;U65.createDefaultUserAgentProvider=zH7;U65.crtAvailability=YH7;U65.defaultUserAgent=g65});var $H7=C((o65)=>{var r65=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";o65.isArrayBuffer=r65});var OH7=C((A15)=>{var s65=$H7(),$z8=g6("buffer"),t65=(A,q=0,K=A.byteLength-q)=>{if(!s65.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return $z8.Buffer.from(A,q,K)},e65=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?$z8.Buffer.from(A,q):$z8.Buffer.from(A)};A15.fromArrayBuffer=t65;A15.fromString=e65});var vc=C((w15)=>{var Oz8=OH7(),Y15=Z2(),z15=g6("buffer"),HH7=g6("crypto");class JH7{algorithmIdentifier;secret;hash;constructor(A,q){this.algorithmIdentifier=A,this.secret=q,this.reset()}update(A,q){this.hash.update(Y15.toUint8Array(jH7(A,q)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?HH7.createHmac(this.algorithmIdentifier,jH7(this.secret)):HH7.createHash(this.algorithmIdentifier)}}function jH7(A,q){if(z15.Buffer.isBuffer(A))return A;if(typeof A==="string")return Oz8.fromString(A,q);if(ArrayBuffer.isView(A))return Oz8.fromArrayBuffer(A.buffer,A.byteOffset,A.byteLength);return Oz8.fromArrayBuffer(A)}w15.Hash=JH7});var kc=C((O15)=>{var Hz8=g6("node:fs"),$15=(A)=>{if(!A)return 0;if(typeof A==="string")return Buffer.byteLength(A);else if(typeof A.byteLength==="number")return A.byteLength;else if(typeof A.size==="number")return A.size;else if(typeof A.start==="number"&&typeof A.end==="number")return A.end+1-A.start;else if(A instanceof Hz8.ReadStream){if(A.path!=null)return Hz8.lstatSync(A.path).size;else if(typeof A.fd==="number")return Hz8.fstatSync(A.fd).size}throw Error(`Body Length computation failed for ${A}`)};O15.calculateBodyLength=$15});var Lc=C((Z15)=>{var MH7=d98(),f2=lO(),Ec=a98(),I0=MN(),aX=JN(),JB6=e98(),XH7=Z2(),CR=KY8();class ZP6{queryCompat;constructor(A=!1){this.queryCompat=A}resolveRestContentType(A,q){let K=q.getMemberSchemas(),Y=Object.values(K).find((z)=>{return!!z.getMergedTraits().httpPayload});if(Y){let z=Y.getMergedTraits().mediaType;if(z)return z;else if(Y.isStringSchema())return"text/plain";else if(Y.isBlobSchema())return"application/octet-stream";else return A}else if(!q.isUnitSchema()){if(Object.values(K).find((w)=>{let{httpQuery:_,httpQueryParams:$,httpHeader:O,httpLabel:H,httpPrefixHeaders:j}=w.getMergedTraits();return!_&&!$&&!O&&!H&&j===void 0}))return A}}async getErrorSchemaOrThrowBaseException(A,q,K,Y,z,w){let _=q,$=A;if(A.includes("#"))[_,$]=A.split("#");let O={$metadata:z,$fault:K.statusCode<500?"client":"server"},H=f2.TypeRegistry.for(_);try{return{errorSchema:w?.(H,$)??H.getSchema(A),errorMetadata:O}}catch(j){Y.message=Y.message??Y.Message??"UnknownError";let J=f2.TypeRegistry.for("smithy.ts.sdk.synthetic."+_),M=J.getBaseException();if(M){let D=J.getErrorCtor(M)??Error;throw this.decorateServiceException(Object.assign(new D({name:$}),O),Y)}throw this.decorateServiceException(Object.assign(Error($),O),Y)}}decorateServiceException(A,q={}){if(this.queryCompat){let K=A.Message??q.Message,Y=Ec.decorateServiceException(A,q);if(K)Y.Message=K,Y.message=K;return Y}return Ec.decorateServiceException(A,q)}setQueryCompatError(A,q){let K=q.headers?.["x-amzn-query-error"];if(A!==void 0&&K!=null){let[Y,z]=K.split(";"),w=Object.entries(A),_={Code:Y,Type:z};Object.assign(A,_);for(let[$,O]of w)_[$]=O;delete _.__type,A.Error=_}}queryCompatOutput(A,q){if(A.Error)q.Error=A.Error;if(A.Type)q.Type=A.Type;if(A.Code)q.Code=A.Code}}class PH7 extends MH7.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:A,awsQueryCompatible:q}){super({defaultNamespace:A});this.awsQueryCompatible=!!q,this.mixin=new ZP6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";return Y}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=MH7.loadSmithyRpcV2CborErrorCode(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=f2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(f2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator())M[D]=this.deserializer.readValue(X,Y[D]);if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}var j15=(A)=>{if(A==null)return A;if(typeof A==="number"||typeof A==="bigint"){let q=Error(`Received number ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}if(typeof A==="boolean"){let q=Error(`Received boolean ${A} where a string was expected.`);return q.name="Warning",console.warn(q),String(A)}return A},J15=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=A.toLowerCase();if(A!==""&&q!=="false"&&q!=="true"){let K=Error(`Received string "${A}" where a boolean was expected.`);K.name="Warning",console.warn(K)}return A!==""&&q!=="false"}return A},M15=(A)=>{if(A==null)return A;if(typeof A==="string"){let q=Number(A);if(q.toString()!==A){let K=Error(`Received string "${A}" where a number was expected.`);return K.name="Warning",console.warn(K),A}return q}return A};class Gt{serdeContext;setSerdeContext(A){this.serdeContext=A}}function D15(A,q,K){if(K?.source){let Y=K.source;if(typeof q==="number"){if(q>Number.MAX_SAFE_INTEGER||q<Number.MIN_SAFE_INTEGER||Y!==String(q))if(Y.includes("."))return new aX.NumericValue(Y,"bigDecimal");else return BigInt(Y)}}return q}var WH7=(A,q)=>Ec.collectBody(A,q).then((K)=>(q?.utf8Encoder??XH7.toUtf8)(K)),jz8=(A,q)=>WH7(A,q).then((K)=>{if(K.length)try{return JSON.parse(K)}catch(Y){if(Y?.name==="SyntaxError")Object.defineProperty(Y,"$responseBodyText",{value:K});throw Y}return{}}),X15=async(A,q)=>{let K=await jz8(A,q);return K.message=K.message??K.Message,K},Jz8=(A,q)=>{let K=(w,_)=>Object.keys(w).find(($)=>$.toLowerCase()===_.toLowerCase()),Y=(w)=>{let _=w;if(typeof _==="number")_=_.toString();if(_.indexOf(",")>=0)_=_.split(",")[0];if(_.indexOf(":")>=0)_=_.split(":")[0];if(_.indexOf("#")>=0)_=_.split("#")[1];return _},z=K(A.headers,"x-amzn-errortype");if(z!==void 0)return Y(A.headers[z]);if(q&&typeof q==="object"){let w=K(q,"code");if(w&&q[w]!==void 0)return Y(q[w]);if(q.__type!==void 0)return Y(q.__type)}};class Mz8 extends Gt{settings;constructor(A){super();this.settings=A}async read(A,q){return this._read(A,typeof q==="string"?JSON.parse(q,D15):await jz8(q,this.serdeContext))}readObject(A,q){return this._read(A,q)}_read(A,q){let K=q!==null&&typeof q==="object",Y=f2.NormalizedSchema.of(A);if(Y.isListSchema()&&Array.isArray(q)){let w=Y.getValueSchema(),_=[],$=!!Y.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._read(w,O));return _}else if(Y.isMapSchema()&&K){let w=Y.getValueSchema(),_={},$=!!Y.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._read(w,H);return _}else if(Y.isStructSchema()&&K){let w={};for(let[_,$]of Y.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._read($,q[O]);if(H!=null)w[_]=H}return w}if(Y.isBlobSchema()&&typeof q==="string")return JB6.fromBase64(q);let z=Y.getMergedTraits().mediaType;if(Y.isStringSchema()&&typeof q==="string"&&z){if(z==="application/json"||z.endsWith("+json"))return aX.LazyJsonString.from(q)}if(Y.isTimestampSchema()&&q!=null)switch(I0.determineTimestampFormat(Y,this.settings)){case 5:return aX.parseRfc3339DateTimeWithOffset(q);case 6:return aX.parseRfc7231DateTime(q);case 7:return aX.parseEpochTimestamp(q);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",q),new Date(q)}if(Y.isBigIntegerSchema()&&(typeof q==="number"||typeof q==="string"))return BigInt(q);if(Y.isBigDecimalSchema()&&q!=null){if(q instanceof aX.NumericValue)return q;let w=q;if(w.type==="bigDecimal"&&"string"in w)return new aX.NumericValue(w.string,w.type);return new aX.NumericValue(String(q),"bigDecimal")}if(Y.isNumericSchema()&&typeof q==="string")switch(q){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}if(Y.isDocumentSchema())if(K){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof aX.NumericValue)w[_]=$;else w[_]=this._read(Y,$);return w}else return structuredClone(q);return q}}var DH7=String.fromCharCode(925);class ZH7{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(A,q)=>{if(q instanceof aX.NumericValue){let K=`${DH7+"nv"+this.counter++}_`+q.string;return this.values.set(`"${K}"`,q.string),K}if(typeof q==="bigint"){let K=q.toString(),Y=`${DH7+"b"+this.counter++}_`+K;return this.values.set(`"${Y}"`,K),Y}return q}}replaceInJson(A){if(this.stage===0)throw Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return A;for(let[q,K]of this.values)A=A.replace(q,K);return A}}class Dz8 extends Gt{settings;buffer;rootSchema;constructor(A){super();this.settings=A}write(A,q){this.rootSchema=f2.NormalizedSchema.of(A),this.buffer=this._write(this.rootSchema,q)}writeDiscriminatedDocument(A,q){if(this.write(A,q),typeof this.buffer==="object")this.buffer.__type=f2.NormalizedSchema.of(A).getName(!0)}flush(){let{rootSchema:A}=this;if(this.rootSchema=void 0,A?.isStructSchema()||A?.isDocumentSchema()){let q=new ZH7;return q.replaceInJson(JSON.stringify(this.buffer,q.createReplacer(),0))}return this.buffer}_write(A,q,K){let Y=q!==null&&typeof q==="object",z=f2.NormalizedSchema.of(A);if(z.isListSchema()&&Array.isArray(q)){let w=z.getValueSchema(),_=[],$=!!z.getMergedTraits().sparse;for(let O of q)if($||O!=null)_.push(this._write(w,O));return _}else if(z.isMapSchema()&&Y){let w=z.getValueSchema(),_={},$=!!z.getMergedTraits().sparse;for(let[O,H]of Object.entries(q))if($||H!=null)_[O]=this._write(w,H);return _}else if(z.isStructSchema()&&Y){let w={};for(let[_,$]of z.structIterator()){let O=this.settings.jsonName?$.getMergedTraits().jsonName??_:_,H=this._write($,q[_],z);if(H!==void 0)w[O]=H}return w}if(q===null&&K?.isStructSchema())return;if(z.isBlobSchema()&&(q instanceof Uint8Array||typeof q==="string")||z.isDocumentSchema()&&q instanceof Uint8Array){if(z===this.rootSchema)return q;return(this.serdeContext?.base64Encoder??JB6.toBase64)(q)}if((z.isTimestampSchema()||z.isDocumentSchema())&&q instanceof Date)switch(I0.determineTimestampFormat(z,this.settings)){case 5:return q.toISOString().replace(".000Z","Z");case 6:return aX.dateToUtcString(q);case 7:return q.getTime()/1000;default:return console.warn("Missing timestamp format, using epoch seconds",q),q.getTime()/1000}if(z.isNumericSchema()&&typeof q==="number"){if(Math.abs(q)===1/0||isNaN(q))return String(q)}if(z.isStringSchema()){if(typeof q>"u"&&z.isIdempotencyToken())return aX.generateIdempotencyToken();let w=z.getMergedTraits().mediaType;if(q!=null&&w){if(w==="application/json"||w.endsWith("+json"))return aX.LazyJsonString.from(q)}}if(z.isDocumentSchema())if(Y){let w=Array.isArray(q)?[]:{};for(let[_,$]of Object.entries(q))if($ instanceof aX.NumericValue)w[_]=$;else w[_]=this._write(z,$);return w}else return structuredClone(q);return q}}class U21 extends Gt{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new Dz8(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new Mz8(this.settings);return A.setSerdeContext(this.serdeContext),A}}class p21 extends I0.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A});this.serviceTarget=q,this.codec=new U21({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!K,this.mixin=new ZP6(this.awsQueryCompatible)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${A.name}`}),this.awsQueryCompatible)Y.headers["x-amzn-query-mode"]="true";if(f2.deref(A.input)==="unit"||!Y.body)Y.body="{}";return Y}getPayloadCodec(){return this.codec}async handleError(A,q,K,Y,z){if(this.awsQueryCompatible)this.mixin.setQueryCompatError(Y,K);let w=Jz8(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=f2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(f2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H),M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}if(this.awsQueryCompatible)this.mixin.queryCompatOutput(Y,M);throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}}class GH7 extends p21{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class fH7 extends p21{constructor({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K}){super({defaultNamespace:A,serviceTarget:q,awsQueryCompatible:K})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class TH7 extends I0.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ZP6;constructor({defaultNamespace:A}){super({defaultNamespace:A});let q={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new U21(q),this.serializer=new I0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new I0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(A){this.codec.setSerdeContext(A),super.setSerdeContext(A)}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=f2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.body==null&&Y.headers["content-type"]===this.getDefaultContentType())Y.body="{}";return Y}async deserializeResponse(A,q,K){let Y=await super.deserializeResponse(A,q,K),z=f2.NormalizedSchema.of(A.output);for(let[w,_]of z.structIterator())if(_.getMemberTraits().httpPayload&&!(w in Y))Y[w]=null;return Y}async handleError(A,q,K,Y,z){let w=Jz8(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=f2.NormalizedSchema.of(_),H=Y.message??Y.Message??"Unknown",J=new(f2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().jsonName??D;M[D]=this.codec.createDeserializer().readObject(X,Y[P])}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/json"}}var P15=(A)=>{if(A==null)return;if(typeof A==="object"&&"__type"in A)delete A.__type;return Ec.expectUnion(A)};class d21 extends Gt{settings;stringDeserializer;constructor(A){super();this.settings=A,this.stringDeserializer=new I0.FromStringShapeDeserializer(A)}setSerdeContext(A){this.serdeContext=A,this.stringDeserializer.setSerdeContext(A)}read(A,q,K){let Y=f2.NormalizedSchema.of(A),z=Y.getMemberSchemas();if(Y.isStructSchema()&&Y.isMemberSchema()&&!!Object.values(z).find((O)=>{return!!O.getMemberTraits().eventPayload})){let O={},H=Object.keys(z)[0];if(z[H].isBlobSchema())O[H]=q;else O[H]=this.read(z[H],q);return O}let _=(this.serdeContext?.utf8Encoder??XH7.toUtf8)(q),$=this.parseXml(_);return this.readSchema(A,K?$[K]:$)}readSchema(A,q){let K=f2.NormalizedSchema.of(A);if(K.isUnitSchema())return;let Y=K.getMergedTraits();if(K.isListSchema()&&!Array.isArray(q))return this.readSchema(K,[q]);if(q==null)return q;if(typeof q==="object"){let z=!!Y.sparse,w=!!Y.xmlFlattened;if(K.isListSchema()){let $=K.getValueSchema(),O=[],H=$.getMergedTraits().xmlName??"member",j=w?q:(q[0]??q)[H],J=Array.isArray(j)?j:[j];for(let M of J)if(M!=null||z)O.push(this.readSchema($,M));return O}let _={};if(K.isMapSchema()){let $=K.getKeySchema(),O=K.getValueSchema(),H;if(w)H=Array.isArray(q)?q:[q];else H=Array.isArray(q.entry)?q.entry:[q.entry];let j=$.getMergedTraits().xmlName??"key",J=O.getMergedTraits().xmlName??"value";for(let M of H){let D=M[j],X=M[J];if(X!=null||z)_[D]=this.readSchema(O,X)}return _}if(K.isStructSchema()){for(let[$,O]of K.structIterator()){let H=O.getMergedTraits(),j=!H.httpPayload?O.getMemberTraits().xmlName??$:H.xmlName??O.getName();if(q[j]!=null)_[$]=this.readSchema(O,q[j])}return _}if(K.isDocumentSchema())return q;throw Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${K.getName(!0)}`)}if(K.isListSchema())return[];if(K.isMapSchema()||K.isStructSchema())return{};return this.stringDeserializer.read(K,q)}parseXml(A){if(A.length){let q;try{q=CR.parseXML(A)}catch(w){if(w&&typeof w==="object")Object.defineProperty(w,"$responseBodyText",{value:A});throw w}let K="#text",Y=Object.keys(q)[0],z=q[Y];if(z[K])z[Y]=z[K],delete z[K];return Ec.getValueFromTextNode(z)}return{}}}class VH7 extends Gt{settings;buffer;constructor(A){super();this.settings=A}write(A,q,K=""){if(this.buffer===void 0)this.buffer="";let Y=f2.NormalizedSchema.of(A);if(K&&!K.endsWith("."))K+=".";if(Y.isBlobSchema()){if(typeof q==="string"||q instanceof Uint8Array)this.writeKey(K),this.writeValue((this.serdeContext?.base64Encoder??JB6.toBase64)(q))}else if(Y.isBooleanSchema()||Y.isNumericSchema()||Y.isStringSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q));else if(Y.isIdempotencyToken())this.writeKey(K),this.writeValue(aX.generateIdempotencyToken())}else if(Y.isBigIntegerSchema()){if(q!=null)this.writeKey(K),this.writeValue(String(q))}else if(Y.isBigDecimalSchema()){if(q!=null)this.writeKey(K),this.writeValue(q instanceof aX.NumericValue?q.string:String(q))}else if(Y.isTimestampSchema()){if(q instanceof Date)switch(this.writeKey(K),I0.determineTimestampFormat(Y,this.settings)){case 5:this.writeValue(q.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(Ec.dateToUtcString(q));break;case 7:this.writeValue(String(q.getTime()/1000));break}}else if(Y.isDocumentSchema())throw Error(`@aws-sdk/core/protocols - QuerySerializer unsupported document type ${Y.getName(!0)}`);else if(Y.isListSchema()){if(Array.isArray(q))if(q.length===0){if(this.settings.serializeEmptyLists)this.writeKey(K),this.writeValue("")}else{let z=Y.getValueSchema(),w=this.settings.flattenLists||Y.getMergedTraits().xmlFlattened,_=1;for(let $ of q){if($==null)continue;let O=this.getKey("member",z.getMergedTraits().xmlName),H=w?`${K}${_}`:`${K}${O}.${_}`;this.write(z,$,H),++_}}}else if(Y.isMapSchema()){if(q&&typeof q==="object"){let z=Y.getKeySchema(),w=Y.getValueSchema(),_=Y.getMergedTraits().xmlFlattened,$=1;for(let[O,H]of Object.entries(q)){if(H==null)continue;let j=this.getKey("key",z.getMergedTraits().xmlName),J=_?`${K}${$}.${j}`:`${K}entry.${$}.${j}`,M=this.getKey("value",w.getMergedTraits().xmlName),D=_?`${K}${$}.${M}`:`${K}entry.${$}.${M}`;this.write(z,O,J),this.write(w,H,D),++$}}}else if(Y.isStructSchema()){if(q&&typeof q==="object")for(let[z,w]of Y.structIterator()){if(q[z]==null&&!w.isIdempotencyToken())continue;let _=this.getKey(z,w.getMergedTraits().xmlName),$=`${K}${_}`;this.write(w,q[z],$)}}else if(Y.isUnitSchema());else throw Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${Y.getName(!0)}`)}flush(){if(this.buffer===void 0)throw Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let A=this.buffer;return delete this.buffer,A}getKey(A,q){let K=q??A;if(this.settings.capitalizeKeys)return K[0].toUpperCase()+K.slice(1);return K}writeKey(A){if(A.endsWith("."))A=A.slice(0,A.length-1);this.buffer+=`&${I0.extendedEncodeURIComponent(A)}=`}writeValue(A){this.buffer+=I0.extendedEncodeURIComponent(A)}}class Xz8 extends I0.RpcProtocol{options;serializer;deserializer;mixin=new ZP6;constructor(A){super({defaultNamespace:A.defaultNamespace});this.options=A;let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace,serializeEmptyLists:!0};this.serializer=new VH7(q),this.deserializer=new d21(q)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(A){this.serializer.setSerdeContext(A),this.deserializer.setSerdeContext(A)}getPayloadCodec(){throw Error("AWSQuery protocol has no payload codec.")}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K);if(!Y.path.endsWith("/"))Y.path+="/";if(Object.assign(Y.headers,{"content-type":"application/x-www-form-urlencoded"}),f2.deref(A.input)==="unit"||!Y.body)Y.body="";let z=A.name.split("#")[1]??A.name;if(Y.body=`Action=${z}&Version=${this.options.version}`+Y.body,Y.body.endsWith("&"))Y.body=Y.body.slice(-1);return Y}async deserializeResponse(A,q,K){let Y=this.deserializer,z=f2.NormalizedSchema.of(A.output),w={};if(K.statusCode>=300){let j=await I0.collectBody(K.body,q);if(j.byteLength>0)Object.assign(w,await Y.read(15,j));await this.handleError(A,q,K,w,this.deserializeMetadata(K))}for(let j in K.headers){let J=K.headers[j];delete K.headers[j],K.headers[j.toLowerCase()]=J}let _=A.name.split("#")[1]??A.name,$=z.isStructSchema()&&this.useNestedResult()?_+"Result":void 0,O=await I0.collectBody(K.body,q);if(O.byteLength>0)Object.assign(w,await Y.read(z,O,$));return{$metadata:this.deserializeMetadata(K),...w}}useNestedResult(){return!0}async handleError(A,q,K,Y,z){let w=this.loadQueryErrorCode(K,Y)??"Unknown",_=this.loadQueryError(Y),$=this.loadQueryErrorMessage(Y);_.message=$,_.Error={Type:_.Type,Code:_.Code,Message:$};let{errorSchema:O,errorMetadata:H}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,_,z,(X,P)=>{try{return X.getSchema(P)}catch(W){return X.find((Z)=>f2.NormalizedSchema.of(Z).getMergedTraits().awsQueryError?.[0]===P)}}),j=f2.NormalizedSchema.of(O),M=new(f2.TypeRegistry.for(O[1]).getErrorCtor(O)??Error)($),D={Error:_.Error};for(let[X,P]of j.structIterator()){let W=P.getMergedTraits().xmlName??X,Z=_[W]??Y[W];D[X]=this.deserializer.readSchema(P,Z)}throw this.mixin.decorateServiceException(Object.assign(M,H,{$fault:j.getMergedTraits().error,message:$},D),Y)}loadQueryErrorCode(A,q){let K=(q.Errors?.[0]?.Error??q.Errors?.Error??q.Error)?.Code;if(K!==void 0)return K;if(A.statusCode==404)return"NotFound"}loadQueryError(A){return A.Errors?.[0]?.Error??A.Errors?.Error??A.Error}loadQueryErrorMessage(A){let q=this.loadQueryError(A);return q?.message??q?.Message??A.message??A.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class NH7 extends Xz8{options;constructor(A){super(A);this.options=A;let q={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1};Object.assign(this.serializer.settings,q)}useNestedResult(){return!1}}var vH7=(A,q)=>WH7(A,q).then((K)=>{if(K.length){let Y;try{Y=CR.parseXML(K)}catch($){if($&&typeof $==="object")Object.defineProperty($,"$responseBodyText",{value:K});throw $}let z="#text",w=Object.keys(Y)[0],_=Y[w];if(_[z])_[w]=_[z],delete _[z];return Ec.getValueFromTextNode(_)}return{}}),W15=async(A,q)=>{let K=await vH7(A,q);if(K.Error)K.Error.message=K.Error.message??K.Error.Message;return K},kH7=(A,q)=>{if(q?.Error?.Code!==void 0)return q.Error.Code;if(q?.Code!==void 0)return q.Code;if(A.statusCode==404)return"NotFound"};class Pz8 extends Gt{settings;stringBuffer;byteBuffer;buffer;constructor(A){super();this.settings=A}write(A,q){let K=f2.NormalizedSchema.of(A);if(K.isStringSchema()&&typeof q==="string")this.stringBuffer=q;else if(K.isBlobSchema())this.byteBuffer="byteLength"in q?q:(this.serdeContext?.base64Decoder??JB6.fromBase64)(q);else{this.buffer=this.writeStruct(K,q,void 0);let Y=K.getMergedTraits();if(Y.httpPayload&&!Y.xmlName)this.buffer.withName(K.getName())}}flush(){if(this.byteBuffer!==void 0){let q=this.byteBuffer;return delete this.byteBuffer,q}if(this.stringBuffer!==void 0){let q=this.stringBuffer;return delete this.stringBuffer,q}let A=this.buffer;if(this.settings.xmlNamespace){if(!A?.attributes?.xmlns)A.addAttribute("xmlns",this.settings.xmlNamespace)}return delete this.buffer,A.toString()}writeStruct(A,q,K){let Y=A.getMergedTraits(),z=A.isMemberSchema()&&!Y.httpPayload?A.getMemberTraits().xmlName??A.getMemberName():Y.xmlName??A.getName();if(!z||!A.isStructSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${A.getName(!0)}.`);let w=CR.XmlNode.of(z),[_,$]=this.getXmlnsAttribute(A,K);for(let[O,H]of A.structIterator()){let j=q[O];if(j!=null||H.isIdempotencyToken()){if(H.getMergedTraits().xmlAttribute){w.addAttribute(H.getMergedTraits().xmlName??O,this.writeSimple(H,j));continue}if(H.isListSchema())this.writeList(H,j,w,$);else if(H.isMapSchema())this.writeMap(H,j,w,$);else if(H.isStructSchema())w.addChildNode(this.writeStruct(H,j,$));else{let J=CR.XmlNode.of(H.getMergedTraits().xmlName??H.getMemberName());this.writeSimpleInto(H,j,J,$),w.addChildNode(J)}}}if($)w.addAttribute(_,$);return w}writeList(A,q,K,Y){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${A.getName(!0)}`);let z=A.getMergedTraits(),w=A.getValueSchema(),_=w.getMergedTraits(),$=!!_.sparse,O=!!z.xmlFlattened,[H,j]=this.getXmlnsAttribute(A,Y),J=(M,D)=>{if(w.isListSchema())this.writeList(w,Array.isArray(D)?D:[D],M,j);else if(w.isMapSchema())this.writeMap(w,D,M,j);else if(w.isStructSchema()){let X=this.writeStruct(w,D,j);M.addChildNode(X.withName(O?z.xmlName??A.getMemberName():_.xmlName??"member"))}else{let X=CR.XmlNode.of(O?z.xmlName??A.getMemberName():_.xmlName??"member");this.writeSimpleInto(w,D,X,j),M.addChildNode(X)}};if(O){for(let M of q)if($||M!=null)J(K,M)}else{let M=CR.XmlNode.of(z.xmlName??A.getMemberName());if(j)M.addAttribute(H,j);for(let D of q)if($||D!=null)J(M,D);K.addChildNode(M)}}writeMap(A,q,K,Y,z=!1){if(!A.isMemberSchema())throw Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${A.getName(!0)}`);let w=A.getMergedTraits(),_=A.getKeySchema(),O=_.getMergedTraits().xmlName??"key",H=A.getValueSchema(),j=H.getMergedTraits(),J=j.xmlName??"value",M=!!j.sparse,D=!!w.xmlFlattened,[X,P]=this.getXmlnsAttribute(A,Y),W=(Z,G,f)=>{let V=CR.XmlNode.of(O,G),[N,v]=this.getXmlnsAttribute(_,P);if(v)V.addAttribute(N,v);Z.addChildNode(V);let y=CR.XmlNode.of(J);if(H.isListSchema())this.writeList(H,f,y,P);else if(H.isMapSchema())this.writeMap(H,f,y,P,!0);else if(H.isStructSchema())y=this.writeStruct(H,f,P);else this.writeSimpleInto(H,f,y,P);Z.addChildNode(y)};if(D){for(let[Z,G]of Object.entries(q))if(M||G!=null){let f=CR.XmlNode.of(w.xmlName??A.getMemberName());W(f,Z,G),K.addChildNode(f)}}else{let Z;if(!z){if(Z=CR.XmlNode.of(w.xmlName??A.getMemberName()),P)Z.addAttribute(X,P);K.addChildNode(Z)}for(let[G,f]of Object.entries(q))if(M||f!=null){let V=CR.XmlNode.of("entry");W(V,G,f),(z?K:Z).addChildNode(V)}}}writeSimple(A,q){if(q===null)throw Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let K=f2.NormalizedSchema.of(A),Y=null;if(q&&typeof q==="object")if(K.isBlobSchema())Y=(this.serdeContext?.base64Encoder??JB6.toBase64)(q);else if(K.isTimestampSchema()&&q instanceof Date)switch(I0.determineTimestampFormat(K,this.settings)){case 5:Y=q.toISOString().replace(".000Z","Z");break;case 6:Y=Ec.dateToUtcString(q);break;case 7:Y=String(q.getTime()/1000);break;default:console.warn("Missing timestamp format, using http date",q),Y=Ec.dateToUtcString(q);break}else if(K.isBigDecimalSchema()&&q){if(q instanceof aX.NumericValue)return q.string;return String(q)}else if(K.isMapSchema()||K.isListSchema())throw Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.");else throw Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${K.getName(!0)}`);if(K.isBooleanSchema()||K.isNumericSchema()||K.isBigIntegerSchema()||K.isBigDecimalSchema())Y=String(q);if(K.isStringSchema())if(q===void 0&&K.isIdempotencyToken())Y=aX.generateIdempotencyToken();else Y=String(q);if(Y===null)throw Error(`Unhandled schema-value pair ${K.getName(!0)}=${q}`);return Y}writeSimpleInto(A,q,K,Y){let z=this.writeSimple(A,q),w=f2.NormalizedSchema.of(A),_=new CR.XmlText(z),[$,O]=this.getXmlnsAttribute(w,Y);if(O)K.addAttribute($,O);K.addChildNode(_)}getXmlnsAttribute(A,q){let K=A.getMergedTraits(),[Y,z]=K.xmlNamespace??[];if(z&&z!==q)return[Y?`xmlns:${Y}`:"xmlns",z];return[void 0,void 0]}}class Wz8 extends Gt{settings;constructor(A){super();this.settings=A}createSerializer(){let A=new Pz8(this.settings);return A.setSerdeContext(this.serdeContext),A}createDeserializer(){let A=new d21(this.settings);return A.setSerdeContext(this.serdeContext),A}}class EH7 extends I0.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ZP6;constructor(A){super(A);let q={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:A.xmlNamespace,serviceNamespace:A.defaultNamespace};this.codec=new Wz8(q),this.serializer=new I0.HttpInterceptingShapeSerializer(this.codec.createSerializer(),q),this.deserializer=new I0.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),q)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(A,q,K){let Y=await super.serializeRequest(A,q,K),z=f2.NormalizedSchema.of(A.input);if(!Y.headers["content-type"]){let w=this.mixin.resolveRestContentType(this.getDefaultContentType(),z);if(w)Y.headers["content-type"]=w}if(Y.headers["content-type"]===this.getDefaultContentType()){if(typeof Y.body==="string")Y.body='<?xml version="1.0" encoding="UTF-8"?>'+Y.body}return Y}async deserializeResponse(A,q,K){return super.deserializeResponse(A,q,K)}async handleError(A,q,K,Y,z){let w=kH7(K,Y)??"Unknown",{errorSchema:_,errorMetadata:$}=await this.mixin.getErrorSchemaOrThrowBaseException(w,this.options.defaultNamespace,K,Y,z),O=f2.NormalizedSchema.of(_),H=Y.Error?.message??Y.Error?.Message??Y.message??Y.Message??"Unknown",J=new(f2.TypeRegistry.for(_[1]).getErrorCtor(_)??Error)(H);await this.deserializeHttpMessage(_,q,K,Y);let M={};for(let[D,X]of O.structIterator()){let P=X.getMergedTraits().xmlName??D,W=Y.Error?.[P]??Y[P];M[D]=this.codec.createDeserializer().readSchema(X,W)}throw this.mixin.decorateServiceException(Object.assign(J,$,{$fault:O.getMergedTraits().error,message:H},M),Y)}getDefaultContentType(){return"application/xml"}}Z15.AwsEc2QueryProtocol=NH7;Z15.AwsJson1_0Protocol=GH7;Z15.AwsJson1_1Protocol=fH7;Z15.AwsJsonRpcProtocol=p21;Z15.AwsQueryProtocol=Xz8;Z15.AwsRestJsonProtocol=TH7;Z15.AwsRestXmlProtocol=EH7;Z15.AwsSmithyRpcV2CborProtocol=PH7;Z15.JsonCodec=U21;Z15.JsonShapeDeserializer=Mz8;Z15.JsonShapeSerializer=Dz8;Z15.XmlCodec=Wz8;Z15.XmlShapeDeserializer=d21;Z15.XmlShapeSerializer=Pz8;Z15._toBool=J15;Z15._toNum=M15;Z15._toStr=j15;Z15.awsExpectUnion=P15;Z15.loadRestJsonErrorCode=Jz8;Z15.loadRestXmlErrorCode=kH7;Z15.parseJsonBody=jz8;Z15.parseJsonErrorBody=X15;Z15.parseXmlBody=vH7;Z15.parseXmlErrorBody=W15});var LH7=C((d15)=>{var p15=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";d15.isArrayBuffer=p15});var Gz8=C((r15)=>{var l15=LH7(),Zz8=g6("buffer"),i15=(A,q=0,K=A.byteLength-q)=>{if(!l15.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return Zz8.Buffer.from(A,q,K)},n15=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?Zz8.Buffer.from(A,q):Zz8.Buffer.from(A)};r15.fromArrayBuffer=i15;r15.fromString=n15});var SH7=C((yH7)=>{Object.defineProperty(yH7,"__esModule",{value:!0});yH7.fromBase64=void 0;var s15=Gz8(),t15=/^[A-Za-z0-9+/]*={0,2}$/,e15=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!t15.exec(A))throw TypeError("Invalid base64 string.");let q=(0,s15.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};yH7.fromBase64=e15});var IH7=C((CH7)=>{Object.defineProperty(CH7,"__esModule",{value:!0});CH7.toBase64=void 0;var A85=Gz8(),q85=Z2(),K85=(A)=>{let q;if(typeof A==="string")q=(0,q85.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,A85.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};CH7.toBase64=K85});var c21=C((MB6)=>{var bH7=SH7(),xH7=IH7();Object.keys(bH7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(MB6,A))Object.defineProperty(MB6,A,{enumerable:!0,get:function(){return bH7[A]}})});Object.keys(xH7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(MB6,A))Object.defineProperty(MB6,A,{enumerable:!0,get:function(){return xH7[A]}})})});var sH7=C((oH7)=>{Object.defineProperty(oH7,"__esModule",{value:!0});oH7.ruleSet=void 0;var lH7="required",IR="fn",bR="argv",TP6="ref",uH7=!0,BH7="isSet",DB6="booleanEquals",GP6="error",fP6="endpoint",yc="tree",fz8="PartitionResult",Tz8="getAttr",mH7={[lH7]:!1,type:"string"},gH7={[lH7]:!0,default:!1,type:"boolean"},FH7={[TP6]:"Endpoint"},iH7={[IR]:DB6,[bR]:[{[TP6]:"UseFIPS"},!0]},nH7={[IR]:DB6,[bR]:[{[TP6]:"UseDualStack"},!0]},hR={},QH7={[IR]:Tz8,[bR]:[{[TP6]:fz8},"supportsFIPS"]},rH7={[TP6]:fz8},UH7={[IR]:DB6,[bR]:[!0,{[IR]:Tz8,[bR]:[rH7,"supportsDualStack"]}]},pH7=[iH7],dH7=[nH7],cH7=[{[TP6]:"Region"}],Y85={version:"1.0",parameters:{Region:mH7,UseDualStack:gH7,UseFIPS:gH7,Endpoint:mH7},rules:[{conditions:[{[IR]:BH7,[bR]:[FH7]}],rules:[{conditions:pH7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:GP6},{conditions:dH7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:GP6},{endpoint:{url:FH7,properties:hR,headers:hR},type:fP6}],type:yc},{conditions:[{[IR]:BH7,[bR]:cH7}],rules:[{conditions:[{[IR]:"aws.partition",[bR]:cH7,assign:fz8}],rules:[{conditions:[iH7,nH7],rules:[{conditions:[{[IR]:DB6,[bR]:[uH7,QH7]},UH7],rules:[{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:hR,headers:hR},type:fP6}],type:yc},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:GP6}],type:yc},{conditions:pH7,rules:[{conditions:[{[IR]:DB6,[bR]:[QH7,uH7]}],rules:[{conditions:[{[IR]:"stringEquals",[bR]:[{[IR]:Tz8,[bR]:[rH7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://oidc.{Region}.amazonaws.com",properties:hR,headers:hR},type:fP6},{endpoint:{url:"https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",properties:hR,headers:hR},type:fP6}],type:yc},{error:"FIPS is enabled but this partition does not support FIPS",type:GP6}],type:yc},{conditions:dH7,rules:[{conditions:[UH7],rules:[{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:hR,headers:hR},type:fP6}],type:yc},{error:"DualStack is enabled but this partition does not support DualStack",type:GP6}],type:yc},{endpoint:{url:"https://oidc.{Region}.{PartitionResult#dnsSuffix}",properties:hR,headers:hR},type:fP6}],type:yc}],type:yc},{error:"Invalid Configuration: Missing Region",type:GP6}]};oH7.ruleSet=Y85});var Aj7=C((tH7)=>{Object.defineProperty(tH7,"__esModule",{value:!0});tH7.defaultEndpointResolver=void 0;var z85=pm(),Vz8=Ab(),w85=sH7(),_85=new Vz8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),$85=(A,q={})=>{return _85.get(A,()=>(0,Vz8.resolveEndpoint)(w85.ruleSet,{endpointParams:A,logger:q.logger}))};tH7.defaultEndpointResolver=$85;Vz8.customEndpointFunctions.aws=z85.awsEndpointFunctions});var wj7=C((Yj7)=>{Object.defineProperty(Yj7,"__esModule",{value:!0});Yj7.getRuntimeConfig=void 0;var O85=O$(),H85=Lc(),j85=pw(),J85=df(),M85=LR(),qj7=c21(),Kj7=Z2(),D85=wz8(),X85=Aj7(),P85=(A)=>{return{apiVersion:"2019-06-10",base64Decoder:A?.base64Decoder??qj7.fromBase64,base64Encoder:A?.base64Encoder??qj7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??X85.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??D85.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new O85.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new j85.NoAuthSigner}],logger:A?.logger??new J85.NoOpLogger,protocol:A?.protocol??new H85.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.ssooidc"}),serviceId:A?.serviceId??"SSO OIDC",urlParser:A?.urlParser??M85.parseUrl,utf8Decoder:A?.utf8Decoder??Kj7.fromUtf8,utf8Encoder:A?.utf8Encoder??Kj7.toUtf8}};Yj7.getRuntimeConfig=P85});var Rc=C((R85)=>{var W85=NJ(),_j7=HN(),Z85=EM(),G85="AWS_EXECUTION_ENV",$j7="AWS_REGION",Oj7="AWS_DEFAULT_REGION",f85="AWS_EC2_METADATA_DISABLED",T85=["in-region","cross-region","mobile","standard","legacy"],V85="/latest/meta-data/placement/region",N85="AWS_DEFAULTS_MODE",v85="defaults_mode",k85={environmentVariableSelector:(A)=>{return A[N85]},configFileSelector:(A)=>{return A[v85]},default:"legacy"},E85=({region:A=_j7.loadConfig(W85.NODE_REGION_CONFIG_OPTIONS),defaultsMode:q=_j7.loadConfig(k85)}={})=>Z85.memoize(async()=>{let K=typeof q==="function"?await q():q;switch(K?.toLowerCase()){case"auto":return L85(A);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(K?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${T85.join(", ")}, got ${K}`)}}),L85=async(A)=>{if(A){let q=typeof A==="function"?await A():A,K=await y85();if(!K)return"standard";if(q===K)return"in-region";else return"cross-region"}return"standard"},y85=async()=>{if(process.env[G85]&&(process.env[$j7]||process.env[Oj7]))return process.env[$j7]??process.env[Oj7];if(!process.env[f85])try{let{getInstanceMetadataEndpoint:A,httpRequest:q}=await Promise.resolve().then(() => e(L36())),K=await A();return(await q({...K,path:V85})).toString()}catch(A){}};R85.resolveDefaultsModeConfig=E85});var Pj7=C((Dj7)=>{Object.defineProperty(Dj7,"__esModule",{value:!0});Dj7.getRuntimeConfig=void 0;var C85=d2(),h85=C85.__importDefault(Q21()),Hj7=O$(),jj7=Nc(),l21=NJ(),I85=vc(),Jj7=h0(),x36=HN(),Mj7=$N(),b85=kc(),x85=lm(),u85=wj7(),B85=df(),m85=Rc(),g85=df(),F85=(A)=>{(0,g85.emitWarningIfUnsupportedVersion)(process.version);let q=(0,m85.resolveDefaultsModeConfig)(A),K=()=>q().then(B85.loadConfigsForDefaultMode),Y=(0,u85.getRuntimeConfig)(A);(0,Hj7.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,x36.loadConfig)(Hj7.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??b85.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,jj7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:h85.default.version}),maxAttempts:A?.maxAttempts??(0,x36.loadConfig)(Jj7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,x36.loadConfig)(l21.NODE_REGION_CONFIG_OPTIONS,{...l21.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:Mj7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,x36.loadConfig)({...Jj7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||x85.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??I85.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??Mj7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,x36.loadConfig)(l21.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,x36.loadConfig)(l21.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,x36.loadConfig)(jj7.NODE_APP_ID_CONFIG_OPTIONS,z)}};Dj7.getRuntimeConfig=F85});var Gj7=C((Zj7)=>{Object.defineProperty(Zj7,"__esModule",{value:!0});Zj7.warning=void 0;Zj7.stsRegionDefaultResolver=U85;var Wj7=NJ(),Q85=HN();function U85(A={}){return(0,Q85.loadConfig)({...Wj7.NODE_REGION_CONFIG_OPTIONS,async default(){if(!Zj7.warning.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.");return"us-east-1"}},{...Wj7.NODE_REGION_CONFIG_FILE_OPTIONS,...A})}Zj7.warning={silence:!1}});var Kb=C((ft)=>{var XB6=NJ(),fj7=Gj7(),d85=(A)=>{return{setRegion(q){A.region=q},region(){return A.region}}},c85=(A)=>{return{region:A.region()}};Object.defineProperty(ft,"NODE_REGION_CONFIG_FILE_OPTIONS",{enumerable:!0,get:function(){return XB6.NODE_REGION_CONFIG_FILE_OPTIONS}});Object.defineProperty(ft,"NODE_REGION_CONFIG_OPTIONS",{enumerable:!0,get:function(){return XB6.NODE_REGION_CONFIG_OPTIONS}});Object.defineProperty(ft,"REGION_ENV_NAME",{enumerable:!0,get:function(){return XB6.REGION_ENV_NAME}});Object.defineProperty(ft,"REGION_INI_NAME",{enumerable:!0,get:function(){return XB6.REGION_INI_NAME}});Object.defineProperty(ft,"resolveRegionConfig",{enumerable:!0,get:function(){return XB6.resolveRegionConfig}});ft.getAwsRegionExtensionConfiguration=d85;ft.resolveAwsRegionExtensionConfiguration=c85;Object.keys(fj7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(ft,A))Object.defineProperty(ft,A,{enumerable:!0,get:function(){return fj7[A]}})})});var n21=C((t85)=>{var n85=sY8(),r85=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},o85=(A)=>{return{httpHandler:A.httpHandler()}};class Tj7{name;kind;values;constructor({name:A,kind:q=n85.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class Vj7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class i21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new i21({...A,headers:{...A.headers}});if(q.query)q.query=a85(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return i21.clone(this)}}function a85(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class Nj7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function s85(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}t85.Field=Tj7;t85.Fields=Vj7;t85.HttpRequest=i21;t85.HttpResponse=Nj7;t85.getHttpHandlerExtensionConfiguration=r85;t85.isValidHostname=s85;t85.resolveHttpHandlerRuntimeConfig=o85});var Rz8=C((yz8)=>{var vj7=Dc(),_A5=Xc(),$A5=Pc(),kj7=cm(),OA5=NJ(),vz8=pw(),WE=lO(),HA5=Vc(),Sj7=qb(),Ej7=h0(),Tt=df(),Lj7=wz8(),jA5=Pj7(),yj7=Kb(),Rj7=n21(),JA5=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},MA5={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},DA5=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}},XA5=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}},PA5=(A,q)=>{let K=Object.assign(yj7.getAwsRegionExtensionConfiguration(A),Tt.getDefaultExtensionConfiguration(A),Rj7.getHttpHandlerExtensionConfiguration(A),DA5(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,yj7.resolveAwsRegionExtensionConfiguration(K),Tt.resolveDefaultRuntimeConfig(K),Rj7.resolveHttpHandlerRuntimeConfig(K),XA5(K))};class kz8 extends Tt.Client{config;constructor(...[A]){let q=jA5.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=JA5(q),Y=kj7.resolveUserAgentConfig(K),z=Ej7.resolveRetryConfig(Y),w=OA5.resolveRegionConfig(z),_=vj7.resolveHostHeaderConfig(w),$=Sj7.resolveEndpointConfig(_),O=Lj7.resolveHttpAuthSchemeConfig($),H=PA5(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(WE.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(kj7.getUserAgentPlugin(this.config)),this.middlewareStack.use(Ej7.getRetryPlugin(this.config)),this.middlewareStack.use(HA5.getContentLengthPlugin(this.config)),this.middlewareStack.use(vj7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(_A5.getLoggerPlugin(this.config)),this.middlewareStack.use($A5.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(vz8.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Lj7.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new vz8.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use(vz8.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var ZE=class A extends Tt.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},Cj7=class A extends ZE{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.reason=q.reason,this.error_description=q.error_description}},hj7=class A extends ZE{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(q){super({name:"AuthorizationPendingException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},Ij7=class A extends ZE{name="ExpiredTokenException";$fault="client";error;error_description;constructor(q){super({name:"ExpiredTokenException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},bj7=class A extends ZE{name="InternalServerException";$fault="server";error;error_description;constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},xj7=class A extends ZE{name="InvalidClientException";$fault="client";error;error_description;constructor(q){super({name:"InvalidClientException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},uj7=class A extends ZE{name="InvalidGrantException";$fault="client";error;error_description;constructor(q){super({name:"InvalidGrantException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},Bj7=class A extends ZE{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(q){super({name:"InvalidRequestException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.reason=q.reason,this.error_description=q.error_description}},mj7=class A extends ZE{name="InvalidScopeException";$fault="client";error;error_description;constructor(q){super({name:"InvalidScopeException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},gj7=class A extends ZE{name="SlowDownException";$fault="client";error;error_description;constructor(q){super({name:"SlowDownException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},Fj7=class A extends ZE{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(q){super({name:"UnauthorizedClientException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},Qj7=class A extends ZE{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(q){super({name:"UnsupportedGrantTypeException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error,this.error_description=q.error_description}},WA5="AccessDeniedException",ZA5="AuthorizationPendingException",GA5="AccessToken",fA5="ClientSecret",TA5="CreateToken",VA5="CreateTokenRequest",NA5="CreateTokenResponse",vA5="CodeVerifier",kA5="ExpiredTokenException",EA5="InvalidClientException",LA5="InvalidGrantException",yA5="InvalidRequestException",RA5="InternalServerException",SA5="InvalidScopeException",CA5="IdToken",hA5="RefreshToken",IA5="SlowDownException",bA5="UnauthorizedClientException",xA5="UnsupportedGrantTypeException",uA5="accessToken",im="client",BA5="clientId",mA5="clientSecret",gA5="codeVerifier",FA5="code",QA5="deviceCode",gj="error",UA5="expiresIn",Yb="error_description",pA5="grantType",dA5="http",zb="httpError",cA5="idToken",Uj7="reason",pj7="refreshToken",lA5="redirectUri",iA5="scope",nA5="server",dj7="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",rA5="tokenType",dw="com.amazonaws.ssooidc",oA5=[0,dw,GA5,8,0],aA5=[0,dw,fA5,8,0],sA5=[0,dw,vA5,8,0],tA5=[0,dw,CA5,8,0],cj7=[0,dw,hA5,8,0],eA5=[-3,dw,WA5,{[gj]:im,[zb]:400},[gj,Uj7,Yb],[0,0,0]];WE.TypeRegistry.for(dw).registerError(eA5,Cj7);var A75=[-3,dw,ZA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(A75,hj7);var q75=[3,dw,VA5,0,[BA5,mA5,pA5,QA5,FA5,pj7,iA5,lA5,gA5],[0,[()=>aA5,0],0,0,0,[()=>cj7,0],64,0,[()=>sA5,0]]],K75=[3,dw,NA5,0,[uA5,rA5,UA5,pj7,cA5],[[()=>oA5,0],0,1,[()=>cj7,0],[()=>tA5,0]]],Y75=[-3,dw,kA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(Y75,Ij7);var z75=[-3,dw,RA5,{[gj]:nA5,[zb]:500},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(z75,bj7);var w75=[-3,dw,EA5,{[gj]:im,[zb]:401},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(w75,xj7);var _75=[-3,dw,LA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(_75,uj7);var $75=[-3,dw,yA5,{[gj]:im,[zb]:400},[gj,Uj7,Yb],[0,0,0]];WE.TypeRegistry.for(dw).registerError($75,Bj7);var O75=[-3,dw,SA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(O75,mj7);var H75=[-3,dw,IA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(H75,gj7);var j75=[-3,dw,bA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(j75,Fj7);var J75=[-3,dw,xA5,{[gj]:im,[zb]:400},[gj,Yb],[0,0]];WE.TypeRegistry.for(dw).registerError(J75,Qj7);var M75=[-3,dj7,"SSOOIDCServiceException",0,[],[]];WE.TypeRegistry.for(dj7).registerError(M75,ZE);var D75=[9,dw,TA5,{[dA5]:["POST","/token",200]},()=>q75,()=>K75];class Ez8 extends Tt.Command.classBuilder().ep(MA5).m(function(A,q,K,Y){return[Sj7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(D75).build(){}var X75={CreateTokenCommand:Ez8};class Lz8 extends kz8{}Tt.createAggregatedClient(X75,Lz8);var P75={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},W75={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};Object.defineProperty(yz8,"$Command",{enumerable:!0,get:function(){return Tt.Command}});Object.defineProperty(yz8,"__Client",{enumerable:!0,get:function(){return Tt.Client}});yz8.AccessDeniedException=Cj7;yz8.AccessDeniedExceptionReason=P75;yz8.AuthorizationPendingException=hj7;yz8.CreateTokenCommand=Ez8;yz8.ExpiredTokenException=Ij7;yz8.InternalServerException=bj7;yz8.InvalidClientException=xj7;yz8.InvalidGrantException=uj7;yz8.InvalidRequestException=Bj7;yz8.InvalidRequestExceptionReason=W75;yz8.InvalidScopeException=mj7;yz8.SSOOIDC=Lz8;yz8.SSOOIDCClient=kz8;yz8.SSOOIDCServiceException=ZE;yz8.SlowDownException=gj7;yz8.UnauthorizedClientException=Fj7;yz8.UnsupportedGrantTypeException=Qj7});var r21=C((l75)=>{var x75=ON(),u75=J27(),GE=EM(),PB6=gm(),B75=g6("fs"),m75=({logger:A,signingName:q}={})=>async()=>{if(A?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!q)throw new GE.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:A});let K=u75.getBearerTokenEnvKey(q);if(!(K in process.env))throw new GE.TokenProviderError(`Token not present in '${K}' environment variable`,{logger:A});let Y={token:process.env[K]};return x75.setTokenFeature(Y,"BEARER_SERVICE_ENV_VARS","3"),Y},g75=300000,Sz8="To refresh this SSO session run 'aws sso login' with the corresponding profile.",F75=async(A,q={})=>{let{SSOOIDCClient:K}=await Promise.resolve().then(() => e(Rz8())),Y=(w)=>q.clientConfig?.[w]??q.parentClientConfig?.[w];return new K(Object.assign({},q.clientConfig??{},{region:A??q.clientConfig?.region,logger:Y("logger"),userAgentAppId:Y("userAgentAppId")}))},Q75=async(A,q,K={})=>{let{CreateTokenCommand:Y}=await Promise.resolve().then(() => e(Rz8()));return(await F75(q,K)).send(new Y({clientId:A.clientId,clientSecret:A.clientSecret,refreshToken:A.refreshToken,grantType:"refresh_token"}))},lj7=(A)=>{if(A.expiration&&A.expiration.getTime()<Date.now())throw new GE.TokenProviderError(`Token is expired. ${Sz8}`,!1)},u36=(A,q,K=!1)=>{if(typeof q>"u")throw new GE.TokenProviderError(`Value not present for '${A}' in SSO Token${K?". Cannot refresh":""}. ${Sz8}`,!1)},{writeFile:U75}=B75.promises,p75=(A,q)=>{let K=PB6.getSSOTokenFilepath(A),Y=JSON.stringify(q,null,2);return U75(K,Y)},ij7=new Date(0),nj7=(A={})=>async({callerClientConfig:q}={})=>{let K={...A,parentClientConfig:{...q,...A.parentClientConfig}};K.logger?.debug("@aws-sdk/token-providers - fromSso");let Y=await PB6.parseKnownFiles(K),z=PB6.getProfileName({profile:K.profile??q?.profile}),w=Y[z];if(!w)throw new GE.TokenProviderError(`Profile '${z}' could not be found in shared credentials file.`,!1);else if(!w.sso_session)throw new GE.TokenProviderError(`Profile '${z}' is missing required property 'sso_session'.`);let _=w.sso_session,O=(await PB6.loadSsoSessionData(K))[_];if(!O)throw new GE.TokenProviderError(`Sso session '${_}' could not be found in shared credentials file.`,!1);for(let X of["sso_start_url","sso_region"])if(!O[X])throw new GE.TokenProviderError(`Sso session '${_}' is missing required property '${X}'.`,!1);O.sso_start_url;let H=O.sso_region,j;try{j=await PB6.getSSOTokenFromFile(_)}catch(X){throw new GE.TokenProviderError(`The SSO session token associated with profile=${z} was not found or is invalid. ${Sz8}`,!1)}u36("accessToken",j.accessToken),u36("expiresAt",j.expiresAt);let{accessToken:J,expiresAt:M}=j,D={token:J,expiration:new Date(M)};if(D.expiration.getTime()-Date.now()>g75)return D;if(Date.now()-ij7.getTime()<30000)return lj7(D),D;u36("clientId",j.clientId,!0),u36("clientSecret",j.clientSecret,!0),u36("refreshToken",j.refreshToken,!0);try{ij7.setTime(Date.now());let X=await Q75(j,H,K);u36("accessToken",X.accessToken),u36("expiresIn",X.expiresIn);let P=new Date(Date.now()+X.expiresIn*1000);try{await p75(_,{...j,accessToken:X.accessToken,expiresAt:P.toISOString(),refreshToken:X.refreshToken})}catch(W){}return{token:X.accessToken,expiration:P}}catch(X){return lj7(D),D}},d75=({token:A,logger:q})=>async()=>{if(q?.debug("@aws-sdk/token-providers - fromStatic"),!A||!A.token)throw new GE.TokenProviderError("Please pass a valid token to fromStatic",!1);return A},c75=(A={})=>GE.memoize(GE.chain(nj7(A),async()=>{throw new GE.TokenProviderError("Could not load token from any providers",!1)}),(q)=>q.expiration!==void 0&&q.expiration.getTime()-Date.now()<300000,(q)=>q.expiration!==void 0);l75.fromEnvSigningName=m75;l75.fromSso=nj7;l75.fromStatic=d75;l75.nodeProvider=c75});var Bz8=C((q45)=>{q45.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(q45.HttpAuthLocation||(q45.HttpAuthLocation={}));q45.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(q45.HttpApiKeyAuthLocation||(q45.HttpApiKeyAuthLocation={}));q45.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(q45.EndpointURLScheme||(q45.EndpointURLScheme={}));q45.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(q45.AlgorithmId||(q45.AlgorithmId={}));var a75=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>q45.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>q45.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},s75=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},t75=(A)=>{return a75(A)},e75=(A)=>{return s75(A)};q45.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(q45.FieldPosition||(q45.FieldPosition={}));var A45="__smithy_context";q45.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(q45.IniSectionType||(q45.IniSectionType={}));q45.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(q45.RequestHandlerProtocol||(q45.RequestHandlerProtocol={}));q45.SMITHY_CONTEXT_KEY=A45;q45.getDefaultClientConfiguration=t75;q45.resolveDefaultRuntimeConfig=e75});var ZB6=C((NP6)=>{var aj7=Qm(),Uz8=MN(),gz8=Bz8(),w45=lO(),rj7=JN();class sj7{config;middlewareStack=aj7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var mz8="***SensitiveInformation***";function Fz8(A,q){if(q==null)return q;let K=w45.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return mz8;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return mz8}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return mz8}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=Fz8(_,Y[w]);return z}return q}class pz8{middlewareStack=aj7.constructStack();schema;static classBuilder(){return new tj7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[gz8.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class tj7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends pz8{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?Fz8.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?Fz8.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var _45="***SensitiveInformation***",$45=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class VP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return VP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===VP6)return VP6.isInstance(A);if(VP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var ej7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},AJ7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=H45(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw ej7(_,q)},O45=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{AJ7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},H45=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),j45=(A)=>{switch(A){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:30000};default:return{}}},oj7=!1,J45=(A)=>{if(A&&!oj7&&parseInt(A.substring(1,A.indexOf(".")))<16)oj7=!0},M45=(A)=>{let q=[];for(let K in gz8.AlgorithmId){let Y=gz8.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},D45=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},X45=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},P45=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},qJ7=(A)=>{return Object.assign(M45(A),X45(A))},W45=qJ7,Z45=(A)=>{return Object.assign(D45(A),P45(A))},G45=(A)=>Array.isArray(A)?A:[A],KJ7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=KJ7(A[K]);return A},f45=(A)=>{return A!=null};class YJ7{trace(){}debug(){}info(){}warn(){}error(){}}function zJ7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,N45(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}wJ7(Y,null,w,_)}return Y}var T45=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},V45=(A,q)=>{let K={};for(let Y in q)wJ7(K,A,q,Y);return K},N45=(A,q,K)=>{return zJ7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},wJ7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=v45,O=k45,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},v45=(A)=>A!=null,k45=(A)=>A,E45=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},L45=(A)=>A.toISOString().replace(".000Z","Z"),Qz8=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(Qz8);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=Qz8(A[K])}return q}return A};Object.defineProperty(NP6,"collectBody",{enumerable:!0,get:function(){return Uz8.collectBody}});Object.defineProperty(NP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Uz8.extendedEncodeURIComponent}});Object.defineProperty(NP6,"resolvedPath",{enumerable:!0,get:function(){return Uz8.resolvedPath}});NP6.Client=sj7;NP6.Command=pz8;NP6.NoOpLogger=YJ7;NP6.SENSITIVE_STRING=_45;NP6.ServiceException=VP6;NP6._json=Qz8;NP6.convertMap=T45;NP6.createAggregatedClient=$45;NP6.decorateServiceException=ej7;NP6.emitWarningIfUnsupportedVersion=J45;NP6.getArrayIfSingleItem=G45;NP6.getDefaultClientConfiguration=W45;NP6.getDefaultExtensionConfiguration=qJ7;NP6.getValueFromTextNode=KJ7;NP6.isSerializableHeaderValue=f45;NP6.loadConfigsForDefaultMode=j45;NP6.map=zJ7;NP6.resolveDefaultRuntimeConfig=Z45;NP6.serializeDateTime=L45;NP6.serializeFloat=E45;NP6.take=V45;NP6.throwDefaultError=AJ7;NP6.withBaseException=O45;Object.keys(rj7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(NP6,A))Object.defineProperty(NP6,A,{enumerable:!0,get:function(){return rj7[A]}})})});var cz8=C((_J7)=>{Object.defineProperty(_J7,"__esModule",{value:!0});_J7.resolveHttpAuthSchemeConfig=_J7.defaultSSOHttpAuthSchemeProvider=_J7.defaultSSOHttpAuthSchemeParametersProvider=void 0;var a45=O$(),dz8=pZ(),s45=async(A,q,K)=>{return{operation:(0,dz8.getSmithyContext)(q).operation,region:await(0,dz8.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};_J7.defaultSSOHttpAuthSchemeParametersProvider=s45;function t45(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function o21(A){return{schemeId:"smithy.api#noAuth"}}var e45=(A)=>{let q=[];switch(A.operation){case"GetRoleCredentials":{q.push(o21(A));break}case"ListAccountRoles":{q.push(o21(A));break}case"ListAccounts":{q.push(o21(A));break}case"Logout":{q.push(o21(A));break}default:q.push(t45(A))}return q};_J7.defaultSSOHttpAuthSchemeProvider=e45;var Aq5=(A)=>{let q=(0,a45.resolveAwsSdkSigV4Config)(A);return Object.assign(q,{authSchemePreference:(0,dz8.normalizeProvider)(A.authSchemePreference??[])})};_J7.resolveHttpAuthSchemeConfig=Aq5});var OJ7=C((zD2,Yq5)=>{Yq5.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.936.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-sso","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var HJ7=C((wq5)=>{var zq5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";wq5.isArrayBuffer=zq5});var iz8=C((jq5)=>{var $q5=HJ7(),lz8=g6("buffer"),Oq5=(A,q=0,K=A.byteLength-q)=>{if(!$q5.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return lz8.Buffer.from(A,q,K)},Hq5=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?lz8.Buffer.from(A,q):lz8.Buffer.from(A)};jq5.fromArrayBuffer=Oq5;jq5.fromString=Hq5});var MJ7=C((jJ7)=>{Object.defineProperty(jJ7,"__esModule",{value:!0});jJ7.fromBase64=void 0;var Dq5=iz8(),Xq5=/^[A-Za-z0-9+/]*={0,2}$/,Pq5=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Xq5.exec(A))throw TypeError("Invalid base64 string.");let q=(0,Dq5.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};jJ7.fromBase64=Pq5});var PJ7=C((DJ7)=>{Object.defineProperty(DJ7,"__esModule",{value:!0});DJ7.toBase64=void 0;var Wq5=iz8(),Zq5=Z2(),Gq5=(A)=>{let q;if(typeof A==="string")q=(0,Zq5.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Wq5.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};DJ7.toBase64=Gq5});var GJ7=C((GB6)=>{var WJ7=MJ7(),ZJ7=PJ7();Object.keys(WJ7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(GB6,A))Object.defineProperty(GB6,A,{enumerable:!0,get:function(){return WJ7[A]}})});Object.keys(ZJ7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(GB6,A))Object.defineProperty(GB6,A,{enumerable:!0,get:function(){return ZJ7[A]}})})});var uJ7=C((bJ7)=>{Object.defineProperty(bJ7,"__esModule",{value:!0});bJ7.ruleSet=void 0;var SJ7="required",uR="fn",BR="argv",EP6="ref",fJ7=!0,TJ7="isSet",fB6="booleanEquals",vP6="error",kP6="endpoint",Sc="tree",nz8="PartitionResult",rz8="getAttr",VJ7={[SJ7]:!1,type:"string"},NJ7={[SJ7]:!0,default:!1,type:"boolean"},vJ7={[EP6]:"Endpoint"},CJ7={[uR]:fB6,[BR]:[{[EP6]:"UseFIPS"},!0]},hJ7={[uR]:fB6,[BR]:[{[EP6]:"UseDualStack"},!0]},xR={},kJ7={[uR]:rz8,[BR]:[{[EP6]:nz8},"supportsFIPS"]},IJ7={[EP6]:nz8},EJ7={[uR]:fB6,[BR]:[!0,{[uR]:rz8,[BR]:[IJ7,"supportsDualStack"]}]},LJ7=[CJ7],yJ7=[hJ7],RJ7=[{[EP6]:"Region"}],fq5={version:"1.0",parameters:{Region:VJ7,UseDualStack:NJ7,UseFIPS:NJ7,Endpoint:VJ7},rules:[{conditions:[{[uR]:TJ7,[BR]:[vJ7]}],rules:[{conditions:LJ7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:vP6},{conditions:yJ7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:vP6},{endpoint:{url:vJ7,properties:xR,headers:xR},type:kP6}],type:Sc},{conditions:[{[uR]:TJ7,[BR]:RJ7}],rules:[{conditions:[{[uR]:"aws.partition",[BR]:RJ7,assign:nz8}],rules:[{conditions:[CJ7,hJ7],rules:[{conditions:[{[uR]:fB6,[BR]:[fJ7,kJ7]},EJ7],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xR,headers:xR},type:kP6}],type:Sc},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:vP6}],type:Sc},{conditions:LJ7,rules:[{conditions:[{[uR]:fB6,[BR]:[kJ7,fJ7]}],rules:[{conditions:[{[uR]:"stringEquals",[BR]:[{[uR]:rz8,[BR]:[IJ7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:xR,headers:xR},type:kP6},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:xR,headers:xR},type:kP6}],type:Sc},{error:"FIPS is enabled but this partition does not support FIPS",type:vP6}],type:Sc},{conditions:yJ7,rules:[{conditions:[EJ7],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xR,headers:xR},type:kP6}],type:Sc},{error:"DualStack is enabled but this partition does not support DualStack",type:vP6}],type:Sc},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:xR,headers:xR},type:kP6}],type:Sc}],type:Sc},{error:"Invalid Configuration: Missing Region",type:vP6}]};bJ7.ruleSet=fq5});var gJ7=C((BJ7)=>{Object.defineProperty(BJ7,"__esModule",{value:!0});BJ7.defaultEndpointResolver=void 0;var Tq5=pm(),oz8=Ab(),Vq5=uJ7(),Nq5=new oz8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vq5=(A,q={})=>{return Nq5.get(A,()=>(0,oz8.resolveEndpoint)(Vq5.ruleSet,{endpointParams:A,logger:q.logger}))};BJ7.defaultEndpointResolver=vq5;oz8.customEndpointFunctions.aws=Tq5.awsEndpointFunctions});var dJ7=C((UJ7)=>{Object.defineProperty(UJ7,"__esModule",{value:!0});UJ7.getRuntimeConfig=void 0;var kq5=O$(),Eq5=Lc(),Lq5=pw(),yq5=ZB6(),Rq5=LR(),FJ7=GJ7(),QJ7=Z2(),Sq5=cz8(),Cq5=gJ7(),hq5=(A)=>{return{apiVersion:"2019-06-10",base64Decoder:A?.base64Decoder??FJ7.fromBase64,base64Encoder:A?.base64Encoder??FJ7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??Cq5.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??Sq5.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new kq5.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Lq5.NoAuthSigner}],logger:A?.logger??new yq5.NoOpLogger,protocol:A?.protocol??new Eq5.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.sso"}),serviceId:A?.serviceId??"SSO",urlParser:A?.urlParser??Rq5.parseUrl,utf8Decoder:A?.utf8Decoder??QJ7.fromUtf8,utf8Encoder:A?.utf8Encoder??QJ7.toUtf8}};UJ7.getRuntimeConfig=hq5});var aJ7=C((rJ7)=>{Object.defineProperty(rJ7,"__esModule",{value:!0});rJ7.getRuntimeConfig=void 0;var Iq5=d2(),bq5=Iq5.__importDefault(OJ7()),cJ7=O$(),lJ7=Nc(),a21=NJ(),xq5=vc(),iJ7=h0(),B36=HN(),nJ7=$N(),uq5=kc(),Bq5=lm(),mq5=dJ7(),gq5=ZB6(),Fq5=Rc(),Qq5=ZB6(),Uq5=(A)=>{(0,Qq5.emitWarningIfUnsupportedVersion)(process.version);let q=(0,Fq5.resolveDefaultsModeConfig)(A),K=()=>q().then(gq5.loadConfigsForDefaultMode),Y=(0,mq5.getRuntimeConfig)(A);(0,cJ7.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,B36.loadConfig)(cJ7.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??uq5.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,lJ7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:bq5.default.version}),maxAttempts:A?.maxAttempts??(0,B36.loadConfig)(iJ7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,B36.loadConfig)(a21.NODE_REGION_CONFIG_OPTIONS,{...a21.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:nJ7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,B36.loadConfig)({...iJ7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||Bq5.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??xq5.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??nJ7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,B36.loadConfig)(a21.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,B36.loadConfig)(a21.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,B36.loadConfig)(lJ7.NODE_APP_ID_CONFIG_OPTIONS,z)}};rJ7.getRuntimeConfig=Uq5});var AM7=C((nq5)=>{var pq5=Bz8(),dq5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},cq5=(A)=>{return{httpHandler:A.httpHandler()}};class sJ7{name;kind;values;constructor({name:A,kind:q=pq5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class tJ7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class s21{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new s21({...A,headers:{...A.headers}});if(q.query)q.query=lq5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return s21.clone(this)}}function lq5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class eJ7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function iq5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}nq5.Field=sJ7;nq5.Fields=tJ7;nq5.HttpRequest=s21;nq5.HttpResponse=eJ7;nq5.getHttpHandlerExtensionConfiguration=dq5;nq5.isValidHostname=iq5;nq5.resolveHttpHandlerRuntimeConfig=cq5});var ZM7=C((ez8)=>{var qM7=Dc(),qK5=Xc(),KK5=Pc(),KM7=cm(),YK5=NJ(),TB6=pw(),LP6=lO(),zK5=Vc(),VB6=qb(),YM7=h0(),wb=ZB6(),zM7=cz8(),wK5=aJ7(),wM7=Kb(),_M7=AM7(),_K5=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},t21={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},$K5=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}},OK5=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}},HK5=(A,q)=>{let K=Object.assign(wM7.getAwsRegionExtensionConfiguration(A),wb.getDefaultExtensionConfiguration(A),_M7.getHttpHandlerExtensionConfiguration(A),$K5(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,wM7.resolveAwsRegionExtensionConfiguration(K),wb.resolveDefaultRuntimeConfig(K),_M7.resolveHttpHandlerRuntimeConfig(K),OK5(K))};class NB6 extends wb.Client{config;constructor(...[A]){let q=wK5.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=_K5(q),Y=KM7.resolveUserAgentConfig(K),z=YM7.resolveRetryConfig(Y),w=YK5.resolveRegionConfig(z),_=qM7.resolveHostHeaderConfig(w),$=VB6.resolveEndpointConfig(_),O=zM7.resolveHttpAuthSchemeConfig($),H=HK5(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(LP6.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(KM7.getUserAgentPlugin(this.config)),this.middlewareStack.use(YM7.getRetryPlugin(this.config)),this.middlewareStack.use(zK5.getContentLengthPlugin(this.config)),this.middlewareStack.use(qM7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(qK5.getLoggerPlugin(this.config)),this.middlewareStack.use(KK5.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(TB6.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:zM7.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new TB6.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use(TB6.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var yP6=class A extends wb.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},$M7=class A extends yP6{name="InvalidRequestException";$fault="client";constructor(q){super({name:"InvalidRequestException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},OM7=class A extends yP6{name="ResourceNotFoundException";$fault="client";constructor(q){super({name:"ResourceNotFoundException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},HM7=class A extends yP6{name="TooManyRequestsException";$fault="client";constructor(q){super({name:"TooManyRequestsException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},jM7=class A extends yP6{name="UnauthorizedException";$fault="client";constructor(q){super({name:"UnauthorizedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},jK5="AccountInfo",JK5="AccountListType",MK5="AccessTokenType",DK5="GetRoleCredentials",XK5="GetRoleCredentialsRequest",PK5="GetRoleCredentialsResponse",WK5="InvalidRequestException",ZK5="Logout",GK5="ListAccounts",fK5="ListAccountsRequest",TK5="ListAccountRolesRequest",VK5="ListAccountRolesResponse",NK5="ListAccountsResponse",vK5="ListAccountRoles",kK5="LogoutRequest",EK5="RoleCredentials",LK5="RoleInfo",yK5="RoleListType",RK5="ResourceNotFoundException",SK5="SecretAccessKeyType",CK5="SessionTokenType",hK5="TooManyRequestsException",IK5="UnauthorizedException",e21="accountId",bK5="accessKeyId",xK5="accountList",uK5="accountName",A_1="accessToken",JM7="account_id",q_1="client",K_1="error",BK5="emailAddress",mK5="expiration",Y_1="http",z_1="httpError",w_1="httpHeader",m36="httpQuery",__1="message",MM7="maxResults",DM7="max_result",$_1="nextToken",XM7="next_token",gK5="roleCredentials",FK5="roleList",PM7="roleName",QK5="role_name",WM7="smithy.ts.sdk.synthetic.com.amazonaws.sso",UK5="secretAccessKey",pK5="sessionToken",O_1="x-amz-sso_bearer_token",G_="com.amazonaws.sso",H_1=[0,G_,MK5,8,0],dK5=[0,G_,SK5,8,0],cK5=[0,G_,CK5,8,0],lK5=[3,G_,jK5,0,[e21,uK5,BK5],[0,0,0]],iK5=[3,G_,XK5,0,[PM7,e21,A_1],[[0,{[m36]:QK5}],[0,{[m36]:JM7}],[()=>H_1,{[w_1]:O_1}]]],nK5=[3,G_,PK5,0,[gK5],[[()=>q35,0]]],rK5=[-3,G_,WK5,{[K_1]:q_1,[z_1]:400},[__1],[0]];LP6.TypeRegistry.for(G_).registerError(rK5,$M7);var oK5=[3,G_,TK5,0,[$_1,MM7,A_1,e21],[[0,{[m36]:XM7}],[1,{[m36]:DM7}],[()=>H_1,{[w_1]:O_1}],[0,{[m36]:JM7}]]],aK5=[3,G_,VK5,0,[$_1,FK5],[0,()=>O35]],sK5=[3,G_,fK5,0,[$_1,MM7,A_1],[[0,{[m36]:XM7}],[1,{[m36]:DM7}],[()=>H_1,{[w_1]:O_1}]]],tK5=[3,G_,NK5,0,[$_1,xK5],[0,()=>$35]],eK5=[3,G_,kK5,0,[A_1],[[()=>H_1,{[w_1]:O_1}]]],A35=[-3,G_,RK5,{[K_1]:q_1,[z_1]:404},[__1],[0]];LP6.TypeRegistry.for(G_).registerError(A35,OM7);var q35=[3,G_,EK5,0,[bK5,UK5,pK5,mK5],[0,[()=>dK5,0],[()=>cK5,0],1]],K35=[3,G_,LK5,0,[PM7,e21],[0,0]],Y35=[-3,G_,hK5,{[K_1]:q_1,[z_1]:429},[__1],[0]];LP6.TypeRegistry.for(G_).registerError(Y35,HM7);var z35=[-3,G_,IK5,{[K_1]:q_1,[z_1]:401},[__1],[0]];LP6.TypeRegistry.for(G_).registerError(z35,jM7);var w35="unit",_35=[-3,WM7,"SSOServiceException",0,[],[]];LP6.TypeRegistry.for(WM7).registerError(_35,yP6);var $35=[1,G_,JK5,0,()=>lK5],O35=[1,G_,yK5,0,()=>K35],H35=[9,G_,DK5,{[Y_1]:["GET","/federation/credentials",200]},()=>iK5,()=>nK5],j35=[9,G_,vK5,{[Y_1]:["GET","/assignment/roles",200]},()=>oK5,()=>aK5],J35=[9,G_,GK5,{[Y_1]:["GET","/assignment/accounts",200]},()=>sK5,()=>tK5],M35=[9,G_,ZK5,{[Y_1]:["POST","/logout",200]},()=>eK5,()=>w35];class az8 extends wb.Command.classBuilder().ep(t21).m(function(A,q,K,Y){return[VB6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(H35).build(){}class j_1 extends wb.Command.classBuilder().ep(t21).m(function(A,q,K,Y){return[VB6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccountRoles",{}).n("SSOClient","ListAccountRolesCommand").sc(j35).build(){}class J_1 extends wb.Command.classBuilder().ep(t21).m(function(A,q,K,Y){return[VB6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","ListAccounts",{}).n("SSOClient","ListAccountsCommand").sc(J35).build(){}class sz8 extends wb.Command.classBuilder().ep(t21).m(function(A,q,K,Y){return[VB6.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("SWBPortalService","Logout",{}).n("SSOClient","LogoutCommand").sc(M35).build(){}var D35={GetRoleCredentialsCommand:az8,ListAccountRolesCommand:j_1,ListAccountsCommand:J_1,LogoutCommand:sz8};class tz8 extends NB6{}wb.createAggregatedClient(D35,tz8);var X35=TB6.createPaginator(NB6,j_1,"nextToken","nextToken","maxResults"),P35=TB6.createPaginator(NB6,J_1,"nextToken","nextToken","maxResults");Object.defineProperty(ez8,"$Command",{enumerable:!0,get:function(){return wb.Command}});Object.defineProperty(ez8,"__Client",{enumerable:!0,get:function(){return wb.Client}});ez8.GetRoleCredentialsCommand=az8;ez8.InvalidRequestException=$M7;ez8.ListAccountRolesCommand=j_1;ez8.ListAccountsCommand=J_1;ez8.LogoutCommand=sz8;ez8.ResourceNotFoundException=OM7;ez8.SSO=tz8;ez8.SSOClient=NB6;ez8.SSOServiceException=yP6;ez8.TooManyRequestsException=HM7;ez8.UnauthorizedException=jM7;ez8.paginateListAccountRoles=X35;ez8.paginateListAccounts=P35});var fM7=C((Aw8)=>{var GM7=ZM7();Object.defineProperty(Aw8,"GetRoleCredentialsCommand",{enumerable:!0,get:function(){return GM7.GetRoleCredentialsCommand}});Object.defineProperty(Aw8,"SSOClient",{enumerable:!0,get:function(){return GM7.SSOClient}})});var D_1=C((h35)=>{var _b=EM(),M_1=gm(),TM7=ON(),S35=r21(),NM7=(A)=>A&&(typeof A.sso_start_url==="string"||typeof A.sso_account_id==="string"||typeof A.sso_session==="string"||typeof A.sso_region==="string"||typeof A.sso_role_name==="string"),vB6=!1,VM7=async({ssoStartUrl:A,ssoSession:q,ssoAccountId:K,ssoRegion:Y,ssoRoleName:z,ssoClient:w,clientConfig:_,parentClientConfig:$,profile:O,filepath:H,configFilepath:j,ignoreCache:J,logger:M})=>{let D,X="To refresh this SSO session run aws sso login with the corresponding profile.";if(q)try{let x=await S35.fromSso({profile:O,filepath:H,configFilepath:j,ignoreCache:J})();D={accessToken:x.token,expiresAt:new Date(x.expiration).toISOString()}}catch(x){throw new _b.CredentialsProviderError(x.message,{tryNextLink:vB6,logger:M})}else try{D=await M_1.getSSOTokenFromFile(A)}catch(x){throw new _b.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:vB6,logger:M})}if(new Date(D.expiresAt).getTime()-Date.now()<=0)throw new _b.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:vB6,logger:M});let{accessToken:P}=D,{SSOClient:W,GetRoleCredentialsCommand:Z}=await Promise.resolve().then(function(){return fM7()}),G=w||new W(Object.assign({},_??{},{logger:_?.logger??$?.logger,region:_?.region??Y,userAgentAppId:_?.userAgentAppId??$?.userAgentAppId})),f;try{f=await G.send(new Z({accountId:K,roleName:z,accessToken:P}))}catch(x){throw new _b.CredentialsProviderError(x,{tryNextLink:vB6,logger:M})}let{roleCredentials:{accessKeyId:V,secretAccessKey:N,sessionToken:v,expiration:y,credentialScope:R,accountId:h}={}}=f;if(!V||!N||!v||!y)throw new _b.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:vB6,logger:M});let B={accessKeyId:V,secretAccessKey:N,sessionToken:v,expiration:new Date(y),...R&&{credentialScope:R},...h&&{accountId:h}};if(q)TM7.setCredentialFeature(B,"CREDENTIALS_SSO","s");else TM7.setCredentialFeature(B,"CREDENTIALS_SSO_LEGACY","u");return B},vM7=(A,q)=>{let{sso_start_url:K,sso_account_id:Y,sso_region:z,sso_role_name:w}=A;if(!K||!Y||!z||!w)throw new _b.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(A).join(", ")}
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:q});return A},C35=(A={})=>async({callerClientConfig:q}={})=>{A.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:K,ssoAccountId:Y,ssoRegion:z,ssoRoleName:w,ssoSession:_}=A,{ssoClient:$}=A,O=M_1.getProfileName({profile:A.profile??q?.profile});if(!K&&!Y&&!z&&!w&&!_){let j=(await M_1.parseKnownFiles(A))[O];if(!j)throw new _b.CredentialsProviderError(`Profile ${O} was not found.`,{logger:A.logger});if(!NM7(j))throw new _b.CredentialsProviderError(`Profile ${O} is not configured with SSO credentials.`,{logger:A.logger});if(j?.sso_session){let Z=(await M_1.loadSsoSessionData(A))[j.sso_session],G=` configurations in profile ${O} and sso-session ${j.sso_session}`;if(z&&z!==Z.sso_region)throw new _b.CredentialsProviderError("Conflicting SSO region"+G,{tryNextLink:!1,logger:A.logger});if(K&&K!==Z.sso_start_url)throw new _b.CredentialsProviderError("Conflicting SSO start_url"+G,{tryNextLink:!1,logger:A.logger});j.sso_region=Z.sso_region,j.sso_start_url=Z.sso_start_url}let{sso_start_url:J,sso_account_id:M,sso_region:D,sso_role_name:X,sso_session:P}=vM7(j,A.logger);return VM7({ssoStartUrl:J,ssoSession:P,ssoAccountId:M,ssoRegion:D,ssoRoleName:X,ssoClient:$,clientConfig:A.clientConfig,parentClientConfig:A.parentClientConfig,profile:O,filepath:A.filepath,configFilepath:A.configFilepath,ignoreCache:A.ignoreCache,logger:A.logger})}else if(!K||!Y||!z||!w)throw new _b.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:A.logger});else return VM7({ssoStartUrl:K,ssoSession:_,ssoAccountId:Y,ssoRegion:z,ssoRoleName:w,ssoClient:$,clientConfig:A.clientConfig,parentClientConfig:A.parentClientConfig,profile:O,filepath:A.filepath,configFilepath:A.configFilepath,ignoreCache:A.ignoreCache,logger:A.logger})};h35.fromSSO=C35;h35.isSsoProfile=NM7;h35.validateSsoProfile=vM7});var kM7=C((Q35)=>{Q35.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Q35.HttpAuthLocation||(Q35.HttpAuthLocation={}));Q35.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(Q35.HttpApiKeyAuthLocation||(Q35.HttpApiKeyAuthLocation={}));Q35.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(Q35.EndpointURLScheme||(Q35.EndpointURLScheme={}));Q35.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(Q35.AlgorithmId||(Q35.AlgorithmId={}));var u35=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>Q35.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>Q35.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},B35=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},m35=(A)=>{return u35(A)},g35=(A)=>{return B35(A)};Q35.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(Q35.FieldPosition||(Q35.FieldPosition={}));var F35="__smithy_context";Q35.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(Q35.IniSectionType||(Q35.IniSectionType={}));Q35.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(Q35.RequestHandlerProtocol||(Q35.RequestHandlerProtocol={}));Q35.SMITHY_CONTEXT_KEY=F35;Q35.getDefaultClientConfiguration=m35;Q35.resolveDefaultRuntimeConfig=g35});var RM7=C((o35)=>{var c35=kM7(),l35=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},i35=(A)=>{return{httpHandler:A.httpHandler()}};class EM7{name;kind;values;constructor({name:A,kind:q=c35.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class LM7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class X_1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new X_1({...A,headers:{...A.headers}});if(q.query)q.query=n35(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return X_1.clone(this)}}function n35(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class yM7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function r35(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}o35.Field=EM7;o35.Fields=LM7;o35.HttpRequest=X_1;o35.HttpResponse=yM7;o35.getHttpHandlerExtensionConfiguration=l35;o35.isValidHostname=r35;o35.resolveHttpHandlerRuntimeConfig=i35});var Ow8=C((SM7)=>{Object.defineProperty(SM7,"__esModule",{value:!0});SM7.resolveHttpAuthSchemeConfig=SM7.defaultSigninHttpAuthSchemeProvider=SM7.defaultSigninHttpAuthSchemeParametersProvider=void 0;var Y55=O$(),$w8=pZ(),z55=async(A,q,K)=>{return{operation:(0,$w8.getSmithyContext)(q).operation,region:await(0,$w8.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};SM7.defaultSigninHttpAuthSchemeParametersProvider=z55;function w55(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function _55(A){return{schemeId:"smithy.api#noAuth"}}var $55=(A)=>{let q=[];switch(A.operation){case"CreateOAuth2Token":{q.push(_55(A));break}default:q.push(w55(A))}return q};SM7.defaultSigninHttpAuthSchemeProvider=$55;var O55=(A)=>{let q=(0,Y55.resolveAwsSdkSigV4Config)(A);return Object.assign(q,{authSchemePreference:(0,$w8.normalizeProvider)(A.authSchemePreference??[])})};SM7.resolveHttpAuthSchemeConfig=O55});var pM7=C((QM7)=>{Object.defineProperty(QM7,"__esModule",{value:!0});QM7.ruleSet=void 0;var FM7="required",lZ="fn",iZ="argv",Cc="ref",hM7=!0,IM7="isSet",g36="booleanEquals",RP6="error",Vt="endpoint",$b="tree",Z_1="PartitionResult",Hw8="stringEquals",bM7={[FM7]:!0,default:!1,type:"boolean"},xM7={[FM7]:!1,type:"string"},uM7={[Cc]:"Endpoint"},jw8={[lZ]:g36,[iZ]:[{[Cc]:"UseFIPS"},!0]},Jw8={[lZ]:g36,[iZ]:[{[Cc]:"UseDualStack"},!0]},cZ={},Mw8={[lZ]:"getAttr",[iZ]:[{[Cc]:Z_1},"name"]},P_1={[lZ]:g36,[iZ]:[{[Cc]:"UseFIPS"},!1]},W_1={[lZ]:g36,[iZ]:[{[Cc]:"UseDualStack"},!1]},BM7={[lZ]:"getAttr",[iZ]:[{[Cc]:Z_1},"supportsFIPS"]},mM7={[lZ]:g36,[iZ]:[!0,{[lZ]:"getAttr",[iZ]:[{[Cc]:Z_1},"supportsDualStack"]}]},gM7=[{[Cc]:"Region"}],J55={version:"1.0",parameters:{UseDualStack:bM7,UseFIPS:bM7,Endpoint:xM7,Region:xM7},rules:[{conditions:[{[lZ]:IM7,[iZ]:[uM7]}],rules:[{conditions:[jw8],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:RP6},{rules:[{conditions:[Jw8],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:RP6},{endpoint:{url:uM7,properties:cZ,headers:cZ},type:Vt}],type:$b}],type:$b},{rules:[{conditions:[{[lZ]:IM7,[iZ]:gM7}],rules:[{conditions:[{[lZ]:"aws.partition",[iZ]:gM7,assign:Z_1}],rules:[{conditions:[{[lZ]:Hw8,[iZ]:[Mw8,"aws"]},P_1,W_1],endpoint:{url:"https://{Region}.signin.aws.amazon.com",properties:cZ,headers:cZ},type:Vt},{conditions:[{[lZ]:Hw8,[iZ]:[Mw8,"aws-cn"]},P_1,W_1],endpoint:{url:"https://{Region}.signin.amazonaws.cn",properties:cZ,headers:cZ},type:Vt},{conditions:[{[lZ]:Hw8,[iZ]:[Mw8,"aws-us-gov"]},P_1,W_1],endpoint:{url:"https://{Region}.signin.amazonaws-us-gov.com",properties:cZ,headers:cZ},type:Vt},{conditions:[jw8,Jw8],rules:[{conditions:[{[lZ]:g36,[iZ]:[hM7,BM7]},mM7],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cZ,headers:cZ},type:Vt}],type:$b},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:RP6}],type:$b},{conditions:[jw8,W_1],rules:[{conditions:[{[lZ]:g36,[iZ]:[BM7,hM7]}],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:cZ,headers:cZ},type:Vt}],type:$b},{error:"FIPS is enabled but this partition does not support FIPS",type:RP6}],type:$b},{conditions:[P_1,Jw8],rules:[{conditions:[mM7],rules:[{endpoint:{url:"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:cZ,headers:cZ},type:Vt}],type:$b},{error:"DualStack is enabled but this partition does not support DualStack",type:RP6}],type:$b},{endpoint:{url:"https://signin.{Region}.{PartitionResult#dnsSuffix}",properties:cZ,headers:cZ},type:Vt}],type:$b}],type:$b},{error:"Invalid Configuration: Missing Region",type:RP6}],type:$b}]};QM7.ruleSet=J55});var lM7=C((dM7)=>{Object.defineProperty(dM7,"__esModule",{value:!0});dM7.defaultEndpointResolver=void 0;var M55=pm(),Dw8=Ab(),D55=pM7(),X55=new Dw8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),P55=(A,q={})=>{return X55.get(A,()=>(0,Dw8.resolveEndpoint)(D55.ruleSet,{endpointParams:A,logger:q.logger}))};dM7.defaultEndpointResolver=P55;Dw8.customEndpointFunctions.aws=M55.awsEndpointFunctions});var aM7=C((rM7)=>{Object.defineProperty(rM7,"__esModule",{value:!0});rM7.getRuntimeConfig=void 0;var W55=O$(),Z55=Lc(),G55=pw(),f55=df(),T55=LR(),iM7=c21(),nM7=Z2(),V55=Ow8(),N55=lM7(),v55=(A)=>{return{apiVersion:"2023-01-01",base64Decoder:A?.base64Decoder??iM7.fromBase64,base64Encoder:A?.base64Encoder??iM7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??N55.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??V55.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new W55.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new G55.NoAuthSigner}],logger:A?.logger??new f55.NoOpLogger,protocol:A?.protocol??new Z55.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.signin"}),serviceId:A?.serviceId??"Signin",urlParser:A?.urlParser??T55.parseUrl,utf8Decoder:A?.utf8Decoder??nM7.fromUtf8,utf8Encoder:A?.utf8Encoder??nM7.toUtf8}};rM7.getRuntimeConfig=v55});var YD7=C((qD7)=>{Object.defineProperty(qD7,"__esModule",{value:!0});qD7.getRuntimeConfig=void 0;var k55=d2(),E55=k55.__importDefault(Q21()),sM7=O$(),tM7=Nc(),G_1=NJ(),L55=vc(),eM7=h0(),F36=HN(),AD7=$N(),y55=kc(),R55=lm(),S55=aM7(),C55=df(),h55=Rc(),I55=df(),b55=(A)=>{(0,I55.emitWarningIfUnsupportedVersion)(process.version);let q=(0,h55.resolveDefaultsModeConfig)(A),K=()=>q().then(C55.loadConfigsForDefaultMode),Y=(0,S55.getRuntimeConfig)(A);(0,sM7.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,F36.loadConfig)(sM7.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??y55.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,tM7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:E55.default.version}),maxAttempts:A?.maxAttempts??(0,F36.loadConfig)(eM7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,F36.loadConfig)(G_1.NODE_REGION_CONFIG_OPTIONS,{...G_1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:AD7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,F36.loadConfig)({...eM7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||R55.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??L55.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??AD7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,F36.loadConfig)(G_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,F36.loadConfig)(G_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,F36.loadConfig)(tM7.NODE_APP_ID_CONFIG_OPTIONS,z)}};qD7.getRuntimeConfig=b55});var RD7=C((Tw8)=>{var zD7=Dc(),x55=Xc(),u55=Pc(),wD7=cm(),B55=NJ(),Xw8=pw(),SP6=lO(),m55=Vc(),VD7=qb(),_D7=h0(),Nt=df(),$D7=Ow8(),g55=YD7(),OD7=Kb(),HD7=n21(),F55=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"signin"})},Q55={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},U55=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}},p55=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}},d55=(A,q)=>{let K=Object.assign(OD7.getAwsRegionExtensionConfiguration(A),Nt.getDefaultExtensionConfiguration(A),HD7.getHttpHandlerExtensionConfiguration(A),U55(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,OD7.resolveAwsRegionExtensionConfiguration(K),Nt.resolveDefaultRuntimeConfig(K),HD7.resolveHttpHandlerRuntimeConfig(K),p55(K))};class Pw8 extends Nt.Client{config;constructor(...[A]){let q=g55.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=F55(q),Y=wD7.resolveUserAgentConfig(K),z=_D7.resolveRetryConfig(Y),w=B55.resolveRegionConfig(z),_=zD7.resolveHostHeaderConfig(w),$=VD7.resolveEndpointConfig(_),O=$D7.resolveHttpAuthSchemeConfig($),H=d55(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(SP6.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(wD7.getUserAgentPlugin(this.config)),this.middlewareStack.use(_D7.getRetryPlugin(this.config)),this.middlewareStack.use(m55.getContentLengthPlugin(this.config)),this.middlewareStack.use(zD7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(x55.getLoggerPlugin(this.config)),this.middlewareStack.use(u55.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Xw8.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:$D7.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new Xw8.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use(Xw8.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var CP6=class A extends Nt.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},ND7=class A extends CP6{name="AccessDeniedException";$fault="client";error;constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},vD7=class A extends CP6{name="InternalServerException";$fault="server";error;constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},kD7=class A extends CP6{name="TooManyRequestsError";$fault="client";error;constructor(q){super({name:"TooManyRequestsError",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},ED7=class A extends CP6{name="ValidationException";$fault="client";error;constructor(q){super({name:"ValidationException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.error=q.error}},c55="AccessDeniedException",l55="AccessToken",i55="CreateOAuth2Token",n55="CreateOAuth2TokenRequest",r55="CreateOAuth2TokenRequestBody",o55="CreateOAuth2TokenResponseBody",a55="CreateOAuth2TokenResponse",s55="InternalServerException",t55="RefreshToken",e55="TooManyRequestsError",A95="ValidationException",jD7="accessKeyId",JD7="accessToken",Ww8="client",MD7="clientId",DD7="codeVerifier",q95="code",vt="error",XD7="expiresIn",PD7="grantType",K95="http",Zw8="httpError",WD7="idToken",fE="jsonName",T_1="message",f_1="refreshToken",ZD7="redirectUri",Y95="server",GD7="secretAccessKey",fD7="sessionToken",LD7="smithy.ts.sdk.synthetic.com.amazonaws.signin",z95="tokenInput",w95="tokenOutput",TD7="tokenType",cf="com.amazonaws.signin",yD7=[0,cf,t55,8,0],_95=[-3,cf,c55,{[vt]:Ww8},[vt,T_1],[0,0]];SP6.TypeRegistry.for(cf).registerError(_95,ND7);var $95=[3,cf,l55,8,[jD7,GD7,fD7],[[0,{[fE]:jD7}],[0,{[fE]:GD7}],[0,{[fE]:fD7}]]],O95=[3,cf,n55,0,[z95],[[()=>H95,16]]],H95=[3,cf,r55,0,[MD7,PD7,q95,ZD7,DD7,f_1],[[0,{[fE]:MD7}],[0,{[fE]:PD7}],0,[0,{[fE]:ZD7}],[0,{[fE]:DD7}],[()=>yD7,{[fE]:f_1}]]],j95=[3,cf,a55,0,[w95],[[()=>J95,16]]],J95=[3,cf,o55,0,[JD7,TD7,XD7,f_1,WD7],[[()=>$95,{[fE]:JD7}],[0,{[fE]:TD7}],[1,{[fE]:XD7}],[()=>yD7,{[fE]:f_1}],[0,{[fE]:WD7}]]],M95=[-3,cf,s55,{[vt]:Y95,[Zw8]:500},[vt,T_1],[0,0]];SP6.TypeRegistry.for(cf).registerError(M95,vD7);var D95=[-3,cf,e55,{[vt]:Ww8,[Zw8]:429},[vt,T_1],[0,0]];SP6.TypeRegistry.for(cf).registerError(D95,kD7);var X95=[-3,cf,A95,{[vt]:Ww8,[Zw8]:400},[vt,T_1],[0,0]];SP6.TypeRegistry.for(cf).registerError(X95,ED7);var P95=[-3,LD7,"SigninServiceException",0,[],[]];SP6.TypeRegistry.for(LD7).registerError(P95,CP6);var W95=[9,cf,i55,{[K95]:["POST","/v1/token",200]},()=>O95,()=>j95];class Gw8 extends Nt.Command.classBuilder().ep(Q55).m(function(A,q,K,Y){return[VD7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(W95).build(){}var Z95={CreateOAuth2TokenCommand:Gw8};class fw8 extends Pw8{}Nt.createAggregatedClient(Z95,fw8);var G95={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};Object.defineProperty(Tw8,"$Command",{enumerable:!0,get:function(){return Nt.Command}});Object.defineProperty(Tw8,"__Client",{enumerable:!0,get:function(){return Nt.Client}});Tw8.AccessDeniedException=ND7;Tw8.CreateOAuth2TokenCommand=Gw8;Tw8.InternalServerException=vD7;Tw8.OAuth2ErrorCode=G95;Tw8.Signin=fw8;Tw8.SigninClient=Pw8;Tw8.SigninServiceException=CP6;Tw8.TooManyRequestsError=kD7;Tw8.ValidationException=ED7});var Ew8=C((I95)=>{var R95=ON(),kt=EM(),vw8=gm(),S95=RM7(),V_1=g6("node:crypto"),Vw8=g6("node:fs"),C95=g6("node:os"),Nw8=g6("node:path");class kw8{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(A,q,K){this.profileData=A,this.init=q,this.callerClientConfig=K}async loadCredentials(){let A=await this.loadToken();if(!A)throw new kt.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let q=A.accessToken,K=Date.now();if(new Date(q.expiresAt).getTime()-K<=kw8.REFRESH_THRESHOLD)return this.refresh(A);return{accessKeyId:q.accessKeyId,secretAccessKey:q.secretAccessKey,sessionToken:q.sessionToken,accountId:q.accountId,expiration:new Date(q.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(A){let{SigninClient:q,CreateOAuth2TokenCommand:K}=await Promise.resolve().then(() => e(RD7())),{logger:Y,userAgentAppId:z}=this.callerClientConfig??{},_=((j)=>{return j?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,$=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,O=new q({credentials:{accessKeyId:"",secretAccessKey:""},region:$,requestHandler:_,logger:Y,userAgentAppId:z,...this.init?.clientConfig});this.createDPoPInterceptor(O.middlewareStack);let H={tokenInput:{clientId:A.clientId,refreshToken:A.refreshToken,grantType:"refresh_token"}};try{let j=await O.send(new K(H)),{accessKeyId:J,secretAccessKey:M,sessionToken:D}=j.tokenOutput?.accessToken??{},{refreshToken:X,expiresIn:P}=j.tokenOutput??{};if(!J||!M||!D||!X)throw new kt.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let W=(P??900)*1000,Z=new Date(Date.now()+W),G={...A,accessToken:{...A.accessToken,accessKeyId:J,secretAccessKey:M,sessionToken:D,expiresAt:Z.toISOString()},refreshToken:X};await this.saveToken(G);let f=G.accessToken;return{accessKeyId:f.accessKeyId,secretAccessKey:f.secretAccessKey,sessionToken:f.sessionToken,accountId:f.accountId,expiration:Z}}catch(j){if(j.name==="AccessDeniedException"){let J=j.error,M;switch(J){case"TOKEN_EXPIRED":M="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":M="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":M="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:M=`Failed to refresh token: ${String(j)}. Please re-authenticate using \`aws login\``}throw new kt.CredentialsProviderError(M,{logger:this.logger,tryNextLink:!1})}throw new kt.CredentialsProviderError(`Failed to refresh token: ${String(j)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let A=this.getTokenFilePath();try{let q;try{q=await vw8.readFile(A,{ignoreCache:this.init?.ignoreCache})}catch{q=await Vw8.promises.readFile(A,"utf8")}let K=JSON.parse(q),Y=["accessToken","clientId","refreshToken","dpopKey"].filter((z)=>!K[z]);if(!K.accessToken?.accountId)Y.push("accountId");if(Y.length>0)throw new kt.CredentialsProviderError(`Token validation failed, missing fields: ${Y.join(", ")}`,{logger:this.logger,tryNextLink:!1});return K}catch(q){throw new kt.CredentialsProviderError(`Failed to load token from ${A}: ${String(q)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(A){let q=this.getTokenFilePath(),K=Nw8.dirname(q);try{await Vw8.promises.mkdir(K,{recursive:!0})}catch(Y){}await Vw8.promises.writeFile(q,JSON.stringify(A,null,2),"utf8")}getTokenFilePath(){let A=process.env.AWS_LOGIN_CACHE_DIRECTORY??Nw8.join(C95.homedir(),".aws","login","cache"),q=Buffer.from(this.loginSession,"utf8"),K=V_1.createHash("sha256").update(q).digest("hex");return Nw8.join(A,`${K}.json`)}derToRawSignature(A){let q=2;if(A[q]!==2)throw Error("Invalid DER signature");q++;let K=A[q++],Y=A.subarray(q,q+K);if(q+=K,A[q]!==2)throw Error("Invalid DER signature");q++;let z=A[q++],w=A.subarray(q,q+z);Y=Y[0]===0?Y.subarray(1):Y,w=w[0]===0?w.subarray(1):w;let _=Buffer.concat([Buffer.alloc(32-Y.length),Y]),$=Buffer.concat([Buffer.alloc(32-w.length),w]);return Buffer.concat([_,$])}createDPoPInterceptor(A){A.add((q)=>async(K)=>{if(S95.HttpRequest.isInstance(K.request)){let Y=K.request,z=`${Y.protocol}//${Y.hostname}${Y.port?`:${Y.port}`:""}${Y.path}`,w=await this.generateDpop(Y.method,z);Y.headers={...Y.headers,DPoP:w}}return q(K)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(A="POST",q){let K=await this.loadToken();try{let Y=V_1.createPrivateKey({key:K.dpopKey,format:"pem",type:"sec1"}),w=V_1.createPublicKey(Y).export({format:"der",type:"spki"}),_=-1;for(let Z=0;Z<w.length;Z++)if(w[Z]===4){_=Z;break}let $=w.slice(_+1,_+33),O=w.slice(_+33,_+65),H={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:$.toString("base64url"),y:O.toString("base64url")}},j={jti:crypto.randomUUID(),htm:A,htu:q,iat:Math.floor(Date.now()/1000)},J=Buffer.from(JSON.stringify(H)).toString("base64url"),M=Buffer.from(JSON.stringify(j)).toString("base64url"),D=`${J}.${M}`,X=V_1.sign("sha256",Buffer.from(D),Y),W=this.derToRawSignature(X).toString("base64url");return`${D}.${W}`}catch(Y){throw new kt.CredentialsProviderError(`Failed to generate Dpop proof: ${Y instanceof Error?Y.message:String(Y)}`,{logger:this.logger,tryNextLink:!1})}}}var h95=(A)=>async({callerClientConfig:q}={})=>{A?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let K=await vw8.parseKnownFiles(A||{}),Y=vw8.getProfileName({profile:A?.profile??q?.profile}),z=K[Y];if(!z?.login_session)throw new kt.CredentialsProviderError(`Profile ${Y} does not contain login_session.`,{tryNextLink:!0,logger:A?.logger});let _=await new kw8(z,A,q).loadCredentials();return R95.setCredentialFeature(_,"CREDENTIALS_LOGIN","AD")};I95.fromLoginCredentials=h95});var yw8=C((SD7)=>{Object.defineProperty(SD7,"__esModule",{value:!0});SD7.resolveHttpAuthSchemeConfig=SD7.resolveStsAuthConfig=SD7.defaultSTSHttpAuthSchemeProvider=SD7.defaultSTSHttpAuthSchemeParametersProvider=void 0;var x95=O$(),Lw8=pZ(),u95=Rw8(),B95=async(A,q,K)=>{return{operation:(0,Lw8.getSmithyContext)(q).operation,region:await(0,Lw8.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};SD7.defaultSTSHttpAuthSchemeParametersProvider=B95;function m95(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function g95(A){return{schemeId:"smithy.api#noAuth"}}var F95=(A)=>{let q=[];switch(A.operation){case"AssumeRoleWithWebIdentity":{q.push(g95(A));break}default:q.push(m95(A))}return q};SD7.defaultSTSHttpAuthSchemeProvider=F95;var Q95=(A)=>Object.assign(A,{stsClientCtor:u95.STSClient});SD7.resolveStsAuthConfig=Q95;var U95=(A)=>{let q=SD7.resolveStsAuthConfig(A),K=(0,x95.resolveAwsSdkSigV4Config)(q);return Object.assign(K,{authSchemePreference:(0,Lw8.normalizeProvider)(A.authSchemePreference??[])})};SD7.resolveHttpAuthSchemeConfig=U95});var Sw8=C((ID7)=>{Object.defineProperty(ID7,"__esModule",{value:!0});ID7.commonParams=ID7.resolveClientEndpointParameters=void 0;var c95=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,useGlobalEndpoint:A.useGlobalEndpoint??!1,defaultSigningName:"sts"})};ID7.resolveClientEndpointParameters=c95;ID7.commonParams={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 YX7=C((qX7)=>{Object.defineProperty(qX7,"__esModule",{value:!0});qX7.ruleSet=void 0;var lD7="required",Q5="type",oz="fn",az="argv",Lt="ref",xD7=!1,Cw8=!0,Et="booleanEquals",b0="stringEquals",iD7="sigv4",nD7="sts",rD7="us-east-1",iO="endpoint",uD7="https://sts.{Region}.{PartitionResult#dnsSuffix}",nm="tree",hP6="error",Iw8="getAttr",BD7={[lD7]:!1,[Q5]:"string"},hw8={[lD7]:!0,default:!1,[Q5]:"boolean"},oD7={[Lt]:"Endpoint"},mD7={[oz]:"isSet",[az]:[{[Lt]:"Region"}]},x0={[Lt]:"Region"},gD7={[oz]:"aws.partition",[az]:[x0],assign:"PartitionResult"},aD7={[Lt]:"UseFIPS"},sD7={[Lt]:"UseDualStack"},nZ={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:iD7,signingName:nD7,signingRegion:rD7}]},headers:{}},TE={},FD7={conditions:[{[oz]:b0,[az]:[x0,"aws-global"]}],[iO]:nZ,[Q5]:iO},tD7={[oz]:Et,[az]:[aD7,!0]},eD7={[oz]:Et,[az]:[sD7,!0]},QD7={[oz]:Iw8,[az]:[{[Lt]:"PartitionResult"},"supportsFIPS"]},AX7={[Lt]:"PartitionResult"},UD7={[oz]:Et,[az]:[!0,{[oz]:Iw8,[az]:[AX7,"supportsDualStack"]}]},pD7=[{[oz]:"isSet",[az]:[oD7]}],dD7=[tD7],cD7=[eD7],i95={version:"1.0",parameters:{Region:BD7,UseDualStack:hw8,UseFIPS:hw8,Endpoint:BD7,UseGlobalEndpoint:hw8},rules:[{conditions:[{[oz]:Et,[az]:[{[Lt]:"UseGlobalEndpoint"},Cw8]},{[oz]:"not",[az]:pD7},mD7,gD7,{[oz]:Et,[az]:[aD7,xD7]},{[oz]:Et,[az]:[sD7,xD7]}],rules:[{conditions:[{[oz]:b0,[az]:[x0,"ap-northeast-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"ap-south-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"ap-southeast-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"ap-southeast-2"]}],endpoint:nZ,[Q5]:iO},FD7,{conditions:[{[oz]:b0,[az]:[x0,"ca-central-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"eu-central-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"eu-north-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"eu-west-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"eu-west-2"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"eu-west-3"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"sa-east-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,rD7]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"us-east-2"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"us-west-1"]}],endpoint:nZ,[Q5]:iO},{conditions:[{[oz]:b0,[az]:[x0,"us-west-2"]}],endpoint:nZ,[Q5]:iO},{endpoint:{url:uD7,properties:{authSchemes:[{name:iD7,signingName:nD7,signingRegion:"{Region}"}]},headers:TE},[Q5]:iO}],[Q5]:nm},{conditions:pD7,rules:[{conditions:dD7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[Q5]:hP6},{conditions:cD7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[Q5]:hP6},{endpoint:{url:oD7,properties:TE,headers:TE},[Q5]:iO}],[Q5]:nm},{conditions:[mD7],rules:[{conditions:[gD7],rules:[{conditions:[tD7,eD7],rules:[{conditions:[{[oz]:Et,[az]:[Cw8,QD7]},UD7],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:TE,headers:TE},[Q5]:iO}],[Q5]:nm},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[Q5]:hP6}],[Q5]:nm},{conditions:dD7,rules:[{conditions:[{[oz]:Et,[az]:[QD7,Cw8]}],rules:[{conditions:[{[oz]:b0,[az]:[{[oz]:Iw8,[az]:[AX7,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:TE,headers:TE},[Q5]:iO},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:TE,headers:TE},[Q5]:iO}],[Q5]:nm},{error:"FIPS is enabled but this partition does not support FIPS",[Q5]:hP6}],[Q5]:nm},{conditions:cD7,rules:[{conditions:[UD7],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:TE,headers:TE},[Q5]:iO}],[Q5]:nm},{error:"DualStack is enabled but this partition does not support DualStack",[Q5]:hP6}],[Q5]:nm},FD7,{endpoint:{url:uD7,properties:TE,headers:TE},[Q5]:iO}],[Q5]:nm}],[Q5]:nm},{error:"Invalid Configuration: Missing Region",[Q5]:hP6}]};qX7.ruleSet=i95});var _X7=C((zX7)=>{Object.defineProperty(zX7,"__esModule",{value:!0});zX7.defaultEndpointResolver=void 0;var n95=pm(),bw8=Ab(),r95=YX7(),o95=new bw8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),a95=(A,q={})=>{return o95.get(A,()=>(0,bw8.resolveEndpoint)(r95.ruleSet,{endpointParams:A,logger:q.logger}))};zX7.defaultEndpointResolver=a95;bw8.customEndpointFunctions.aws=n95.awsEndpointFunctions});var JX7=C((HX7)=>{Object.defineProperty(HX7,"__esModule",{value:!0});HX7.getRuntimeConfig=void 0;var s95=O$(),t95=Lc(),e95=pw(),AY5=df(),qY5=LR(),$X7=c21(),OX7=Z2(),KY5=yw8(),YY5=_X7(),zY5=(A)=>{return{apiVersion:"2011-06-15",base64Decoder:A?.base64Decoder??$X7.fromBase64,base64Encoder:A?.base64Encoder??$X7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??YY5.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??KY5.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new s95.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new e95.NoAuthSigner}],logger:A?.logger??new AY5.NoOpLogger,protocol:A?.protocol??new t95.AwsQueryProtocol({defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15"}),serviceId:A?.serviceId??"STS",urlParser:A?.urlParser??qY5.parseUrl,utf8Decoder:A?.utf8Decoder??OX7.fromUtf8,utf8Encoder:A?.utf8Encoder??OX7.toUtf8}};HX7.getRuntimeConfig=zY5});var ZX7=C((PX7)=>{Object.defineProperty(PX7,"__esModule",{value:!0});PX7.getRuntimeConfig=void 0;var wY5=d2(),_Y5=wY5.__importDefault(Q21()),xw8=O$(),MX7=Nc(),N_1=NJ(),$Y5=pw(),OY5=vc(),DX7=h0(),Q36=HN(),XX7=$N(),HY5=kc(),jY5=lm(),JY5=JX7(),MY5=df(),DY5=Rc(),XY5=df(),PY5=(A)=>{(0,XY5.emitWarningIfUnsupportedVersion)(process.version);let q=(0,DY5.resolveDefaultsModeConfig)(A),K=()=>q().then(MY5.loadConfigsForDefaultMode),Y=(0,JY5.getRuntimeConfig)(A);(0,xw8.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,Q36.loadConfig)(xw8.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??HY5.calculateBodyLength,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,MX7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:_Y5.default.version}),httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4")||(async(_)=>await A.credentialDefaultProvider(_?.__config||{})()),signer:new xw8.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new $Y5.NoAuthSigner}],maxAttempts:A?.maxAttempts??(0,Q36.loadConfig)(DX7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,Q36.loadConfig)(N_1.NODE_REGION_CONFIG_OPTIONS,{...N_1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:XX7.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,Q36.loadConfig)({...DX7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||jY5.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??OY5.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??XX7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,Q36.loadConfig)(N_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,Q36.loadConfig)(N_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,Q36.loadConfig)(MX7.NODE_APP_ID_CONFIG_OPTIONS,z)}};PX7.getRuntimeConfig=PY5});var TX7=C((GX7)=>{Object.defineProperty(GX7,"__esModule",{value:!0});GX7.resolveHttpAuthRuntimeConfig=GX7.getHttpAuthExtensionConfiguration=void 0;var WY5=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y}=A;return{setHttpAuthScheme(z){let w=q.findIndex((_)=>_.schemeId===z.schemeId);if(w===-1)q.push(z);else q.splice(w,1,z)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(z){K=z},httpAuthSchemeProvider(){return K},setCredentials(z){Y=z},credentials(){return Y}}};GX7.getHttpAuthExtensionConfiguration=WY5;var ZY5=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials()}};GX7.resolveHttpAuthRuntimeConfig=ZY5});var yX7=C((EX7)=>{Object.defineProperty(EX7,"__esModule",{value:!0});EX7.resolveRuntimeExtensions=void 0;var VX7=Kb(),NX7=n21(),vX7=df(),kX7=TX7(),fY5=(A,q)=>{let K=Object.assign((0,VX7.getAwsRegionExtensionConfiguration)(A),(0,vX7.getDefaultExtensionConfiguration)(A),(0,NX7.getHttpHandlerExtensionConfiguration)(A),(0,kX7.getHttpAuthExtensionConfiguration)(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,(0,VX7.resolveAwsRegionExtensionConfiguration)(K),(0,vX7.resolveDefaultRuntimeConfig)(K),(0,NX7.resolveHttpHandlerRuntimeConfig)(K),(0,kX7.resolveHttpAuthRuntimeConfig)(K))};EX7.resolveRuntimeExtensions=fY5});var Rw8=C((Bw8)=>{Object.defineProperty(Bw8,"__esModule",{value:!0});Bw8.STSClient=Bw8.__Client=void 0;var RX7=Dc(),TY5=Xc(),VY5=Pc(),SX7=cm(),NY5=NJ(),uw8=pw(),vY5=lO(),kY5=Vc(),EY5=qb(),CX7=h0(),IX7=df();Object.defineProperty(Bw8,"__Client",{enumerable:!0,get:function(){return IX7.Client}});var hX7=yw8(),LY5=Sw8(),yY5=ZX7(),RY5=yX7();class bX7 extends IX7.Client{config;constructor(...[A]){let q=(0,yY5.getRuntimeConfig)(A||{});super(q);this.initConfig=q;let K=(0,LY5.resolveClientEndpointParameters)(q),Y=(0,SX7.resolveUserAgentConfig)(K),z=(0,CX7.resolveRetryConfig)(Y),w=(0,NY5.resolveRegionConfig)(z),_=(0,RX7.resolveHostHeaderConfig)(w),$=(0,EY5.resolveEndpointConfig)(_),O=(0,hX7.resolveHttpAuthSchemeConfig)($),H=(0,RY5.resolveRuntimeExtensions)(O,A?.extensions||[]);this.config=H,this.middlewareStack.use((0,vY5.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,SX7.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,CX7.getRetryPlugin)(this.config)),this.middlewareStack.use((0,kY5.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,RX7.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,TY5.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,VY5.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,uw8.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:hX7.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new uw8.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials})})),this.middlewareStack.use((0,uw8.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Bw8.STSClient=bX7});var L_1=C((v_1)=>{var EB6=Rw8(),LB6=df(),uX7=qb(),BX7=Sw8(),yt=lO(),mw8=ON(),SY5=Kb(),hc=class A extends LB6.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},mX7=class A extends hc{name="ExpiredTokenException";$fault="client";constructor(q){super({name:"ExpiredTokenException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},gX7=class A extends hc{name="MalformedPolicyDocumentException";$fault="client";constructor(q){super({name:"MalformedPolicyDocumentException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},FX7=class A extends hc{name="PackedPolicyTooLargeException";$fault="client";constructor(q){super({name:"PackedPolicyTooLargeException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},QX7=class A extends hc{name="RegionDisabledException";$fault="client";constructor(q){super({name:"RegionDisabledException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},UX7=class A extends hc{name="IDPRejectedClaimException";$fault="client";constructor(q){super({name:"IDPRejectedClaimException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},pX7=class A extends hc{name="InvalidIdentityTokenException";$fault="client";constructor(q){super({name:"InvalidIdentityTokenException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},dX7=class A extends hc{name="IDPCommunicationErrorException";$fault="client";constructor(q){super({name:"IDPCommunicationErrorException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},CY5="Arn",hY5="AccessKeyId",IY5="AssumeRole",bY5="AssumedRoleId",xY5="AssumeRoleRequest",uY5="AssumeRoleResponse",gw8="AssumedRoleUser",BY5="AssumeRoleWithWebIdentity",mY5="AssumeRoleWithWebIdentityRequest",gY5="AssumeRoleWithWebIdentityResponse",FY5="Audience",Fw8="Credentials",QY5="ContextAssertion",cX7="DurationSeconds",UY5="Expiration",pY5="ExternalId",dY5="ExpiredTokenException",cY5="IDPCommunicationErrorException",lY5="IDPRejectedClaimException",iY5="InvalidIdentityTokenException",nY5="Key",rY5="MalformedPolicyDocumentException",lX7="Policy",iX7="PolicyArns",oY5="ProviderArn",aY5="ProvidedContexts",sY5="ProvidedContextsListType",tY5="ProvidedContext",eY5="PolicyDescriptorType",Az5="ProviderId",nX7="PackedPolicySize",qz5="PackedPolicyTooLargeException",Kz5="Provider",rX7="RoleArn",Yz5="RegionDisabledException",oX7="RoleSessionName",zz5="SecretAccessKey",wz5="SubjectFromWebIdentityToken",Qw8="SourceIdentity",_z5="SerialNumber",$z5="SessionToken",Oz5="Tags",Hz5="TokenCode",jz5="TransitiveTagKeys",Jz5="Tag",Mz5="Value",Dz5="WebIdentityToken",Xz5="arn",Pz5="accessKeySecretType",U36="awsQueryError",p36="client",Wz5="clientTokenType",d36="error",c36="httpError",l36="message",Zz5="policyDescriptorListType",aX7="smithy.ts.sdk.synthetic.com.amazonaws.sts",Gz5="tagListType",cw="com.amazonaws.sts",fz5=[0,cw,Pz5,8,0],Tz5=[0,cw,Wz5,8,0],sX7=[3,cw,gw8,0,[bY5,CY5],[0,0]],Vz5=[3,cw,xY5,0,[rX7,oX7,iX7,lX7,cX7,Oz5,jz5,pY5,_z5,Hz5,Qw8,aY5],[0,0,()=>eX7,0,1,()=>mz5,64,0,0,0,0,()=>Bz5]],Nz5=[3,cw,uY5,0,[Fw8,gw8,nX7,Qw8],[[()=>tX7,0],()=>sX7,1,0]],vz5=[3,cw,mY5,0,[rX7,oX7,Dz5,Az5,iX7,lX7,cX7],[0,0,[()=>Tz5,0],0,()=>eX7,0,1]],kz5=[3,cw,gY5,0,[Fw8,wz5,gw8,nX7,Kz5,FY5,Qw8],[[()=>tX7,0],0,()=>sX7,1,0,0,0]],tX7=[3,cw,Fw8,0,[hY5,zz5,$z5,UY5],[0,[()=>fz5,0],0,4]],Ez5=[-3,cw,dY5,{[d36]:p36,[c36]:400,[U36]:["ExpiredTokenException",400]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(Ez5,mX7);var Lz5=[-3,cw,cY5,{[d36]:p36,[c36]:400,[U36]:["IDPCommunicationError",400]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(Lz5,dX7);var yz5=[-3,cw,lY5,{[d36]:p36,[c36]:403,[U36]:["IDPRejectedClaim",403]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(yz5,UX7);var Rz5=[-3,cw,iY5,{[d36]:p36,[c36]:400,[U36]:["InvalidIdentityToken",400]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(Rz5,pX7);var Sz5=[-3,cw,rY5,{[d36]:p36,[c36]:400,[U36]:["MalformedPolicyDocument",400]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(Sz5,gX7);var Cz5=[-3,cw,qz5,{[d36]:p36,[c36]:400,[U36]:["PackedPolicyTooLarge",400]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(Cz5,FX7);var hz5=[3,cw,eY5,0,[Xz5],[0]],Iz5=[3,cw,tY5,0,[oY5,QY5],[0,0]],bz5=[-3,cw,Yz5,{[d36]:p36,[c36]:403,[U36]:["RegionDisabledException",403]},[l36],[0]];yt.TypeRegistry.for(cw).registerError(bz5,QX7);var xz5=[3,cw,Jz5,0,[nY5,Mz5],[0,0]],uz5=[-3,aX7,"STSServiceException",0,[],[]];yt.TypeRegistry.for(aX7).registerError(uz5,hc);var eX7=[1,cw,Zz5,0,()=>hz5],Bz5=[1,cw,sY5,0,()=>Iz5],mz5=[1,cw,Gz5,0,()=>xz5],gz5=[9,cw,IY5,0,()=>Vz5,()=>Nz5],Fz5=[9,cw,BY5,0,()=>vz5,()=>kz5];class k_1 extends LB6.Command.classBuilder().ep(BX7.commonParams).m(function(A,q,K,Y){return[uX7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(gz5).build(){}class E_1 extends LB6.Command.classBuilder().ep(BX7.commonParams).m(function(A,q,K,Y){return[uX7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Fz5).build(){}var Qz5={AssumeRoleCommand:k_1,AssumeRoleWithWebIdentityCommand:E_1};class Uw8 extends EB6.STSClient{}LB6.createAggregatedClient(Qz5,Uw8);var AP7=(A)=>{if(typeof A?.Arn==="string"){let q=A.Arn.split(":");if(q.length>4&&q[4]!=="")return q[4]}return},qP7=async(A,q,K,Y={})=>{let z=typeof A==="function"?await A():A,w=typeof q==="function"?await q():q,_=await SY5.stsRegionDefaultResolver(Y)();return K?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${z} (credential provider clientConfig)`,`${w} (contextual client)`,`${_} (STS default: AWS_REGION, profile region, or us-east-1)`),z??w??_},Uz5=(A,q)=>{let K,Y;return async(z,w)=>{if(Y=z,!K){let{logger:j=A?.parentClientConfig?.logger,profile:J=A?.parentClientConfig?.profile,region:M,requestHandler:D=A?.parentClientConfig?.requestHandler,credentialProviderLogger:X,userAgentAppId:P=A?.parentClientConfig?.userAgentAppId}=A,W=await qP7(M,A?.parentClientConfig?.region,X,{logger:j,profile:J}),Z=!KP7(D);K=new q({...A,userAgentAppId:P,profile:J,credentialDefaultProvider:()=>async()=>Y,region:W,requestHandler:Z?D:void 0,logger:j})}let{Credentials:_,AssumedRoleUser:$}=await K.send(new k_1(w));if(!_||!_.AccessKeyId||!_.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${w.RoleArn}`);let O=AP7($),H={accessKeyId:_.AccessKeyId,secretAccessKey:_.SecretAccessKey,sessionToken:_.SessionToken,expiration:_.Expiration,..._.CredentialScope&&{credentialScope:_.CredentialScope},...O&&{accountId:O}};return mw8.setCredentialFeature(H,"CREDENTIALS_STS_ASSUME_ROLE","i"),H}},pz5=(A,q)=>{let K;return async(Y)=>{if(!K){let{logger:O=A?.parentClientConfig?.logger,profile:H=A?.parentClientConfig?.profile,region:j,requestHandler:J=A?.parentClientConfig?.requestHandler,credentialProviderLogger:M,userAgentAppId:D=A?.parentClientConfig?.userAgentAppId}=A,X=await qP7(j,A?.parentClientConfig?.region,M,{logger:O,profile:H}),P=!KP7(J);K=new q({...A,userAgentAppId:D,profile:H,region:X,requestHandler:P?J:void 0,logger:O})}let{Credentials:z,AssumedRoleUser:w}=await K.send(new E_1(Y));if(!z||!z.AccessKeyId||!z.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${Y.RoleArn}`);let _=AP7(w),$={accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.SessionToken,expiration:z.Expiration,...z.CredentialScope&&{credentialScope:z.CredentialScope},..._&&{accountId:_}};if(_)mw8.setCredentialFeature($,"RESOLVED_ACCOUNT_ID","T");return mw8.setCredentialFeature($,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),$}},KP7=(A)=>{return A?.metadata?.handlerProtocol==="h2"},YP7=(A,q)=>{if(!q)return A;else return class extends A{constructor(Y){super(Y);for(let z of q)this.middlewareStack.use(z)}}},zP7=(A={},q)=>Uz5(A,YP7(EB6.STSClient,q)),wP7=(A={},q)=>pz5(A,YP7(EB6.STSClient,q)),dz5=(A)=>(q)=>A({roleAssumer:zP7(q),roleAssumerWithWebIdentity:wP7(q),...q});Object.defineProperty(v_1,"$Command",{enumerable:!0,get:function(){return LB6.Command}});v_1.AssumeRoleCommand=k_1;v_1.AssumeRoleWithWebIdentityCommand=E_1;v_1.ExpiredTokenException=mX7;v_1.IDPCommunicationErrorException=dX7;v_1.IDPRejectedClaimException=UX7;v_1.InvalidIdentityTokenException=pX7;v_1.MalformedPolicyDocumentException=gX7;v_1.PackedPolicyTooLargeException=FX7;v_1.RegionDisabledException=QX7;v_1.STS=Uw8;v_1.STSServiceException=hc;v_1.decorateDefaultCredentialProvider=dz5;v_1.getDefaultRoleAssumer=zP7;v_1.getDefaultRoleAssumerWithWebIdentity=wP7;Object.keys(EB6).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(v_1,A))Object.defineProperty(v_1,A,{enumerable:!0,get:function(){return EB6[A]}})})});var y_1=C((jw5)=>{var dw8=gm(),pw8=EM(),zw5=g6("child_process"),ww5=g6("util"),_w5=ON(),$w5=(A,q,K)=>{if(q.Version!==1)throw Error(`Profile ${A} credential_process did not return Version 1.`);if(q.AccessKeyId===void 0||q.SecretAccessKey===void 0)throw Error(`Profile ${A} credential_process returned invalid credentials.`);if(q.Expiration){let w=new Date;if(new Date(q.Expiration)<w)throw Error(`Profile ${A} credential_process returned expired credentials.`)}let Y=q.AccountId;if(!Y&&K?.[A]?.aws_account_id)Y=K[A].aws_account_id;let z={accessKeyId:q.AccessKeyId,secretAccessKey:q.SecretAccessKey,...q.SessionToken&&{sessionToken:q.SessionToken},...q.Expiration&&{expiration:new Date(q.Expiration)},...q.CredentialScope&&{credentialScope:q.CredentialScope},...Y&&{accountId:Y}};return _w5.setCredentialFeature(z,"CREDENTIALS_PROCESS","w"),z},Ow5=async(A,q,K)=>{let Y=q[A];if(q[A]){let z=Y.credential_process;if(z!==void 0){let w=ww5.promisify(dw8.externalDataInterceptor?.getTokenRecord?.().exec??zw5.exec);try{let{stdout:_}=await w(z),$;try{$=JSON.parse(_.trim())}catch{throw Error(`Profile ${A} credential_process returned invalid JSON.`)}return $w5(A,$,q)}catch(_){throw new pw8.CredentialsProviderError(_.message,{logger:K})}}else throw new pw8.CredentialsProviderError(`Profile ${A} did not contain credential_process.`,{logger:K})}else throw new pw8.CredentialsProviderError(`Profile ${A} could not be found in shared credentials file.`,{logger:K})},Hw5=(A={})=>async({callerClientConfig:q}={})=>{A.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let K=await dw8.parseKnownFiles(A);return Ow5(dw8.getProfileName({profile:A.profile??q?.profile}),K,A.logger)};jw5.fromProcess=Hw5});var cw8=C((rm)=>{var Mw5=rm&&rm.__createBinding||(Object.create?function(A,q,K,Y){if(Y===void 0)Y=K;var z=Object.getOwnPropertyDescriptor(q,K);if(!z||("get"in z?!q.__esModule:z.writable||z.configurable))z={enumerable:!0,get:function(){return q[K]}};Object.defineProperty(A,Y,z)}:function(A,q,K,Y){if(Y===void 0)Y=K;A[Y]=q[K]}),Dw5=rm&&rm.__setModuleDefault||(Object.create?function(A,q){Object.defineProperty(A,"default",{enumerable:!0,value:q})}:function(A,q){A.default=q}),Xw5=rm&&rm.__importStar||function(){var A=function(q){return A=Object.getOwnPropertyNames||function(K){var Y=[];for(var z in K)if(Object.prototype.hasOwnProperty.call(K,z))Y[Y.length]=z;return Y},A(q)};return function(q){if(q&&q.__esModule)return q;var K={};if(q!=null){for(var Y=A(q),z=0;z<Y.length;z++)if(Y[z]!=="default")Mw5(K,q,Y[z])}return Dw5(K,q),K}}();Object.defineProperty(rm,"__esModule",{value:!0});rm.fromWebToken=void 0;var Pw5=(A)=>async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:K,roleSessionName:Y,webIdentityToken:z,providerId:w,policyArns:_,policy:$,durationSeconds:O}=A,{roleAssumerWithWebIdentity:H}=A;if(!H){let{getDefaultRoleAssumerWithWebIdentity:j}=await Promise.resolve().then(()=>Xw5(L_1()));H=j({...A.clientConfig,credentialProviderLogger:A.logger,parentClientConfig:{...q?.callerClientConfig,...A.parentClientConfig}},A.clientPlugins)}return H({RoleArn:K,RoleSessionName:Y??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:z,ProviderId:w,PolicyArns:_,Policy:$,DurationSeconds:O})};rm.fromWebToken=Pw5});var HP7=C(($P7)=>{Object.defineProperty($P7,"__esModule",{value:!0});$P7.fromTokenFile=void 0;var Ww5=ON(),Zw5=EM(),Gw5=gm(),fw5=g6("fs"),Tw5=cw8(),_P7="AWS_WEB_IDENTITY_TOKEN_FILE",Vw5="AWS_ROLE_ARN",Nw5="AWS_ROLE_SESSION_NAME",vw5=(A={})=>async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let K=A?.webIdentityTokenFile??process.env[_P7],Y=A?.roleArn??process.env[Vw5],z=A?.roleSessionName??process.env[Nw5];if(!K||!Y)throw new Zw5.CredentialsProviderError("Web identity configuration not specified",{logger:A.logger});let w=await(0,Tw5.fromWebToken)({...A,webIdentityToken:Gw5.externalDataInterceptor?.getTokenRecord?.()[K]??(0,fw5.readFileSync)(K,{encoding:"ascii"}),roleArn:Y,roleSessionName:z})(q);if(K===process.env[_P7])(0,Ww5.setCredentialFeature)(w,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return w};$P7.fromTokenFile=vw5});var RB6=C((yB6)=>{var jP7=HP7(),JP7=cw8();Object.keys(jP7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(yB6,A))Object.defineProperty(yB6,A,{enumerable:!0,get:function(){return jP7[A]}})});Object.keys(JP7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(yB6,A))Object.defineProperty(yB6,A,{enumerable:!0,get:function(){return JP7[A]}})})});var nw8=C((Fw5)=>{var iw8=gm(),SB6=EM(),Ic=ON(),kw5=Ew8(),Ew5=(A,q,K)=>{let Y={EcsContainer:async(z)=>{let{fromHttp:w}=await Promise.resolve().then(() => e(w21())),{fromContainerMetadata:_}=await Promise.resolve().then(() => e(L36()));return K?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>SB6.chain(w(z??{}),_(z))().then(lw8)},Ec2InstanceMetadata:async(z)=>{K?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:w}=await Promise.resolve().then(() => e(L36()));return async()=>w(z)().then(lw8)},Environment:async(z)=>{K?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:w}=await Promise.resolve().then(() => e(bw1()));return async()=>w(z)().then(lw8)}};if(A in Y)return Y[A];else throw new SB6.CredentialsProviderError(`Unsupported credential source in profile ${q}. Got ${A}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:K})},lw8=(A)=>Ic.setCredentialFeature(A,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),Lw5=(A,{profile:q="default",logger:K}={})=>{return Boolean(A)&&typeof A==="object"&&typeof A.role_arn==="string"&&["undefined","string"].indexOf(typeof A.role_session_name)>-1&&["undefined","string"].indexOf(typeof A.external_id)>-1&&["undefined","string"].indexOf(typeof A.mfa_serial)>-1&&(yw5(A,{profile:q,logger:K})||Rw5(A,{profile:q,logger:K}))},yw5=(A,{profile:q,logger:K})=>{let Y=typeof A.source_profile==="string"&&typeof A.credential_source>"u";if(Y)K?.debug?.(`    ${q} isAssumeRoleWithSourceProfile source_profile=${A.source_profile}`);return Y},Rw5=(A,{profile:q,logger:K})=>{let Y=typeof A.credential_source==="string"&&typeof A.source_profile>"u";if(Y)K?.debug?.(`    ${q} isCredentialSourceProfile credential_source=${A.credential_source}`);return Y},Sw5=async(A,q,K,Y={},z)=>{K.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let w=q[A],{source_profile:_,region:$}=w;if(!K.roleAssumer){let{getDefaultRoleAssumer:H}=await Promise.resolve().then(() => e(L_1()));K.roleAssumer=H({...K.clientConfig,credentialProviderLogger:K.logger,parentClientConfig:{...K?.parentClientConfig,region:$??K?.parentClientConfig?.region}},K.clientPlugins)}if(_&&_ in Y)throw new SB6.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${iw8.getProfileName(K)}. Profiles visited: `+Object.keys(Y).join(", "),{logger:K.logger});K.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${_?`source_profile=[${_}]`:`profile=[${A}]`}`);let O=_?z(_,q,K,{...Y,[_]:!0},MP7(q[_]??{})):(await Ew5(w.credential_source,A,K.logger)(K))();if(MP7(w))return O.then((H)=>Ic.setCredentialFeature(H,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let H={RoleArn:w.role_arn,RoleSessionName:w.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:w.external_id,DurationSeconds:parseInt(w.duration_seconds||"3600",10)},{mfa_serial:j}=w;if(j){if(!K.mfaCodeProvider)throw new SB6.CredentialsProviderError(`Profile ${A} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:K.logger,tryNextLink:!1});H.SerialNumber=j,H.TokenCode=await K.mfaCodeProvider(j)}let J=await O;return K.roleAssumer(J,H).then((M)=>Ic.setCredentialFeature(M,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},MP7=(A)=>{return!A.role_arn&&!!A.credential_source},Cw5=(A)=>{return Boolean(A&&A.login_session)},hw5=async(A,q)=>{let K=await kw5.fromLoginCredentials({...q,profile:A})();return Ic.setCredentialFeature(K,"CREDENTIALS_PROFILE_LOGIN","AC")},Iw5=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.credential_process==="string",bw5=async(A,q)=>Promise.resolve().then(() => e(y_1())).then(({fromProcess:K})=>K({...A,profile:q})().then((Y)=>Ic.setCredentialFeature(Y,"CREDENTIALS_PROFILE_PROCESS","v"))),xw5=async(A,q,K={})=>{let{fromSSO:Y}=await Promise.resolve().then(() => e(D_1()));return Y({profile:A,logger:K.logger,parentClientConfig:K.parentClientConfig,clientConfig:K.clientConfig})().then((z)=>{if(q.sso_session)return Ic.setCredentialFeature(z,"CREDENTIALS_PROFILE_SSO","r");else return Ic.setCredentialFeature(z,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},uw5=(A)=>A&&(typeof A.sso_start_url==="string"||typeof A.sso_account_id==="string"||typeof A.sso_session==="string"||typeof A.sso_region==="string"||typeof A.sso_role_name==="string"),DP7=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.aws_access_key_id==="string"&&typeof A.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof A.aws_session_token)>-1&&["undefined","string"].indexOf(typeof A.aws_account_id)>-1,XP7=async(A,q)=>{q?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let K={accessKeyId:A.aws_access_key_id,secretAccessKey:A.aws_secret_access_key,sessionToken:A.aws_session_token,...A.aws_credential_scope&&{credentialScope:A.aws_credential_scope},...A.aws_account_id&&{accountId:A.aws_account_id}};return Ic.setCredentialFeature(K,"CREDENTIALS_PROFILE","n")},Bw5=(A)=>Boolean(A)&&typeof A==="object"&&typeof A.web_identity_token_file==="string"&&typeof A.role_arn==="string"&&["undefined","string"].indexOf(typeof A.role_session_name)>-1,mw5=async(A,q)=>Promise.resolve().then(() => e(RB6())).then(({fromTokenFile:K})=>K({webIdentityTokenFile:A.web_identity_token_file,roleArn:A.role_arn,roleSessionName:A.role_session_name,roleAssumerWithWebIdentity:q.roleAssumerWithWebIdentity,logger:q.logger,parentClientConfig:q.parentClientConfig})().then((Y)=>Ic.setCredentialFeature(Y,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),PP7=async(A,q,K,Y={},z=!1)=>{let w=q[A];if(Object.keys(Y).length>0&&DP7(w))return XP7(w,K);if(z||Lw5(w,{profile:A,logger:K.logger}))return Sw5(A,q,K,Y,PP7);if(DP7(w))return XP7(w,K);if(Bw5(w))return mw5(w,K);if(Iw5(w))return bw5(K,A);if(uw5(w))return await xw5(A,w,K);if(Cw5(w))return hw5(A,K);throw new SB6.CredentialsProviderError(`Could not resolve credentials using profile: [${A}] in configuration/credentials file(s).`,{logger:K.logger})},gw5=(A={})=>async({callerClientConfig:q}={})=>{let K={...A,parentClientConfig:{...q,...A.parentClientConfig}};K.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let Y=await iw8.parseKnownFiles(K);return PP7(iw8.getProfileName({profile:A.profile??q?.profile}),Y,K)};Fw5.fromIni=gw5});var i36=C((nw5)=>{var rw8=bw1(),CB6=EM(),Uw5=gm(),WP7="AWS_EC2_METADATA_DISABLED",pw5=async(A)=>{let{ENV_CMDS_FULL_URI:q,ENV_CMDS_RELATIVE_URI:K,fromContainerMetadata:Y,fromInstanceMetadata:z}=await Promise.resolve().then(() => e(L36()));if(process.env[K]||process.env[q]){A.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:w}=await Promise.resolve().then(() => e(w21()));return CB6.chain(w(A),Y(A))}if(process.env[WP7]&&process.env[WP7]!=="false")return async()=>{throw new CB6.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:A.logger})};return A.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),z(A)};function dw5(A,q){let K=cw5(A),Y,z,w,_=async($)=>{if($?.forceRefresh)return await K($);if(w?.expiration){if(w?.expiration?.getTime()<Date.now())w=void 0}if(Y)await Y;else if(!w||q?.(w))if(w){if(!z)z=K($).then((O)=>{w=O,z=void 0})}else return Y=K($).then((O)=>{w=O,Y=void 0}),_($);return w};return _}var cw5=(A)=>async(q)=>{let K;for(let Y of A)try{return await Y(q)}catch(z){if(K=z,z?.tryNextLink)continue;throw z}throw K},ZP7=!1,lw5=(A={})=>dw5([async()=>{if(A.profile??process.env[Uw5.ENV_PROFILE]){if(process.env[rw8.ENV_KEY]&&process.env[rw8.ENV_SECRET]){if(!ZP7)(A.logger?.warn&&A.logger?.constructor?.name!=="NoOpLogger"?A.logger.warn.bind(A.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.
`),ZP7=!0}throw new CB6.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:A.logger,tryNextLink:!0})}return A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),rw8.fromEnv(A)()},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:K,ssoAccountId:Y,ssoRegion:z,ssoRoleName:w,ssoSession:_}=A;if(!K&&!Y&&!z&&!w&&!_)throw new CB6.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:A.logger});let{fromSSO:$}=await Promise.resolve().then(() => e(D_1()));return $(A)(q)},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:K}=await Promise.resolve().then(() => e(nw8()));return K(A)(q)},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:K}=await Promise.resolve().then(() => e(y_1()));return K(A)(q)},async(q)=>{A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:K}=await Promise.resolve().then(() => e(RB6()));return K(A)(q)},async()=>{return A.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await pw5(A))()},async()=>{throw new CB6.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:A.logger})}],GP7),iw5=(A)=>A?.expiration!==void 0,GP7=(A)=>A?.expiration!==void 0&&A.expiration.getTime()-Date.now()<300000;nw5.credentialsTreatedAsExpired=GP7;nw5.credentialsWillNeedRefresh=iw5;nw5.defaultProvider=lw5});function sw5(A){switch(A.family){case 0:case 4:case 6:return A.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${A.family}`)}}function mR(A=process.env){return A.https_proxy||A.HTTPS_PROXY||A.http_proxy||A.HTTP_PROXY}function tw5(A=process.env){return A.no_proxy||A.NO_PROXY}function Rt(A,q=tw5()){if(!q)return!1;if(q==="*")return!0;try{let K=new URL(A),Y=K.hostname.toLowerCase(),z=K.port||(K.protocol==="https:"?"443":"80"),w=`${Y}:${z}`;return q.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return w===$;if($.startsWith(".")){let O=$;return Y===$.substring(1)||Y.endsWith(O)}return Y===$})}catch{return!1}}function S_1(A,q={}){let K=ER(),Y=tI(),z={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Y&&{ca:Y}};if($1(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))z.lookup=(w,_,$)=>{$(null,w,sw5(_))};return new fP7.HttpsProxyAgent(A,{...z,...q})}function TP7(A={}){let q=mR(),K=yw1(),Y=I8.create({proxy:!1});if(!q){if(K)Y.defaults.httpsAgent=K;return Y}let z=S_1(q,A);return Y.interceptors.request.use((w)=>{if(w.url&&Rt(w.url))w.httpsAgent=K,w.httpAgent=K;else w.httpsAgent=z,w.httpAgent=z;return w}),Y}function bc(A){let q=mR();if(!q)return;if(Rt(A))return;return S_1(q)}function xc(A){let q=mR();if(!q)return;if(Rt(A))return;return q}function n36(){let A=mR();if(A){if(typeof Bun<"u")return{proxy:A,...Rw1()};return{dispatcher:ow8(A)}}return Rw1()}function C_1(){let A=mR(),q=yw1();if(R_1!==void 0)I8.interceptors.request.eject(R_1),R_1=void 0;if(I8.defaults.proxy=void 0,I8.defaults.httpAgent=void 0,I8.defaults.httpsAgent=void 0,A){I8.defaults.proxy=!1;let K=S_1(A);R_1=I8.interceptors.request.use((Y)=>{if(Y.url&&Rt(Y.url))if(q)Y.httpsAgent=q,Y.httpAgent=q;else delete Y.httpsAgent,delete Y.httpAgent;else Y.httpsAgent=K,Y.httpAgent=K;return Y}),Lw1(ow8(A))}else if(q){I8.defaults.httpsAgent=q;let K=Rw1();if(K.dispatcher)Lw1(K.dispatcher)}}async function aw8(){let A=mR();if(!A)return{};let[{NodeHttpHandler:q},{defaultProvider:K}]=await Promise.all([Promise.resolve().then(() => e($N(),1)),Promise.resolve().then(() => e(i36(),1))]),Y=S_1(A),z=new q({httpAgent:Y,httpsAgent:Y});return{requestHandler:z,credentials:K({clientConfig:{requestHandler:z}})}}function VP7(){ow8.cache.clear?.(),L("Cleared proxy agent cache")}var fP7,ow8,R_1;var VE=k(()=>{A3();Eq();EK8();mm();lX6();Z8();G1();fP7=e(Gx6(),1);ow8=T8((A)=>{let q=ER(),K=tI(),Y={httpProxy:A,httpsProxy:A,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(q||K){let z={...q&&{cert:q.cert,key:q.key,passphrase:q.passphrase},...K&&{ca:K}};Y.connect=z,Y.requestTls=z}return new kK8(Y)})});var Y28=C((z25)=>{z25.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(z25.HttpAuthLocation||(z25.HttpAuthLocation={}));z25.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(z25.HttpApiKeyAuthLocation||(z25.HttpApiKeyAuthLocation={}));z25.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(z25.EndpointURLScheme||(z25.EndpointURLScheme={}));z25.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(z25.AlgorithmId||(z25.AlgorithmId={}));var ew5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>z25.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>z25.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},A25=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},q25=(A)=>{return ew5(A)},K25=(A)=>{return A25(A)};z25.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(z25.FieldPosition||(z25.FieldPosition={}));var Y25="__smithy_context";z25.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(z25.IniSectionType||(z25.IniSectionType={}));z25.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(z25.RequestHandlerProtocol||(z25.RequestHandlerProtocol={}));z25.SMITHY_CONTEXT_KEY=Y25;z25.getDefaultClientConfiguration=q25;z25.resolveDefaultRuntimeConfig=K25});var IB6=C((bP6)=>{var kP7=Qm(),O28=MN(),w28=Y28(),O25=lO(),NP7=JN();class EP7{config;middlewareStack=kP7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var z28="***SensitiveInformation***";function _28(A,q){if(q==null)return q;let K=O25.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return z28;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return z28}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return z28}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=_28(_,Y[w]);return z}return q}class H28{middlewareStack=kP7.constructStack();schema;static classBuilder(){return new LP7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[w28.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class LP7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends H28{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?_28.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?_28.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var H25="***SensitiveInformation***",j25=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class IP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return IP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===IP6)return IP6.isInstance(A);if(IP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var yP7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},RP7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=M25(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw yP7(_,q)},J25=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{RP7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},M25=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),D25=(A)=>{switch(A){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:30000};default:return{}}},vP7=!1,X25=(A)=>{if(A&&!vP7&&parseInt(A.substring(1,A.indexOf(".")))<16)vP7=!0},P25=(A)=>{let q=[];for(let K in w28.AlgorithmId){let Y=w28.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},W25=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Z25=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},G25=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},SP7=(A)=>{return Object.assign(P25(A),Z25(A))},f25=SP7,T25=(A)=>{return Object.assign(W25(A),G25(A))},V25=(A)=>Array.isArray(A)?A:[A],CP7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=CP7(A[K]);return A},N25=(A)=>{return A!=null};class hP7{trace(){}debug(){}info(){}warn(){}error(){}}function IP7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,E25(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}bP7(Y,null,w,_)}return Y}var v25=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},k25=(A,q)=>{let K={};for(let Y in q)bP7(K,A,q,Y);return K},E25=(A,q,K)=>{return IP7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},bP7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=L25,O=y25,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},L25=(A)=>A!=null,y25=(A)=>A,R25=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},S25=(A)=>A.toISOString().replace(".000Z","Z"),$28=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map($28);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=$28(A[K])}return q}return A};Object.defineProperty(bP6,"collectBody",{enumerable:!0,get:function(){return O28.collectBody}});Object.defineProperty(bP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return O28.extendedEncodeURIComponent}});Object.defineProperty(bP6,"resolvedPath",{enumerable:!0,get:function(){return O28.resolvedPath}});bP6.Client=EP7;bP6.Command=H28;bP6.NoOpLogger=hP7;bP6.SENSITIVE_STRING=H25;bP6.ServiceException=IP6;bP6._json=$28;bP6.convertMap=v25;bP6.createAggregatedClient=j25;bP6.decorateServiceException=yP7;bP6.emitWarningIfUnsupportedVersion=X25;bP6.getArrayIfSingleItem=V25;bP6.getDefaultClientConfiguration=f25;bP6.getDefaultExtensionConfiguration=SP7;bP6.getValueFromTextNode=CP7;bP6.isSerializableHeaderValue=N25;bP6.loadConfigsForDefaultMode=D25;bP6.map=IP7;bP6.resolveDefaultRuntimeConfig=T25;bP6.serializeDateTime=S25;bP6.serializeFloat=R25;bP6.take=k25;bP6.throwDefaultError=RP7;bP6.withBaseException=J25;Object.keys(NP7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(bP6,A))Object.defineProperty(bP6,A,{enumerable:!0,get:function(){return NP7[A]}})})});var M28=C((xP7)=>{Object.defineProperty(xP7,"__esModule",{value:!0});xP7.resolveHttpAuthSchemeConfig=xP7.defaultBedrockHttpAuthSchemeProvider=xP7.defaultBedrockHttpAuthSchemeParametersProvider=void 0;var e25=O$(),j28=pw(),J28=pZ(),A_5=async(A,q,K)=>{return{operation:(0,J28.getSmithyContext)(q).operation,region:await(0,J28.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};xP7.defaultBedrockHttpAuthSchemeParametersProvider=A_5;function q_5(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function K_5(A){return{schemeId:"smithy.api#httpBearerAuth",propertiesExtractor:({profile:q,filepath:K,configFilepath:Y,ignoreCache:z},w)=>({identityProperties:{profile:q,filepath:K,configFilepath:Y,ignoreCache:z}})}}var Y_5=(A)=>{let q=[];switch(A.operation){default:q.push(q_5(A)),q.push(K_5(A))}return q};xP7.defaultBedrockHttpAuthSchemeProvider=Y_5;var z_5=(A)=>{let q=(0,j28.memoizeIdentityProvider)(A.token,j28.isIdentityExpired,j28.doesIdentityRequireRefresh),K=(0,e25.resolveAwsSdkSigV4Config)(A);return Object.assign(K,{authSchemePreference:(0,J28.normalizeProvider)(A.authSchemePreference??[]),token:q})};xP7.resolveHttpAuthSchemeConfig=z_5});var BP7=C((qX2,$_5)=>{$_5.exports={name:"@aws-sdk/client-bedrock",description:"AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",version:"3.936.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-bedrock","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo bedrock"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/credential-provider-node":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/token-providers":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-bedrock"}}});var mP7=C((H_5)=>{var O_5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";H_5.isArrayBuffer=O_5});var X28=C((X_5)=>{var J_5=mP7(),D28=g6("buffer"),M_5=(A,q=0,K=A.byteLength-q)=>{if(!J_5.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return D28.Buffer.from(A,q,K)},D_5=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?D28.Buffer.from(A,q):D28.Buffer.from(A)};X_5.fromArrayBuffer=M_5;X_5.fromString=D_5});var QP7=C((gP7)=>{Object.defineProperty(gP7,"__esModule",{value:!0});gP7.fromBase64=void 0;var Z_5=X28(),G_5=/^[A-Za-z0-9+/]*={0,2}$/,f_5=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!G_5.exec(A))throw TypeError("Invalid base64 string.");let q=(0,Z_5.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};gP7.fromBase64=f_5});var dP7=C((UP7)=>{Object.defineProperty(UP7,"__esModule",{value:!0});UP7.toBase64=void 0;var T_5=X28(),V_5=Z2(),N_5=(A)=>{let q;if(typeof A==="string")q=(0,V_5.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,T_5.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};UP7.toBase64=N_5});var iP7=C((bB6)=>{var cP7=QP7(),lP7=dP7();Object.keys(cP7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(bB6,A))Object.defineProperty(bB6,A,{enumerable:!0,get:function(){return cP7[A]}})});Object.keys(lP7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(bB6,A))Object.defineProperty(bB6,A,{enumerable:!0,get:function(){return lP7[A]}})})});var O07=C((_07)=>{Object.defineProperty(_07,"__esModule",{value:!0});_07.ruleSet=void 0;var Y07="required",am="fn",sm="argv",uP6="ref",nP7=!0,rP7="isSet",uB6="booleanEquals",xP6="error",xB6="endpoint",lf="tree",P28="PartitionResult",oP7={[Y07]:!1,type:"string"},aP7={[Y07]:!0,default:!1,type:"boolean"},sP7={[uP6]:"Endpoint"},z07={[am]:uB6,[sm]:[{[uP6]:"UseFIPS"},!0]},w07={[am]:uB6,[sm]:[{[uP6]:"UseDualStack"},!0]},om={},tP7={[am]:"getAttr",[sm]:[{[uP6]:P28},"supportsFIPS"]},eP7={[am]:uB6,[sm]:[!0,{[am]:"getAttr",[sm]:[{[uP6]:P28},"supportsDualStack"]}]},A07=[z07],q07=[w07],K07=[{[uP6]:"Region"}],v_5={version:"1.0",parameters:{Region:oP7,UseDualStack:aP7,UseFIPS:aP7,Endpoint:oP7},rules:[{conditions:[{[am]:rP7,[sm]:[sP7]}],rules:[{conditions:A07,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:xP6},{rules:[{conditions:q07,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:xP6},{endpoint:{url:sP7,properties:om,headers:om},type:xB6}],type:lf}],type:lf},{rules:[{conditions:[{[am]:rP7,[sm]:K07}],rules:[{conditions:[{[am]:"aws.partition",[sm]:K07,assign:P28}],rules:[{conditions:[z07,w07],rules:[{conditions:[{[am]:uB6,[sm]:[nP7,tP7]},eP7],rules:[{rules:[{endpoint:{url:"https://bedrock-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:om,headers:om},type:xB6}],type:lf}],type:lf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:xP6}],type:lf},{conditions:A07,rules:[{conditions:[{[am]:uB6,[sm]:[tP7,nP7]}],rules:[{rules:[{endpoint:{url:"https://bedrock-fips.{Region}.{PartitionResult#dnsSuffix}",properties:om,headers:om},type:xB6}],type:lf}],type:lf},{error:"FIPS is enabled but this partition does not support FIPS",type:xP6}],type:lf},{conditions:q07,rules:[{conditions:[eP7],rules:[{rules:[{endpoint:{url:"https://bedrock.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:om,headers:om},type:xB6}],type:lf}],type:lf},{error:"DualStack is enabled but this partition does not support DualStack",type:xP6}],type:lf},{rules:[{endpoint:{url:"https://bedrock.{Region}.{PartitionResult#dnsSuffix}",properties:om,headers:om},type:xB6}],type:lf}],type:lf}],type:lf},{error:"Invalid Configuration: Missing Region",type:xP6}],type:lf}]};_07.ruleSet=v_5});var J07=C((H07)=>{Object.defineProperty(H07,"__esModule",{value:!0});H07.defaultEndpointResolver=void 0;var k_5=pm(),W28=Ab(),E_5=O07(),L_5=new W28.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),y_5=(A,q={})=>{return L_5.get(A,()=>(0,W28.resolveEndpoint)(E_5.ruleSet,{endpointParams:A,logger:q.logger}))};H07.defaultEndpointResolver=y_5;W28.customEndpointFunctions.aws=k_5.awsEndpointFunctions});var W07=C((X07)=>{Object.defineProperty(X07,"__esModule",{value:!0});X07.getRuntimeConfig=void 0;var R_5=O$(),S_5=Lc(),C_5=pw(),h_5=IB6(),I_5=LR(),M07=iP7(),D07=Z2(),b_5=M28(),x_5=J07(),u_5=(A)=>{return{apiVersion:"2023-04-20",base64Decoder:A?.base64Decoder??M07.fromBase64,base64Encoder:A?.base64Encoder??M07.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??x_5.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??b_5.defaultBedrockHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new R_5.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#httpBearerAuth"),signer:new C_5.HttpBearerAuthSigner}],logger:A?.logger??new h_5.NoOpLogger,protocol:A?.protocol??new S_5.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.bedrock"}),serviceId:A?.serviceId??"Bedrock",urlParser:A?.urlParser??I_5.parseUrl,utf8Decoder:A?.utf8Decoder??D07.fromUtf8,utf8Encoder:A?.utf8Encoder??D07.toUtf8}};X07.getRuntimeConfig=u_5});var v07=C((V07)=>{Object.defineProperty(V07,"__esModule",{value:!0});V07.getRuntimeConfig=void 0;var B_5=d2(),m_5=B_5.__importDefault(BP7()),Z28=O$(),g_5=i36(),Z07=r21(),G07=Nc(),h_1=NJ(),F_5=pw(),Q_5=vc(),f07=h0(),r36=HN(),T07=$N(),U_5=kc(),p_5=lm(),d_5=W07(),c_5=IB6(),l_5=Rc(),i_5=IB6(),n_5=(A)=>{(0,i_5.emitWarningIfUnsupportedVersion)(process.version);let q=(0,l_5.resolveDefaultsModeConfig)(A),K=()=>q().then(c_5.loadConfigsForDefaultMode),Y=(0,d_5.getRuntimeConfig)(A);(0,Z28.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger,signingName:"bedrock"};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,r36.loadConfig)(Z28.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??U_5.calculateBodyLength,credentialDefaultProvider:A?.credentialDefaultProvider??g_5.defaultProvider,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,G07.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:m_5.default.version}),httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new Z28.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#httpBearerAuth")||(async(_)=>{try{return await(0,Z07.fromEnvSigningName)({signingName:"bedrock"})()}catch($){return await(0,Z07.nodeProvider)(_)(_)}}),signer:new F_5.HttpBearerAuthSigner}],maxAttempts:A?.maxAttempts??(0,r36.loadConfig)(f07.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,r36.loadConfig)(h_1.NODE_REGION_CONFIG_OPTIONS,{...h_1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:T07.NodeHttpHandler.create(A?.requestHandler??K),retryMode:A?.retryMode??(0,r36.loadConfig)({...f07.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||p_5.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??Q_5.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??T07.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,r36.loadConfig)(h_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,r36.loadConfig)(h_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,r36.loadConfig)(G07.NODE_APP_ID_CONFIG_OPTIONS,z)}};V07.getRuntimeConfig=n_5});var y07=C((e_5)=>{var r_5=Y28(),o_5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},a_5=(A)=>{return{httpHandler:A.httpHandler()}};class k07{name;kind;values;constructor({name:A,kind:q=r_5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class E07{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class I_1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new I_1({...A,headers:{...A.headers}});if(q.query)q.query=s_5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return I_1.clone(this)}}function s_5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class L07{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function t_5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}e_5.Field=k07;e_5.Fields=E07;e_5.HttpRequest=I_1;e_5.HttpResponse=L07;e_5.getHttpHandlerExtensionConfiguration=o_5;e_5.isValidHostname=t_5;e_5.resolveHttpHandlerRuntimeConfig=a_5});var L$1=C((r$8)=>{var R07=Dc(),$$5=Xc(),O$5=Pc(),S07=cm(),H$5=NJ(),LM=pw(),gR=lO(),j$5=Vc(),w7=qb(),C07=h0(),lA=IB6(),h07=M28(),J$5=v07(),I07=Kb(),b07=y07(),M$5=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"bedrock"})},$7={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},D$5=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y,token:z}=A;return{setHttpAuthScheme(w){let _=q.findIndex(($)=>$.schemeId===w.schemeId);if(_===-1)q.push(w);else q.splice(_,1,w)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(w){K=w},httpAuthSchemeProvider(){return K},setCredentials(w){Y=w},credentials(){return Y},setToken(w){z=w},token(){return z}}},X$5=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials(),token:A.token()}},P$5=(A,q)=>{let K=Object.assign(I07.getAwsRegionExtensionConfiguration(A),lA.getDefaultExtensionConfiguration(A),b07.getHttpHandlerExtensionConfiguration(A),D$5(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,I07.resolveAwsRegionExtensionConfiguration(K),lA.resolveDefaultRuntimeConfig(K),b07.resolveHttpHandlerRuntimeConfig(K),X$5(K))};class RM extends lA.Client{config;constructor(...[A]){let q=J$5.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=M$5(q),Y=S07.resolveUserAgentConfig(K),z=C07.resolveRetryConfig(Y),w=H$5.resolveRegionConfig(z),_=R07.resolveHostHeaderConfig(w),$=w7.resolveEndpointConfig(_),O=h07.resolveHttpAuthSchemeConfig($),H=P$5(O,A?.extensions||[]);this.config=H,this.middlewareStack.use(gR.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(S07.getUserAgentPlugin(this.config)),this.middlewareStack.use(C07.getRetryPlugin(this.config)),this.middlewareStack.use(j$5.getContentLengthPlugin(this.config)),this.middlewareStack.use(R07.getHostHeaderPlugin(this.config)),this.middlewareStack.use($$5.getLoggerPlugin(this.config)),this.middlewareStack.use(O$5.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(LM.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:h07.defaultBedrockHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(j)=>new LM.DefaultIdentityProviderConfig({"aws.auth#sigv4":j.credentials,"smithy.api#httpBearerAuth":j.token})})),this.middlewareStack.use(LM.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var FR=class A extends lA.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},qW7=class A extends FR{name="AccessDeniedException";$fault="client";constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},KW7=class A extends FR{name="InternalServerException";$fault="server";constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},YW7=class A extends FR{name="ResourceNotFoundException";$fault="client";constructor(q){super({name:"ResourceNotFoundException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},zW7=class A extends FR{name="ThrottlingException";$fault="client";constructor(q){super({name:"ThrottlingException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},wW7=class A extends FR{name="ValidationException";$fault="client";constructor(q){super({name:"ValidationException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},_W7=class A extends FR{name="ConflictException";$fault="client";constructor(q){super({name:"ConflictException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},$W7=class A extends FR{name="ServiceQuotaExceededException";$fault="client";constructor(q){super({name:"ServiceQuotaExceededException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},OW7=class A extends FR{name="TooManyTagsException";$fault="client";resourceName;constructor(q){super({name:"TooManyTagsException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.resourceName=q.resourceName}},HW7=class A extends FR{name="ResourceInUseException";$fault="client";constructor(q){super({name:"ResourceInUseException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},jW7=class A extends FR{name="ServiceUnavailableException";$fault="server";constructor(q){super({name:"ServiceUnavailableException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},W$5="AgreementAvailability",Z$5="AccessDeniedException",G$5="AutomatedEvaluationConfig",f$5="AutomatedEvaluationCustomMetrics",T$5="AutomatedEvaluationCustomMetricConfig",V$5="AutomatedEvaluationCustomMetricSource",N$5="AutomatedReasoningCheckDifferenceScenarioList",v$5="AutomatedReasoningCheckFinding",k$5="AutomatedReasoningCheckFindingList",E$5="AutomatedReasoningCheckImpossibleFinding",L$5="AutomatedReasoningCheckInvalidFinding",y$5="AutomatedReasoningCheckInputTextReference",R$5="AutomatedReasoningCheckInputTextReferenceList",S$5="AutomatedReasoningCheckLogicWarning",C$5="AutomatedReasoningCheckNoTranslationsFinding",h$5="AutomatedReasoningCheckRule",I$5="AutomatedReasoningCheckRuleList",b$5="AutomatedReasoningCheckScenario",x$5="AutomatedReasoningCheckSatisfiableFinding",u$5="AutomatedReasoningCheckTranslation",B$5="AutomatedReasoningCheckTranslationAmbiguousFinding",m$5="AutomatedReasoningCheckTooComplexFinding",g$5="AutomatedReasoningCheckTranslationList",F$5="AutomatedReasoningCheckTranslationOption",Q$5="AutomatedReasoningCheckTranslationOptionList",U$5="AutomatedReasoningCheckValidFinding",p$5="AutomatedReasoningLogicStatement",d$5="AutomatedReasoningLogicStatementContent",c$5="AutomatedReasoningLogicStatementList",l$5="AutomatedReasoningNaturalLanguageStatementContent",i$5="AutomatedReasoningPolicyAnnotation",n$5="AutomatedReasoningPolicyAnnotationFeedbackNaturalLanguage",r$5="AutomatedReasoningPolicyAnnotationIngestContent",o$5="AutomatedReasoningPolicyAnnotationList",a$5="AutomatedReasoningPolicyAddRuleAnnotation",s$5="AutomatedReasoningPolicyAddRuleFromNaturalLanguageAnnotation",t$5="AutomatedReasoningPolicyAddRuleMutation",e$5="AutomatedReasoningPolicyAnnotationRuleNaturalLanguage",AO5="AutomatedReasoningPolicyAddTypeAnnotation",qO5="AutomatedReasoningPolicyAddTypeMutation",KO5="AutomatedReasoningPolicyAddTypeValue",YO5="AutomatedReasoningPolicyAddVariableAnnotation",zO5="AutomatedReasoningPolicyAddVariableMutation",wO5="AutomatedReasoningPolicyBuildDocumentBlob",_O5="AutomatedReasoningPolicyBuildDocumentDescription",$O5="AutomatedReasoningPolicyBuildDocumentName",OO5="AutomatedReasoningPolicyBuildLog",HO5="AutomatedReasoningPolicyBuildLogEntry",jO5="AutomatedReasoningPolicyBuildLogEntryList",JO5="AutomatedReasoningPolicyBuildResultAssets",MO5="AutomatedReasoningPolicyBuildStep",DO5="AutomatedReasoningPolicyBuildStepContext",XO5="AutomatedReasoningPolicyBuildStepList",PO5="AutomatedReasoningPolicyBuildStepMessage",WO5="AutomatedReasoningPolicyBuildStepMessageList",ZO5="AutomatedReasoningPolicyBuildWorkflowDocument",GO5="AutomatedReasoningPolicyBuildWorkflowDocumentList",fO5="AutomatedReasoningPolicyBuildWorkflowRepairContent",TO5="AutomatedReasoningPolicyBuildWorkflowSource",VO5="AutomatedReasoningPolicyBuildWorkflowSummary",NO5="AutomatedReasoningPolicyBuildWorkflowSummaries",vO5="AutomatedReasoningPolicyDescription",kO5="AutomatedReasoningPolicyDefinitionElement",EO5="AutomatedReasoningPolicyDefinitionQualityReport",LO5="AutomatedReasoningPolicyDefinitionRule",yO5="AutomatedReasoningPolicyDeleteRuleAnnotation",RO5="AutomatedReasoningPolicyDefinitionRuleAlternateExpression",SO5="AutomatedReasoningPolicyDefinitionRuleExpression",CO5="AutomatedReasoningPolicyDefinitionRuleList",hO5="AutomatedReasoningPolicyDeleteRuleMutation",IO5="AutomatedReasoningPolicyDisjointRuleSet",bO5="AutomatedReasoningPolicyDisjointRuleSetList",xO5="AutomatedReasoningPolicyDefinitionType",uO5="AutomatedReasoningPolicyDeleteTypeAnnotation",BO5="AutomatedReasoningPolicyDefinitionTypeDescription",mO5="AutomatedReasoningPolicyDefinitionTypeList",gO5="AutomatedReasoningPolicyDeleteTypeMutation",FO5="AutomatedReasoningPolicyDefinitionTypeName",QO5="AutomatedReasoningPolicyDefinitionTypeNameList",UO5="AutomatedReasoningPolicyDefinitionTypeValue",pO5="AutomatedReasoningPolicyDefinitionTypeValueDescription",dO5="AutomatedReasoningPolicyDefinitionTypeValueList",cO5="AutomatedReasoningPolicyDefinitionTypeValuePair",lO5="AutomatedReasoningPolicyDefinitionTypeValuePairList",iO5="AutomatedReasoningPolicyDeleteTypeValue",nO5="AutomatedReasoningPolicyDefinitionVariable",rO5="AutomatedReasoningPolicyDeleteVariableAnnotation",oO5="AutomatedReasoningPolicyDefinitionVariableDescription",aO5="AutomatedReasoningPolicyDefinitionVariableList",sO5="AutomatedReasoningPolicyDeleteVariableMutation",tO5="AutomatedReasoningPolicyDefinitionVariableName",eO5="AutomatedReasoningPolicyDefinitionVariableNameList",AH5="AutomatedReasoningPolicyDefinition",qH5="AutomatedReasoningPolicyGeneratedTestCase",KH5="AutomatedReasoningPolicyGeneratedTestCaseList",YH5="AutomatedReasoningPolicyGeneratedTestCases",zH5="AutomatedReasoningPolicyIngestContentAnnotation",wH5="AutomatedReasoningPolicyMutation",_H5="AutomatedReasoningPolicyName",$H5="AutomatedReasoningPolicyPlanning",OH5="AutomatedReasoningPolicyScenario",HH5="AutomatedReasoningPolicyScenarioAlternateExpression",jH5="AutomatedReasoningPolicyScenarioExpression",JH5="AutomatedReasoningPolicySummary",MH5="AutomatedReasoningPolicySummaries",DH5="AutomatedReasoningPolicyTestCase",XH5="AutomatedReasoningPolicyTestCaseList",PH5="AutomatedReasoningPolicyTestGuardContent",WH5="AutomatedReasoningPolicyTestList",ZH5="AutomatedReasoningPolicyTestQueryContent",GH5="AutomatedReasoningPolicyTestResult",fH5="AutomatedReasoningPolicyTypeValueAnnotation",TH5="AutomatedReasoningPolicyTypeValueAnnotationList",VH5="AutomatedReasoningPolicyUpdateFromRuleFeedbackAnnotation",NH5="AutomatedReasoningPolicyUpdateFromScenarioFeedbackAnnotation",vH5="AutomatedReasoningPolicyUpdateRuleAnnotation",kH5="AutomatedReasoningPolicyUpdateRuleMutation",EH5="AutomatedReasoningPolicyUpdateTypeAnnotation",LH5="AutomatedReasoningPolicyUpdateTypeMutation",yH5="AutomatedReasoningPolicyUpdateTypeValue",RH5="AutomatedReasoningPolicyUpdateVariableAnnotation",SH5="AutomatedReasoningPolicyUpdateVariableMutation",CH5="AutomatedReasoningPolicyWorkflowTypeContent",hH5="ByteContentBlob",IH5="ByteContentDoc",bH5="BatchDeleteEvaluationJob",xH5="BatchDeleteEvaluationJobError",uH5="BatchDeleteEvaluationJobErrors",BH5="BatchDeleteEvaluationJobItem",mH5="BatchDeleteEvaluationJobItems",gH5="BatchDeleteEvaluationJobRequest",FH5="BatchDeleteEvaluationJobResponse",QH5="BedrockEvaluatorModel",UH5="BedrockEvaluatorModels",pH5="CreateAutomatedReasoningPolicy",dH5="CancelAutomatedReasoningPolicyBuildWorkflow",cH5="CancelAutomatedReasoningPolicyBuildWorkflowRequest",lH5="CancelAutomatedReasoningPolicyBuildWorkflowResponse",iH5="CreateAutomatedReasoningPolicyRequest",nH5="CreateAutomatedReasoningPolicyResponse",rH5="CreateAutomatedReasoningPolicyTestCase",oH5="CreateAutomatedReasoningPolicyTestCaseRequest",aH5="CreateAutomatedReasoningPolicyTestCaseResponse",sH5="CreateAutomatedReasoningPolicyVersion",tH5="CreateAutomatedReasoningPolicyVersionRequest",eH5="CreateAutomatedReasoningPolicyVersionResponse",Aj5="CustomizationConfig",qj5="CreateCustomModel",Kj5="CreateCustomModelDeployment",Yj5="CreateCustomModelDeploymentRequest",zj5="CreateCustomModelDeploymentResponse",wj5="CreateCustomModelRequest",_j5="CreateCustomModelResponse",$j5="ConflictException",Oj5="CreateEvaluationJob",Hj5="CreateEvaluationJobRequest",jj5="CreateEvaluationJobResponse",Jj5="CreateFoundationModelAgreement",Mj5="CreateFoundationModelAgreementRequest",Dj5="CreateFoundationModelAgreementResponse",Xj5="CreateGuardrail",Pj5="CreateGuardrailRequest",Wj5="CreateGuardrailResponse",Zj5="CreateGuardrailVersion",Gj5="CreateGuardrailVersionRequest",fj5="CreateGuardrailVersionResponse",Tj5="CreateInferenceProfile",Vj5="CreateInferenceProfileRequest",Nj5="CreateInferenceProfileResponse",vj5="CustomMetricBedrockEvaluatorModel",kj5="CustomMetricBedrockEvaluatorModels",Ej5="CreateModelCopyJob",Lj5="CreateModelCopyJobRequest",yj5="CreateModelCopyJobResponse",Rj5="CreateModelCustomizationJobRequest",Sj5="CreateModelCustomizationJobResponse",Cj5="CreateModelCustomizationJob",hj5="CustomMetricDefinition",Ij5="CustomModelDeploymentSummary",bj5="CustomModelDeploymentSummaryList",xj5="CustomMetricEvaluatorModelConfig",uj5="CreateModelImportJob",Bj5="CreateModelImportJobRequest",mj5="CreateModelImportJobResponse",gj5="CreateModelInvocationJobRequest",Fj5="CreateModelInvocationJobResponse",Qj5="CreateModelInvocationJob",Uj5="CreateMarketplaceModelEndpoint",pj5="CreateMarketplaceModelEndpointRequest",dj5="CreateMarketplaceModelEndpointResponse",cj5="CustomModelSummary",lj5="CustomModelSummaryList",ij5="CustomModelUnits",nj5="CreateProvisionedModelThroughput",rj5="CreateProvisionedModelThroughputRequest",oj5="CreateProvisionedModelThroughputResponse",aj5="CreatePromptRouter",sj5="CreatePromptRouterRequest",tj5="CreatePromptRouterResponse",ej5="CloudWatchConfig",AJ5="DeleteAutomatedReasoningPolicy",qJ5="DeleteAutomatedReasoningPolicyBuildWorkflow",KJ5="DeleteAutomatedReasoningPolicyBuildWorkflowRequest",YJ5="DeleteAutomatedReasoningPolicyBuildWorkflowResponse",zJ5="DeleteAutomatedReasoningPolicyRequest",wJ5="DeleteAutomatedReasoningPolicyResponse",_J5="DeleteAutomatedReasoningPolicyTestCase",$J5="DeleteAutomatedReasoningPolicyTestCaseRequest",OJ5="DeleteAutomatedReasoningPolicyTestCaseResponse",HJ5="DistillationConfig",jJ5="DeleteCustomModel",JJ5="DeleteCustomModelDeployment",MJ5="DeleteCustomModelDeploymentRequest",DJ5="DeleteCustomModelDeploymentResponse",XJ5="DeleteCustomModelRequest",PJ5="DeleteCustomModelResponse",WJ5="DeleteFoundationModelAgreement",ZJ5="DeleteFoundationModelAgreementRequest",GJ5="DeleteFoundationModelAgreementResponse",fJ5="DeleteGuardrail",TJ5="DeleteGuardrailRequest",VJ5="DeleteGuardrailResponse",NJ5="DeleteImportedModel",vJ5="DeleteImportedModelRequest",kJ5="DeleteImportedModelResponse",EJ5="DeleteInferenceProfile",LJ5="DeleteInferenceProfileRequest",yJ5="DeleteInferenceProfileResponse",RJ5="DeleteModelInvocationLoggingConfiguration",SJ5="DeleteModelInvocationLoggingConfigurationRequest",CJ5="DeleteModelInvocationLoggingConfigurationResponse",hJ5="DeleteMarketplaceModelEndpoint",IJ5="DeleteMarketplaceModelEndpointRequest",bJ5="DeleteMarketplaceModelEndpointResponse",xJ5="DeregisterMarketplaceModelEndpointRequest",uJ5="DeregisterMarketplaceModelEndpointResponse",BJ5="DeregisterMarketplaceModelEndpoint",mJ5="DataProcessingDetails",gJ5="DeleteProvisionedModelThroughput",FJ5="DeleteProvisionedModelThroughputRequest",QJ5="DeleteProvisionedModelThroughputResponse",UJ5="DimensionalPriceRate",pJ5="DeletePromptRouterRequest",dJ5="DeletePromptRouterResponse",cJ5="DeletePromptRouter",lJ5="ExportAutomatedReasoningPolicyVersion",iJ5="ExportAutomatedReasoningPolicyVersionRequest",nJ5="ExportAutomatedReasoningPolicyVersionResponse",rJ5="EvaluationBedrockModel",oJ5="EndpointConfig",aJ5="EvaluationConfig",sJ5="EvaluationDataset",tJ5="EvaluationDatasetLocation",eJ5="EvaluationDatasetMetricConfig",AM5="EvaluationDatasetMetricConfigs",qM5="EvaluationDatasetName",KM5="EvaluationInferenceConfig",YM5="EvaluationInferenceConfigSummary",zM5="EvaluationJobDescription",wM5="EvaluationJobIdentifier",_M5="EvaluationJobIdentifiers",$M5="EvaluationModelConfigs",OM5="EvaluationModelConfigSummary",HM5="EvaluationModelConfig",jM5="EvaluatorModelConfig",JM5="EvaluationMetricDescription",MM5="EvaluationModelInferenceParams",DM5="EvaluationMetricName",XM5="EvaluationMetricNames",PM5="EvaluationOutputDataConfig",WM5="EvaluationPrecomputedInferenceSource",ZM5="EvaluationPrecomputedRetrieveAndGenerateSourceConfig",GM5="EvaluationPrecomputedRetrieveSourceConfig",fM5="EvaluationPrecomputedRagSourceConfig",TM5="EvaluationRagConfigSummary",VM5="EvaluationSummary",NM5="ExternalSourcesGenerationConfiguration",vM5="ExternalSourcesRetrieveAndGenerateConfiguration",kM5="EvaluationSummaries",EM5="ExternalSource",LM5="ExternalSources",yM5="FilterAttribute",RM5="FieldForReranking",SM5="FieldsForReranking",CM5="FoundationModelDetails",hM5="FoundationModelLifecycle",IM5="FoundationModelSummary",bM5="FoundationModelSummaryList",xM5="GuardrailAutomatedReasoningPolicy",uM5="GetAutomatedReasoningPolicyAnnotations",BM5="GetAutomatedReasoningPolicyAnnotationsRequest",mM5="GetAutomatedReasoningPolicyAnnotationsResponse",gM5="GetAutomatedReasoningPolicyBuildWorkflow",FM5="GetAutomatedReasoningPolicyBuildWorkflowRequest",QM5="GetAutomatedReasoningPolicyBuildWorkflowResultAssets",UM5="GetAutomatedReasoningPolicyBuildWorkflowResultAssetsRequest",pM5="GetAutomatedReasoningPolicyBuildWorkflowResultAssetsResponse",dM5="GetAutomatedReasoningPolicyBuildWorkflowResponse",cM5="GuardrailAutomatedReasoningPolicyConfig",lM5="GetAutomatedReasoningPolicyNextScenario",iM5="GetAutomatedReasoningPolicyNextScenarioRequest",nM5="GetAutomatedReasoningPolicyNextScenarioResponse",rM5="GetAutomatedReasoningPolicyRequest",oM5="GetAutomatedReasoningPolicyResponse",aM5="GetAutomatedReasoningPolicyTestCase",sM5="GetAutomatedReasoningPolicyTestCaseRequest",tM5="GetAutomatedReasoningPolicyTestCaseResponse",eM5="GetAutomatedReasoningPolicyTestResult",AD5="GetAutomatedReasoningPolicyTestResultRequest",qD5="GetAutomatedReasoningPolicyTestResultResponse",KD5="GetAutomatedReasoningPolicy",YD5="GuardrailBlockedMessaging",zD5="GenerationConfiguration",wD5="GuardrailContentFilter",_D5="GuardrailContentFilterAction",$D5="GuardrailContentFilterConfig",OD5="GuardrailContentFiltersConfig",HD5="GuardrailContentFiltersTier",jD5="GuardrailContentFiltersTierConfig",JD5="GuardrailContentFiltersTierName",MD5="GuardrailContentFilters",DD5="GuardrailContextualGroundingAction",XD5="GuardrailContextualGroundingFilter",PD5="GuardrailContextualGroundingFilterConfig",WD5="GuardrailContextualGroundingFiltersConfig",ZD5="GuardrailContextualGroundingFilters",GD5="GuardrailContextualGroundingPolicy",fD5="GuardrailContextualGroundingPolicyConfig",TD5="GetCustomModel",VD5="GetCustomModelDeployment",ND5="GetCustomModelDeploymentRequest",vD5="GetCustomModelDeploymentResponse",kD5="GetCustomModelRequest",ED5="GetCustomModelResponse",LD5="GuardrailContentPolicy",yD5="GuardrailContentPolicyConfig",RD5="GuardrailCrossRegionConfig",SD5="GuardrailCrossRegionDetails",CD5="GuardrailConfiguration",hD5="GuardrailDescription",ID5="GetEvaluationJob",bD5="GetEvaluationJobRequest",xD5="GetEvaluationJobResponse",uD5="GetFoundationModel",BD5="GetFoundationModelAvailability",mD5="GetFoundationModelAvailabilityRequest",gD5="GetFoundationModelAvailabilityResponse",FD5="GetFoundationModelRequest",QD5="GetFoundationModelResponse",UD5="GuardrailFailureRecommendation",pD5="GuardrailFailureRecommendations",dD5="GetGuardrail",cD5="GetGuardrailRequest",lD5="GetGuardrailResponse",iD5="GetImportedModel",nD5="GetImportedModelRequest",rD5="GetImportedModelResponse",oD5="GetInferenceProfile",aD5="GetInferenceProfileRequest",sD5="GetInferenceProfileResponse",tD5="GuardrailModality",eD5="GetModelCopyJob",AX5="GetModelCopyJobRequest",qX5="GetModelCopyJobResponse",KX5="GetModelCustomizationJobRequest",YX5="GetModelCustomizationJobResponse",zX5="GetModelCustomizationJob",wX5="GetModelImportJob",_X5="GetModelImportJobRequest",$X5="GetModelImportJobResponse",OX5="GetModelInvocationJobRequest",HX5="GetModelInvocationJobResponse",jX5="GetModelInvocationJob",JX5="GetModelInvocationLoggingConfiguration",MX5="GetModelInvocationLoggingConfigurationRequest",DX5="GetModelInvocationLoggingConfigurationResponse",XX5="GetMarketplaceModelEndpoint",PX5="GetMarketplaceModelEndpointRequest",WX5="GetMarketplaceModelEndpointResponse",ZX5="GuardrailManagedWords",GX5="GuardrailManagedWordsConfig",fX5="GuardrailManagedWordLists",TX5="GuardrailManagedWordListsConfig",VX5="GuardrailModalities",NX5="GuardrailName",vX5="GuardrailPiiEntity",kX5="GuardrailPiiEntityConfig",EX5="GuardrailPiiEntitiesConfig",LX5="GuardrailPiiEntities",yX5="GetProvisionedModelThroughput",RX5="GetProvisionedModelThroughputRequest",SX5="GetProvisionedModelThroughputResponse",CX5="GetPromptRouter",hX5="GetPromptRouterRequest",IX5="GetPromptRouterResponse",bX5="GuardrailRegex",xX5="GuardrailRegexConfig",uX5="GuardrailRegexesConfig",BX5="GuardrailRegexes",mX5="GuardrailSummary",gX5="GuardrailSensitiveInformationPolicy",FX5="GuardrailSensitiveInformationPolicyConfig",QX5="GuardrailStatusReason",UX5="GuardrailStatusReasons",pX5="GuardrailSummaries",dX5="GuardrailTopic",cX5="GuardrailTopicAction",lX5="GuardrailTopicConfig",iX5="GuardrailTopicsConfig",nX5="GuardrailTopicDefinition",rX5="GuardrailTopicExample",oX5="GuardrailTopicExamples",aX5="GuardrailTopicName",sX5="GuardrailTopicPolicy",tX5="GuardrailTopicPolicyConfig",eX5="GuardrailTopicsTier",AP5="GuardrailTopicsTierConfig",qP5="GuardrailTopicsTierName",KP5="GuardrailTopics",YP5="GetUseCaseForModelAccess",zP5="GetUseCaseForModelAccessRequest",wP5="GetUseCaseForModelAccessResponse",_P5="GuardrailWord",$P5="GuardrailWordAction",OP5="GuardrailWordConfig",HP5="GuardrailWordsConfig",jP5="GuardrailWordPolicy",JP5="GuardrailWordPolicyConfig",MP5="GuardrailWords",DP5="HumanEvaluationConfig",XP5="HumanEvaluationCustomMetric",PP5="HumanEvaluationCustomMetrics",WP5="HumanTaskInstructions",ZP5="HumanWorkflowConfig",GP5="Identifier",fP5="ImplicitFilterConfiguration",TP5="InvocationLogsConfig",VP5="InvocationLogSource",NP5="ImportedModelSummary",vP5="ImportedModelSummaryList",kP5="InferenceProfileDescription",EP5="InferenceProfileModel",LP5="InferenceProfileModelSource",yP5="InferenceProfileModels",RP5="InferenceProfileSummary",SP5="InferenceProfileSummaries",CP5="InternalServerException",hP5="KnowledgeBaseConfig",IP5="KnowledgeBaseRetrieveAndGenerateConfiguration",bP5="KnowledgeBaseRetrievalConfiguration",xP5="KnowledgeBaseVectorSearchConfiguration",uP5="KbInferenceConfig",BP5="ListAutomatedReasoningPolicies",mP5="ListAutomatedReasoningPolicyBuildWorkflows",gP5="ListAutomatedReasoningPolicyBuildWorkflowsRequest",FP5="ListAutomatedReasoningPolicyBuildWorkflowsResponse",QP5="ListAutomatedReasoningPoliciesRequest",UP5="ListAutomatedReasoningPoliciesResponse",pP5="ListAutomatedReasoningPolicyTestCases",dP5="ListAutomatedReasoningPolicyTestCasesRequest",cP5="ListAutomatedReasoningPolicyTestCasesResponse",lP5="ListAutomatedReasoningPolicyTestResults",iP5="ListAutomatedReasoningPolicyTestResultsRequest",nP5="ListAutomatedReasoningPolicyTestResultsResponse",rP5="LoggingConfig",oP5="ListCustomModels",aP5="ListCustomModelDeployments",sP5="ListCustomModelDeploymentsRequest",tP5="ListCustomModelDeploymentsResponse",eP5="ListCustomModelsRequest",A05="ListCustomModelsResponse",q05="ListEvaluationJobs",K05="ListEvaluationJobsRequest",Y05="ListEvaluationJobsResponse",z05="ListFoundationModels",w05="ListFoundationModelAgreementOffers",_05="ListFoundationModelAgreementOffersRequest",$05="ListFoundationModelAgreementOffersResponse",O05="ListFoundationModelsRequest",H05="ListFoundationModelsResponse",j05="ListGuardrails",J05="ListGuardrailsRequest",M05="ListGuardrailsResponse",D05="ListImportedModels",X05="ListImportedModelsRequest",P05="ListImportedModelsResponse",W05="ListInferenceProfiles",Z05="ListInferenceProfilesRequest",G05="ListInferenceProfilesResponse",f05="ListModelCopyJobs",T05="ListModelCopyJobsRequest",V05="ListModelCopyJobsResponse",N05="ListModelCustomizationJobsRequest",v05="ListModelCustomizationJobsResponse",k05="ListModelCustomizationJobs",E05="ListModelImportJobs",L05="ListModelImportJobsRequest",y05="ListModelImportJobsResponse",R05="ListModelInvocationJobsRequest",S05="ListModelInvocationJobsResponse",C05="ListModelInvocationJobs",h05="ListMarketplaceModelEndpoints",I05="ListMarketplaceModelEndpointsRequest",b05="ListMarketplaceModelEndpointsResponse",x05="ListProvisionedModelThroughputs",u05="ListProvisionedModelThroughputsRequest",B05="ListProvisionedModelThroughputsResponse",m05="ListPromptRouters",g05="ListPromptRoutersRequest",F05="ListPromptRoutersResponse",Q05="LegalTerm",U05="ListTagsForResource",p05="ListTagsForResourceRequest",d05="ListTagsForResourceResponse",c05="Message",l05="MetadataAttributeSchema",i05="MetadataAttributeSchemaList",n05="MetadataConfigurationForReranking",r05="ModelCopyJobSummary",o05="ModelCustomizationJobSummary",a05="ModelCopyJobSummaries",s05="ModelCustomizationJobSummaries",t05="ModelDataSource",e05="ModelInvocationJobInputDataConfig",AW5="ModelInvocationJobOutputDataConfig",qW5="ModelImportJobSummary",KW5="ModelInvocationJobS3InputDataConfig",YW5="ModelInvocationJobS3OutputDataConfig",zW5="ModelInvocationJobSummary",wW5="ModelImportJobSummaries",_W5="ModelInvocationJobSummaries",$W5="MarketplaceModelEndpoint",OW5="MarketplaceModelEndpointSummary",HW5="MarketplaceModelEndpointSummaries",jW5="MetricName",JW5="Offer",MW5="OrchestrationConfiguration",DW5="OutputDataConfig",XW5="Offers",PW5="PerformanceConfiguration",WW5="PutModelInvocationLoggingConfiguration",ZW5="PutModelInvocationLoggingConfigurationRequest",GW5="PutModelInvocationLoggingConfigurationResponse",fW5="ProvisionedModelSummary",TW5="ProvisionedModelSummaries",VW5="PromptRouterDescription",NW5="PromptRouterSummary",vW5="PromptRouterSummaries",kW5="PromptRouterTargetModel",EW5="PromptRouterTargetModels",LW5="PricingTerm",yW5="PromptTemplate",RW5="PutUseCaseForModelAccess",SW5="PutUseCaseForModelAccessRequest",CW5="PutUseCaseForModelAccessResponse",hW5="QueryTransformationConfiguration",IW5="RetrieveAndGenerateConfiguration",bW5="RAGConfig",xW5="RetrieveConfig",uW5="RagConfigs",BW5="RateCard",mW5="RoutingCriteria",gW5="RetrievalFilter",FW5="RetrievalFilterList",QW5="ResourceInUseException",UW5="RequestMetadataBaseFilters",pW5="RequestMetadataFilters",dW5="RequestMetadataFiltersList",cW5="RequestMetadataMap",lW5="RegisterMarketplaceModelEndpoint",iW5="RegisterMarketplaceModelEndpointRequest",nW5="RegisterMarketplaceModelEndpointResponse",rW5="RerankingMetadataSelectiveModeConfiguration",oW5="ResourceNotFoundException",aW5="RatingScale",sW5="RatingScaleItem",tW5="RatingScaleItemValue",eW5="StartAutomatedReasoningPolicyBuildWorkflow",AZ5="StartAutomatedReasoningPolicyBuildWorkflowRequest",qZ5="StartAutomatedReasoningPolicyBuildWorkflowResponse",KZ5="StartAutomatedReasoningPolicyTestWorkflow",YZ5="StartAutomatedReasoningPolicyTestWorkflowRequest",zZ5="StartAutomatedReasoningPolicyTestWorkflowResponse",wZ5="S3Config",_Z5="StatusDetails",$Z5="S3DataSource",OZ5="StopEvaluationJob",HZ5="StopEvaluationJobRequest",jZ5="StopEvaluationJobResponse",JZ5="StopModelCustomizationJob",MZ5="StopModelCustomizationJobRequest",DZ5="StopModelCustomizationJobResponse",XZ5="SageMakerEndpoint",PZ5="StopModelInvocationJob",WZ5="StopModelInvocationJobRequest",ZZ5="StopModelInvocationJobResponse",GZ5="S3ObjectDoc",fZ5="ServiceQuotaExceededException",TZ5="SupportTerm",VZ5="ServiceUnavailableException",NZ5="Tag",vZ5="TermDetails",kZ5="TrainingDataConfig",EZ5="TrainingDetails",LZ5="ThrottlingException",yZ5="TextInferenceConfig",RZ5="TagList",SZ5="TrainingMetrics",CZ5="TeacherModelConfig",hZ5="TooManyTagsException",IZ5="TextPromptTemplate",bZ5="TagResource",xZ5="TagResourceRequest",uZ5="TagResourceResponse",BZ5="UpdateAutomatedReasoningPolicy",mZ5="UpdateAutomatedReasoningPolicyAnnotations",gZ5="UpdateAutomatedReasoningPolicyAnnotationsRequest",FZ5="UpdateAutomatedReasoningPolicyAnnotationsResponse",QZ5="UpdateAutomatedReasoningPolicyRequest",UZ5="UpdateAutomatedReasoningPolicyResponse",pZ5="UpdateAutomatedReasoningPolicyTestCase",dZ5="UpdateAutomatedReasoningPolicyTestCaseRequest",cZ5="UpdateAutomatedReasoningPolicyTestCaseResponse",lZ5="UpdateGuardrail",iZ5="UpdateGuardrailRequest",nZ5="UpdateGuardrailResponse",rZ5="UpdateMarketplaceModelEndpoint",oZ5="UpdateMarketplaceModelEndpointRequest",aZ5="UpdateMarketplaceModelEndpointResponse",sZ5="UpdateProvisionedModelThroughput",tZ5="UpdateProvisionedModelThroughputRequest",eZ5="UpdateProvisionedModelThroughputResponse",AG5="UntagResource",qG5="UntagResourceRequest",KG5="UntagResourceResponse",YG5="Validator",zG5="VpcConfig",wG5="ValidationDetails",_G5="ValidationDataConfig",$G5="ValidationException",OG5="ValidatorMetric",HG5="ValidationMetrics",jG5="VectorSearchBedrockRerankingConfiguration",JG5="VectorSearchBedrockRerankingModelConfiguration",MG5="VectorSearchRerankingConfiguration",DG5="ValidityTerm",XG5="Validators",PG5="annotation",WG5="agreementAvailability",JW7="andAll",ZG5="agreementDuration",MW7="alternateExpression",GG5="acceptEula",G28="additionalModelRequestFields",DW7="addRule",fG5="addRuleFromNaturalLanguage",TG5="automatedReasoningPolicy",VG5="automatedReasoningPolicyBuildWorkflowSummaries",XW7="automatedReasoningPolicyConfig",NG5="automatedReasoningPolicySummaries",vG5="authorizationStatus",PW7="annotationSetHash",f28="applicationType",x07="applicationTypeEquals",kG5="aggregatedTestFindingsResult",EG5="addTypeValue",WW7="addType",u07="assetType",ZW7="addVariable",gP6="action",T28="annotations",LG5="arn",yG5="automated",RG5="byteContent",B07="byCustomizationType",GW7="bedrockEvaluatorModels",V28="blockedInputMessaging",m07="byInferenceType",SG5="bedrockKnowledgeBaseIdentifiers",CG5="buildLog",hG5="bedrockModel",Q_1="baseModelArn",g07="baseModelArnEquals",IG5="baseModelIdentifier",bG5="bedrockModelIdentifiers",xG5="baseModelName",uG5="bucketName",N28="blockedOutputsMessaging",F07="byOutputModality",Q07="byProvider",BG5="bedrockRerankingConfiguration",mG5="buildSteps",gG5="buildWorkflowAssets",oZ="buildWorkflowId",v28="buildWorkflowType",Ct="client",eX="createdAt",U07="createdAfter",p07="createdBefore",k28="customizationConfig",E28="commitmentDuration",fW7="customerEncryptionKeyId",TW7="commitmentExpirationTime",FG5="copyFrom",QG5="claimsFalseScenario",UG5="contextualGroundingPolicy",VW7="contextualGroundingPolicyConfig",NW7="customMetrics",pG5="customModelArn",dG5="customMetricConfig",cG5="customMetricDefinition",L28="customModelDeploymentArn",vW7="customModelDeploymentIdentifier",lG5="customModelDeploymentName",iG5="customMetricsEvaluatorModelIdentifiers",nG5="customModelKmsKeyId",kW7="customModelName",rG5="customModelTags",oG5="customModelUnits",aG5="customModelUnitsPerModelCopy",sG5="customModelUnitsVersion",tG5="contentPolicy",EW7="contentPolicyConfig",LW7="contradictingRules",yW7="crossRegionConfig",RW7="crossRegionDetails",FH="clientRequestToken",eG5="conflictingRules",SW7="customizationsSupported",gB6="confidenceThreshold",DN="creationTimeAfter",XN="creationTimeBefore",CW7="claimsTrueScenario",Af5="contentType",u0="creationTime",FB6="customizationType",qf5="cloudWatchConfig",hW7="claims",Kf5="confidence",Yf5="code",zf5="context",wf5="content",Sz="description",_f5="distillationConfig",IW7="documentContentType",bW7="documentDescription",U_1="definitionHash",$f5="datasetLocation",xW7="desiredModelArn",uW7="datasetMetricConfigs",Of5="desiredModelId",BW7="desiredModelUnits",mW7="documentName",Hf5="dataProcessingDetails",jf5="desiredProvisionedModelName",gW7="deleteRule",Jf5="disjointRuleSets",Mf5="differenceScenarios",FW7="deleteType",Df5="deleteTypeValue",QW7="deleteVariable",Xf5="data",Pf5="dataset",y28="definition",Wf5="dimension",Zf5="document",Gf5="documents",em="error",FP6="endpointArn",p_1="expectedAggregatedFindingsResult",ff5="entitlementAvailability",UW7="evaluationConfig",R28="endpointConfig",Tf5="embeddingDataDeliveryEnabled",Vf5="endpointIdentifier",Nf5="evaluationJobs",vf5="errorMessage",pW7="evaluatorModelConfig",kf5="evaluatorModelIdentifiers",Ef5="endpointName",Lf5="expectedResult",yf5="executionRole",Rf5="endpointStatus",Sf5="externalSourcesConfiguration",Cf5="endpointStatusMessage",QP6="endTime",hf5="evaluationTaskTypes",If5="entries",dW7="enabled",S28="equals",bf5="errors",d_1="expression",cW7="examples",lW7="feedback",iW7="filtersConfig",nW7="formData",xf5="flowDefinitionArn",C28="fallbackModel",rW7="foundationModelArn",d07="foundationModelArnEquals",ht="failureMessage",uf5="failureMessages",Bf5="fieldName",mf5="failureRecommendations",gf5="fieldsToExclude",Ff5="fieldsToInclude",Qf5="floatValue",oW7="filters",Uf5="filter",c07="force",pf5="guardrails",h28="guardrailArn",c_1="guardContent",aW7="generationConfiguration",sW7="guardrailConfiguration",QB6="guardrailId",BP6="guardrailIdentifier",df5="guardrailProfileArn",cf5="guardrailProfileIdentifier",lf5="guardrailProfileId",if5="greaterThan",tW7="generatedTestCases",nf5="greaterThanOrEquals",BB6="guardrailVersion",rf5="human",Ag="httpError",of5="httpHeader",I28="hyperParameters",hA="httpQuery",af5="humanWorkflowConfig",O7="http",l_1="id",QR="inputAction",eW7="inferenceConfig",sf5="inferenceConfigSummary",tf5="ingestContent",b28="inputDataConfig",ef5="imageDataDeliveryEnabled",UR="inputEnabled",AT5="implicitFilterConfiguration",qT5="initialInstanceCount",KT5="invocationJobSummaries",YT5="invocationLogsConfig",zT5="invocationLogSource",i_1="inputModalities",AZ7="importedModelArn",wT5="importedModelKmsKeyArn",_T5="importedModelKmsKeyId",x28="importedModelName",$T5="importedModelTags",l07="isOwned",OT5="inferenceParams",u28="inferenceProfileArn",qZ7="inferenceProfileIdentifier",KZ7="inferenceProfileId",B28="inferenceProfileName",HT5="inferenceProfileSummaries",YZ7="instructSupported",jT5="inferenceSourceIdentifier",zZ7="inputStrength",JT5="instanceType",wZ7="inferenceTypesSupported",MT5="idempotencyToken",DT5="identifier",XT5="impossible",_Z7="instructions",PT5="in",WT5="invalid",AP="jobArn",$Z7="jobDescription",OZ7="jobExpirationTime",uc="jobIdentifier",ZT5="jobIdentifiers",WN="jobName",GT5="jobStatus",fT5="jobSummaries",m28="jobTags",HZ7="jobType",g28="key",TT5="knowledgeBaseConfiguration",VT5="knowledgeBaseConfig",jZ7="knowledgeBaseId",NT5="knowledgeBaseRetrievalConfiguration",vT5="kmsEncryptionKey",JZ7="kbInferenceConfig",MZ7="kmsKeyArn",F28="kmsKeyId",kT5="keyPrefix",ET5="logic",DZ7="loggingConfig",LT5="listContains",yT5="largeDataDeliveryS3Config",RT5="logGroupName",pR="lastModifiedTime",ST5="legalTerm",CT5="lessThanOrEquals",hT5="lessThan",UB6="lastUpdatedAt",IT5="lastUpdatedAnnotationSetHash",bT5="lastUpdatedDefinitionHash",n_1="logicWarning",xT5="latency",ZN="message",qP="modelArn",b_1="modelArnEquals",uT5="metadataAttributes",XZ7="modelArchitecture",BT5="modelConfiguration",mT5="modelCopyJobSummaries",gT5="modelCustomizationJobSummaries",FT5="modelConfigSummary",QT5="metadataConfiguration",UT5="modelDetails",PZ7="modelDeploymentName",Q28="modelDataSource",pT5="modelDeploymentSummaries",It="modelIdentifier",dT5="modelImportJobSummaries",NE="modelId",cT5="modelIdentifiers",U28="modelKmsKeyArn",lT5="modelKmsKeyId",WZ7="modelLifecycle",r_1="marketplaceModelEndpoint",iT5="marketplaceModelEndpoints",a36="modelName",nT5="metricNames",_z="maxResults",rT5="maxResponseLengthForInference",oT5="modelSource",aT5="modelSourceConfig",sT5="modelSourceEquals",pB6="modelSourceIdentifier",x_1="modelStatus",p28="modelSummaries",tT5="messageType",eT5="maxTokens",AV5="modelTags",d28="modelUnits",qV5="managedWordLists",KV5="managedWordListsConfig",YV5="messages",UP6="models",zV5="mutation",T2="name",rZ="nameContains",c28="notEquals",wV5="notIn",ZZ7="naturalLanguage",GZ7="newName",_V5="numberOfResults",$V5="numberOfRerankedResults",mK="nextToken",OV5="noTranslations",HV5="newValue",jV5="options",dR="outputAction",JV5="ownerAccountId",fZ7="orAll",MV5="orchestrationConfiguration",bt="outputDataConfig",cR="outputEnabled",DV5="offerId",o_1="outputModalities",XV5="outputModelArn",PV5="outputModelKmsKeyArn",WV5="outputModelName",ZV5="outputModelNameContains",TZ7="outputStrength",GV5="overrideSearchType",VZ7="offerToken",i07="offerType",fV5="offers",NZ7="premises",U5="policyArn",TV5="performanceConfig",dB6="policyDefinition",VV5="policyDefinitionRule",NV5="policyDefinitionType",vV5="policyDefinitionVariable",kV5="priorElement",EV5="piiEntitiesConfig",LV5="piiEntities",vZ7="policyId",yV5="precomputedInferenceSource",RV5="precomputedInferenceSourceIdentifiers",l28="provisionedModelArn",i28="provisionedModelId",n28="provisionedModelName",SV5="provisionedModelSummaries",kZ7="providerName",cB6="promptRouterArn",CV5="policyRepairAssets",r28="promptRouterName",hV5="promptRouterSummaries",IV5="precomputedRagSourceConfig",bV5="precomputedRagSourceIdentifiers",EZ7="promptTemplate",xV5="policyVersionArn",LZ7="pattern",uV5="planning",yZ7="policies",BV5="price",a_1="queryContent",mV5="qualityReport",gV5="queryTransformationConfiguration",RZ7="rule",Hb="roleArn",FV5="retrieveAndGenerateConfig",QV5="retrieveAndGenerateSourceConfig",o28="resourceARN",UV5="regionAvailability",pV5="ruleCount",dV5="ragConfigSummary",cV5="rateCard",lV5="ragConfigs",iV5="regexesConfig",nV5="rerankingConfiguration",rV5="retrievalConfiguration",oV5="retrieveConfig",a28="routingCriteria",SZ7="ruleId",aV5="ragIdentifiers",s28="ruleIds",sV5="ratingMethod",tV5="requestMetadataFilters",eV5="resourceName",AN5="refundPolicyDescription",qN5="responseQualityDifference",KN5="ratingScale",YN5="retrieveSourceConfig",CZ7="ragSourceIdentifier",hZ7="responseStreamingSupported",zN5="regexes",IZ7="rules",Gw="status",n07="sourceAccountEquals",bZ7="sourceAccountId",sX="sortBy",xZ7="s3BucketOwner",wN5="s3Config",_N5="sourceContent",$N5="stringContains",uZ7="statusDetails",ON5="s3DataSource",HN5="scenarioExpression",jN5="s3EncryptionKeyId",PN="statusEquals",JN5="securityGroupIds",MN5="subnetIds",DN5="s3InputDataConfig",XN5="s3InputFormat",PN5="sensitiveInformationPolicy",BZ7="sensitiveInformationPolicyConfig",WN5="s3Location",mZ7="statusMessage",t28="sourceModelArn",r07="sourceModelArnEquals",ZN5="selectiveModeConfiguration",gZ7="sourceModelName",GN5="sageMaker",fN5="selectionMode",tX="sortOrder",TN5="s3OutputDataConfig",VN5="supportingRules",NN5="statusReasons",vN5="stopSequences",kN5="sourceType",o07="submitTimeAfter",a07="submitTimeBefore",FZ7="submitTime",EN5="supportTerm",Bc="s3Uri",LN5="stringValue",yN5="startsWith",RN5="satisfiable",SN5="scenario",QZ7="server",UZ7="smithy.ts.sdk.synthetic.com.amazonaws.bedrock",CN5="sources",hN5="statements",s_1="translation",IN5="translationAmbiguous",bN5="typeCount",s36="testCaseId",xN5="testCaseIds",pZ7="testCase",uN5="testCases",dZ7="tierConfig",BN5="topicsConfig",mN5="tooComplex",gN5="termDetails",e28="trainingDataConfig",FN5="textDataDeliveryEnabled",A_8="timeoutDurationInHours",QN5="trainingDetails",UN5="typeEquals",pN5="testFindings",dN5="textInferenceConfig",cN5="tagKeys",lN5="trainingLoss",cZ7="trainingMetrics",lZ7="targetModelArn",iN5="teacherModelConfig",nN5="teacherModelIdentifier",iZ7="targetModelKmsKeyArn",q_8="targetModelName",rN5="targetModelNameContains",K_8="targetModelTags",oN5="typeName",t_1="tierName",aN5="topicPolicy",nZ7="topicPolicyConfig",sN5="textPromptTemplate",tN5="topP",eN5="testResult",Av5="testRunResult",qv5="testRunStatus",Kv5="testResults",Yv5="taskType",jb="tags",Y_8="text",zv5="temperature",rZ7="threshold",oZ7="tier",wv5="topics",_v5="translations",H$="type",$v5="types",Ov5="unit",vJ="updatedAt",Hv5="usageBasedPricingTerm",jv5="untranslatedClaims",Jv5="updateFromRulesFeedback",Mv5="updateFromScenarioFeedback",Dv5="untranslatedPremises",Xv5="usePromptResponse",aZ7="updateRule",Pv5="unusedTypes",Wv5="unusedTypeValues",Zv5="updateTypeValue",sZ7="updateType",Gv5="unusedVariables",tZ7="updateVariable",fv5="url",Tv5="uri",z_8="values",Vv5="variableCount",t36="vpcConfig",Nv5="validationDetails",w_8="validationDataConfig",vv5="videoDataDeliveryEnabled",kv5="validationLoss",eZ7="validationMetrics",Ev5="valueName",Lv5="vectorSearchConfiguration",yv5="validityTerm",e36="value",Rv5="validators",Sv5="valid",AG7="variable",qG7="variables",qg="version",Cv5="vpc",hv5="words",Iv5="workflowContent",bv5="wordsConfig",xv5="wordPolicy",KG7="wordPolicyConfig",uv5="x-amz-client-token",N6="com.amazonaws.bedrock",Bv5=[0,N6,d$5,8,0],YG7=[0,N6,l$5,8,0],zG7=[0,N6,n$5,8,0],mv5=[0,N6,r$5,8,0],gv5=[0,N6,e$5,8,0],Fv5=[0,N6,wO5,8,21],wG7=[0,N6,_O5,8,0],_G7=[0,N6,$O5,8,0],Qv5=[0,N6,RO5,8,0],__8=[0,N6,SO5,8,0],$_8=[0,N6,BO5,8,0],tm=[0,N6,FO5,8,0],O_8=[0,N6,pO5,8,0],H_8=[0,N6,oO5,8,0],o36=[0,N6,tO5,8,0],pP6=[0,N6,vO5,8,0],xt=[0,N6,_H5,8,0],Uv5=[0,N6,HH5,8,0],$G7=[0,N6,jH5,8,0],e_1=[0,N6,PH5,8,0],A$1=[0,N6,ZH5,8,0],pv5=[0,N6,hH5,8,21],dv5=[0,N6,qM5,8,0],OG7=[0,N6,zM5,8,0],lB6=[0,N6,wM5,8,0],cv5=[0,N6,JM5,8,0],HG7=[0,N6,DM5,8,0],lv5=[0,N6,MM5,8,0],mP6=[0,N6,YD5,8,0],u_1=[0,N6,_D5,8,0],jG7=[0,N6,JD5,8,0],JG7=[0,N6,DD5,8,0],iB6=[0,N6,hD5,8,0],iv5=[0,N6,UD5,8,0],nv5=[0,N6,tD5,8,0],q$1=[0,N6,NX5,8,0],rv5=[0,N6,QX5,8,0],B_1=[0,N6,cX5,8,0],MG7=[0,N6,nX5,8,0],ov5=[0,N6,rX5,8,0],DG7=[0,N6,aX5,8,0],XG7=[0,N6,qP5,8,0],St=[0,N6,$P5,8,0],av5=[0,N6,WP5,8,0],sv5=[0,N6,GP5,8,0],j_8=[0,N6,kP5,8,0],PG7=[0,N6,c05,8,0],tv5=[0,N6,jW5,8,0],J_8=[0,N6,VW5,8,0],ev5=[0,N6,IZ5,8,0],Ak5=[-3,N6,Z$5,{[em]:Ct,[Ag]:403},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(Ak5,qW7);var qk5=[3,N6,W$5,0,[Gw,vf5],[0,0]],Kk5=[3,N6,G$5,0,[uW7,pW7,dG5],[[()=>mG7,0],()=>YI5,[()=>Yk5,0]]],Yk5=[3,N6,T$5,0,[NW7,pW7],[[()=>xC5,0],()=>oE5]],zk5=[3,N6,E$5,0,[s_1,LW7,n_1],[[()=>nB6,0],()=>Z_8,[()=>K$1,0]]],wk5=[3,N6,y$5,0,[Y_8],[[()=>YG7,0]]],_k5=[3,N6,L$5,0,[s_1,LW7,n_1],[[()=>nB6,0],()=>Z_8,[()=>K$1,0]]],K$1=[3,N6,S$5,0,[H$,NZ7,hW7],[0,[()=>mB6,0],[()=>mB6,0]]],$k5=[3,N6,C$5,0,[],[]],Ok5=[3,N6,h$5,0,[l_1,xV5],[0,0]],Hk5=[3,N6,x$5,0,[s_1,CW7,QG5,n_1],[[()=>nB6,0],[()=>m_1,0],[()=>m_1,0],[()=>K$1,0]]],m_1=[3,N6,b$5,0,[hN5],[[()=>mB6,0]]],jk5=[3,N6,m$5,0,[],[]],nB6=[3,N6,u$5,0,[NZ7,hW7,Dv5,jv5,Kf5],[[()=>mB6,0],[()=>mB6,0],[()=>s07,0],[()=>s07,0],1]],Jk5=[3,N6,B$5,0,[jV5,Mf5],[[()=>gC5,0],[()=>uC5,0]]],Mk5=[3,N6,F$5,0,[_v5],[[()=>mC5,0]]],Dk5=[3,N6,U$5,0,[s_1,CW7,VN5,n_1],[[()=>nB6,0],[()=>m_1,0],()=>Z_8,[()=>K$1,0]]],Xk5=[3,N6,p$5,0,[ET5,ZZ7],[[()=>Bv5,0],[()=>YG7,0]]],Pk5=[3,N6,a$5,0,[d_1],[[()=>__8,0]]],Wk5=[3,N6,s$5,0,[ZZ7],[[()=>gv5,0]]],Zk5=[3,N6,t$5,0,[RZ7],[[()=>Y$1,0]]],Gk5=[3,N6,AO5,0,[T2,Sz,z_8],[[()=>tm,0],[()=>$_8,0],[()=>uG7,0]]],fk5=[3,N6,qO5,0,[H$],[[()=>z$1,0]]],Tk5=[3,N6,KO5,0,[e36,Sz],[0,[()=>O_8,0]]],Vk5=[3,N6,YO5,0,[T2,H$,Sz],[[()=>o36,0],[()=>tm,0],[()=>H_8,0]]],Nk5=[3,N6,zO5,0,[AG7],[[()=>w$1,0]]],vk5=[3,N6,OO5,0,[If5],[[()=>FC5,0]]],kk5=[3,N6,HO5,0,[PG5,Gw,mG5],[[()=>UG7,0],0,[()=>QC5,0]]],Ek5=[3,N6,MO5,0,[zf5,kV5,YV5],[[()=>oh5,0],[()=>ah5,0],()=>UC5]],Lk5=[3,N6,PO5,0,[ZN,tT5],[0,0]],yk5=[3,N6,ZO5,0,[Zf5,IW7,mW7,bW7],[[()=>Fv5,0],0,[()=>_G7,0],[()=>wG7,0]]],Rk5=[3,N6,fO5,0,[T28],[[()=>G_8,0]]],Sk5=[3,N6,TO5,0,[dB6,Iv5],[[()=>rB6,0],[()=>eh5,0]]],Ck5=[3,N6,VO5,0,[U5,oZ,Gw,v28,eX,vJ],[0,0,0,0,5,5]],rB6=[3,N6,AH5,0,[qg,$v5,IZ7,qG7],[0,[()=>lC5,0],[()=>cC5,0],[()=>rC5,0]]],hk5=[3,N6,EO5,0,[bN5,Vv5,pV5,Pv5,Wv5,Gv5,eG5,Jf5],[1,1,1,[()=>iC5,0],[()=>nC5,0],[()=>BG7,0],64,[()=>oC5,0]]],Y$1=[3,N6,LO5,0,[l_1,d_1,MW7],[0,[()=>__8,0],[()=>Qv5,0]]],z$1=[3,N6,xO5,0,[T2,Sz,z_8],[[()=>tm,0],[()=>$_8,0],[()=>uG7,0]]],Ik5=[3,N6,UO5,0,[e36,Sz],[0,[()=>O_8,0]]],bk5=[3,N6,cO5,0,[oN5,Ev5],[[()=>tm,0],0]],w$1=[3,N6,nO5,0,[T2,H$,Sz],[[()=>o36,0],[()=>tm,0],[()=>H_8,0]]],xk5=[3,N6,yO5,0,[SZ7],[0]],uk5=[3,N6,hO5,0,[l_1],[0]],Bk5=[3,N6,uO5,0,[T2],[[()=>tm,0]]],mk5=[3,N6,gO5,0,[T2],[[()=>tm,0]]],gk5=[3,N6,iO5,0,[e36],[0]],Fk5=[3,N6,rO5,0,[T2],[[()=>o36,0]]],Qk5=[3,N6,sO5,0,[T2],[[()=>o36,0]]],Uk5=[3,N6,IO5,0,[qG7,IZ7],[[()=>BG7,0],64]],pk5=[3,N6,qH5,0,[a_1,c_1,p_1],[[()=>A$1,0],[()=>e_1,0],0]],dk5=[3,N6,YH5,0,[tW7],[[()=>aC5,0]]],ck5=[3,N6,zH5,0,[wf5],[[()=>mv5,0]]],lk5=[3,N6,$H5,0,[],[]],ik5=[3,N6,OH5,0,[d_1,MW7,s28,Lf5],[[()=>$G7,0],[()=>Uv5,0],64,0]],nk5=[3,N6,JH5,0,[U5,T2,Sz,qg,vZ7,eX,vJ],[0,[()=>xt,0],[()=>pP6,0],0,0,5,5]],M_8=[3,N6,DH5,0,[s36,c_1,a_1,p_1,eX,vJ,gB6],[0,[()=>e_1,0],[()=>A$1,0],0,5,5,1]],WG7=[3,N6,GH5,0,[pZ7,U5,qv5,pN5,Av5,kG5,vJ],[[()=>M_8,0],0,0,[()=>BC5,0],0,0,5]],rk5=[3,N6,VH5,0,[s28,lW7],[64,[()=>zG7,0]]],ok5=[3,N6,NH5,0,[s28,HN5,lW7],[64,[()=>$G7,0],[()=>zG7,0]]],ak5=[3,N6,vH5,0,[SZ7,d_1],[0,[()=>__8,0]]],sk5=[3,N6,kH5,0,[RZ7],[[()=>Y$1,0]]],tk5=[3,N6,EH5,0,[T2,GZ7,Sz,z_8],[[()=>tm,0],[()=>tm,0],[()=>$_8,0],[()=>Ah5,0]]],ek5=[3,N6,LH5,0,[H$],[[()=>z$1,0]]],AE5=[3,N6,yH5,0,[e36,HV5,Sz],[0,0,[()=>O_8,0]]],qE5=[3,N6,RH5,0,[T2,GZ7,Sz],[[()=>o36,0],[()=>o36,0],[()=>H_8,0]]],KE5=[3,N6,SH5,0,[AG7],[[()=>w$1,0]]],YE5=[3,N6,xH5,0,[uc,Yf5,ZN],[[()=>lB6,0],0,0]],zE5=[3,N6,BH5,0,[uc,GT5],[[()=>lB6,0],0]],wE5=[3,N6,gH5,0,[ZT5],[[()=>$h5,0]]],_E5=[3,N6,FH5,0,[bf5,Nf5],[[()=>qh5,0],[()=>Kh5,0]]],$E5=[3,N6,QH5,0,[It],[0]],OE5=[3,N6,IH5,0,[DT5,Af5,Xf5],[[()=>sv5,0],0,[()=>pv5,0]]],HE5=[3,N6,cH5,0,[U5,oZ],[[0,1],[0,1]]],jE5=[3,N6,lH5,0,[],[]],JE5=[3,N6,ej5,0,[RT5,Hb,yT5],[0,0,()=>IG7]],ME5=[-3,N6,$j5,{[em]:Ct,[Ag]:400},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(ME5,_W7);var DE5=[3,N6,iH5,0,[T2,Sz,FH,dB6,F28,jb],[[()=>xt,0],[()=>pP6,0],[0,4],[()=>rB6,0],0,()=>yM]],XE5=[3,N6,nH5,0,[U5,qg,T2,Sz,U_1,eX,vJ],[0,0,[()=>xt,0],[()=>pP6,0],0,5,5]],PE5=[3,N6,oH5,0,[U5,c_1,a_1,p_1,FH,gB6],[[0,1],[()=>e_1,0],[()=>A$1,0],0,[0,4],1]],WE5=[3,N6,aH5,0,[U5,s36],[0,0]],ZE5=[3,N6,tH5,0,[U5,FH,bT5,jb],[[0,1],[0,4],0,()=>yM]],GE5=[3,N6,eH5,0,[U5,qg,T2,Sz,U_1,eX],[0,0,[()=>xt,0],[()=>pP6,0],0,5]],fE5=[3,N6,Yj5,0,[PZ7,qP,Sz,jb,FH],[0,0,0,()=>yM,[0,4]]],TE5=[3,N6,zj5,0,[L28],[0]],VE5=[3,N6,wj5,0,[a36,aT5,U28,Hb,AV5,FH],[0,()=>O$1,0,0,()=>yM,[0,4]]],NE5=[3,N6,_j5,0,[qP],[0]],vE5=[3,N6,Hj5,0,[WN,$Z7,FH,Hb,fW7,m28,f28,UW7,eW7,bt],[0,[()=>OG7,0],[0,4],0,0,()=>yM,0,[()=>pG7,0],[()=>dG7,0],()=>ZG7]],kE5=[3,N6,jj5,0,[AP],[0]],EE5=[3,N6,Mj5,0,[VZ7,NE],[0,0]],LE5=[3,N6,Dj5,0,[NE],[0]],yE5=[3,N6,Pj5,0,[T2,Sz,nZ7,EW7,KG7,BZ7,VW7,XW7,yW7,V28,N28,F28,jb,FH],[[()=>q$1,0],[()=>iB6,0],[()=>LG7,0],[()=>VG7,0],[()=>yG7,0],()=>EG7,[()=>NG7,0],()=>fG7,()=>vG7,[()=>mP6,0],[()=>mP6,0],0,()=>yM,[0,4]]],RE5=[3,N6,Wj5,0,[QB6,h28,qg,eX],[0,0,0,5]],SE5=[3,N6,Gj5,0,[BP6,Sz,FH],[[0,1],[()=>iB6,0],[0,4]]],CE5=[3,N6,fj5,0,[QB6,qg],[0,0]],hE5=[3,N6,Vj5,0,[B28,Sz,FH,oT5,jb],[0,[()=>j_8,0],[0,4],()=>zI5,()=>yM]],IE5=[3,N6,Nj5,0,[u28,Gw],[0,0]],bE5=[3,N6,pj5,0,[pB6,R28,GG5,Ef5,FH,jb],[0,()=>V_8,2,0,[0,4],()=>yM]],xE5=[3,N6,dj5,0,[r_1],[()=>_$1]],uE5=[3,N6,Lj5,0,[t28,q_8,lT5,K_8,FH],[0,0,0,()=>yM,[0,4]]],BE5=[3,N6,yj5,0,[AP],[0]],mE5=[3,N6,Rj5,0,[WN,kW7,Hb,FH,IG5,FB6,nG5,m28,rG5,e28,w_8,bt,I28,t36,k28],[0,0,0,[0,4],0,0,0,()=>yM,()=>yM,[()=>P_8,0],()=>W_8,()=>D_8,128,()=>ut,()=>T_8]],gE5=[3,N6,Sj5,0,[AP],[0]],FE5=[3,N6,Bj5,0,[WN,x28,Hb,Q28,m28,$T5,FH,t36,_T5],[0,0,0,()=>O$1,()=>yM,()=>yM,0,()=>ut,0]],QE5=[3,N6,mj5,0,[AP],[0]],UE5=[3,N6,gj5,0,[WN,Hb,FH,NE,b28,bt,t36,A_8,jb],[0,0,[0,4],0,()=>N_8,()=>v_8,()=>ut,1,()=>yM]],pE5=[3,N6,Fj5,0,[AP],[0]],dE5=[3,N6,sj5,0,[FH,r28,UP6,Sz,a28,C28,jb],[[0,4],0,()=>f_8,[()=>J_8,0],()=>X_8,()=>$$1,()=>yM]],cE5=[3,N6,tj5,0,[cB6],[0]],lE5=[3,N6,rj5,0,[FH,d28,n28,NE,E28,jb],[[0,4],1,0,0,0,()=>yM]],iE5=[3,N6,oj5,0,[l28],[0]],nE5=[3,N6,vj5,0,[It],[0]],rE5=[3,N6,hj5,8,[T2,_Z7,KN5],[[()=>tv5,0],0,()=>ch5]],oE5=[3,N6,xj5,0,[GW7],[()=>zh5]],aE5=[3,N6,Ij5,0,[L28,lG5,qP,eX,Gw,UB6,ht],[0,0,0,5,0,5,0]],sE5=[3,N6,cj5,0,[qP,a36,u0,Q_1,xG5,FB6,JV5,x_1],[0,0,5,0,0,0,0,0]],tE5=[3,N6,ij5,0,[aG5,sG5],[1,0]],eE5=[3,N6,mJ5,0,[Gw,u0,pR],[0,5,5]],AL5=[3,N6,KJ5,0,[U5,oZ,UB6],[[0,1],[0,1],[5,{[hA]:vJ}]]],qL5=[3,N6,YJ5,0,[],[]],KL5=[3,N6,zJ5,0,[U5,c07],[[0,1],[2,{[hA]:c07}]]],YL5=[3,N6,wJ5,0,[],[]],zL5=[3,N6,$J5,0,[U5,s36,UB6],[[0,1],[0,1],[5,{[hA]:vJ}]]],wL5=[3,N6,OJ5,0,[],[]],_L5=[3,N6,MJ5,0,[vW7],[[0,1]]],$L5=[3,N6,DJ5,0,[],[]],OL5=[3,N6,XJ5,0,[It],[[0,1]]],HL5=[3,N6,PJ5,0,[],[]],jL5=[3,N6,ZJ5,0,[NE],[0]],JL5=[3,N6,GJ5,0,[],[]],ML5=[3,N6,TJ5,0,[BP6,BB6],[[0,1],[0,{[hA]:BB6}]]],DL5=[3,N6,VJ5,0,[],[]],XL5=[3,N6,vJ5,0,[It],[[0,1]]],PL5=[3,N6,kJ5,0,[],[]],WL5=[3,N6,LJ5,0,[qZ7],[[0,1]]],ZL5=[3,N6,yJ5,0,[],[]],GL5=[3,N6,IJ5,0,[FP6],[[0,1]]],fL5=[3,N6,bJ5,0,[],[]],TL5=[3,N6,SJ5,0,[],[]],VL5=[3,N6,CJ5,0,[],[]],NL5=[3,N6,pJ5,0,[cB6],[[0,1]]],vL5=[3,N6,dJ5,0,[],[]],kL5=[3,N6,FJ5,0,[i28],[[0,1]]],EL5=[3,N6,QJ5,0,[],[]],LL5=[3,N6,xJ5,0,[FP6],[[0,1]]],yL5=[3,N6,uJ5,0,[],[]],RL5=[3,N6,UJ5,0,[Wf5,BV5,Sz,Ov5],[0,0,0,0]],SL5=[3,N6,HJ5,0,[iN5],[()=>wC5]],CL5=[3,N6,rJ5,0,[It,OT5,TV5],[0,[()=>lv5,0],()=>vS5]],hL5=[3,N6,sJ5,0,[T2,$f5],[[()=>dv5,0],()=>AI5]],IL5=[3,N6,eJ5,0,[Yv5,Pf5,nT5],[0,[()=>hL5,0],[()=>Oh5,0]]],bL5=[3,N6,YM5,0,[FT5,dV5],[()=>xL5,()=>gL5]],xL5=[3,N6,OM5,0,[bG5,RV5],[64,64]],ZG7=[3,N6,PM5,0,[Bc],[0]],uL5=[3,N6,WM5,0,[jT5],[0]],BL5=[3,N6,ZM5,0,[CZ7],[0]],mL5=[3,N6,GM5,0,[CZ7],[0]],gL5=[3,N6,TM5,0,[SG5,bV5],[64,64]],FL5=[3,N6,VM5,0,[AP,WN,Gw,u0,HZ7,hf5,cT5,aV5,kf5,iG5,sf5,f28],[0,0,0,5,0,64,64,64,64,64,()=>bL5,0]],QL5=[3,N6,iJ5,0,[U5],[[0,1]]],UL5=[3,N6,nJ5,0,[dB6],[[()=>rB6,16]]],pL5=[3,N6,EM5,0,[kN5,WN5,RG5],[0,()=>US5,[()=>OE5,0]]],dL5=[3,N6,NM5,0,[EZ7,sW7,JZ7,G28],[[()=>hG7,0],()=>TG7,()=>RG7,143]],cL5=[3,N6,vM5,0,[qP,CN5,aW7],[0,[()=>Jh5,0],[()=>dL5,0]]],lL5=[3,N6,RM5,0,[Bf5],[0]],Ob=[3,N6,yM5,0,[g28,e36],[0,15]],iL5=[3,N6,CM5,0,[qP,NE,a36,kZ7,i_1,o_1,hZ7,SW7,wZ7,WZ7],[0,0,0,0,64,64,2,64,64,()=>GG7]],GG7=[3,N6,hM5,0,[Gw],[0]],nL5=[3,N6,IM5,0,[qP,NE,a36,kZ7,i_1,o_1,hZ7,SW7,wZ7,WZ7],[0,0,0,0,64,64,2,64,64,()=>GG7]],rL5=[3,N6,zD5,0,[EZ7,sW7,JZ7,G28],[[()=>hG7,0],()=>TG7,()=>RG7,143]],oL5=[3,N6,BM5,0,[U5,oZ],[[0,1],[0,1]]],aL5=[3,N6,mM5,0,[U5,T2,oZ,T28,PW7,vJ],[0,[()=>xt,0],0,[()=>G_8,0],0,5]],sL5=[3,N6,FM5,0,[U5,oZ],[[0,1],[0,1]]],tL5=[3,N6,dM5,0,[U5,oZ,Gw,v28,mW7,IW7,bW7,eX,vJ],[0,0,0,0,[()=>_G7,0],0,[()=>wG7,0],5,5]],eL5=[3,N6,UM5,0,[U5,oZ,u07],[[0,1],[0,1],[0,{[hA]:u07}]]],Ay5=[3,N6,pM5,0,[U5,oZ,gG5],[0,0,[()=>rh5,0]]],qy5=[3,N6,iM5,0,[U5,oZ],[[0,1],[0,1]]],Ky5=[3,N6,nM5,0,[U5,SN5],[0,[()=>ik5,0]]],Yy5=[3,N6,rM5,0,[U5],[[0,1]]],zy5=[3,N6,oM5,0,[U5,T2,qg,vZ7,Sz,U_1,MZ7,eX,vJ],[0,[()=>xt,0],0,0,[()=>pP6,0],0,0,5,5]],wy5=[3,N6,sM5,0,[U5,s36],[[0,1],[0,1]]],_y5=[3,N6,tM5,0,[U5,pZ7],[0,[()=>M_8,0]]],$y5=[3,N6,AD5,0,[U5,oZ,s36],[[0,1],[0,1],[0,1]]],Oy5=[3,N6,qD5,0,[eN5],[[()=>WG7,0]]],Hy5=[3,N6,ND5,0,[vW7],[[0,1]]],jy5=[3,N6,vD5,0,[L28,PZ7,qP,eX,Gw,Sz,ht,UB6],[0,0,0,5,0,0,0,5]],Jy5=[3,N6,kD5,0,[It],[[0,1]]],My5=[3,N6,ED5,0,[qP,a36,WN,AP,Q_1,FB6,U28,I28,e28,w_8,bt,cZ7,eZ7,u0,k28,x_1,ht],[0,0,0,0,0,0,0,128,[()=>P_8,0],()=>W_8,()=>D_8,()=>xG7,()=>QG7,5,()=>T_8,0,0]],Dy5=[3,N6,bD5,0,[uc],[[()=>lB6,1]]],Xy5=[3,N6,xD5,0,[WN,Gw,AP,$Z7,Hb,fW7,HZ7,f28,UW7,eW7,bt,u0,pR,uf5],[0,0,0,[()=>OG7,0],0,0,0,0,[()=>pG7,0],[()=>dG7,0],()=>ZG7,5,5,64]],Py5=[3,N6,mD5,0,[NE],[[0,1]]],Wy5=[3,N6,gD5,0,[NE,WG5,vG5,ff5,UV5],[0,()=>qk5,0,0,0]],Zy5=[3,N6,FD5,0,[It],[[0,1]]],Gy5=[3,N6,QD5,0,[UT5],[()=>iL5]],fy5=[3,N6,cD5,0,[BP6,BB6],[[0,1],[0,{[hA]:BB6}]]],Ty5=[3,N6,lD5,0,[T2,Sz,QB6,h28,qg,Gw,aN5,tG5,xv5,PN5,UG5,TG5,RW7,eX,vJ,NN5,mf5,V28,N28,MZ7],[[()=>q$1,0],[()=>iB6,0],0,0,0,0,[()=>OR5,0],[()=>ry5,0],[()=>DR5,0],()=>zR5,[()=>sy5,0],()=>dy5,()=>kG7,5,5,[()=>kh5,0],[()=>Zh5,0],[()=>mP6,0],[()=>mP6,0],0]],Vy5=[3,N6,nD5,0,[It],[[0,1]]],Ny5=[3,N6,rD5,0,[qP,a36,WN,AP,Q28,u0,XZ7,U28,YZ7,oG5],[0,0,0,0,()=>O$1,5,0,0,2,()=>tE5]],vy5=[3,N6,aD5,0,[qZ7],[[0,1]]],ky5=[3,N6,sD5,0,[B28,Sz,eX,vJ,u28,UP6,KZ7,Gw,H$],[0,[()=>j_8,0],5,5,0,()=>FG7,0,0,0]],Ey5=[3,N6,PX5,0,[FP6],[[0,1]]],Ly5=[3,N6,WX5,0,[r_1],[()=>_$1]],yy5=[3,N6,AX5,0,[AP],[[0,1]]],Ry5=[3,N6,qX5,0,[AP,Gw,u0,lZ7,q_8,bZ7,t28,iZ7,K_8,ht,gZ7],[0,0,5,0,0,0,0,0,()=>yM,0,0]],Sy5=[3,N6,KX5,0,[uc],[[0,1]]],Cy5=[3,N6,YX5,0,[AP,WN,WV5,XV5,FH,Hb,Gw,uZ7,ht,u0,pR,QP6,Q_1,I28,e28,w_8,bt,FB6,PV5,cZ7,eZ7,t36,k28],[0,0,0,0,0,0,0,()=>bG7,0,5,5,5,0,128,[()=>P_8,0],()=>W_8,()=>D_8,0,0,()=>xG7,()=>QG7,()=>ut,()=>T_8]],hy5=[3,N6,_X5,0,[uc],[[0,1]]],Iy5=[3,N6,$X5,0,[AP,WN,x28,AZ7,Hb,Q28,Gw,ht,u0,pR,QP6,t36,wT5],[0,0,0,0,0,()=>O$1,0,0,5,5,5,()=>ut,0]],by5=[3,N6,OX5,0,[uc],[[0,1]]],xy5=[3,N6,HX5,0,[AP,WN,NE,FH,Hb,Gw,ZN,FZ7,pR,QP6,b28,bt,t36,A_8,OZ7],[0,0,0,0,0,0,[()=>PG7,0],5,5,5,()=>N_8,()=>v_8,()=>ut,1,5]],uy5=[3,N6,MX5,0,[],[]],By5=[3,N6,DX5,0,[DZ7],[()=>CG7]],my5=[3,N6,hX5,0,[cB6],[[0,1]]],gy5=[3,N6,IX5,0,[r28,a28,Sz,eX,vJ,cB6,UP6,C28,Gw,H$],[0,()=>X_8,[()=>J_8,0],5,5,0,()=>f_8,()=>$$1,0,0]],Fy5=[3,N6,RX5,0,[i28],[[0,1]]],Qy5=[3,N6,SX5,0,[d28,BW7,n28,l28,qP,xW7,rW7,Gw,u0,pR,ht,E28,TW7],[1,1,0,0,0,0,0,0,5,5,0,0,5]],Uy5=[3,N6,zP5,0,[],[]],py5=[3,N6,wP5,0,[nW7],[21]],dy5=[3,N6,xM5,0,[yZ7,gB6],[64,1]],fG7=[3,N6,cM5,0,[yZ7,gB6],[64,1]],TG7=[3,N6,CD5,0,[QB6,BB6],[0,0]],cy5=[3,N6,wD5,0,[H$,zZ7,TZ7,i_1,o_1,QR,dR,UR,cR],[0,0,0,[()=>g_1,0],[()=>g_1,0],[()=>u_1,0],[()=>u_1,0],2,2]],ly5=[3,N6,$D5,0,[H$,zZ7,TZ7,i_1,o_1,QR,dR,UR,cR],[0,0,0,[()=>g_1,0],[()=>g_1,0],[()=>u_1,0],[()=>u_1,0],2,2]],iy5=[3,N6,HD5,0,[t_1],[[()=>jG7,0]]],ny5=[3,N6,jD5,0,[t_1],[[()=>jG7,0]]],ry5=[3,N6,LD5,0,[oW7,oZ7],[[()=>Dh5,0],[()=>iy5,0]]],VG7=[3,N6,yD5,0,[iW7,dZ7],[[()=>Xh5,0],[()=>ny5,0]]],oy5=[3,N6,XD5,0,[H$,rZ7,gP6,dW7],[0,1,[()=>JG7,0],2]],ay5=[3,N6,PD5,0,[H$,rZ7,gP6,dW7],[0,1,[()=>JG7,0],2]],sy5=[3,N6,GD5,0,[oW7],[[()=>Ph5,0]]],NG7=[3,N6,fD5,0,[iW7],[[()=>Wh5,0]]],vG7=[3,N6,RD5,0,[cf5],[0]],kG7=[3,N6,SD5,0,[lf5,df5],[0,0]],ty5=[3,N6,ZX5,0,[H$,QR,dR,UR,cR],[0,[()=>St,0],[()=>St,0],2,2]],ey5=[3,N6,GX5,0,[H$,QR,dR,UR,cR],[0,[()=>St,0],[()=>St,0],2,2]],AR5=[3,N6,vX5,0,[H$,gP6,QR,dR,UR,cR],[0,0,0,0,2,2]],qR5=[3,N6,kX5,0,[H$,gP6,QR,dR,UR,cR],[0,0,0,0,2,2]],KR5=[3,N6,bX5,0,[T2,Sz,LZ7,gP6,QR,dR,UR,cR],[0,0,0,0,0,0,2,2]],YR5=[3,N6,xX5,0,[T2,Sz,LZ7,gP6,QR,dR,UR,cR],[0,0,0,0,0,0,2,2]],zR5=[3,N6,gX5,0,[LV5,zN5],[()=>Th5,()=>Nh5]],EG7=[3,N6,FX5,0,[EV5,iV5],[()=>Vh5,()=>vh5]],wR5=[3,N6,mX5,0,[l_1,LG5,Gw,T2,Sz,qg,eX,vJ,RW7],[0,0,0,[()=>q$1,0],[()=>iB6,0],0,5,5,()=>kG7]],_R5=[3,N6,dX5,0,[T2,y28,cW7,H$,QR,dR,UR,cR],[[()=>DG7,0],[()=>MG7,0],[()=>gG7,0],0,[()=>B_1,0],[()=>B_1,0],2,2]],$R5=[3,N6,lX5,0,[T2,y28,cW7,H$,QR,dR,UR,cR],[[()=>DG7,0],[()=>MG7,0],[()=>gG7,0],0,[()=>B_1,0],[()=>B_1,0],2,2]],OR5=[3,N6,sX5,0,[wv5,oZ7],[[()=>Lh5,0],[()=>HR5,0]]],LG7=[3,N6,tX5,0,[BN5,dZ7],[[()=>yh5,0],[()=>jR5,0]]],HR5=[3,N6,eX5,0,[t_1],[[()=>XG7,0]]],jR5=[3,N6,AP5,0,[t_1],[[()=>XG7,0]]],JR5=[3,N6,_P5,0,[Y_8,QR,dR,UR,cR],[0,[()=>St,0],[()=>St,0],2,2]],MR5=[3,N6,OP5,0,[Y_8,QR,dR,UR,cR],[0,[()=>St,0],[()=>St,0],2,2]],DR5=[3,N6,jP5,0,[hv5,qV5],[[()=>Rh5,0],[()=>Gh5,0]]],yG7=[3,N6,JP5,0,[bv5,KV5],[[()=>Sh5,0],[()=>fh5,0]]],XR5=[3,N6,DP5,0,[af5,NW7,uW7],[[()=>WR5,0],[()=>Ch5,0],[()=>mG7,0]]],PR5=[3,N6,XP5,0,[T2,Sz,sV5],[[()=>HG7,0],[()=>cv5,0],0]],WR5=[3,N6,ZP5,0,[xf5,_Z7],[0,[()=>av5,0]]],ZR5=[3,N6,fP5,0,[uT5,qP],[[()=>xh5,0],0]],GR5=[3,N6,NP5,0,[qP,a36,u0,YZ7,XZ7],[0,0,5,2,0]],fR5=[3,N6,EP5,0,[qP],[0]],TR5=[3,N6,RP5,0,[B28,Sz,eX,vJ,u28,UP6,KZ7,Gw,H$],[0,[()=>j_8,0],5,5,0,()=>FG7,0,0,0]],VR5=[-3,N6,CP5,{[em]:QZ7,[Ag]:500},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(VR5,KW7);var NR5=[3,N6,TP5,0,[Xv5,zT5,tV5],[2,()=>wI5,[()=>HI5,0]]],RG7=[3,N6,uP5,0,[dN5],[()=>$C5]],SG7=[3,N6,bP5,0,[Lv5],[[()=>kR5,0]]],vR5=[3,N6,IP5,0,[jZ7,qP,rV5,aW7,MV5],[0,0,[()=>SG7,0],[()=>rL5,0],()=>NS5]],kR5=[3,N6,xP5,0,[_V5,GV5,Uf5,AT5,nV5],[1,0,[()=>cG7,0],[()=>ZR5,0],[()=>IC5,0]]],ER5=[3,N6,Q05,0,[fv5],[0]],LR5=[3,N6,QP5,0,[U5,mK,_z],[[0,{[hA]:U5}],[0,{[hA]:mK}],[1,{[hA]:_z}]]],yR5=[3,N6,UP5,0,[NG5,mK],[[()=>sC5,0],0]],RR5=[3,N6,gP5,0,[U5,mK,_z],[[0,1],[0,{[hA]:mK}],[1,{[hA]:_z}]]],SR5=[3,N6,FP5,0,[VG5,mK],[()=>dC5,0]],CR5=[3,N6,dP5,0,[U5,mK,_z],[[0,1],[0,{[hA]:mK}],[1,{[hA]:_z}]]],hR5=[3,N6,cP5,0,[uN5,mK],[[()=>tC5,0],0]],IR5=[3,N6,iP5,0,[U5,oZ,mK,_z],[[0,1],[0,1],[0,{[hA]:mK}],[1,{[hA]:_z}]]],bR5=[3,N6,nP5,0,[Kv5,mK],[[()=>eC5,0],0]],xR5=[3,N6,sP5,0,[p07,U07,rZ,_z,mK,sX,tX,PN,b_1],[[5,{[hA]:p07}],[5,{[hA]:U07}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}],[0,{[hA]:PN}],[0,{[hA]:b_1}]]],uR5=[3,N6,tP5,0,[mK,pT5],[0,()=>wh5]],BR5=[3,N6,eP5,0,[XN,DN,rZ,g07,d07,_z,mK,sX,tX,l07,x_1],[[5,{[hA]:XN}],[5,{[hA]:DN}],[0,{[hA]:rZ}],[0,{[hA]:g07}],[0,{[hA]:d07}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}],[2,{[hA]:l07}],[0,{[hA]:x_1}]]],mR5=[3,N6,A05,0,[mK,p28],[0,()=>_h5]],gR5=[3,N6,K05,0,[DN,XN,PN,x07,rZ,_z,mK,sX,tX],[[5,{[hA]:DN}],[5,{[hA]:XN}],[0,{[hA]:PN}],[0,{[hA]:x07}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],FR5=[3,N6,Y05,0,[mK,fT5],[0,()=>jh5]],QR5=[3,N6,_05,0,[NE,i07],[[0,1],[0,{[hA]:i07}]]],UR5=[3,N6,$05,0,[NE,fV5],[0,()=>Fh5]],pR5=[3,N6,O05,0,[Q07,B07,F07,m07],[[0,{[hA]:Q07}],[0,{[hA]:B07}],[0,{[hA]:F07}],[0,{[hA]:m07}]]],dR5=[3,N6,H05,0,[p28],[()=>Mh5]],cR5=[3,N6,J05,0,[BP6,_z,mK],[[0,{[hA]:BP6}],[1,{[hA]:_z}],[0,{[hA]:mK}]]],lR5=[3,N6,M05,0,[pf5,mK],[[()=>Eh5,0],0]],iR5=[3,N6,X05,0,[XN,DN,rZ,_z,mK,sX,tX],[[5,{[hA]:XN}],[5,{[hA]:DN}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],nR5=[3,N6,P05,0,[mK,p28],[0,()=>hh5]],rR5=[3,N6,Z05,0,[_z,mK,UN5],[[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:H$}]]],oR5=[3,N6,G05,0,[HT5,mK],[[()=>Ih5,0],0]],aR5=[3,N6,I05,0,[_z,mK,sT5],[[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:pB6}]]],sR5=[3,N6,b05,0,[iT5,mK],[()=>bh5,0]],tR5=[3,N6,T05,0,[DN,XN,PN,n07,r07,rN5,_z,mK,sX,tX],[[5,{[hA]:DN}],[5,{[hA]:XN}],[0,{[hA]:PN}],[0,{[hA]:n07}],[0,{[hA]:r07}],[0,{[hA]:ZV5}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],eR5=[3,N6,V05,0,[mK,mT5],[0,()=>uh5]],AS5=[3,N6,N05,0,[DN,XN,PN,rZ,_z,mK,sX,tX],[[5,{[hA]:DN}],[5,{[hA]:XN}],[0,{[hA]:PN}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],qS5=[3,N6,v05,0,[mK,gT5],[0,()=>Bh5]],KS5=[3,N6,L05,0,[DN,XN,PN,rZ,_z,mK,sX,tX],[[5,{[hA]:DN}],[5,{[hA]:XN}],[0,{[hA]:PN}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],YS5=[3,N6,y05,0,[mK,dT5],[0,()=>mh5]],zS5=[3,N6,R05,0,[o07,a07,PN,rZ,_z,mK,sX,tX],[[5,{[hA]:o07}],[5,{[hA]:a07}],[0,{[hA]:PN}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],wS5=[3,N6,S05,0,[mK,KT5],[0,[()=>gh5,0]]],_S5=[3,N6,g05,0,[_z,mK,H$],[[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:H$}]]],$S5=[3,N6,F05,0,[hV5,mK],[[()=>Qh5,0],0]],OS5=[3,N6,u05,0,[DN,XN,PN,b_1,rZ,_z,mK,sX,tX],[[5,{[hA]:DN}],[5,{[hA]:XN}],[0,{[hA]:PN}],[0,{[hA]:b_1}],[0,{[hA]:rZ}],[1,{[hA]:_z}],[0,{[hA]:mK}],[0,{[hA]:sX}],[0,{[hA]:tX}]]],HS5=[3,N6,B05,0,[mK,SV5],[0,()=>Uh5]],jS5=[3,N6,p05,0,[o28],[0]],JS5=[3,N6,d05,0,[jb],[()=>yM]],CG7=[3,N6,rP5,0,[qf5,wN5,FN5,ef5,Tf5,vv5],[()=>JE5,()=>IG7,2,2,2,2]],_$1=[3,N6,$W5,0,[FP6,pB6,Gw,mZ7,eX,vJ,R28,Rf5,Cf5],[0,0,0,0,5,5,()=>V_8,0,0]],MS5=[3,N6,OW5,0,[FP6,pB6,Gw,mZ7,eX,vJ],[0,0,0,0,5,5]],DS5=[3,N6,l05,8,[g28,H$,Sz],[0,0,0]],XS5=[3,N6,n05,0,[fN5,ZN5],[0,[()=>jI5,0]]],PS5=[3,N6,r05,0,[AP,Gw,u0,lZ7,q_8,bZ7,t28,iZ7,K_8,ht,gZ7],[0,0,5,0,0,0,0,0,()=>yM,0,0]],WS5=[3,N6,o05,0,[AP,Q_1,WN,Gw,uZ7,pR,u0,QP6,pG5,kW7,FB6],[0,0,0,0,()=>bG7,5,5,5,0,0,0]],ZS5=[3,N6,qW5,0,[AP,WN,Gw,pR,u0,QP6,AZ7,x28],[0,0,0,5,5,5,0,0]],GS5=[3,N6,KW5,0,[XN5,Bc,xZ7],[0,0,0]],fS5=[3,N6,YW5,0,[Bc,jN5,xZ7],[0,0,0]],TS5=[3,N6,zW5,0,[AP,WN,NE,FH,Hb,Gw,ZN,FZ7,pR,QP6,b28,bt,t36,A_8,OZ7],[0,0,0,0,0,0,[()=>PG7,0],5,5,5,()=>N_8,()=>v_8,()=>ut,1,5]],VS5=[3,N6,JW5,0,[DV5,VZ7,gN5],[0,0,()=>_C5]],NS5=[3,N6,MW5,0,[gV5],[()=>hS5]],D_8=[3,N6,DW5,0,[Bc],[0]],vS5=[3,N6,PW5,0,[xT5],[0]],kS5=[3,N6,LW5,0,[cV5],[()=>dh5]],ES5=[3,N6,NW5,0,[r28,a28,Sz,eX,vJ,cB6,UP6,C28,Gw,H$],[0,()=>X_8,[()=>J_8,0],5,5,0,()=>f_8,()=>$$1,0,0]],$$1=[3,N6,kW5,0,[qP],[0]],hG7=[3,N6,yW5,0,[sN5],[[()=>ev5,0]]],LS5=[3,N6,fW5,0,[n28,l28,qP,xW7,rW7,d28,BW7,Gw,E28,TW7,u0,pR],[0,0,0,0,0,1,1,0,0,5,5,5]],yS5=[3,N6,ZW5,0,[DZ7],[()=>CG7]],RS5=[3,N6,GW5,0,[],[]],SS5=[3,N6,SW5,0,[nW7],[21]],CS5=[3,N6,CW5,0,[],[]],hS5=[3,N6,hW5,0,[H$],[0]],IS5=[3,N6,sW5,0,[y28,e36],[0,()=>OI5]],bS5=[3,N6,iW5,0,[Vf5,pB6],[[0,1],0]],xS5=[3,N6,nW5,0,[r_1],[()=>_$1]],uS5=[3,N6,UW5,0,[S28,c28],[[()=>F_1,0],[()=>F_1,0]]],BS5=[-3,N6,QW5,{[em]:Ct,[Ag]:400},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(BS5,HW7);var mS5=[-3,N6,oW5,{[em]:Ct,[Ag]:404},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(mS5,YW7);var gS5=[3,N6,IW5,0,[H$,TT5,Sf5],[0,[()=>vR5,0],[()=>cL5,0]]],FS5=[3,N6,xW5,0,[jZ7,NT5],[0,[()=>SG7,0]]],X_8=[3,N6,mW5,0,[qN5],[1]],IG7=[3,N6,wZ5,0,[uG5,kT5],[0,0]],QS5=[3,N6,$Z5,0,[Bc],[0]],US5=[3,N6,GZ5,0,[Tv5],[0]],pS5=[3,N6,XZ5,0,[qT5,JT5,yf5,vT5,Cv5],[1,0,0,0,()=>ut]],dS5=[-3,N6,fZ5,{[em]:Ct,[Ag]:400},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(dS5,$W7);var cS5=[-3,N6,VZ5,{[em]:QZ7,[Ag]:503},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(cS5,jW7);var lS5=[3,N6,AZ5,0,[U5,v28,FH,_N5],[[0,1],[0,1],[0,{[of5]:uv5,[MT5]:1}],[()=>Sk5,16]]],iS5=[3,N6,qZ5,0,[U5,oZ],[0,0]],nS5=[3,N6,YZ5,0,[U5,oZ,xN5,FH],[[0,1],[0,1],64,[0,4]]],rS5=[3,N6,zZ5,0,[U5],[0]],bG7=[3,N6,_Z5,0,[Nv5,Hf5,QN5],[()=>EC5,()=>eE5,()=>jC5]],oS5=[3,N6,HZ5,0,[uc],[[()=>lB6,1]]],aS5=[3,N6,jZ5,0,[],[]],sS5=[3,N6,MZ5,0,[uc],[[0,1]]],tS5=[3,N6,DZ5,0,[],[]],eS5=[3,N6,WZ5,0,[uc],[[0,1]]],AC5=[3,N6,ZZ5,0,[],[]],qC5=[3,N6,TZ5,0,[AN5],[0]],KC5=[3,N6,NZ5,0,[g28,e36],[0,0]],YC5=[3,N6,xZ5,0,[o28,jb],[0,()=>yM]],zC5=[3,N6,uZ5,0,[],[]],wC5=[3,N6,CZ5,0,[nN5,rT5],[0,1]],_C5=[3,N6,vZ5,0,[Hv5,ST5,EN5,yv5],[()=>kS5,()=>ER5,()=>qC5,()=>SC5]],$C5=[3,N6,yZ5,0,[zv5,tN5,eT5,vN5],[1,1,1,64]],OC5=[-3,N6,LZ5,{[em]:Ct,[Ag]:429},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(OC5,zW7);var HC5=[-3,N6,hZ5,{[em]:Ct,[Ag]:400},[ZN,eV5],[0,0]];gR.TypeRegistry.for(N6).registerError(HC5,OW7);var P_8=[3,N6,kZ5,0,[Bc,YT5],[0,[()=>NR5,0]]],jC5=[3,N6,EZ5,0,[Gw,u0,pR],[0,5,5]],xG7=[3,N6,SZ5,0,[lN5],[1]],JC5=[3,N6,qG5,0,[o28,cN5],[0,64]],MC5=[3,N6,KG5,0,[],[]],DC5=[3,N6,gZ5,0,[U5,oZ,T28,IT5],[[0,1],[0,1],[()=>G_8,0],0]],XC5=[3,N6,FZ5,0,[U5,oZ,PW7,vJ],[0,0,0,5]],PC5=[3,N6,QZ5,0,[U5,dB6,T2,Sz],[[0,1],[()=>rB6,0],[()=>xt,0],[()=>pP6,0]]],WC5=[3,N6,UZ5,0,[U5,T2,U_1,vJ],[0,[()=>xt,0],0,5]],ZC5=[3,N6,dZ5,0,[U5,s36,c_1,a_1,UB6,p_1,gB6,FH],[[0,1],[0,1],[()=>e_1,0],[()=>A$1,0],5,0,1,[0,4]]],GC5=[3,N6,cZ5,0,[U5,s36],[0,0]],fC5=[3,N6,iZ5,0,[BP6,T2,Sz,nZ7,EW7,KG7,BZ7,VW7,XW7,yW7,V28,N28,F28],[[0,1],[()=>q$1,0],[()=>iB6,0],[()=>LG7,0],[()=>VG7,0],[()=>yG7,0],()=>EG7,[()=>NG7,0],()=>fG7,()=>vG7,[()=>mP6,0],[()=>mP6,0],0]],TC5=[3,N6,nZ5,0,[QB6,h28,qg,vJ],[0,0,0,5]],VC5=[3,N6,oZ5,0,[FP6,R28,FH],[[0,1],()=>V_8,[0,4]]],NC5=[3,N6,aZ5,0,[r_1],[()=>_$1]],vC5=[3,N6,tZ5,0,[i28,jf5,Of5],[[0,1],0,0]],kC5=[3,N6,eZ5,0,[],[]],W_8=[3,N6,_G5,0,[Rv5],[()=>lh5]],EC5=[3,N6,wG5,0,[Gw,u0,pR],[0,5,5]],LC5=[-3,N6,$G5,{[em]:Ct,[Ag]:400},[ZN],[0]];gR.TypeRegistry.for(N6).registerError(LC5,wW7);var yC5=[3,N6,YG5,0,[Bc],[0]],RC5=[3,N6,OG5,0,[kv5],[1]],SC5=[3,N6,DG5,0,[ZG5],[0]],CC5=[3,N6,jG5,0,[BT5,$V5,QT5],[()=>hC5,1,[()=>XS5,0]]],hC5=[3,N6,JG5,0,[qP,G28],[0,143]],IC5=[3,N6,MG5,0,[H$,BG5],[0,[()=>CC5,0]]],ut=[3,N6,zG5,0,[MN5,JN5],[64,64]],bC5=[-3,UZ7,"BedrockServiceException",0,[],[]];gR.TypeRegistry.for(UZ7).registerError(bC5,FR);var xC5=[1,N6,f$5,0,[()=>ih5,0]],uC5=[1,N6,N$5,0,[()=>m_1,0]],BC5=[1,N6,k$5,0,[()=>nh5,0]],s07=[1,N6,R$5,0,[()=>wk5,0]],Z_8=[1,N6,I$5,0,()=>Ok5],mC5=[1,N6,g$5,0,[()=>nB6,0]],gC5=[1,N6,Q$5,0,[()=>Mk5,0]],mB6=[1,N6,c$5,0,[()=>Xk5,0]],G_8=[1,N6,o$5,0,[()=>UG7,0]],FC5=[1,N6,jO5,0,[()=>kk5,0]],QC5=[1,N6,XO5,0,[()=>Ek5,0]],UC5=[1,N6,WO5,0,()=>Lk5],pC5=[1,N6,GO5,0,[()=>yk5,0]],dC5=[1,N6,NO5,0,()=>Ck5],cC5=[1,N6,CO5,0,[()=>Y$1,0]],lC5=[1,N6,mO5,0,[()=>z$1,0]],iC5=[1,N6,QO5,0,[()=>tm,0]],uG7=[1,N6,dO5,0,[()=>Ik5,0]],nC5=[1,N6,lO5,0,[()=>bk5,0]],rC5=[1,N6,aO5,0,[()=>w$1,0]],BG7=[1,N6,eO5,0,[()=>o36,0]],oC5=[1,N6,bO5,0,[()=>Uk5,0]],aC5=[1,N6,KH5,0,[()=>pk5,0]],sC5=[1,N6,MH5,0,[()=>nk5,0]],tC5=[1,N6,XH5,0,[()=>M_8,0]],eC5=[1,N6,WH5,0,[()=>WG7,0]],Ah5=[1,N6,TH5,0,[()=>th5,0]],qh5=[1,N6,uH5,0,[()=>YE5,0]],Kh5=[1,N6,mH5,0,[()=>zE5,0]],Yh5=[1,N6,UH5,0,()=>$E5],zh5=[1,N6,kj5,0,()=>nE5],wh5=[1,N6,bj5,0,()=>aE5],_h5=[1,N6,lj5,0,()=>sE5],mG7=[1,N6,AM5,0,[()=>IL5,0]],$h5=[1,N6,_M5,0,[()=>lB6,0]],Oh5=[1,N6,XM5,0,[()=>HG7,0]],Hh5=[1,N6,$M5,0,[()=>qI5,0]],jh5=[1,N6,kM5,0,()=>FL5],Jh5=[1,N6,LM5,0,[()=>pL5,0]],t07=[1,N6,SM5,8,()=>lL5],Mh5=[1,N6,bM5,0,()=>nL5],Dh5=[1,N6,MD5,0,[()=>cy5,0]],Xh5=[1,N6,OD5,0,[()=>ly5,0]],Ph5=[1,N6,ZD5,0,[()=>oy5,0]],Wh5=[1,N6,WD5,0,[()=>ay5,0]],Zh5=[1,N6,pD5,0,[()=>iv5,0]],Gh5=[1,N6,fX5,0,[()=>ty5,0]],fh5=[1,N6,TX5,0,[()=>ey5,0]],g_1=[1,N6,VX5,0,[()=>nv5,0]],Th5=[1,N6,LX5,0,()=>AR5],Vh5=[1,N6,EX5,0,()=>qR5],Nh5=[1,N6,BX5,0,()=>KR5],vh5=[1,N6,uX5,0,()=>YR5],kh5=[1,N6,UX5,0,[()=>rv5,0]],Eh5=[1,N6,pX5,0,[()=>wR5,0]],gG7=[1,N6,oX5,0,[()=>ov5,0]],Lh5=[1,N6,KP5,0,[()=>_R5,0]],yh5=[1,N6,iX5,0,[()=>$R5,0]],Rh5=[1,N6,MP5,0,[()=>JR5,0]],Sh5=[1,N6,HP5,0,[()=>MR5,0]],Ch5=[1,N6,PP5,0,[()=>PR5,0]],hh5=[1,N6,vP5,0,()=>GR5],FG7=[1,N6,yP5,0,()=>fR5],Ih5=[1,N6,SP5,0,[()=>TR5,0]],bh5=[1,N6,HW5,0,()=>MS5],xh5=[1,N6,i05,0,[()=>DS5,0]],uh5=[1,N6,a05,0,()=>PS5],Bh5=[1,N6,s05,0,()=>WS5],mh5=[1,N6,wW5,0,()=>ZS5],gh5=[1,N6,_W5,0,[()=>TS5,0]],Fh5=[1,N6,XW5,0,()=>VS5],Qh5=[1,N6,vW5,0,[()=>ES5,0]],f_8=[1,N6,EW5,0,()=>$$1],Uh5=[1,N6,TW5,0,()=>LS5],ph5=[1,N6,uW5,0,[()=>$I5,0]],dh5=[1,N6,BW5,0,()=>RL5],ch5=[1,N6,aW5,0,()=>IS5],e07=[1,N6,dW5,0,[()=>uS5,0]],AW7=[1,N6,FW5,0,[()=>cG7,0]],yM=[1,N6,RZ5,0,()=>KC5],QG7=[1,N6,HG5,0,()=>RC5],lh5=[1,N6,XG5,0,()=>yC5],F_1=[2,N6,cW5,8,0,0],ih5=[3,N6,V$5,0,[cG5],[[()=>rE5,0]]],nh5=[3,N6,v$5,0,[Sv5,WT5,RN5,XT5,IN5,mN5,OV5],[[()=>Dk5,0],[()=>_k5,0],[()=>Hk5,0],[()=>zk5,0],[()=>Jk5,0],()=>jk5,()=>$k5]],UG7=[3,N6,i$5,0,[WW7,sZ7,FW7,ZW7,tZ7,QW7,DW7,aZ7,gW7,fG5,Jv5,Mv5,tf5],[[()=>Gk5,0],[()=>tk5,0],[()=>Bk5,0],[()=>Vk5,0],[()=>qE5,0],[()=>Fk5,0],[()=>Pk5,0],[()=>ak5,0],()=>xk5,[()=>Wk5,0],[()=>rk5,0],[()=>ok5,0],[()=>ck5,0]]],rh5=[3,N6,JO5,0,[dB6,mV5,CG5,tW7],[[()=>rB6,0],[()=>hk5,0],[()=>vk5,0],[()=>dk5,0]]],oh5=[3,N6,DO5,0,[uV5,zV5],[()=>lk5,[()=>sh5,0]]],ah5=[3,N6,kO5,0,[vV5,NV5,VV5],[[()=>w$1,0],[()=>z$1,0],[()=>Y$1,0]]],sh5=[3,N6,wH5,0,[WW7,sZ7,FW7,ZW7,tZ7,QW7,DW7,aZ7,gW7],[[()=>fk5,0],[()=>ek5,0],[()=>mk5,0],[()=>Nk5,0],[()=>KE5,0],[()=>Qk5,0],[()=>Zk5,0],[()=>sk5,0],()=>uk5]],th5=[3,N6,fH5,0,[EG5,Zv5,Df5],[[()=>Tk5,0],[()=>AE5,0],()=>gk5]],eh5=[3,N6,CH5,0,[Gf5,CV5],[[()=>pC5,0],[()=>Rk5,0]]],T_8=[3,N6,Aj5,0,[_f5],[()=>SL5]],V_8=[3,N6,oJ5,0,[GN5],[()=>pS5]],pG7=[3,N6,aJ5,0,[yG5,rf5],[[()=>Kk5,0],[()=>XR5,0]]],AI5=[3,N6,tJ5,0,[Bc],[0]],dG7=[3,N6,KM5,0,[UP6,lV5],[[()=>Hh5,0],[()=>ph5,0]]],qI5=[3,N6,HM5,0,[hG5,yV5],[[()=>CL5,0],()=>uL5]],KI5=[3,N6,fM5,0,[YN5,QV5],[()=>mL5,()=>BL5]],YI5=[3,N6,jM5,0,[GW7],[()=>Yh5]],zI5=[3,N6,LP5,0,[FG5],[0]],wI5=[3,N6,VP5,0,[Bc],[0]],_I5=[3,N6,hP5,0,[oV5,FV5],[[()=>FS5,0],[()=>gS5,0]]],O$1=[3,N6,t05,0,[ON5],[()=>QS5]],N_8=[3,N6,e05,0,[DN5],[()=>GS5]],v_8=[3,N6,AW5,0,[TN5],[()=>fS5]],$I5=[3,N6,bW5,0,[VT5,IV5],[[()=>_I5,0],()=>KI5]],OI5=[3,N6,tW5,0,[LN5,Qf5],[0,1]],HI5=[3,N6,pW5,0,[S28,c28,JW7,fZ7],[[()=>F_1,0],[()=>F_1,0],[()=>e07,0],[()=>e07,0]]],jI5=[3,N6,rW5,0,[Ff5,gf5],[[()=>t07,0],[()=>t07,0]]],cG7=[3,N6,gW5,8,[S28,c28,if5,nf5,hT5,CT5,PT5,wV5,yN5,LT5,$N5,JW7,fZ7],[()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,()=>Ob,[()=>AW7,0],[()=>AW7,0]]],JI5=[9,N6,bH5,{[O7]:["POST","/evaluation-jobs/batch-delete",202]},()=>wE5,()=>_E5],MI5=[9,N6,dH5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/cancel",202]},()=>HE5,()=>jE5],DI5=[9,N6,pH5,{[O7]:["POST","/automated-reasoning-policies",200]},()=>DE5,()=>XE5],XI5=[9,N6,rH5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/test-cases",200]},()=>PE5,()=>WE5],PI5=[9,N6,sH5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/versions",200]},()=>ZE5,()=>GE5],WI5=[9,N6,qj5,{[O7]:["POST","/custom-models/create-custom-model",202]},()=>VE5,()=>NE5],ZI5=[9,N6,Kj5,{[O7]:["POST","/model-customization/custom-model-deployments",202]},()=>fE5,()=>TE5],GI5=[9,N6,Oj5,{[O7]:["POST","/evaluation-jobs",202]},()=>vE5,()=>kE5],fI5=[9,N6,Jj5,{[O7]:["POST","/create-foundation-model-agreement",202]},()=>EE5,()=>LE5],TI5=[9,N6,Xj5,{[O7]:["POST","/guardrails",202]},()=>yE5,()=>RE5],VI5=[9,N6,Zj5,{[O7]:["POST","/guardrails/{guardrailIdentifier}",202]},()=>SE5,()=>CE5],NI5=[9,N6,Tj5,{[O7]:["POST","/inference-profiles",201]},()=>hE5,()=>IE5],vI5=[9,N6,Uj5,{[O7]:["POST","/marketplace-model/endpoints",200]},()=>bE5,()=>xE5],kI5=[9,N6,Ej5,{[O7]:["POST","/model-copy-jobs",201]},()=>uE5,()=>BE5],EI5=[9,N6,Cj5,{[O7]:["POST","/model-customization-jobs",201]},()=>mE5,()=>gE5],LI5=[9,N6,uj5,{[O7]:["POST","/model-import-jobs",201]},()=>FE5,()=>QE5],yI5=[9,N6,Qj5,{[O7]:["POST","/model-invocation-job",200]},()=>UE5,()=>pE5],RI5=[9,N6,aj5,{[O7]:["POST","/prompt-routers",200]},()=>dE5,()=>cE5],SI5=[9,N6,nj5,{[O7]:["POST","/provisioned-model-throughput",201]},()=>lE5,()=>iE5],CI5=[9,N6,AJ5,{[O7]:["DELETE","/automated-reasoning-policies/{policyArn}",202]},()=>KL5,()=>YL5],hI5=[9,N6,qJ5,{[O7]:["DELETE","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}",202]},()=>AL5,()=>qL5],II5=[9,N6,_J5,{[O7]:["DELETE","/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}",202]},()=>zL5,()=>wL5],bI5=[9,N6,jJ5,{[O7]:["DELETE","/custom-models/{modelIdentifier}",200]},()=>OL5,()=>HL5],xI5=[9,N6,JJ5,{[O7]:["DELETE","/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}",200]},()=>_L5,()=>$L5],uI5=[9,N6,WJ5,{[O7]:["POST","/delete-foundation-model-agreement",202]},()=>jL5,()=>JL5],BI5=[9,N6,fJ5,{[O7]:["DELETE","/guardrails/{guardrailIdentifier}",202]},()=>ML5,()=>DL5],mI5=[9,N6,NJ5,{[O7]:["DELETE","/imported-models/{modelIdentifier}",200]},()=>XL5,()=>PL5],gI5=[9,N6,EJ5,{[O7]:["DELETE","/inference-profiles/{inferenceProfileIdentifier}",200]},()=>WL5,()=>ZL5],FI5=[9,N6,hJ5,{[O7]:["DELETE","/marketplace-model/endpoints/{endpointArn}",200]},()=>GL5,()=>fL5],QI5=[9,N6,RJ5,{[O7]:["DELETE","/logging/modelinvocations",200]},()=>TL5,()=>VL5],UI5=[9,N6,cJ5,{[O7]:["DELETE","/prompt-routers/{promptRouterArn}",200]},()=>NL5,()=>vL5],pI5=[9,N6,gJ5,{[O7]:["DELETE","/provisioned-model-throughput/{provisionedModelId}",200]},()=>kL5,()=>EL5],dI5=[9,N6,BJ5,{[O7]:["DELETE","/marketplace-model/endpoints/{endpointArn}/registration",200]},()=>LL5,()=>yL5],cI5=[9,N6,lJ5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/export",200]},()=>QL5,()=>UL5],lI5=[9,N6,KD5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}",200]},()=>Yy5,()=>zy5],iI5=[9,N6,uM5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/annotations",200]},()=>oL5,()=>aL5],nI5=[9,N6,gM5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}",200]},()=>sL5,()=>tL5],rI5=[9,N6,QM5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/result-assets",200]},()=>eL5,()=>Ay5],oI5=[9,N6,lM5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/scenarios",200]},()=>qy5,()=>Ky5],aI5=[9,N6,aM5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}",200]},()=>wy5,()=>_y5],sI5=[9,N6,eM5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-cases/{testCaseId}/test-results",200]},()=>$y5,()=>Oy5],tI5=[9,N6,TD5,{[O7]:["GET","/custom-models/{modelIdentifier}",200]},()=>Jy5,()=>My5],eI5=[9,N6,VD5,{[O7]:["GET","/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}",200]},()=>Hy5,()=>jy5],Ab5=[9,N6,ID5,{[O7]:["GET","/evaluation-jobs/{jobIdentifier}",200]},()=>Dy5,()=>Xy5],qb5=[9,N6,uD5,{[O7]:["GET","/foundation-models/{modelIdentifier}",200]},()=>Zy5,()=>Gy5],Kb5=[9,N6,BD5,{[O7]:["GET","/foundation-model-availability/{modelId}",200]},()=>Py5,()=>Wy5],Yb5=[9,N6,dD5,{[O7]:["GET","/guardrails/{guardrailIdentifier}",200]},()=>fy5,()=>Ty5],zb5=[9,N6,iD5,{[O7]:["GET","/imported-models/{modelIdentifier}",200]},()=>Vy5,()=>Ny5],wb5=[9,N6,oD5,{[O7]:["GET","/inference-profiles/{inferenceProfileIdentifier}",200]},()=>vy5,()=>ky5],_b5=[9,N6,XX5,{[O7]:["GET","/marketplace-model/endpoints/{endpointArn}",200]},()=>Ey5,()=>Ly5],$b5=[9,N6,eD5,{[O7]:["GET","/model-copy-jobs/{jobArn}",200]},()=>yy5,()=>Ry5],Ob5=[9,N6,zX5,{[O7]:["GET","/model-customization-jobs/{jobIdentifier}",200]},()=>Sy5,()=>Cy5],Hb5=[9,N6,wX5,{[O7]:["GET","/model-import-jobs/{jobIdentifier}",200]},()=>hy5,()=>Iy5],jb5=[9,N6,jX5,{[O7]:["GET","/model-invocation-job/{jobIdentifier}",200]},()=>by5,()=>xy5],Jb5=[9,N6,JX5,{[O7]:["GET","/logging/modelinvocations",200]},()=>uy5,()=>By5],Mb5=[9,N6,CX5,{[O7]:["GET","/prompt-routers/{promptRouterArn}",200]},()=>my5,()=>gy5],Db5=[9,N6,yX5,{[O7]:["GET","/provisioned-model-throughput/{provisionedModelId}",200]},()=>Fy5,()=>Qy5],Xb5=[9,N6,YP5,{[O7]:["GET","/use-case-for-model-access",200]},()=>Uy5,()=>py5],Pb5=[9,N6,BP5,{[O7]:["GET","/automated-reasoning-policies",200]},()=>LR5,()=>yR5],Wb5=[9,N6,mP5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows",200]},()=>RR5,()=>SR5],Zb5=[9,N6,pP5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/test-cases",200]},()=>CR5,()=>hR5],Gb5=[9,N6,lP5,{[O7]:["GET","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-results",200]},()=>IR5,()=>bR5],fb5=[9,N6,aP5,{[O7]:["GET","/model-customization/custom-model-deployments",200]},()=>xR5,()=>uR5],Tb5=[9,N6,oP5,{[O7]:["GET","/custom-models",200]},()=>BR5,()=>mR5],Vb5=[9,N6,q05,{[O7]:["GET","/evaluation-jobs",200]},()=>gR5,()=>FR5],Nb5=[9,N6,w05,{[O7]:["GET","/list-foundation-model-agreement-offers/{modelId}",200]},()=>QR5,()=>UR5],vb5=[9,N6,z05,{[O7]:["GET","/foundation-models",200]},()=>pR5,()=>dR5],kb5=[9,N6,j05,{[O7]:["GET","/guardrails",200]},()=>cR5,()=>lR5],Eb5=[9,N6,D05,{[O7]:["GET","/imported-models",200]},()=>iR5,()=>nR5],Lb5=[9,N6,W05,{[O7]:["GET","/inference-profiles",200]},()=>rR5,()=>oR5],yb5=[9,N6,h05,{[O7]:["GET","/marketplace-model/endpoints",200]},()=>aR5,()=>sR5],Rb5=[9,N6,f05,{[O7]:["GET","/model-copy-jobs",200]},()=>tR5,()=>eR5],Sb5=[9,N6,k05,{[O7]:["GET","/model-customization-jobs",200]},()=>AS5,()=>qS5],Cb5=[9,N6,E05,{[O7]:["GET","/model-import-jobs",200]},()=>KS5,()=>YS5],hb5=[9,N6,C05,{[O7]:["GET","/model-invocation-jobs",200]},()=>zS5,()=>wS5],Ib5=[9,N6,m05,{[O7]:["GET","/prompt-routers",200]},()=>_S5,()=>$S5],bb5=[9,N6,x05,{[O7]:["GET","/provisioned-model-throughputs",200]},()=>OS5,()=>HS5],xb5=[9,N6,U05,{[O7]:["POST","/listTagsForResource",200]},()=>jS5,()=>JS5],ub5=[9,N6,WW5,{[O7]:["PUT","/logging/modelinvocations",200]},()=>yS5,()=>RS5],Bb5=[9,N6,RW5,{[O7]:["POST","/use-case-for-model-access",201]},()=>SS5,()=>CS5],mb5=[9,N6,lW5,{[O7]:["POST","/marketplace-model/endpoints/{endpointIdentifier}/registration",200]},()=>bS5,()=>xS5],gb5=[9,N6,eW5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowType}/start",200]},()=>lS5,()=>iS5],Fb5=[9,N6,KZ5,{[O7]:["POST","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-workflows",200]},()=>nS5,()=>rS5],Qb5=[9,N6,OZ5,{[O7]:["POST","/evaluation-job/{jobIdentifier}/stop",200]},()=>oS5,()=>aS5],Ub5=[9,N6,JZ5,{[O7]:["POST","/model-customization-jobs/{jobIdentifier}/stop",200]},()=>sS5,()=>tS5],pb5=[9,N6,PZ5,{[O7]:["POST","/model-invocation-job/{jobIdentifier}/stop",200]},()=>eS5,()=>AC5],db5=[9,N6,bZ5,{[O7]:["POST","/tagResource",200]},()=>YC5,()=>zC5],cb5=[9,N6,AG5,{[O7]:["POST","/untagResource",200]},()=>JC5,()=>MC5],lb5=[9,N6,BZ5,{[O7]:["PATCH","/automated-reasoning-policies/{policyArn}",200]},()=>PC5,()=>WC5],ib5=[9,N6,mZ5,{[O7]:["PATCH","/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/annotations",200]},()=>DC5,()=>XC5],nb5=[9,N6,pZ5,{[O7]:["PATCH","/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}",200]},()=>ZC5,()=>GC5],rb5=[9,N6,lZ5,{[O7]:["PUT","/guardrails/{guardrailIdentifier}",202]},()=>fC5,()=>TC5],ob5=[9,N6,rZ5,{[O7]:["PATCH","/marketplace-model/endpoints/{endpointArn}",200]},()=>VC5,()=>NC5],ab5=[9,N6,sZ5,{[O7]:["PATCH","/provisioned-model-throughput/{provisionedModelId}",200]},()=>vC5,()=>kC5];class k_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","BatchDeleteEvaluationJob",{}).n("BedrockClient","BatchDeleteEvaluationJobCommand").sc(JI5).build(){}class E_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CancelAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","CancelAutomatedReasoningPolicyBuildWorkflowCommand").sc(MI5).build(){}class L_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateAutomatedReasoningPolicy",{}).n("BedrockClient","CreateAutomatedReasoningPolicyCommand").sc(DI5).build(){}class y_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","CreateAutomatedReasoningPolicyTestCaseCommand").sc(XI5).build(){}class R_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateAutomatedReasoningPolicyVersion",{}).n("BedrockClient","CreateAutomatedReasoningPolicyVersionCommand").sc(PI5).build(){}class S_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateCustomModel",{}).n("BedrockClient","CreateCustomModelCommand").sc(WI5).build(){}class C_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateCustomModelDeployment",{}).n("BedrockClient","CreateCustomModelDeploymentCommand").sc(ZI5).build(){}class h_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateEvaluationJob",{}).n("BedrockClient","CreateEvaluationJobCommand").sc(GI5).build(){}class I_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateFoundationModelAgreement",{}).n("BedrockClient","CreateFoundationModelAgreementCommand").sc(fI5).build(){}class b_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateGuardrail",{}).n("BedrockClient","CreateGuardrailCommand").sc(TI5).build(){}class x_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateGuardrailVersion",{}).n("BedrockClient","CreateGuardrailVersionCommand").sc(VI5).build(){}class u_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateInferenceProfile",{}).n("BedrockClient","CreateInferenceProfileCommand").sc(NI5).build(){}class B_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateMarketplaceModelEndpoint",{}).n("BedrockClient","CreateMarketplaceModelEndpointCommand").sc(vI5).build(){}class m_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelCopyJob",{}).n("BedrockClient","CreateModelCopyJobCommand").sc(kI5).build(){}class g_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelCustomizationJob",{}).n("BedrockClient","CreateModelCustomizationJobCommand").sc(EI5).build(){}class F_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelImportJob",{}).n("BedrockClient","CreateModelImportJobCommand").sc(LI5).build(){}class Q_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateModelInvocationJob",{}).n("BedrockClient","CreateModelInvocationJobCommand").sc(yI5).build(){}class U_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreatePromptRouter",{}).n("BedrockClient","CreatePromptRouterCommand").sc(RI5).build(){}class p_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","CreateProvisionedModelThroughput",{}).n("BedrockClient","CreateProvisionedModelThroughputCommand").sc(SI5).build(){}class d_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","DeleteAutomatedReasoningPolicyBuildWorkflowCommand").sc(hI5).build(){}class c_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteAutomatedReasoningPolicy",{}).n("BedrockClient","DeleteAutomatedReasoningPolicyCommand").sc(CI5).build(){}class l_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","DeleteAutomatedReasoningPolicyTestCaseCommand").sc(II5).build(){}class i_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteCustomModel",{}).n("BedrockClient","DeleteCustomModelCommand").sc(bI5).build(){}class n_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteCustomModelDeployment",{}).n("BedrockClient","DeleteCustomModelDeploymentCommand").sc(xI5).build(){}class r_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteFoundationModelAgreement",{}).n("BedrockClient","DeleteFoundationModelAgreementCommand").sc(uI5).build(){}class o_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteGuardrail",{}).n("BedrockClient","DeleteGuardrailCommand").sc(BI5).build(){}class a_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteImportedModel",{}).n("BedrockClient","DeleteImportedModelCommand").sc(mI5).build(){}class s_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteInferenceProfile",{}).n("BedrockClient","DeleteInferenceProfileCommand").sc(gI5).build(){}class t_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteMarketplaceModelEndpoint",{}).n("BedrockClient","DeleteMarketplaceModelEndpointCommand").sc(FI5).build(){}class e_8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteModelInvocationLoggingConfiguration",{}).n("BedrockClient","DeleteModelInvocationLoggingConfigurationCommand").sc(QI5).build(){}class A$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeletePromptRouter",{}).n("BedrockClient","DeletePromptRouterCommand").sc(UI5).build(){}class q$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeleteProvisionedModelThroughput",{}).n("BedrockClient","DeleteProvisionedModelThroughputCommand").sc(pI5).build(){}class K$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","DeregisterMarketplaceModelEndpoint",{}).n("BedrockClient","DeregisterMarketplaceModelEndpointCommand").sc(dI5).build(){}class Y$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ExportAutomatedReasoningPolicyVersion",{}).n("BedrockClient","ExportAutomatedReasoningPolicyVersionCommand").sc(cI5).build(){}class z$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyAnnotations",{}).n("BedrockClient","GetAutomatedReasoningPolicyAnnotationsCommand").sc(iI5).build(){}class w$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","GetAutomatedReasoningPolicyBuildWorkflowCommand").sc(nI5).build(){}class _$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyBuildWorkflowResultAssets",{}).n("BedrockClient","GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand").sc(rI5).build(){}class $$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicy",{}).n("BedrockClient","GetAutomatedReasoningPolicyCommand").sc(lI5).build(){}class O$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyNextScenario",{}).n("BedrockClient","GetAutomatedReasoningPolicyNextScenarioCommand").sc(oI5).build(){}class H$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","GetAutomatedReasoningPolicyTestCaseCommand").sc(aI5).build(){}class j$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetAutomatedReasoningPolicyTestResult",{}).n("BedrockClient","GetAutomatedReasoningPolicyTestResultCommand").sc(sI5).build(){}class J$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetCustomModel",{}).n("BedrockClient","GetCustomModelCommand").sc(tI5).build(){}class M$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetCustomModelDeployment",{}).n("BedrockClient","GetCustomModelDeploymentCommand").sc(eI5).build(){}class D$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetEvaluationJob",{}).n("BedrockClient","GetEvaluationJobCommand").sc(Ab5).build(){}class X$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetFoundationModelAvailability",{}).n("BedrockClient","GetFoundationModelAvailabilityCommand").sc(Kb5).build(){}class P$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetFoundationModel",{}).n("BedrockClient","GetFoundationModelCommand").sc(qb5).build(){}class W$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetGuardrail",{}).n("BedrockClient","GetGuardrailCommand").sc(Yb5).build(){}class Z$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetImportedModel",{}).n("BedrockClient","GetImportedModelCommand").sc(zb5).build(){}class G$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetInferenceProfile",{}).n("BedrockClient","GetInferenceProfileCommand").sc(wb5).build(){}class f$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetMarketplaceModelEndpoint",{}).n("BedrockClient","GetMarketplaceModelEndpointCommand").sc(_b5).build(){}class T$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelCopyJob",{}).n("BedrockClient","GetModelCopyJobCommand").sc($b5).build(){}class V$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelCustomizationJob",{}).n("BedrockClient","GetModelCustomizationJobCommand").sc(Ob5).build(){}class N$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelImportJob",{}).n("BedrockClient","GetModelImportJobCommand").sc(Hb5).build(){}class v$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelInvocationJob",{}).n("BedrockClient","GetModelInvocationJobCommand").sc(jb5).build(){}class k$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetModelInvocationLoggingConfiguration",{}).n("BedrockClient","GetModelInvocationLoggingConfigurationCommand").sc(Jb5).build(){}class E$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetPromptRouter",{}).n("BedrockClient","GetPromptRouterCommand").sc(Mb5).build(){}class L$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetProvisionedModelThroughput",{}).n("BedrockClient","GetProvisionedModelThroughputCommand").sc(Db5).build(){}class y$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","GetUseCaseForModelAccess",{}).n("BedrockClient","GetUseCaseForModelAccessCommand").sc(Xb5).build(){}class H$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicies",{}).n("BedrockClient","ListAutomatedReasoningPoliciesCommand").sc(Pb5).build(){}class j$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicyBuildWorkflows",{}).n("BedrockClient","ListAutomatedReasoningPolicyBuildWorkflowsCommand").sc(Wb5).build(){}class J$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicyTestCases",{}).n("BedrockClient","ListAutomatedReasoningPolicyTestCasesCommand").sc(Zb5).build(){}class M$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListAutomatedReasoningPolicyTestResults",{}).n("BedrockClient","ListAutomatedReasoningPolicyTestResultsCommand").sc(Gb5).build(){}class D$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListCustomModelDeployments",{}).n("BedrockClient","ListCustomModelDeploymentsCommand").sc(fb5).build(){}class X$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListCustomModels",{}).n("BedrockClient","ListCustomModelsCommand").sc(Tb5).build(){}class P$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListEvaluationJobs",{}).n("BedrockClient","ListEvaluationJobsCommand").sc(Vb5).build(){}class R$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListFoundationModelAgreementOffers",{}).n("BedrockClient","ListFoundationModelAgreementOffersCommand").sc(Nb5).build(){}class S$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListFoundationModels",{}).n("BedrockClient","ListFoundationModelsCommand").sc(vb5).build(){}class W$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListGuardrails",{}).n("BedrockClient","ListGuardrailsCommand").sc(kb5).build(){}class Z$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListImportedModels",{}).n("BedrockClient","ListImportedModelsCommand").sc(Eb5).build(){}class G$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListInferenceProfiles",{}).n("BedrockClient","ListInferenceProfilesCommand").sc(Lb5).build(){}class f$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListMarketplaceModelEndpoints",{}).n("BedrockClient","ListMarketplaceModelEndpointsCommand").sc(yb5).build(){}class T$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelCopyJobs",{}).n("BedrockClient","ListModelCopyJobsCommand").sc(Rb5).build(){}class V$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelCustomizationJobs",{}).n("BedrockClient","ListModelCustomizationJobsCommand").sc(Sb5).build(){}class N$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelImportJobs",{}).n("BedrockClient","ListModelImportJobsCommand").sc(Cb5).build(){}class v$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListModelInvocationJobs",{}).n("BedrockClient","ListModelInvocationJobsCommand").sc(hb5).build(){}class k$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListPromptRouters",{}).n("BedrockClient","ListPromptRoutersCommand").sc(Ib5).build(){}class E$1 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListProvisionedModelThroughputs",{}).n("BedrockClient","ListProvisionedModelThroughputsCommand").sc(bb5).build(){}class C$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","ListTagsForResource",{}).n("BedrockClient","ListTagsForResourceCommand").sc(xb5).build(){}class h$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","PutModelInvocationLoggingConfiguration",{}).n("BedrockClient","PutModelInvocationLoggingConfigurationCommand").sc(ub5).build(){}class I$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","PutUseCaseForModelAccess",{}).n("BedrockClient","PutUseCaseForModelAccessCommand").sc(Bb5).build(){}class b$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","RegisterMarketplaceModelEndpoint",{}).n("BedrockClient","RegisterMarketplaceModelEndpointCommand").sc(mb5).build(){}class x$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StartAutomatedReasoningPolicyBuildWorkflow",{}).n("BedrockClient","StartAutomatedReasoningPolicyBuildWorkflowCommand").sc(gb5).build(){}class u$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StartAutomatedReasoningPolicyTestWorkflow",{}).n("BedrockClient","StartAutomatedReasoningPolicyTestWorkflowCommand").sc(Fb5).build(){}class B$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StopEvaluationJob",{}).n("BedrockClient","StopEvaluationJobCommand").sc(Qb5).build(){}class m$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StopModelCustomizationJob",{}).n("BedrockClient","StopModelCustomizationJobCommand").sc(Ub5).build(){}class g$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","StopModelInvocationJob",{}).n("BedrockClient","StopModelInvocationJobCommand").sc(pb5).build(){}class F$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","TagResource",{}).n("BedrockClient","TagResourceCommand").sc(db5).build(){}class Q$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UntagResource",{}).n("BedrockClient","UntagResourceCommand").sc(cb5).build(){}class U$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateAutomatedReasoningPolicyAnnotations",{}).n("BedrockClient","UpdateAutomatedReasoningPolicyAnnotationsCommand").sc(ib5).build(){}class p$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateAutomatedReasoningPolicy",{}).n("BedrockClient","UpdateAutomatedReasoningPolicyCommand").sc(lb5).build(){}class d$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateAutomatedReasoningPolicyTestCase",{}).n("BedrockClient","UpdateAutomatedReasoningPolicyTestCaseCommand").sc(nb5).build(){}class c$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateGuardrail",{}).n("BedrockClient","UpdateGuardrailCommand").sc(rb5).build(){}class l$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateMarketplaceModelEndpoint",{}).n("BedrockClient","UpdateMarketplaceModelEndpointCommand").sc(ob5).build(){}class i$8 extends lA.Command.classBuilder().ep($7).m(function(A,q,K,Y){return[w7.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockControlPlaneService","UpdateProvisionedModelThroughput",{}).n("BedrockClient","UpdateProvisionedModelThroughputCommand").sc(ab5).build(){}var sb5={BatchDeleteEvaluationJobCommand:k_8,CancelAutomatedReasoningPolicyBuildWorkflowCommand:E_8,CreateAutomatedReasoningPolicyCommand:L_8,CreateAutomatedReasoningPolicyTestCaseCommand:y_8,CreateAutomatedReasoningPolicyVersionCommand:R_8,CreateCustomModelCommand:S_8,CreateCustomModelDeploymentCommand:C_8,CreateEvaluationJobCommand:h_8,CreateFoundationModelAgreementCommand:I_8,CreateGuardrailCommand:b_8,CreateGuardrailVersionCommand:x_8,CreateInferenceProfileCommand:u_8,CreateMarketplaceModelEndpointCommand:B_8,CreateModelCopyJobCommand:m_8,CreateModelCustomizationJobCommand:g_8,CreateModelImportJobCommand:F_8,CreateModelInvocationJobCommand:Q_8,CreatePromptRouterCommand:U_8,CreateProvisionedModelThroughputCommand:p_8,DeleteAutomatedReasoningPolicyCommand:c_8,DeleteAutomatedReasoningPolicyBuildWorkflowCommand:d_8,DeleteAutomatedReasoningPolicyTestCaseCommand:l_8,DeleteCustomModelCommand:i_8,DeleteCustomModelDeploymentCommand:n_8,DeleteFoundationModelAgreementCommand:r_8,DeleteGuardrailCommand:o_8,DeleteImportedModelCommand:a_8,DeleteInferenceProfileCommand:s_8,DeleteMarketplaceModelEndpointCommand:t_8,DeleteModelInvocationLoggingConfigurationCommand:e_8,DeletePromptRouterCommand:A$8,DeleteProvisionedModelThroughputCommand:q$8,DeregisterMarketplaceModelEndpointCommand:K$8,ExportAutomatedReasoningPolicyVersionCommand:Y$8,GetAutomatedReasoningPolicyCommand:$$8,GetAutomatedReasoningPolicyAnnotationsCommand:z$8,GetAutomatedReasoningPolicyBuildWorkflowCommand:w$8,GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand:_$8,GetAutomatedReasoningPolicyNextScenarioCommand:O$8,GetAutomatedReasoningPolicyTestCaseCommand:H$8,GetAutomatedReasoningPolicyTestResultCommand:j$8,GetCustomModelCommand:J$8,GetCustomModelDeploymentCommand:M$8,GetEvaluationJobCommand:D$8,GetFoundationModelCommand:P$8,GetFoundationModelAvailabilityCommand:X$8,GetGuardrailCommand:W$8,GetImportedModelCommand:Z$8,GetInferenceProfileCommand:G$8,GetMarketplaceModelEndpointCommand:f$8,GetModelCopyJobCommand:T$8,GetModelCustomizationJobCommand:V$8,GetModelImportJobCommand:N$8,GetModelInvocationJobCommand:v$8,GetModelInvocationLoggingConfigurationCommand:k$8,GetPromptRouterCommand:E$8,GetProvisionedModelThroughputCommand:L$8,GetUseCaseForModelAccessCommand:y$8,ListAutomatedReasoningPoliciesCommand:H$1,ListAutomatedReasoningPolicyBuildWorkflowsCommand:j$1,ListAutomatedReasoningPolicyTestCasesCommand:J$1,ListAutomatedReasoningPolicyTestResultsCommand:M$1,ListCustomModelDeploymentsCommand:D$1,ListCustomModelsCommand:X$1,ListEvaluationJobsCommand:P$1,ListFoundationModelAgreementOffersCommand:R$8,ListFoundationModelsCommand:S$8,ListGuardrailsCommand:W$1,ListImportedModelsCommand:Z$1,ListInferenceProfilesCommand:G$1,ListMarketplaceModelEndpointsCommand:f$1,ListModelCopyJobsCommand:T$1,ListModelCustomizationJobsCommand:V$1,ListModelImportJobsCommand:N$1,ListModelInvocationJobsCommand:v$1,ListPromptRoutersCommand:k$1,ListProvisionedModelThroughputsCommand:E$1,ListTagsForResourceCommand:C$8,PutModelInvocationLoggingConfigurationCommand:h$8,PutUseCaseForModelAccessCommand:I$8,RegisterMarketplaceModelEndpointCommand:b$8,StartAutomatedReasoningPolicyBuildWorkflowCommand:x$8,StartAutomatedReasoningPolicyTestWorkflowCommand:u$8,StopEvaluationJobCommand:B$8,StopModelCustomizationJobCommand:m$8,StopModelInvocationJobCommand:g$8,TagResourceCommand:F$8,UntagResourceCommand:Q$8,UpdateAutomatedReasoningPolicyCommand:p$8,UpdateAutomatedReasoningPolicyAnnotationsCommand:U$8,UpdateAutomatedReasoningPolicyTestCaseCommand:d$8,UpdateGuardrailCommand:c$8,UpdateMarketplaceModelEndpointCommand:l$8,UpdateProvisionedModelThroughputCommand:i$8};class n$8 extends RM{}lA.createAggregatedClient(sb5,n$8);var tb5=LM.createPaginator(RM,H$1,"nextToken","nextToken","maxResults"),eb5=LM.createPaginator(RM,j$1,"nextToken","nextToken","maxResults"),Ax5=LM.createPaginator(RM,J$1,"nextToken","nextToken","maxResults"),qx5=LM.createPaginator(RM,M$1,"nextToken","nextToken","maxResults"),Kx5=LM.createPaginator(RM,D$1,"nextToken","nextToken","maxResults"),Yx5=LM.createPaginator(RM,X$1,"nextToken","nextToken","maxResults"),zx5=LM.createPaginator(RM,P$1,"nextToken","nextToken","maxResults"),wx5=LM.createPaginator(RM,W$1,"nextToken","nextToken","maxResults"),_x5=LM.createPaginator(RM,Z$1,"nextToken","nextToken","maxResults"),$x5=LM.createPaginator(RM,G$1,"nextToken","nextToken","maxResults"),Ox5=LM.createPaginator(RM,f$1,"nextToken","nextToken","maxResults"),Hx5=LM.createPaginator(RM,T$1,"nextToken","nextToken","maxResults"),jx5=LM.createPaginator(RM,V$1,"nextToken","nextToken","maxResults"),Jx5=LM.createPaginator(RM,N$1,"nextToken","nextToken","maxResults"),Mx5=LM.createPaginator(RM,v$1,"nextToken","nextToken","maxResults"),Dx5=LM.createPaginator(RM,k$1,"nextToken","nextToken","maxResults"),Xx5=LM.createPaginator(RM,E$1,"nextToken","nextToken","maxResults"),Px5={AVAILABLE:"AVAILABLE",ERROR:"ERROR",NOT_AVAILABLE:"NOT_AVAILABLE",PENDING:"PENDING"},Wx5={IMPOSSIBLE:"IMPOSSIBLE",INVALID:"INVALID",NO_TRANSLATION:"NO_TRANSLATION",SATISFIABLE:"SATISFIABLE",TOO_COMPLEX:"TOO_COMPLEX",TRANSLATION_AMBIGUOUS:"TRANSLATION_AMBIGUOUS",VALID:"VALID"},Zx5={IMPORT_POLICY:"IMPORT_POLICY",INGEST_CONTENT:"INGEST_CONTENT",REFINE_POLICY:"REFINE_POLICY"},Gx5={PDF:"pdf",TEXT:"txt"},fx5={BUILDING:"BUILDING",CANCELLED:"CANCELLED",CANCEL_REQUESTED:"CANCEL_REQUESTED",COMPLETED:"COMPLETED",FAILED:"FAILED",PREPROCESSING:"PREPROCESSING",SCHEDULED:"SCHEDULED",TESTING:"TESTING"},Tx5={BUILD_LOG:"BUILD_LOG",GENERATED_TEST_CASES:"GENERATED_TEST_CASES",POLICY_DEFINITION:"POLICY_DEFINITION",QUALITY_REPORT:"QUALITY_REPORT"},Vx5={ERROR:"ERROR",INFO:"INFO",WARNING:"WARNING"},Nx5={APPLIED:"APPLIED",FAILED:"FAILED"},vx5={ALWAYS_FALSE:"ALWAYS_FALSE",ALWAYS_TRUE:"ALWAYS_TRUE"},kx5={FAILED:"FAILED",PASSED:"PASSED"},Ex5={COMPLETED:"COMPLETED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",NOT_STARTED:"NOT_STARTED",SCHEDULED:"SCHEDULED"},Lx5={INCOMPATIBLE_ENDPOINT:"INCOMPATIBLE_ENDPOINT",REGISTERED:"REGISTERED"},yx5={ACTIVE:"Active",CREATING:"Creating",FAILED:"Failed"},Rx5={CREATION_TIME:"CreationTime"},Sx5={ASCENDING:"Ascending",DESCENDING:"Descending"},Cx5={CONTINUED_PRE_TRAINING:"CONTINUED_PRE_TRAINING",DISTILLATION:"DISTILLATION",FINE_TUNING:"FINE_TUNING",IMPORTED:"IMPORTED"},hx5={ACTIVE:"Active",CREATING:"Creating",FAILED:"Failed"},Ix5={COMPLETED:"Completed",DELETING:"Deleting",FAILED:"Failed",IN_PROGRESS:"InProgress",STOPPED:"Stopped",STOPPING:"Stopping"},bx5={MODEL_EVALUATION:"ModelEvaluation",RAG_EVALUATION:"RagEvaluation"},xx5={CLASSIFICATION:"Classification",CUSTOM:"Custom",GENERATION:"Generation",QUESTION_AND_ANSWER:"QuestionAndAnswer",SUMMARIZATION:"Summarization"},ux5={OPTIMIZED:"optimized",STANDARD:"standard"},Bx5={BYTE_CONTENT:"BYTE_CONTENT",S3:"S3"},mx5={QUERY_DECOMPOSITION:"QUERY_DECOMPOSITION"},gx5={BOOLEAN:"BOOLEAN",NUMBER:"NUMBER",STRING:"STRING",STRING_LIST:"STRING_LIST"},Fx5={HYBRID:"HYBRID",SEMANTIC:"SEMANTIC"},Qx5={ALL:"ALL",SELECTIVE:"SELECTIVE"},Ux5={BEDROCK_RERANKING_MODEL:"BEDROCK_RERANKING_MODEL"},px5={EXTERNAL_SOURCES:"EXTERNAL_SOURCES",KNOWLEDGE_BASE:"KNOWLEDGE_BASE"},dx5={AUTOMATED:"Automated",HUMAN:"Human"},cx5={CREATION_TIME:"CreationTime"},lx5={BLOCK:"BLOCK",NONE:"NONE"},ix5={IMAGE:"IMAGE",TEXT:"TEXT"},nx5={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},rx5={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",PROMPT_ATTACK:"PROMPT_ATTACK",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},ox5={CLASSIC:"CLASSIC",STANDARD:"STANDARD"},ax5={BLOCK:"BLOCK",NONE:"NONE"},sx5={GROUNDING:"GROUNDING",RELEVANCE:"RELEVANCE"},tx5={ANONYMIZE:"ANONYMIZE",BLOCK:"BLOCK",NONE:"NONE"},ex5={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},Au5={CLASSIC:"CLASSIC",STANDARD:"STANDARD"},qu5={BLOCK:"BLOCK",NONE:"NONE"},Ku5={DENY:"DENY"},Yu5={BLOCK:"BLOCK",NONE:"NONE"},zu5={PROFANITY:"PROFANITY"},wu5={CREATING:"CREATING",DELETING:"DELETING",FAILED:"FAILED",READY:"READY",UPDATING:"UPDATING",VERSIONING:"VERSIONING"},_u5={ACTIVE:"ACTIVE"},$u5={APPLICATION:"APPLICATION",SYSTEM_DEFINED:"SYSTEM_DEFINED"},Ou5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},Hu5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},ju5={JSONL:"JSONL"},Ju5={COMPLETED:"Completed",EXPIRED:"Expired",FAILED:"Failed",IN_PROGRESS:"InProgress",PARTIALLY_COMPLETED:"PartiallyCompleted",SCHEDULED:"Scheduled",STOPPED:"Stopped",STOPPING:"Stopping",SUBMITTED:"Submitted",VALIDATING:"Validating"},Mu5={CONTINUED_PRE_TRAINING:"CONTINUED_PRE_TRAINING",DISTILLATION:"DISTILLATION",FINE_TUNING:"FINE_TUNING"},Du5={ON_DEMAND:"ON_DEMAND",PROVISIONED:"PROVISIONED"},Xu5={EMBEDDING:"EMBEDDING",IMAGE:"IMAGE",TEXT:"TEXT"},Pu5={ACTIVE:"ACTIVE",LEGACY:"LEGACY"},Wu5={AVAILABLE:"AVAILABLE"},Zu5={CUSTOM:"custom",DEFAULT:"default"},Gu5={ONE_MONTH:"OneMonth",SIX_MONTHS:"SixMonths"},fu5={CREATING:"Creating",FAILED:"Failed",IN_SERVICE:"InService",UPDATING:"Updating"},Tu5={CREATION_TIME:"CreationTime"},Vu5={AUTHORIZED:"AUTHORIZED",NOT_AUTHORIZED:"NOT_AUTHORIZED"},Nu5={AVAILABLE:"AVAILABLE",NOT_AVAILABLE:"NOT_AVAILABLE"},vu5={AVAILABLE:"AVAILABLE",NOT_AVAILABLE:"NOT_AVAILABLE"},ku5={ALL:"ALL",PUBLIC:"PUBLIC"},Eu5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress",STOPPED:"Stopped",STOPPING:"Stopping"},Lu5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress",NOT_STARTED:"NotStarted",STOPPED:"Stopped",STOPPING:"Stopping"},yu5={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress",STOPPED:"Stopped",STOPPING:"Stopping"};Object.defineProperty(r$8,"$Command",{enumerable:!0,get:function(){return lA.Command}});Object.defineProperty(r$8,"__Client",{enumerable:!0,get:function(){return lA.Client}});r$8.AccessDeniedException=qW7;r$8.AgreementStatus=Px5;r$8.ApplicationType=bx5;r$8.AttributeType=gx5;r$8.AuthorizationStatus=Vu5;r$8.AutomatedReasoningCheckLogicWarningType=vx5;r$8.AutomatedReasoningCheckResult=Wx5;r$8.AutomatedReasoningPolicyAnnotationStatus=Nx5;r$8.AutomatedReasoningPolicyBuildDocumentContentType=Gx5;r$8.AutomatedReasoningPolicyBuildMessageType=Vx5;r$8.AutomatedReasoningPolicyBuildResultAssetType=Tx5;r$8.AutomatedReasoningPolicyBuildWorkflowStatus=fx5;r$8.AutomatedReasoningPolicyBuildWorkflowType=Zx5;r$8.AutomatedReasoningPolicyTestRunResult=kx5;r$8.AutomatedReasoningPolicyTestRunStatus=Ex5;r$8.BatchDeleteEvaluationJobCommand=k_8;r$8.Bedrock=n$8;r$8.BedrockClient=RM;r$8.BedrockServiceException=FR;r$8.CancelAutomatedReasoningPolicyBuildWorkflowCommand=E_8;r$8.CommitmentDuration=Gu5;r$8.ConflictException=_W7;r$8.CreateAutomatedReasoningPolicyCommand=L_8;r$8.CreateAutomatedReasoningPolicyTestCaseCommand=y_8;r$8.CreateAutomatedReasoningPolicyVersionCommand=R_8;r$8.CreateCustomModelCommand=S_8;r$8.CreateCustomModelDeploymentCommand=C_8;r$8.CreateEvaluationJobCommand=h_8;r$8.CreateFoundationModelAgreementCommand=I_8;r$8.CreateGuardrailCommand=b_8;r$8.CreateGuardrailVersionCommand=x_8;r$8.CreateInferenceProfileCommand=u_8;r$8.CreateMarketplaceModelEndpointCommand=B_8;r$8.CreateModelCopyJobCommand=m_8;r$8.CreateModelCustomizationJobCommand=g_8;r$8.CreateModelImportJobCommand=F_8;r$8.CreateModelInvocationJobCommand=Q_8;r$8.CreatePromptRouterCommand=U_8;r$8.CreateProvisionedModelThroughputCommand=p_8;r$8.CustomModelDeploymentStatus=yx5;r$8.CustomizationType=Cx5;r$8.DeleteAutomatedReasoningPolicyBuildWorkflowCommand=d_8;r$8.DeleteAutomatedReasoningPolicyCommand=c_8;r$8.DeleteAutomatedReasoningPolicyTestCaseCommand=l_8;r$8.DeleteCustomModelCommand=i_8;r$8.DeleteCustomModelDeploymentCommand=n_8;r$8.DeleteFoundationModelAgreementCommand=r_8;r$8.DeleteGuardrailCommand=o_8;r$8.DeleteImportedModelCommand=a_8;r$8.DeleteInferenceProfileCommand=s_8;r$8.DeleteMarketplaceModelEndpointCommand=t_8;r$8.DeleteModelInvocationLoggingConfigurationCommand=e_8;r$8.DeletePromptRouterCommand=A$8;r$8.DeleteProvisionedModelThroughputCommand=q$8;r$8.DeregisterMarketplaceModelEndpointCommand=K$8;r$8.EntitlementAvailability=Nu5;r$8.EvaluationJobStatus=Ix5;r$8.EvaluationJobType=dx5;r$8.EvaluationTaskType=xx5;r$8.ExportAutomatedReasoningPolicyVersionCommand=Y$8;r$8.ExternalSourceType=Bx5;r$8.FineTuningJobStatus=yu5;r$8.FoundationModelLifecycleStatus=Pu5;r$8.GetAutomatedReasoningPolicyAnnotationsCommand=z$8;r$8.GetAutomatedReasoningPolicyBuildWorkflowCommand=w$8;r$8.GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand=_$8;r$8.GetAutomatedReasoningPolicyCommand=$$8;r$8.GetAutomatedReasoningPolicyNextScenarioCommand=O$8;r$8.GetAutomatedReasoningPolicyTestCaseCommand=H$8;r$8.GetAutomatedReasoningPolicyTestResultCommand=j$8;r$8.GetCustomModelCommand=J$8;r$8.GetCustomModelDeploymentCommand=M$8;r$8.GetEvaluationJobCommand=D$8;r$8.GetFoundationModelAvailabilityCommand=X$8;r$8.GetFoundationModelCommand=P$8;r$8.GetGuardrailCommand=W$8;r$8.GetImportedModelCommand=Z$8;r$8.GetInferenceProfileCommand=G$8;r$8.GetMarketplaceModelEndpointCommand=f$8;r$8.GetModelCopyJobCommand=T$8;r$8.GetModelCustomizationJobCommand=V$8;r$8.GetModelImportJobCommand=N$8;r$8.GetModelInvocationJobCommand=v$8;r$8.GetModelInvocationLoggingConfigurationCommand=k$8;r$8.GetPromptRouterCommand=E$8;r$8.GetProvisionedModelThroughputCommand=L$8;r$8.GetUseCaseForModelAccessCommand=y$8;r$8.GuardrailContentFilterAction=lx5;r$8.GuardrailContentFilterType=rx5;r$8.GuardrailContentFiltersTierName=ox5;r$8.GuardrailContextualGroundingAction=ax5;r$8.GuardrailContextualGroundingFilterType=sx5;r$8.GuardrailFilterStrength=nx5;r$8.GuardrailManagedWordsType=zu5;r$8.GuardrailModality=ix5;r$8.GuardrailPiiEntityType=ex5;r$8.GuardrailSensitiveInformationAction=tx5;r$8.GuardrailStatus=wu5;r$8.GuardrailTopicAction=qu5;r$8.GuardrailTopicType=Ku5;r$8.GuardrailTopicsTierName=Au5;r$8.GuardrailWordAction=Yu5;r$8.InferenceProfileStatus=_u5;r$8.InferenceProfileType=$u5;r$8.InferenceType=Du5;r$8.InternalServerException=KW7;r$8.JobStatusDetails=Lu5;r$8.ListAutomatedReasoningPoliciesCommand=H$1;r$8.ListAutomatedReasoningPolicyBuildWorkflowsCommand=j$1;r$8.ListAutomatedReasoningPolicyTestCasesCommand=J$1;r$8.ListAutomatedReasoningPolicyTestResultsCommand=M$1;r$8.ListCustomModelDeploymentsCommand=D$1;r$8.ListCustomModelsCommand=X$1;r$8.ListEvaluationJobsCommand=P$1;r$8.ListFoundationModelAgreementOffersCommand=R$8;r$8.ListFoundationModelsCommand=S$8;r$8.ListGuardrailsCommand=W$1;r$8.ListImportedModelsCommand=Z$1;r$8.ListInferenceProfilesCommand=G$1;r$8.ListMarketplaceModelEndpointsCommand=f$1;r$8.ListModelCopyJobsCommand=T$1;r$8.ListModelCustomizationJobsCommand=V$1;r$8.ListModelImportJobsCommand=N$1;r$8.ListModelInvocationJobsCommand=v$1;r$8.ListPromptRoutersCommand=k$1;r$8.ListProvisionedModelThroughputsCommand=E$1;r$8.ListTagsForResourceCommand=C$8;r$8.ModelCopyJobStatus=Ou5;r$8.ModelCustomization=Mu5;r$8.ModelCustomizationJobStatus=Eu5;r$8.ModelImportJobStatus=Hu5;r$8.ModelInvocationJobStatus=Ju5;r$8.ModelModality=Xu5;r$8.ModelStatus=hx5;r$8.OfferType=ku5;r$8.PerformanceConfigLatency=ux5;r$8.PromptRouterStatus=Wu5;r$8.PromptRouterType=Zu5;r$8.ProvisionedModelStatus=fu5;r$8.PutModelInvocationLoggingConfigurationCommand=h$8;r$8.PutUseCaseForModelAccessCommand=I$8;r$8.QueryTransformationType=mx5;r$8.RegionAvailability=vu5;r$8.RegisterMarketplaceModelEndpointCommand=b$8;r$8.RerankingMetadataSelectionMode=Qx5;r$8.ResourceInUseException=HW7;r$8.ResourceNotFoundException=YW7;r$8.RetrieveAndGenerateType=px5;r$8.S3InputFormat=ju5;r$8.SearchType=Fx5;r$8.ServiceQuotaExceededException=$W7;r$8.ServiceUnavailableException=jW7;r$8.SortByProvisionedModels=Tu5;r$8.SortJobsBy=cx5;r$8.SortModelsBy=Rx5;r$8.SortOrder=Sx5;r$8.StartAutomatedReasoningPolicyBuildWorkflowCommand=x$8;r$8.StartAutomatedReasoningPolicyTestWorkflowCommand=u$8;r$8.Status=Lx5;r$8.StopEvaluationJobCommand=B$8;r$8.StopModelCustomizationJobCommand=m$8;r$8.StopModelInvocationJobCommand=g$8;r$8.TagResourceCommand=F$8;r$8.ThrottlingException=zW7;r$8.TooManyTagsException=OW7;r$8.UntagResourceCommand=Q$8;r$8.UpdateAutomatedReasoningPolicyAnnotationsCommand=U$8;r$8.UpdateAutomatedReasoningPolicyCommand=p$8;r$8.UpdateAutomatedReasoningPolicyTestCaseCommand=d$8;r$8.UpdateGuardrailCommand=c$8;r$8.UpdateMarketplaceModelEndpointCommand=l$8;r$8.UpdateProvisionedModelThroughputCommand=i$8;r$8.ValidationException=wW7;r$8.VectorSearchRerankingConfigurationType=Ux5;r$8.paginateListAutomatedReasoningPolicies=tb5;r$8.paginateListAutomatedReasoningPolicyBuildWorkflows=eb5;r$8.paginateListAutomatedReasoningPolicyTestCases=Ax5;r$8.paginateListAutomatedReasoningPolicyTestResults=qx5;r$8.paginateListCustomModelDeployments=Kx5;r$8.paginateListCustomModels=Yx5;r$8.paginateListEvaluationJobs=zx5;r$8.paginateListGuardrails=wx5;r$8.paginateListImportedModels=_x5;r$8.paginateListInferenceProfiles=$x5;r$8.paginateListMarketplaceModelEndpoints=Ox5;r$8.paginateListModelCopyJobs=Hx5;r$8.paginateListModelCustomizationJobs=jx5;r$8.paginateListModelImportJobs=Jx5;r$8.paginateListModelInvocationJobs=Mx5;r$8.paginateListPromptRouters=Dx5;r$8.paginateListProvisionedModelThroughputs=Xx5});var lG7=C((OF5)=>{OF5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(OF5.HttpAuthLocation||(OF5.HttpAuthLocation={}));OF5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(OF5.HttpApiKeyAuthLocation||(OF5.HttpApiKeyAuthLocation={}));OF5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(OF5.EndpointURLScheme||(OF5.EndpointURLScheme={}));OF5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(OF5.AlgorithmId||(OF5.AlgorithmId={}));var YF5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>OF5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>OF5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},zF5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},wF5=(A)=>{return YF5(A)},_F5=(A)=>{return zF5(A)};OF5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(OF5.FieldPosition||(OF5.FieldPosition={}));var $F5="__smithy_context";OF5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(OF5.IniSectionType||(OF5.IniSectionType={}));OF5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(OF5.RequestHandlerProtocol||(OF5.RequestHandlerProtocol={}));OF5.SMITHY_CONTEXT_KEY=$F5;OF5.getDefaultClientConfiguration=wF5;OF5.resolveDefaultRuntimeConfig=_F5});var oG7=C((ZF5)=>{var MF5=lG7(),DF5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},XF5=(A)=>{return{httpHandler:A.httpHandler()}};class iG7{name;kind;values;constructor({name:A,kind:q=MF5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class nG7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class y$1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new y$1({...A,headers:{...A.headers}});if(q.query)q.query=PF5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return y$1.clone(this)}}function PF5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class rG7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function WF5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}ZF5.Field=iG7;ZF5.Fields=nG7;ZF5.HttpRequest=y$1;ZF5.HttpResponse=rG7;ZF5.getHttpHandlerExtensionConfiguration=DF5;ZF5.isValidHostname=WF5;ZF5.resolveHttpHandlerRuntimeConfig=XF5});var qf7=C((yF5)=>{var aG7=oG7();function EF5(A){let{signer:q,signer:K}=A,Y=Object.assign(A,{eventSigner:q,messageSigner:K}),z=Y.eventStreamPayloadHandlerProvider(Y);return Object.assign(Y,{eventStreamPayloadHandler:z})}var sG7=(A)=>(q,K)=>async(Y)=>{let{request:z}=Y;if(!aG7.HttpRequest.isInstance(z))return q(Y);return A.eventStreamPayloadHandler.handle(q,Y,K)},tG7={tags:["EVENT_STREAM","SIGNATURE","HANDLE"],name:"eventStreamHandlingMiddleware",relation:"after",toMiddleware:"awsAuthMiddleware",override:!0},eG7=(A)=>async(q)=>{let{request:K}=q;if(!aG7.HttpRequest.isInstance(K))return A(q);return K.headers={...K.headers,"content-type":"application/vnd.amazon.eventstream","x-amz-content-sha256":"STREAMING-AWS4-HMAC-SHA256-EVENTS"},A({...q,request:K})},Af7={step:"build",tags:["EVENT_STREAM","HEADER","CONTENT_TYPE","CONTENT_SHA256"],name:"eventStreamHeaderMiddleware",override:!0},LF5=(A)=>({applyToStack:(q)=>{q.addRelativeTo(sG7(A),tG7),q.add(eG7,Af7)}});yF5.eventStreamHandlingMiddleware=sG7;yF5.eventStreamHandlingMiddlewareOptions=tG7;yF5.eventStreamHeaderMiddleware=eG7;yF5.eventStreamHeaderMiddlewareOptions=Af7;yF5.getEventStreamPlugin=LF5;yF5.resolveEventStreamConfig=EF5});var zf7=C((WX2,Yf7)=>{var{defineProperty:R$1,getOwnPropertyDescriptor:xF5,getOwnPropertyNames:uF5}=Object,BF5=Object.prototype.hasOwnProperty,mF5=(A,q)=>R$1(A,"name",{value:q,configurable:!0}),gF5=(A,q)=>{for(var K in q)R$1(A,K,{get:q[K],enumerable:!0})},FF5=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of uF5(q))if(!BF5.call(A,z)&&z!==K)R$1(A,z,{get:()=>q[z],enumerable:!(Y=xF5(q,z))||Y.enumerable})}return A},QF5=(A)=>FF5(R$1({},"__esModule",{value:!0}),A),Kf7={};gF5(Kf7,{isArrayBuffer:()=>UF5});Yf7.exports=QF5(Kf7);var UF5=mF5((A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]","isArrayBuffer")});var A56=C((ZX2,$f7)=>{var{defineProperty:S$1,getOwnPropertyDescriptor:pF5,getOwnPropertyNames:dF5}=Object,cF5=Object.prototype.hasOwnProperty,wf7=(A,q)=>S$1(A,"name",{value:q,configurable:!0}),lF5=(A,q)=>{for(var K in q)S$1(A,K,{get:q[K],enumerable:!0})},iF5=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of dF5(q))if(!cF5.call(A,z)&&z!==K)S$1(A,z,{get:()=>q[z],enumerable:!(Y=pF5(q,z))||Y.enumerable})}return A},nF5=(A)=>iF5(S$1({},"__esModule",{value:!0}),A),_f7={};lF5(_f7,{fromArrayBuffer:()=>oF5,fromString:()=>aF5});$f7.exports=nF5(_f7);var rF5=zf7(),qO8=g6("buffer"),oF5=wf7((A,q=0,K=A.byteLength-q)=>{if(!(0,rF5.isArrayBuffer)(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return qO8.Buffer.from(A,q,K)},"fromArrayBuffer"),aF5=wf7((A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?qO8.Buffer.from(A,q):qO8.Buffer.from(A)},"fromString")});var Mf7=C((GX2,Jf7)=>{var{defineProperty:C$1,getOwnPropertyDescriptor:sF5,getOwnPropertyNames:tF5}=Object,eF5=Object.prototype.hasOwnProperty,KO8=(A,q)=>C$1(A,"name",{value:q,configurable:!0}),AQ5=(A,q)=>{for(var K in q)C$1(A,K,{get:q[K],enumerable:!0})},qQ5=(A,q,K,Y)=>{if(q&&typeof q==="object"||typeof q==="function"){for(let z of tF5(q))if(!eF5.call(A,z)&&z!==K)C$1(A,z,{get:()=>q[z],enumerable:!(Y=sF5(q,z))||Y.enumerable})}return A},KQ5=(A)=>qQ5(C$1({},"__esModule",{value:!0}),A),Of7={};AQ5(Of7,{fromUtf8:()=>jf7,toUint8Array:()=>YQ5,toUtf8:()=>zQ5});Jf7.exports=KQ5(Of7);var Hf7=A56(),jf7=KO8((A)=>{let q=(0,Hf7.fromString)(A,"utf8");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),YQ5=KO8((A)=>{if(typeof A==="string")return jf7(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(A)},"toUint8Array"),zQ5=KO8((A)=>{if(typeof A==="string")return A;if(typeof A!=="object"||typeof A.byteOffset!=="number"||typeof A.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Hf7.fromArrayBuffer)(A.buffer,A.byteOffset,A.byteLength).toString("utf8")},"toUtf8")});var Pf7=C((Df7)=>{Object.defineProperty(Df7,"__esModule",{value:!0});Df7.convertToBuffer=void 0;var wQ5=Mf7(),_Q5=typeof Buffer<"u"&&Buffer.from?function(A){return Buffer.from(A,"utf8")}:wQ5.fromUtf8;function $Q5(A){if(A instanceof Uint8Array)return A;if(typeof A==="string")return _Q5(A);if(ArrayBuffer.isView(A))return new Uint8Array(A.buffer,A.byteOffset,A.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(A)}Df7.convertToBuffer=$Q5});var Gf7=C((Wf7)=>{Object.defineProperty(Wf7,"__esModule",{value:!0});Wf7.isEmptyData=void 0;function OQ5(A){if(typeof A==="string")return A.length===0;return A.byteLength===0}Wf7.isEmptyData=OQ5});var Vf7=C((ff7)=>{Object.defineProperty(ff7,"__esModule",{value:!0});ff7.numToUint8=void 0;function HQ5(A){return new Uint8Array([(A&4278190080)>>24,(A&16711680)>>16,(A&65280)>>8,A&255])}ff7.numToUint8=HQ5});var kf7=C((Nf7)=>{Object.defineProperty(Nf7,"__esModule",{value:!0});Nf7.uint32ArrayFrom=void 0;function jQ5(A){if(!Uint32Array.from){var q=new Uint32Array(A.length),K=0;while(K<A.length)q[K]=A[K],K+=1;return q}return Uint32Array.from(A)}Nf7.uint32ArrayFrom=jQ5});var YO8=C((dP6)=>{Object.defineProperty(dP6,"__esModule",{value:!0});dP6.uint32ArrayFrom=dP6.numToUint8=dP6.isEmptyData=dP6.convertToBuffer=void 0;var JQ5=Pf7();Object.defineProperty(dP6,"convertToBuffer",{enumerable:!0,get:function(){return JQ5.convertToBuffer}});var MQ5=Gf7();Object.defineProperty(dP6,"isEmptyData",{enumerable:!0,get:function(){return MQ5.isEmptyData}});var DQ5=Vf7();Object.defineProperty(dP6,"numToUint8",{enumerable:!0,get:function(){return DQ5.numToUint8}});var XQ5=kf7();Object.defineProperty(dP6,"uint32ArrayFrom",{enumerable:!0,get:function(){return XQ5.uint32ArrayFrom}})});var Sf7=C((yf7)=>{Object.defineProperty(yf7,"__esModule",{value:!0});yf7.AwsCrc32=void 0;var Ef7=d2(),zO8=YO8(),Lf7=wO8(),WQ5=function(){function A(){this.crc32=new Lf7.Crc32}return A.prototype.update=function(q){if((0,zO8.isEmptyData)(q))return;this.crc32.update((0,zO8.convertToBuffer)(q))},A.prototype.digest=function(){return Ef7.__awaiter(this,void 0,void 0,function(){return Ef7.__generator(this,function(q){return[2,(0,zO8.numToUint8)(this.crc32.digest())]})})},A.prototype.reset=function(){this.crc32=new Lf7.Crc32},A}();yf7.AwsCrc32=WQ5});var wO8=C((_O8)=>{Object.defineProperty(_O8,"__esModule",{value:!0});_O8.AwsCrc32=_O8.Crc32=_O8.crc32=void 0;var ZQ5=d2(),GQ5=YO8();function fQ5(A){return new Cf7().update(A).digest()}_O8.crc32=fQ5;var Cf7=function(){function A(){this.checksum=4294967295}return A.prototype.update=function(q){var K,Y;try{for(var z=ZQ5.__values(q),w=z.next();!w.done;w=z.next()){var _=w.value;this.checksum=this.checksum>>>8^VQ5[(this.checksum^_)&255]}}catch($){K={error:$}}finally{try{if(w&&!w.done&&(Y=z.return))Y.call(z)}finally{if(K)throw K.error}}return this},A.prototype.digest=function(){return(this.checksum^4294967295)>>>0},A}();_O8.Crc32=Cf7;var TQ5=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],VQ5=(0,GQ5.uint32ArrayFrom)(TQ5),NQ5=Sf7();Object.defineProperty(_O8,"AwsCrc32",{enumerable:!0,get:function(){return NQ5.AwsCrc32}})});var If7=C((RQ5)=>{var hf7={},$O8={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;hf7[A]=q,$O8[q]=A}function LQ5(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in $O8)q[K/2]=$O8[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function yQ5(A){let q="";for(let K=0;K<A.byteLength;K++)q+=hf7[A[K]];return q}RQ5.fromHex=LQ5;RQ5.toHex=yQ5});var aB6=C((pQ5)=>{var uf7=wO8(),q56=If7();class cP6{bytes;constructor(A){if(this.bytes=A,A.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(A){if(A>9223372036854776000||A<-9223372036854776000)throw Error(`${A} is too large (or, if negative, too small) to represent as an Int64`);let q=new Uint8Array(8);for(let K=7,Y=Math.abs(Math.round(A));K>-1&&Y>0;K--,Y/=256)q[K]=Y;if(A<0)bf7(q);return new cP6(q)}valueOf(){let A=this.bytes.slice(0),q=A[0]&128;if(q)bf7(A);return parseInt(q56.toHex(A),16)*(q?-1:1)}toString(){return String(this.valueOf())}}function bf7(A){for(let q=0;q<8;q++)A[q]^=255;for(let q=7;q>-1;q--)if(A[q]++,A[q]!==0)break}class OO8{toUtf8;fromUtf8;constructor(A,q){this.toUtf8=A,this.fromUtf8=q}format(A){let q=[];for(let z of Object.keys(A)){let w=this.fromUtf8(z);q.push(Uint8Array.from([w.byteLength]),w,this.formatHeaderValue(A[z]))}let K=new Uint8Array(q.reduce((z,w)=>z+w.byteLength,0)),Y=0;for(let z of q)K.set(z,Y),Y+=z.byteLength;return K}formatHeaderValue(A){switch(A.type){case"boolean":return Uint8Array.from([A.value?0:1]);case"byte":return Uint8Array.from([2,A.value]);case"short":let q=new DataView(new ArrayBuffer(3));return q.setUint8(0,3),q.setInt16(1,A.value,!1),new Uint8Array(q.buffer);case"integer":let K=new DataView(new ArrayBuffer(5));return K.setUint8(0,4),K.setInt32(1,A.value,!1),new Uint8Array(K.buffer);case"long":let Y=new Uint8Array(9);return Y[0]=5,Y.set(A.value.bytes,1),Y;case"binary":let z=new DataView(new ArrayBuffer(3+A.value.byteLength));z.setUint8(0,6),z.setUint16(1,A.value.byteLength,!1);let w=new Uint8Array(z.buffer);return w.set(A.value,3),w;case"string":let _=this.fromUtf8(A.value),$=new DataView(new ArrayBuffer(3+_.byteLength));$.setUint8(0,7),$.setUint16(1,_.byteLength,!1);let O=new Uint8Array($.buffer);return O.set(_,3),O;case"timestamp":let H=new Uint8Array(9);return H[0]=8,H.set(cP6.fromNumber(A.value.valueOf()).bytes,1),H;case"uuid":if(!FQ5.test(A.value))throw Error(`Invalid UUID received: ${A.value}`);let j=new Uint8Array(17);return j[0]=9,j.set(q56.fromHex(A.value.replace(/\-/g,"")),1),j}}parse(A){let q={},K=0;while(K<A.byteLength){let Y=A.getUint8(K++),z=this.toUtf8(new Uint8Array(A.buffer,A.byteOffset+K,Y));switch(K+=Y,A.getUint8(K++)){case 0:q[z]={type:xf7,value:!0};break;case 1:q[z]={type:xf7,value:!1};break;case 2:q[z]={type:hQ5,value:A.getInt8(K++)};break;case 3:q[z]={type:IQ5,value:A.getInt16(K,!1)},K+=2;break;case 4:q[z]={type:bQ5,value:A.getInt32(K,!1)},K+=4;break;case 5:q[z]={type:xQ5,value:new cP6(new Uint8Array(A.buffer,A.byteOffset+K,8))},K+=8;break;case 6:let w=A.getUint16(K,!1);K+=2,q[z]={type:uQ5,value:new Uint8Array(A.buffer,A.byteOffset+K,w)},K+=w;break;case 7:let _=A.getUint16(K,!1);K+=2,q[z]={type:BQ5,value:this.toUtf8(new Uint8Array(A.buffer,A.byteOffset+K,_))},K+=_;break;case 8:q[z]={type:mQ5,value:new Date(new cP6(new Uint8Array(A.buffer,A.byteOffset+K,8)).valueOf())},K+=8;break;case 9:let $=new Uint8Array(A.buffer,A.byteOffset+K,16);K+=16,q[z]={type:gQ5,value:`${q56.toHex($.subarray(0,4))}-${q56.toHex($.subarray(4,6))}-${q56.toHex($.subarray(6,8))}-${q56.toHex($.subarray(8,10))}-${q56.toHex($.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return q}}var xf7="boolean",hQ5="byte",IQ5="short",bQ5="integer",xQ5="long",uQ5="binary",BQ5="string",mQ5="timestamp",gQ5="uuid",FQ5=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,Bf7=4,Bt=Bf7*2,K56=4,QQ5=Bt+K56*2;function UQ5({byteLength:A,byteOffset:q,buffer:K}){if(A<QQ5)throw Error("Provided message too short to accommodate event stream message overhead");let Y=new DataView(K,q,A),z=Y.getUint32(0,!1);if(A!==z)throw Error("Reported message length does not match received message length");let w=Y.getUint32(Bf7,!1),_=Y.getUint32(Bt,!1),$=Y.getUint32(A-K56,!1),O=new uf7.Crc32().update(new Uint8Array(K,q,Bt));if(_!==O.digest())throw Error(`The prelude checksum specified in the message (${_}) does not match the calculated CRC32 checksum (${O.digest()})`);if(O.update(new Uint8Array(K,q+Bt,A-(Bt+K56))),$!==O.digest())throw Error(`The message checksum (${O.digest()}) did not match the expected value of ${$}`);return{headers:new DataView(K,q+Bt+K56,w),body:new Uint8Array(K,q+Bt+K56+w,z-w-(Bt+K56+K56))}}class mf7{headerMarshaller;messageBuffer;isEndOfStream;constructor(A,q){this.headerMarshaller=new OO8(A,q),this.messageBuffer=[],this.isEndOfStream=!1}feed(A){this.messageBuffer.push(this.decode(A))}endOfStream(){this.isEndOfStream=!0}getMessage(){let A=this.messageBuffer.pop(),q=this.isEndOfStream;return{getMessage(){return A},isEndOfStream(){return q}}}getAvailableMessages(){let A=this.messageBuffer;this.messageBuffer=[];let q=this.isEndOfStream;return{getMessages(){return A},isEndOfStream(){return q}}}encode({headers:A,body:q}){let K=this.headerMarshaller.format(A),Y=K.byteLength+q.byteLength+16,z=new Uint8Array(Y),w=new DataView(z.buffer,z.byteOffset,z.byteLength),_=new uf7.Crc32;return w.setUint32(0,Y,!1),w.setUint32(4,K.byteLength,!1),w.setUint32(8,_.update(z.subarray(0,8)).digest(),!1),z.set(K,12),z.set(q,K.byteLength+12),w.setUint32(Y-4,_.update(z.subarray(8,Y-4)).digest(),!1),z}decode(A){let{headers:q,body:K}=UQ5(A);return{headers:this.headerMarshaller.parse(q),body:K}}formatHeaders(A){return this.headerMarshaller.format(A)}}class gf7{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.inputStream)yield this.options.decoder.decode(A)}}class Ff7{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.messageStream)yield this.options.encoder.encode(A);if(this.options.includeEndFrame)yield new Uint8Array(0)}}class Qf7{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.messageStream){let q=await this.options.deserializer(A);if(q===void 0)continue;yield q}}}class Uf7{options;constructor(A){this.options=A}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let A of this.options.inputStream)yield this.options.serializer(A)}}pQ5.EventStreamCodec=mf7;pQ5.HeaderMarshaller=OO8;pQ5.Int64=cP6;pQ5.MessageDecoderStream=gf7;pQ5.MessageEncoderStream=Ff7;pQ5.SmithyMessageDecoderStream=Qf7;pQ5.SmithyMessageEncoderStream=Uf7});var df7=C((tQ5)=>{var pf7={},HO8={};for(let A=0;A<256;A++){let q=A.toString(16).toLowerCase();if(q.length===1)q=`0${q}`;pf7[A]=q,HO8[q]=A}function aQ5(A){if(A.length%2!==0)throw Error("Hex encoded strings must have an even number length");let q=new Uint8Array(A.length/2);for(let K=0;K<A.length;K+=2){let Y=A.slice(K,K+2).toLowerCase();if(Y in HO8)q[K/2]=HO8[Y];else throw Error(`Cannot decode unrecognized sequence ${Y} as hexadecimal`)}return q}function sQ5(A){let q="";for(let K=0;K<A.byteLength;K++)q+=pf7[A[K]];return q}tQ5.fromHex=aQ5;tQ5.toHex=sQ5});var cf7=C((_U5)=>{_U5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(_U5.HttpAuthLocation||(_U5.HttpAuthLocation={}));_U5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(_U5.HttpApiKeyAuthLocation||(_U5.HttpApiKeyAuthLocation={}));_U5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(_U5.EndpointURLScheme||(_U5.EndpointURLScheme={}));_U5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(_U5.AlgorithmId||(_U5.AlgorithmId={}));var qU5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>_U5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>_U5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},KU5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},YU5=(A)=>{return qU5(A)},zU5=(A)=>{return KU5(A)};_U5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(_U5.FieldPosition||(_U5.FieldPosition={}));var wU5="__smithy_context";_U5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(_U5.IniSectionType||(_U5.IniSectionType={}));_U5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(_U5.RequestHandlerProtocol||(_U5.RequestHandlerProtocol={}));_U5.SMITHY_CONTEXT_KEY=wU5;_U5.getDefaultClientConfiguration=YU5;_U5.resolveDefaultRuntimeConfig=zU5});var WO8=C((PU5)=>{var jU5=cf7(),JU5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},MU5=(A)=>{return{httpHandler:A.httpHandler()}};class lf7{name;kind;values;constructor({name:A,kind:q=jU5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class if7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class h$1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new h$1({...A,headers:{...A.headers}});if(q.query)q.query=DU5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return h$1.clone(this)}}function DU5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class nf7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function XU5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}PU5.Field=lf7;PU5.Fields=if7;PU5.HttpRequest=h$1;PU5.HttpResponse=nf7;PU5.getHttpHandlerExtensionConfiguration=JU5;PU5.isValidHostname=XU5;PU5.resolveHttpHandlerRuntimeConfig=MU5});var of7=C((EU5)=>{var rf7=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,vU5),vU5=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,kU5=(A)=>A.split("/").map(rf7).join("/");EU5.escapeUri=rf7;EU5.escapeUriPath=kU5});var af7=C((SU5)=>{var ZO8=of7();function RU5(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=ZO8.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${ZO8.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${ZO8.escapeUri(Y)}`;q.push(z)}}return q.join("&")}SU5.buildQueryString=RU5});var sf7=C((bU5)=>{var hU5=af7();function IU5(A){let{port:q,query:K}=A,{protocol:Y,path:z,hostname:w}=A;if(Y&&Y.slice(-1)!==":")Y+=":";if(q)w+=`:${q}`;if(z&&z.charAt(0)!=="/")z=`/${z}`;let _=K?hU5.buildQueryString(K):"";if(_&&_[0]!=="?")_=`?${_}`;let $="";if(A.username!=null||A.password!=null){let H=A.username??"",j=A.password??"";$=`${H}:${j}@`}let O="";if(A.fragment)O=`#${A.fragment}`;return`${Y}//${$}${w}${z}${_}${O}`}bU5.formatUrl=IU5});var tf7=C((gU5)=>{var tB6=aB6();function uU5(A){let q=0,K=0,Y=null,z=null,w=($)=>{if(typeof $!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+$);q=$,K=4,Y=new Uint8Array($),new DataView(Y.buffer).setUint32(0,$,!1)},_=async function*(){let $=A[Symbol.asyncIterator]();while(!0){let{value:O,done:H}=await $.next();if(H){if(!q)return;else if(q===K)yield Y;else throw Error("Truncated event message received.");return}let j=O.length,J=0;while(J<j){if(!Y){let D=j-J;if(!z)z=new Uint8Array(4);let X=Math.min(4-K,D);if(z.set(O.slice(J,J+X),K),K+=X,J+=X,K<4)break;w(new DataView(z.buffer).getUint32(0,!1)),z=null}let M=Math.min(q-K,j-J);if(Y.set(O.slice(J,J+M),K),K+=M,J+=M,q&&q===K)yield Y,Y=null,q=0,K=0}}};return{[Symbol.asyncIterator]:_}}function BU5(A,q){return async function(K){let{value:Y}=K.headers[":message-type"];if(Y==="error"){let z=Error(K.headers[":error-message"].value||"UnknownError");throw z.name=K.headers[":error-code"].value,z}else if(Y==="exception"){let z=K.headers[":exception-type"].value,w={[z]:K},_=await A(w);if(_.$unknown){let $=Error(q(K.body));throw $.name=z,$}throw _[z]}else if(Y==="event"){let z={[K.headers[":event-type"].value]:K},w=await A(z);if(w.$unknown)return;return w}else throw Error(`Unrecognizable event type: ${K.headers[":event-type"].value}`)}}class GO8{eventStreamCodec;utfEncoder;constructor({utf8Encoder:A,utf8Decoder:q}){this.eventStreamCodec=new tB6.EventStreamCodec(A,q),this.utfEncoder=A}deserialize(A,q){let K=uU5(A);return new tB6.SmithyMessageDecoderStream({messageStream:new tB6.MessageDecoderStream({inputStream:K,decoder:this.eventStreamCodec}),deserializer:BU5(q,this.utfEncoder)})}serialize(A,q){return new tB6.MessageEncoderStream({messageStream:new tB6.SmithyMessageEncoderStream({inputStream:A,serializer:q}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}var mU5=(A)=>new GO8(A);gU5.EventStreamMarshaller=GO8;gU5.eventStreamSerdeProvider=mU5});var qT7=C((cU5)=>{var UU5=tf7(),ef7=(A)=>({[Symbol.asyncIterator]:async function*(){let q=A.getReader();try{while(!0){let{done:K,value:Y}=await q.read();if(K)return;yield Y}}finally{q.releaseLock()}}}),AT7=(A)=>{let q=A[Symbol.asyncIterator]();return new ReadableStream({async pull(K){let{done:Y,value:z}=await q.next();if(Y)return K.close();K.enqueue(z)}})};class fO8{universalMarshaller;constructor({utf8Encoder:A,utf8Decoder:q}){this.universalMarshaller=new UU5.EventStreamMarshaller({utf8Decoder:q,utf8Encoder:A})}deserialize(A,q){let K=pU5(A)?ef7(A):A;return this.universalMarshaller.deserialize(K,q)}serialize(A,q){let K=this.universalMarshaller.serialize(A,q);return typeof ReadableStream==="function"?AT7(K):K}}var pU5=(A)=>typeof ReadableStream==="function"&&A instanceof ReadableStream,dU5=(A)=>new fO8(A);cU5.EventStreamMarshaller=fO8;cU5.eventStreamSerdeProvider=dU5;cU5.iterableToReadableStream=AT7;cU5.readableStreamtoIterable=ef7});var YT7=C((sU5)=>{var KT7=(A)=>encodeURIComponent(A).replace(/[!'()*]/g,oU5),oU5=(A)=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`,aU5=(A)=>A.split("/").map(KT7).join("/");sU5.escapeUri=KT7;sU5.escapeUriPath=aU5});var zT7=C((qp5)=>{var TO8=YT7();function Ap5(A){let q=[];for(let K of Object.keys(A).sort()){let Y=A[K];if(K=TO8.escapeUri(K),Array.isArray(Y))for(let z=0,w=Y.length;z<w;z++)q.push(`${K}=${TO8.escapeUri(Y[z])}`);else{let z=K;if(Y||typeof Y==="string")z+=`=${TO8.escapeUri(Y)}`;q.push(z)}}return q.join("&")}qp5.buildQueryString=Ap5});var wT7=C((zp5)=>{var Yp5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";zp5.isArrayBuffer=Yp5});var NO8=C((Hp5)=>{var _p5=wT7(),VO8=g6("buffer"),$p5=(A,q=0,K=A.byteLength-q)=>{if(!_p5.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return VO8.Buffer.from(A,q,K)},Op5=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?VO8.Buffer.from(A,q):VO8.Buffer.from(A)};Hp5.fromArrayBuffer=$p5;Hp5.fromString=Op5});var OT7=C((_T7)=>{Object.defineProperty(_T7,"__esModule",{value:!0});_T7.fromBase64=void 0;var Mp5=NO8(),Dp5=/^[A-Za-z0-9+/]*={0,2}$/,Xp5=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Dp5.exec(A))throw TypeError("Invalid base64 string.");let q=(0,Mp5.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};_T7.fromBase64=Xp5});var JT7=C((HT7)=>{Object.defineProperty(HT7,"__esModule",{value:!0});HT7.toBase64=void 0;var Pp5=NO8(),Wp5=Z2(),Zp5=(A)=>{let q;if(typeof A==="string")q=(0,Wp5.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,Pp5.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};HT7.toBase64=Zp5});var XT7=C((eB6)=>{var MT7=OT7(),DT7=JT7();Object.keys(MT7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(eB6,A))Object.defineProperty(eB6,A,{enumerable:!0,get:function(){return MT7[A]}})});Object.keys(DT7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(eB6,A))Object.defineProperty(eB6,A,{enumerable:!0,get:function(){return DT7[A]}})})});var ZT7=C((Ep5)=>{var PT7=WO8(),Gp5=zT7(),fp5=XT7();function WT7(A,q){return new Request(A,q)}function Tp5(A=0){return new Promise((q,K)=>{if(A)setTimeout(()=>{let Y=Error(`Request did not complete within ${A} ms`);Y.name="TimeoutError",K(Y)},A)})}var I$1={supported:void 0};class vO8{config;configProvider;static create(A){if(typeof A?.handle==="function")return A;return new vO8(A)}constructor(A){if(typeof A==="function")this.configProvider=A().then((q)=>q||{});else this.config=A??{},this.configProvider=Promise.resolve(this.config);if(I$1.supported===void 0)I$1.supported=Boolean(typeof Request<"u"&&"keepalive"in WT7("https://[::1]"))}destroy(){}async handle(A,{abortSignal:q,requestTimeout:K}={}){if(!this.config)this.config=await this.configProvider;let Y=K??this.config.requestTimeout,z=this.config.keepAlive===!0,w=this.config.credentials;if(q?.aborted){let Z=Error("Request aborted");return Z.name="AbortError",Promise.reject(Z)}let _=A.path,$=Gp5.buildQueryString(A.query||{});if($)_+=`?${$}`;if(A.fragment)_+=`#${A.fragment}`;let O="";if(A.username!=null||A.password!=null){let Z=A.username??"",G=A.password??"";O=`${Z}:${G}@`}let{port:H,method:j}=A,J=`${A.protocol}//${O}${A.hostname}${H?`:${H}`:""}${_}`,M=j==="GET"||j==="HEAD"?void 0:A.body,D={body:M,headers:new Headers(A.headers),method:j,credentials:w};if(this.config?.cache)D.cache=this.config.cache;if(M)D.duplex="half";if(typeof AbortController<"u")D.signal=q;if(I$1.supported)D.keepalive=z;if(typeof this.config.requestInit==="function")Object.assign(D,this.config.requestInit(A));let X=()=>{},P=WT7(J,D),W=[fetch(P).then((Z)=>{let G=Z.headers,f={};for(let N of G.entries())f[N[0]]=N[1];if(Z.body==null)return Z.blob().then((N)=>({response:new PT7.HttpResponse({headers:f,reason:Z.statusText,statusCode:Z.status,body:N})}));return{response:new PT7.HttpResponse({headers:f,reason:Z.statusText,statusCode:Z.status,body:Z.body})}}),Tp5(Y)];if(q)W.push(new Promise((Z,G)=>{let f=()=>{let V=Error("Request aborted");V.name="AbortError",G(V)};if(typeof q.addEventListener==="function"){let V=q;V.addEventListener("abort",f,{once:!0}),X=()=>V.removeEventListener("abort",f)}else q.onabort=f}));return Promise.race(W).finally(X)}updateHttpClientConfig(A,q){this.config=void 0,this.configProvider=this.configProvider.then((K)=>{return K[A]=q,K})}httpHandlerConfigs(){return this.config??{}}}var Vp5=async(A)=>{if(typeof Blob==="function"&&A instanceof Blob||A.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await A.arrayBuffer());return Np5(A)}return vp5(A)};async function Np5(A){let q=await kp5(A),K=fp5.fromBase64(q);return new Uint8Array(K)}async function vp5(A){let q=[],K=A.getReader(),Y=!1,z=0;while(!Y){let{done:$,value:O}=await K.read();if(O)q.push(O),z+=O.length;Y=$}let w=new Uint8Array(z),_=0;for(let $ of q)w.set($,_),_+=$.length;return w}function kp5(A){return new Promise((q,K)=>{let Y=new FileReader;Y.onloadend=()=>{if(Y.readyState!==2)return K(Error("Reader aborted too early"));let z=Y.result??"",w=z.indexOf(","),_=w>-1?w+1:z.length;q(z.substring(_))},Y.onabort=()=>K(Error("Read aborted")),Y.onerror=()=>K(Y.error),Y.readAsDataURL(A)})}Ep5.FetchHttpHandler=vO8;Ep5.keepAliveSupport=I$1;Ep5.streamCollector=Vp5});var vT7=C((lp5)=>{var Sp5=aB6(),Cp5=df7(),kO8=WO8(),hp5=sf7(),fT7=qT7(),GT7=ZT7(),Ip5=(A,q,K,Y)=>{let z=A,w={start(){},async transform(_,$){try{let O=new Date(Date.now()+await Y()),H={":date":{type:"timestamp",value:O}},j=await q.sign({message:{body:_,headers:H},priorSignature:z},{signingDate:O});z=j.signature;let J=K.encode({headers:{...H,":chunk-signature":{type:"binary",value:Cp5.fromHex(j.signature)}},body:_});$.enqueue(J)}catch(O){$.error(O)}}};return new TransformStream({...w})};class TT7{messageSigner;eventStreamCodec;systemClockOffsetProvider;constructor(A){this.messageSigner=A.messageSigner,this.eventStreamCodec=new Sp5.EventStreamCodec(A.utf8Encoder,A.utf8Decoder),this.systemClockOffsetProvider=async()=>A.systemClockOffset??0}async handle(A,q,K={}){let Y=q.request,{body:z,headers:w,query:_}=Y;if(!(z instanceof ReadableStream))throw Error("Eventstream payload must be a ReadableStream.");let $=new TransformStream;Y.body=$.readable;let O;try{O=await A(q)}catch(D){throw Y.body.cancel(),D}let j=((w.authorization||"").match(/Signature=([\w]+)$/)||[])[1]||_&&_["X-Amz-Signature"]||"",J=Ip5(j,await this.messageSigner(),this.eventStreamCodec,this.systemClockOffsetProvider);return z.pipeThrough(J).pipeThrough($),O}}var bp5=(A)=>new TT7(A),xp5=()=>(A)=>async(q)=>{let K={...q.input},Y=await A(q),z=Y.output;if(K.SessionId&&z.SessionId==null)z.SessionId=K.SessionId;return Y},up5={step:"initialize",name:"injectSessionIdMiddleware",tags:["WEBSOCKET","EVENT_STREAM"],override:!0},Bp5=(A,q)=>(K)=>(Y)=>{let{request:z}=Y;if(kO8.HttpRequest.isInstance(z)&&A.requestHandler.metadata?.handlerProtocol?.toLowerCase().includes("websocket")){z.protocol="wss:",z.method="GET",z.path=`${z.path}-websocket`;let{headers:w}=z;delete w["content-type"],delete w["x-amz-content-sha256"];for(let _ of Object.keys(w))if(_.indexOf(q.headerPrefix)===0){let $=_.replace(q.headerPrefix,"");z.query[$]=w[_]}if(w["x-amz-user-agent"])z.query["user-agent"]=w["x-amz-user-agent"];z.headers={host:w.host??z.hostname}}return K(Y)},mp5={name:"websocketEndpointMiddleware",tags:["WEBSOCKET","EVENT_STREAM"],relation:"after",toMiddleware:"eventStreamHeaderMiddleware",override:!0},gp5=(A,q)=>({applyToStack:(K)=>{K.addRelativeTo(Bp5(A,q),mp5),K.add(xp5(),up5)}}),VT7=(A)=>A.protocol==="ws:"||A.protocol==="wss:";class NT7{signer;constructor(A){this.signer=A.signer}presign(A,q={}){return this.signer.presign(A,q)}async sign(A,q){if(kO8.HttpRequest.isInstance(A)&&VT7(A))return{...await this.signer.presign({...A,body:""},{...q,expiresIn:60,unsignableHeaders:new Set(Object.keys(A.headers).filter((Y)=>Y!=="host"))}),body:A.body};else return this.signer.sign(A,q)}}var Fp5=(A)=>{let{signer:q}=A;return Object.assign(A,{signer:async(K)=>{let Y=await q(K);if(Qp5(Y))return new NT7({signer:Y});throw Error("Expected WebsocketSignatureV4 signer, please check the client constructor.")}})},Qp5=(A)=>!!A,Up5=2000;class EO8{metadata={handlerProtocol:"websocket/h1.1"};config;configPromise;httpHandler;sockets={};static create(A,q=new GT7.FetchHttpHandler){if(typeof A?.handle==="function")return A;return new EO8(A,q)}constructor(A,q=new GT7.FetchHttpHandler){if(this.httpHandler=q,typeof A==="function")this.config={},this.configPromise=A().then((K)=>this.config=K??{});else this.config=A??{},this.configPromise=Promise.resolve(this.config)}destroy(){for(let[A,q]of Object.entries(this.sockets)){for(let K of q)K.close(1000,"Socket closed through destroy() call");delete this.sockets[A]}}async handle(A){if(!VT7(A))return this.httpHandler.handle(A);let q=hp5.formatUrl(A),K=new WebSocket(q);if(!this.sockets[q])this.sockets[q]=[];this.sockets[q].push(K),K.binaryType="arraybuffer",this.config=await this.configPromise;let{connectionTimeout:Y=Up5}=this.config;await this.waitForReady(K,Y);let{body:z}=A,w=pp5(z),_=this.connect(K,w),$=dp5(_);return{response:new kO8.HttpResponse({statusCode:200,body:$})}}updateHttpClientConfig(A,q){this.configPromise=this.configPromise.then((K)=>{return K[A]=q,K})}httpHandlerConfigs(){return this.config??{}}removeNotUsableSockets(A){this.sockets[A]=(this.sockets[A]??[]).filter((q)=>![WebSocket.CLOSING,WebSocket.CLOSED].includes(q.readyState))}waitForReady(A,q){return new Promise((K,Y)=>{let z=setTimeout(()=>{this.removeNotUsableSockets(A.url),Y({$metadata:{httpStatusCode:500}})},q);A.onopen=()=>{clearTimeout(z),K()}})}connect(A,q){let K=void 0,Y=!1,z=()=>{},w=()=>{};A.onmessage=(O)=>{w({done:!1,value:new Uint8Array(O.data)})},A.onerror=(O)=>{Y=!0,A.close(),z(O)},A.onclose=()=>{if(this.removeNotUsableSockets(A.url),Y)return;if(K)z(K);else w({done:!0,value:void 0})};let _={[Symbol.asyncIterator]:()=>({next:()=>{return new Promise((O,H)=>{w=O,z=H})}})};return(async()=>{try{for await(let O of q)A.send(O)}catch(O){K=O}finally{A.close(1000)}})(),_}}var pp5=(A)=>{if(A[Symbol.asyncIterator])return A;if(cp5(A))return fT7.readableStreamtoIterable(A);return{[Symbol.asyncIterator]:async function*(){yield A}}},dp5=(A)=>typeof ReadableStream==="function"?fT7.iterableToReadableStream(A):A,cp5=(A)=>typeof ReadableStream==="function"&&A instanceof ReadableStream;lp5.WebSocketFetchHandler=EO8;lp5.eventStreamPayloadHandlerProvider=bp5;lp5.getWebSocketPlugin=gp5;lp5.resolveWebSocketConfig=Fp5});var kT7=C((sp5)=>{var ap5=(A)=>Object.assign(A,{eventStreamMarshaller:A.eventStreamSerdeProvider(A)});sp5.resolveEventStreamSerdeConfig=ap5});var IO8=C((zd5)=>{zd5.HttpAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(zd5.HttpAuthLocation||(zd5.HttpAuthLocation={}));zd5.HttpApiKeyAuthLocation=void 0;(function(A){A.HEADER="header",A.QUERY="query"})(zd5.HttpApiKeyAuthLocation||(zd5.HttpApiKeyAuthLocation={}));zd5.EndpointURLScheme=void 0;(function(A){A.HTTP="http",A.HTTPS="https"})(zd5.EndpointURLScheme||(zd5.EndpointURLScheme={}));zd5.AlgorithmId=void 0;(function(A){A.MD5="md5",A.CRC32="crc32",A.CRC32C="crc32c",A.SHA1="sha1",A.SHA256="sha256"})(zd5.AlgorithmId||(zd5.AlgorithmId={}));var ep5=(A)=>{let q=[];if(A.sha256!==void 0)q.push({algorithmId:()=>zd5.AlgorithmId.SHA256,checksumConstructor:()=>A.sha256});if(A.md5!=null)q.push({algorithmId:()=>zd5.AlgorithmId.MD5,checksumConstructor:()=>A.md5});return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Ad5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},qd5=(A)=>{return ep5(A)},Kd5=(A)=>{return Ad5(A)};zd5.FieldPosition=void 0;(function(A){A[A.HEADER=0]="HEADER",A[A.TRAILER=1]="TRAILER"})(zd5.FieldPosition||(zd5.FieldPosition={}));var Yd5="__smithy_context";zd5.IniSectionType=void 0;(function(A){A.PROFILE="profile",A.SSO_SESSION="sso-session",A.SERVICES="services"})(zd5.IniSectionType||(zd5.IniSectionType={}));zd5.RequestHandlerProtocol=void 0;(function(A){A.HTTP_0_9="http/0.9",A.HTTP_1_0="http/1.0",A.TDS_8_0="tds/8.0"})(zd5.RequestHandlerProtocol||(zd5.RequestHandlerProtocol={}));zd5.SMITHY_CONTEXT_KEY=Yd5;zd5.getDefaultClientConfiguration=qd5;zd5.resolveDefaultRuntimeConfig=Kd5});var qm6=C((iP6)=>{var yT7=Qm(),mO8=MN(),xO8=IO8(),Od5=lO(),ET7=JN();class RT7{config;middlewareStack=yT7.constructStack();initConfig;handlers;constructor(A){this.config=A}send(A,q,K){let Y=typeof q!=="function"?q:void 0,z=typeof q==="function"?q:K,w=Y===void 0&&this.config.cacheMiddleware===!0,_;if(w){if(!this.handlers)this.handlers=new WeakMap;let $=this.handlers;if($.has(A.constructor))_=$.get(A.constructor);else _=A.resolveMiddleware(this.middlewareStack,this.config,Y),$.set(A.constructor,_)}else delete this.handlers,_=A.resolveMiddleware(this.middlewareStack,this.config,Y);if(z)_(A).then(($)=>z(null,$.output),($)=>z($)).catch(()=>{});else return _(A).then(($)=>$.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var bO8="***SensitiveInformation***";function uO8(A,q){if(q==null)return q;let K=Od5.NormalizedSchema.of(A);if(K.getMergedTraits().sensitive)return bO8;if(K.isListSchema()){if(!!K.getValueSchema().getMergedTraits().sensitive)return bO8}else if(K.isMapSchema()){if(!!K.getKeySchema().getMergedTraits().sensitive||!!K.getValueSchema().getMergedTraits().sensitive)return bO8}else if(K.isStructSchema()&&typeof q==="object"){let Y=q,z={};for(let[w,_]of K.structIterator())if(Y[w]!=null)z[w]=uO8(_,Y[w]);return z}return q}class gO8{middlewareStack=yT7.constructStack();schema;static classBuilder(){return new ST7}resolveMiddlewareWithContext(A,q,K,{middlewareFn:Y,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,smithyContext:O,additionalContext:H,CommandCtor:j}){for(let P of Y.bind(this)(j,A,q,K))this.middlewareStack.use(P);let J=A.concat(this.middlewareStack),{logger:M}=q,D={logger:M,clientName:z,commandName:w,inputFilterSensitiveLog:_,outputFilterSensitiveLog:$,[xO8.SMITHY_CONTEXT_KEY]:{commandInstance:this,...O},...H},{requestHandler:X}=q;return J.resolve((P)=>X.handle(P.request,K||{}),D)}}class ST7{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(A){this._init=A}ep(A){return this._ep=A,this}m(A){return this._middlewareFn=A,this}s(A,q,K={}){return this._smithyContext={service:A,operation:q,...K},this}c(A={}){return this._additionalContext=A,this}n(A,q){return this._clientName=A,this._commandName=q,this}f(A=(K)=>K,q=(K)=>K){return this._inputFilterSensitiveLog=A,this._outputFilterSensitiveLog=q,this}ser(A){return this._serializer=A,this}de(A){return this._deserializer=A,this}sc(A){return this._operationSchema=A,this._smithyContext.operationSchema=A,this}build(){let A=this,q;return q=class extends gO8{input;static getEndpointParameterInstructions(){return A._ep}constructor(...[K]){super();this.input=K??{},A._init(this),this.schema=A._operationSchema}resolveMiddleware(K,Y,z){let w=A._operationSchema,_=w?.[4]??w?.input,$=w?.[5]??w?.output;return this.resolveMiddlewareWithContext(K,Y,z,{CommandCtor:q,middlewareFn:A._middlewareFn,clientName:A._clientName,commandName:A._commandName,inputFilterSensitiveLog:A._inputFilterSensitiveLog??(w?uO8.bind(null,_):(O)=>O),outputFilterSensitiveLog:A._outputFilterSensitiveLog??(w?uO8.bind(null,$):(O)=>O),smithyContext:A._smithyContext,additionalContext:A._additionalContext})}serialize=A._serializer;deserialize=A._deserializer}}}var Hd5="***SensitiveInformation***",jd5=(A,q)=>{for(let K of Object.keys(A)){let Y=A[K],z=async function(_,$,O){let H=new Y(_);if(typeof $==="function")this.send(H,$);else if(typeof O==="function"){if(typeof $!=="object")throw Error(`Expected http options but got ${typeof $}`);this.send(H,$||{},O)}else return this.send(H,$)},w=(K[0].toLowerCase()+K.slice(1)).replace(/Command$/,"");q.prototype[w]=z}};class lP6 extends Error{$fault;$response;$retryable;$metadata;constructor(A){super(A.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=A.name,this.$fault=A.$fault,this.$metadata=A.$metadata}static isInstance(A){if(!A)return!1;let q=A;return lP6.prototype.isPrototypeOf(q)||Boolean(q.$fault)&&Boolean(q.$metadata)&&(q.$fault==="client"||q.$fault==="server")}static[Symbol.hasInstance](A){if(!A)return!1;let q=A;if(this===lP6)return lP6.isInstance(A);if(lP6.isInstance(A)){if(q.name&&this.name)return this.prototype.isPrototypeOf(A)||q.name===this.name;return this.prototype.isPrototypeOf(A)}return!1}}var CT7=(A,q={})=>{Object.entries(q).filter(([,Y])=>Y!==void 0).forEach(([Y,z])=>{if(A[Y]==null||A[Y]==="")A[Y]=z});let K=A.message||A.Message||"UnknownError";return A.message=K,delete A.Message,A},hT7=({output:A,parsedBody:q,exceptionCtor:K,errorCode:Y})=>{let z=Md5(A),w=z.httpStatusCode?z.httpStatusCode+"":void 0,_=new K({name:q?.code||q?.Code||Y||w||"UnknownError",$fault:"client",$metadata:z});throw CT7(_,q)},Jd5=(A)=>{return({output:q,parsedBody:K,errorCode:Y})=>{hT7({output:q,parsedBody:K,exceptionCtor:A,errorCode:Y})}},Md5=(A)=>({httpStatusCode:A.statusCode,requestId:A.headers["x-amzn-requestid"]??A.headers["x-amzn-request-id"]??A.headers["x-amz-request-id"],extendedRequestId:A.headers["x-amz-id-2"],cfId:A.headers["x-amz-cf-id"]}),Dd5=(A)=>{switch(A){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:30000};default:return{}}},LT7=!1,Xd5=(A)=>{if(A&&!LT7&&parseInt(A.substring(1,A.indexOf(".")))<16)LT7=!0},Pd5=(A)=>{let q=[];for(let K in xO8.AlgorithmId){let Y=xO8.AlgorithmId[K];if(A[Y]===void 0)continue;q.push({algorithmId:()=>Y,checksumConstructor:()=>A[Y]})}return{addChecksumAlgorithm(K){q.push(K)},checksumAlgorithms(){return q}}},Wd5=(A)=>{let q={};return A.checksumAlgorithms().forEach((K)=>{q[K.algorithmId()]=K.checksumConstructor()}),q},Zd5=(A)=>{return{setRetryStrategy(q){A.retryStrategy=q},retryStrategy(){return A.retryStrategy}}},Gd5=(A)=>{let q={};return q.retryStrategy=A.retryStrategy(),q},IT7=(A)=>{return Object.assign(Pd5(A),Zd5(A))},fd5=IT7,Td5=(A)=>{return Object.assign(Wd5(A),Gd5(A))},Vd5=(A)=>Array.isArray(A)?A:[A],bT7=(A)=>{for(let K in A)if(A.hasOwnProperty(K)&&A[K]["#text"]!==void 0)A[K]=A[K]["#text"];else if(typeof A[K]==="object"&&A[K]!==null)A[K]=bT7(A[K]);return A},Nd5=(A)=>{return A!=null};class xT7{trace(){}debug(){}info(){}warn(){}error(){}}function uT7(A,q,K){let Y,z,w;if(typeof q>"u"&&typeof K>"u")Y={},w=A;else if(Y=A,typeof q==="function")return z=q,w=K,Ed5(Y,z,w);else w=q;for(let _ of Object.keys(w)){if(!Array.isArray(w[_])){Y[_]=w[_];continue}BT7(Y,null,w,_)}return Y}var vd5=(A)=>{let q={};for(let[K,Y]of Object.entries(A||{}))q[K]=[,Y];return q},kd5=(A,q)=>{let K={};for(let Y in q)BT7(K,A,q,Y);return K},Ed5=(A,q,K)=>{return uT7(A,Object.entries(K).reduce((Y,[z,w])=>{if(Array.isArray(w))Y[z]=w;else if(typeof w==="function")Y[z]=[q,w()];else Y[z]=[q,w];return Y},{}))},BT7=(A,q,K,Y)=>{if(q!==null){let _=K[Y];if(typeof _==="function")_=[,_];let[$=Ld5,O=yd5,H=Y]=_;if(typeof $==="function"&&$(q[H])||typeof $!=="function"&&!!$)A[Y]=O(q[H]);return}let[z,w]=K[Y];if(typeof w==="function"){let _,$=z===void 0&&(_=w())!=null,O=typeof z==="function"&&!!z(void 0)||typeof z!=="function"&&!!z;if($)A[Y]=_;else if(O)A[Y]=w()}else{let _=z===void 0&&w!=null,$=typeof z==="function"&&!!z(w)||typeof z!=="function"&&!!z;if(_||$)A[Y]=w}},Ld5=(A)=>A!=null,yd5=(A)=>A,Rd5=(A)=>{if(A!==A)return"NaN";switch(A){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return A}},Sd5=(A)=>A.toISOString().replace(".000Z","Z"),BO8=(A)=>{if(A==null)return{};if(Array.isArray(A))return A.filter((q)=>q!=null).map(BO8);if(typeof A==="object"){let q={};for(let K of Object.keys(A)){if(A[K]==null)continue;q[K]=BO8(A[K])}return q}return A};Object.defineProperty(iP6,"collectBody",{enumerable:!0,get:function(){return mO8.collectBody}});Object.defineProperty(iP6,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return mO8.extendedEncodeURIComponent}});Object.defineProperty(iP6,"resolvedPath",{enumerable:!0,get:function(){return mO8.resolvedPath}});iP6.Client=RT7;iP6.Command=gO8;iP6.NoOpLogger=xT7;iP6.SENSITIVE_STRING=Hd5;iP6.ServiceException=lP6;iP6._json=BO8;iP6.convertMap=vd5;iP6.createAggregatedClient=jd5;iP6.decorateServiceException=CT7;iP6.emitWarningIfUnsupportedVersion=Xd5;iP6.getArrayIfSingleItem=Vd5;iP6.getDefaultClientConfiguration=fd5;iP6.getDefaultExtensionConfiguration=IT7;iP6.getValueFromTextNode=bT7;iP6.isSerializableHeaderValue=Nd5;iP6.loadConfigsForDefaultMode=Dd5;iP6.map=uT7;iP6.resolveDefaultRuntimeConfig=Td5;iP6.serializeDateTime=Sd5;iP6.serializeFloat=Rd5;iP6.take=kd5;iP6.throwDefaultError=hT7;iP6.withBaseException=Jd5;Object.keys(ET7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(iP6,A))Object.defineProperty(iP6,A,{enumerable:!0,get:function(){return ET7[A]}})})});var UO8=C((mT7)=>{Object.defineProperty(mT7,"__esModule",{value:!0});mT7.resolveHttpAuthSchemeConfig=mT7.defaultBedrockRuntimeHttpAuthSchemeProvider=mT7.defaultBedrockRuntimeHttpAuthSchemeParametersProvider=void 0;var ed5=O$(),FO8=pw(),QO8=pZ(),Ac5=async(A,q,K)=>{return{operation:(0,QO8.getSmithyContext)(q).operation,region:await(0,QO8.normalizeProvider)(A.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};mT7.defaultBedrockRuntimeHttpAuthSchemeParametersProvider=Ac5;function qc5(A){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"bedrock",region:A.region},propertiesExtractor:(q,K)=>({signingProperties:{config:q,context:K}})}}function Kc5(A){return{schemeId:"smithy.api#httpBearerAuth",propertiesExtractor:({profile:q,filepath:K,configFilepath:Y,ignoreCache:z},w)=>({identityProperties:{profile:q,filepath:K,configFilepath:Y,ignoreCache:z}})}}var Yc5=(A)=>{let q=[];switch(A.operation){default:q.push(qc5(A)),q.push(Kc5(A))}return q};mT7.defaultBedrockRuntimeHttpAuthSchemeProvider=Yc5;var zc5=(A)=>{let q=(0,FO8.memoizeIdentityProvider)(A.token,FO8.isIdentityExpired,FO8.doesIdentityRequireRefresh),K=(0,ed5.resolveAwsSdkSigV4Config)(A);return Object.assign(K,{authSchemePreference:(0,QO8.normalizeProvider)(A.authSchemePreference??[]),token:q})};mT7.resolveHttpAuthSchemeConfig=zc5});var FT7=C((eX2,$c5)=>{$c5.exports={name:"@aws-sdk/client-bedrock-runtime",description:"AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",version:"3.936.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-bedrock-runtime","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo bedrock-runtime"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"3.936.0","@aws-sdk/credential-provider-node":"3.936.0","@aws-sdk/eventstream-handler-node":"3.936.0","@aws-sdk/middleware-eventstream":"3.936.0","@aws-sdk/middleware-host-header":"3.936.0","@aws-sdk/middleware-logger":"3.936.0","@aws-sdk/middleware-recursion-detection":"3.936.0","@aws-sdk/middleware-user-agent":"3.936.0","@aws-sdk/middleware-websocket":"3.936.0","@aws-sdk/region-config-resolver":"3.936.0","@aws-sdk/token-providers":"3.936.0","@aws-sdk/types":"3.936.0","@aws-sdk/util-endpoints":"3.936.0","@aws-sdk/util-user-agent-browser":"3.936.0","@aws-sdk/util-user-agent-node":"3.936.0","@smithy/config-resolver":"^4.4.3","@smithy/core":"^3.18.5","@smithy/eventstream-serde-browser":"^4.2.5","@smithy/eventstream-serde-config-resolver":"^4.3.5","@smithy/eventstream-serde-node":"^4.2.5","@smithy/fetch-http-handler":"^5.3.6","@smithy/hash-node":"^4.2.5","@smithy/invalid-dependency":"^4.2.5","@smithy/middleware-content-length":"^4.2.5","@smithy/middleware-endpoint":"^4.3.12","@smithy/middleware-retry":"^4.4.12","@smithy/middleware-serde":"^4.2.6","@smithy/middleware-stack":"^4.2.5","@smithy/node-config-provider":"^4.3.5","@smithy/node-http-handler":"^4.4.5","@smithy/protocol-http":"^5.3.5","@smithy/smithy-client":"^4.9.8","@smithy/types":"^4.9.0","@smithy/url-parser":"^4.2.5","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.11","@smithy/util-defaults-mode-node":"^4.2.14","@smithy/util-endpoints":"^3.2.5","@smithy/util-middleware":"^4.2.5","@smithy/util-retry":"^4.2.5","@smithy/util-stream":"^4.5.6","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node18":"18.2.4","@types/node":"^18.19.69",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~5.8.3"},engines:{node:">=18.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-bedrock-runtime"}}});var pT7=C((Jc5)=>{var Oc5=aB6(),b$1=g6("stream");class QT7 extends b$1.Transform{priorSignature;messageSigner;eventStreamCodec;systemClockOffsetProvider;constructor(A){super({autoDestroy:!0,readableObjectMode:!0,writableObjectMode:!0,...A});this.priorSignature=A.priorSignature,this.eventStreamCodec=A.eventStreamCodec,this.messageSigner=A.messageSigner,this.systemClockOffsetProvider=A.systemClockOffsetProvider}async _transform(A,q,K){try{let Y=new Date(Date.now()+await this.systemClockOffsetProvider()),z={":date":{type:"timestamp",value:Y}},w=await this.messageSigner.sign({message:{body:A,headers:z},priorSignature:this.priorSignature},{signingDate:Y});this.priorSignature=w.signature;let _=this.eventStreamCodec.encode({headers:{...z,":chunk-signature":{type:"binary",value:Hc5(w.signature)}},body:A});return this.push(_),K()}catch(Y){K(Y)}}}function Hc5(A){let q=Buffer.from(A,"hex");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT)}class UT7{messageSigner;eventStreamCodec;systemClockOffsetProvider;constructor(A){this.messageSigner=A.messageSigner,this.eventStreamCodec=new Oc5.EventStreamCodec(A.utf8Encoder,A.utf8Decoder),this.systemClockOffsetProvider=async()=>A.systemClockOffset??0}async handle(A,q,K={}){let Y=q.request,{body:z,query:w}=Y;if(!(z instanceof b$1.Readable))throw Error("Eventstream payload must be a Readable stream.");let _=z;Y.body=new b$1.PassThrough({objectMode:!0});let O=Y.headers?.authorization?.match(/Signature=([\w]+)$/)?.[1]??w?.["X-Amz-Signature"]??"",H=new QT7({priorSignature:O,eventStreamCodec:this.eventStreamCodec,messageSigner:await this.messageSigner(),systemClockOffsetProvider:this.systemClockOffsetProvider});b$1.pipeline(_,H,Y.body,(J)=>{if(J)throw J});let j;try{j=await A(q)}catch(J){throw Y.body.end(),J}return j}}var jc5=(A)=>new UT7(A);Jc5.eventStreamPayloadHandlerProvider=jc5});var dT7=C((Wc5)=>{var Km6=aB6();function Dc5(A){let q=0,K=0,Y=null,z=null,w=($)=>{if(typeof $!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+$);q=$,K=4,Y=new Uint8Array($),new DataView(Y.buffer).setUint32(0,$,!1)},_=async function*(){let $=A[Symbol.asyncIterator]();while(!0){let{value:O,done:H}=await $.next();if(H){if(!q)return;else if(q===K)yield Y;else throw Error("Truncated event message received.");return}let j=O.length,J=0;while(J<j){if(!Y){let D=j-J;if(!z)z=new Uint8Array(4);let X=Math.min(4-K,D);if(z.set(O.slice(J,J+X),K),K+=X,J+=X,K<4)break;w(new DataView(z.buffer).getUint32(0,!1)),z=null}let M=Math.min(q-K,j-J);if(Y.set(O.slice(J,J+M),K),K+=M,J+=M,q&&q===K)yield Y,Y=null,q=0,K=0}}};return{[Symbol.asyncIterator]:_}}function Xc5(A,q){return async function(K){let{value:Y}=K.headers[":message-type"];if(Y==="error"){let z=Error(K.headers[":error-message"].value||"UnknownError");throw z.name=K.headers[":error-code"].value,z}else if(Y==="exception"){let z=K.headers[":exception-type"].value,w={[z]:K},_=await A(w);if(_.$unknown){let $=Error(q(K.body));throw $.name=z,$}throw _[z]}else if(Y==="event"){let z={[K.headers[":event-type"].value]:K},w=await A(z);if(w.$unknown)return;return w}else throw Error(`Unrecognizable event type: ${K.headers[":event-type"].value}`)}}class pO8{eventStreamCodec;utfEncoder;constructor({utf8Encoder:A,utf8Decoder:q}){this.eventStreamCodec=new Km6.EventStreamCodec(A,q),this.utfEncoder=A}deserialize(A,q){let K=Dc5(A);return new Km6.SmithyMessageDecoderStream({messageStream:new Km6.MessageDecoderStream({inputStream:K,decoder:this.eventStreamCodec}),deserializer:Xc5(q,this.utfEncoder)})}serialize(A,q){return new Km6.MessageEncoderStream({messageStream:new Km6.SmithyMessageEncoderStream({inputStream:A,serializer:q}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}var Pc5=(A)=>new pO8(A);Wc5.EventStreamMarshaller=pO8;Wc5.eventStreamSerdeProvider=Pc5});var cT7=C((vc5)=>{var fc5=dT7(),Tc5=g6("stream");async function*Vc5(A){let q=!1,K=!1,Y=[];A.on("error",(z)=>{if(!q)q=!0;if(z)throw z}),A.on("data",(z)=>{Y.push(z)}),A.on("end",()=>{q=!0});while(!K){let z=await new Promise((w)=>setTimeout(()=>w(Y.shift()),0));if(z)yield z;K=q&&Y.length===0}}class dO8{universalMarshaller;constructor({utf8Encoder:A,utf8Decoder:q}){this.universalMarshaller=new fc5.EventStreamMarshaller({utf8Decoder:q,utf8Encoder:A})}deserialize(A,q){let K=typeof A[Symbol.asyncIterator]==="function"?A:Vc5(A);return this.universalMarshaller.deserialize(K,q)}serialize(A,q){return Tc5.Readable.from(this.universalMarshaller.serialize(A,q))}}var Nc5=(A)=>new dO8(A);vc5.EventStreamMarshaller=dO8;vc5.eventStreamSerdeProvider=Nc5});var lT7=C((yc5)=>{var Lc5=(A)=>typeof ArrayBuffer==="function"&&A instanceof ArrayBuffer||Object.prototype.toString.call(A)==="[object ArrayBuffer]";yc5.isArrayBuffer=Lc5});var lO8=C((Ic5)=>{var Sc5=lT7(),cO8=g6("buffer"),Cc5=(A,q=0,K=A.byteLength-q)=>{if(!Sc5.isArrayBuffer(A))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof A} (${A})`);return cO8.Buffer.from(A,q,K)},hc5=(A,q)=>{if(typeof A!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof A} (${A})`);return q?cO8.Buffer.from(A,q):cO8.Buffer.from(A)};Ic5.fromArrayBuffer=Cc5;Ic5.fromString=hc5});var rT7=C((iT7)=>{Object.defineProperty(iT7,"__esModule",{value:!0});iT7.fromBase64=void 0;var uc5=lO8(),Bc5=/^[A-Za-z0-9+/]*={0,2}$/,mc5=(A)=>{if(A.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!Bc5.exec(A))throw TypeError("Invalid base64 string.");let q=(0,uc5.fromString)(A,"base64");return new Uint8Array(q.buffer,q.byteOffset,q.byteLength)};iT7.fromBase64=mc5});var sT7=C((oT7)=>{Object.defineProperty(oT7,"__esModule",{value:!0});oT7.toBase64=void 0;var gc5=lO8(),Fc5=Z2(),Qc5=(A)=>{let q;if(typeof A==="string")q=(0,Fc5.fromUtf8)(A);else q=A;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,gc5.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("base64")};oT7.toBase64=Qc5});var AV7=C((Ym6)=>{var tT7=rT7(),eT7=sT7();Object.keys(tT7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ym6,A))Object.defineProperty(Ym6,A,{enumerable:!0,get:function(){return tT7[A]}})});Object.keys(eT7).forEach(function(A){if(A!=="default"&&!Object.prototype.hasOwnProperty.call(Ym6,A))Object.defineProperty(Ym6,A,{enumerable:!0,get:function(){return eT7[A]}})})});var WV7=C((XV7)=>{Object.defineProperty(XV7,"__esModule",{value:!0});XV7.ruleSet=void 0;var JV7="required",Yg="fn",zg="argv",rP6="ref",qV7=!0,KV7="isSet",wm6="booleanEquals",nP6="error",zm6="endpoint",nf="tree",iO8="PartitionResult",YV7={[JV7]:!1,type:"string"},zV7={[JV7]:!0,default:!1,type:"boolean"},wV7={[rP6]:"Endpoint"},MV7={[Yg]:wm6,[zg]:[{[rP6]:"UseFIPS"},!0]},DV7={[Yg]:wm6,[zg]:[{[rP6]:"UseDualStack"},!0]},Kg={},_V7={[Yg]:"getAttr",[zg]:[{[rP6]:iO8},"supportsFIPS"]},$V7={[Yg]:wm6,[zg]:[!0,{[Yg]:"getAttr",[zg]:[{[rP6]:iO8},"supportsDualStack"]}]},OV7=[MV7],HV7=[DV7],jV7=[{[rP6]:"Region"}],Uc5={version:"1.0",parameters:{Region:YV7,UseDualStack:zV7,UseFIPS:zV7,Endpoint:YV7},rules:[{conditions:[{[Yg]:KV7,[zg]:[wV7]}],rules:[{conditions:OV7,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:nP6},{rules:[{conditions:HV7,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:nP6},{endpoint:{url:wV7,properties:Kg,headers:Kg},type:zm6}],type:nf}],type:nf},{rules:[{conditions:[{[Yg]:KV7,[zg]:jV7}],rules:[{conditions:[{[Yg]:"aws.partition",[zg]:jV7,assign:iO8}],rules:[{conditions:[MV7,DV7],rules:[{conditions:[{[Yg]:wm6,[zg]:[qV7,_V7]},$V7],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Kg,headers:Kg},type:zm6}],type:nf}],type:nf},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:nP6}],type:nf},{conditions:OV7,rules:[{conditions:[{[Yg]:wm6,[zg]:[_V7,qV7]}],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Kg,headers:Kg},type:zm6}],type:nf}],type:nf},{error:"FIPS is enabled but this partition does not support FIPS",type:nP6}],type:nf},{conditions:HV7,rules:[{conditions:[$V7],rules:[{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Kg,headers:Kg},type:zm6}],type:nf}],type:nf},{error:"DualStack is enabled but this partition does not support DualStack",type:nP6}],type:nf},{rules:[{endpoint:{url:"https://bedrock-runtime.{Region}.{PartitionResult#dnsSuffix}",properties:Kg,headers:Kg},type:zm6}],type:nf}],type:nf}],type:nf},{error:"Invalid Configuration: Missing Region",type:nP6}],type:nf}]};XV7.ruleSet=Uc5});var fV7=C((ZV7)=>{Object.defineProperty(ZV7,"__esModule",{value:!0});ZV7.defaultEndpointResolver=void 0;var pc5=pm(),nO8=Ab(),dc5=WV7(),cc5=new nO8.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),lc5=(A,q={})=>{return cc5.get(A,()=>(0,nO8.resolveEndpoint)(dc5.ruleSet,{endpointParams:A,logger:q.logger}))};ZV7.defaultEndpointResolver=lc5;nO8.customEndpointFunctions.aws=pc5.awsEndpointFunctions});var kV7=C((NV7)=>{Object.defineProperty(NV7,"__esModule",{value:!0});NV7.getRuntimeConfig=void 0;var ic5=O$(),nc5=Lc(),rc5=pw(),oc5=qm6(),ac5=LR(),TV7=AV7(),VV7=Z2(),sc5=UO8(),tc5=fV7(),ec5=(A)=>{return{apiVersion:"2023-09-30",base64Decoder:A?.base64Decoder??TV7.fromBase64,base64Encoder:A?.base64Encoder??TV7.toBase64,disableHostPrefix:A?.disableHostPrefix??!1,endpointProvider:A?.endpointProvider??tc5.defaultEndpointResolver,extensions:A?.extensions??[],httpAuthSchemeProvider:A?.httpAuthSchemeProvider??sc5.defaultBedrockRuntimeHttpAuthSchemeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(q)=>q.getIdentityProvider("aws.auth#sigv4"),signer:new ic5.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(q)=>q.getIdentityProvider("smithy.api#httpBearerAuth"),signer:new rc5.HttpBearerAuthSigner}],logger:A?.logger??new oc5.NoOpLogger,protocol:A?.protocol??new nc5.AwsRestJsonProtocol({defaultNamespace:"com.amazonaws.bedrockruntime"}),serviceId:A?.serviceId??"Bedrock Runtime",urlParser:A?.urlParser??ac5.parseUrl,utf8Decoder:A?.utf8Decoder??VV7.fromUtf8,utf8Encoder:A?.utf8Encoder??VV7.toUtf8}};NV7.getRuntimeConfig=ec5});var hV7=C((SV7)=>{Object.defineProperty(SV7,"__esModule",{value:!0});SV7.getRuntimeConfig=void 0;var Al5=d2(),ql5=Al5.__importDefault(FT7()),rO8=O$(),Kl5=i36(),Yl5=pT7(),EV7=r21(),LV7=Nc(),x$1=NJ(),zl5=pw(),wl5=cT7(),_l5=vc(),yV7=h0(),Y56=HN(),RV7=$N(),$l5=kc(),Ol5=lm(),Hl5=kV7(),jl5=qm6(),Jl5=Rc(),Ml5=qm6(),Dl5=(A)=>{(0,Ml5.emitWarningIfUnsupportedVersion)(process.version);let q=(0,Jl5.resolveDefaultsModeConfig)(A),K=()=>q().then(jl5.loadConfigsForDefaultMode),Y=(0,Hl5.getRuntimeConfig)(A);(0,rO8.emitWarningIfUnsupportedVersion)(process.version);let z={profile:A?.profile,logger:Y.logger,signingName:"bedrock"};return{...Y,...A,runtime:"node",defaultsMode:q,authSchemePreference:A?.authSchemePreference??(0,Y56.loadConfig)(rO8.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,z),bodyLengthChecker:A?.bodyLengthChecker??$l5.calculateBodyLength,credentialDefaultProvider:A?.credentialDefaultProvider??Kl5.defaultProvider,defaultUserAgentProvider:A?.defaultUserAgentProvider??(0,LV7.createDefaultUserAgentProvider)({serviceId:Y.serviceId,clientVersion:ql5.default.version}),eventStreamPayloadHandlerProvider:A?.eventStreamPayloadHandlerProvider??Yl5.eventStreamPayloadHandlerProvider,eventStreamSerdeProvider:A?.eventStreamSerdeProvider??wl5.eventStreamSerdeProvider,httpAuthSchemes:A?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(w)=>w.getIdentityProvider("aws.auth#sigv4"),signer:new rO8.AwsSdkSigV4Signer},{schemeId:"smithy.api#httpBearerAuth",identityProvider:(w)=>w.getIdentityProvider("smithy.api#httpBearerAuth")||(async(_)=>{try{return await(0,EV7.fromEnvSigningName)({signingName:"bedrock"})()}catch($){return await(0,EV7.nodeProvider)(_)(_)}}),signer:new zl5.HttpBearerAuthSigner}],maxAttempts:A?.maxAttempts??(0,Y56.loadConfig)(yV7.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,A),region:A?.region??(0,Y56.loadConfig)(x$1.NODE_REGION_CONFIG_OPTIONS,{...x$1.NODE_REGION_CONFIG_FILE_OPTIONS,...z}),requestHandler:RV7.NodeHttp2Handler.create(A?.requestHandler??(async()=>({...await K(),disableConcurrentStreams:!0}))),retryMode:A?.retryMode??(0,Y56.loadConfig)({...yV7.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await K()).retryMode||Ol5.DEFAULT_RETRY_MODE},A),sha256:A?.sha256??_l5.Hash.bind(null,"sha256"),streamCollector:A?.streamCollector??RV7.streamCollector,useDualstackEndpoint:A?.useDualstackEndpoint??(0,Y56.loadConfig)(x$1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,z),useFipsEndpoint:A?.useFipsEndpoint??(0,Y56.loadConfig)(x$1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,z),userAgentAppId:A?.userAgentAppId??(0,Y56.loadConfig)(LV7.NODE_APP_ID_CONFIG_OPTIONS,z)}};SV7.getRuntimeConfig=Dl5});var uV7=C((fl5)=>{var Xl5=IO8(),Pl5=(A)=>{return{setHttpHandler(q){A.httpHandler=q},httpHandler(){return A.httpHandler},updateHttpClientConfig(q,K){A.httpHandler?.updateHttpClientConfig(q,K)},httpHandlerConfigs(){return A.httpHandler.httpHandlerConfigs()}}},Wl5=(A)=>{return{httpHandler:A.httpHandler()}};class IV7{name;kind;values;constructor({name:A,kind:q=Xl5.FieldPosition.HEADER,values:K=[]}){this.name=A,this.kind=q,this.values=K}add(A){this.values.push(A)}set(A){this.values=A}remove(A){this.values=this.values.filter((q)=>q!==A)}toString(){return this.values.map((A)=>A.includes(",")||A.includes(" ")?`"${A}"`:A).join(", ")}get(){return this.values}}class bV7{entries={};encoding;constructor({fields:A=[],encoding:q="utf-8"}){A.forEach(this.setField.bind(this)),this.encoding=q}setField(A){this.entries[A.name.toLowerCase()]=A}getField(A){return this.entries[A.toLowerCase()]}removeField(A){delete this.entries[A.toLowerCase()]}getByType(A){return Object.values(this.entries).filter((q)=>q.kind===A)}}class u$1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(A){this.method=A.method||"GET",this.hostname=A.hostname||"localhost",this.port=A.port,this.query=A.query||{},this.headers=A.headers||{},this.body=A.body,this.protocol=A.protocol?A.protocol.slice(-1)!==":"?`${A.protocol}:`:A.protocol:"https:",this.path=A.path?A.path.charAt(0)!=="/"?`/${A.path}`:A.path:"/",this.username=A.username,this.password=A.password,this.fragment=A.fragment}static clone(A){let q=new u$1({...A,headers:{...A.headers}});if(q.query)q.query=Zl5(q.query);return q}static isInstance(A){if(!A)return!1;let q=A;return"method"in q&&"protocol"in q&&"hostname"in q&&"path"in q&&typeof q.query==="object"&&typeof q.headers==="object"}clone(){return u$1.clone(this)}}function Zl5(A){return Object.keys(A).reduce((q,K)=>{let Y=A[K];return{...q,[K]:Array.isArray(Y)?[...Y]:Y}},{})}class xV7{statusCode;reason;headers;body;constructor(A){this.statusCode=A.statusCode,this.reason=A.reason,this.headers=A.headers||{},this.body=A.body}static isInstance(A){if(!A)return!1;let q=A;return typeof q.statusCode==="number"&&typeof q.headers==="object"}}function Gl5(A){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(A)}fl5.Field=IV7;fl5.Fields=bV7;fl5.HttpRequest=u$1;fl5.HttpResponse=xV7;fl5.getHttpHandlerExtensionConfiguration=Pl5;fl5.isValidHostname=Gl5;fl5.resolveHttpHandlerRuntimeConfig=Wl5});var jO1=C((mH8)=>{var oV7=qf7(),BV7=Dc(),yl5=Xc(),Rl5=Pc(),mV7=cm(),aV7=vT7(),Sl5=NJ(),B$1=pw(),GN=lO(),Cl5=kT7(),hl5=Vc(),Jb=qb(),gV7=h0(),B0=qm6(),FV7=UO8(),Il5=hV7(),QV7=Kb(),UV7=uV7(),bl5=(A)=>{return Object.assign(A,{useDualstackEndpoint:A.useDualstackEndpoint??!1,useFipsEndpoint:A.useFipsEndpoint??!1,defaultSigningName:"bedrock"})},wg={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},xl5=(A)=>{let{httpAuthSchemes:q,httpAuthSchemeProvider:K,credentials:Y,token:z}=A;return{setHttpAuthScheme(w){let _=q.findIndex(($)=>$.schemeId===w.schemeId);if(_===-1)q.push(w);else q.splice(_,1,w)},httpAuthSchemes(){return q},setHttpAuthSchemeProvider(w){K=w},httpAuthSchemeProvider(){return K},setCredentials(w){Y=w},credentials(){return Y},setToken(w){z=w},token(){return z}}},ul5=(A)=>{return{httpAuthSchemes:A.httpAuthSchemes(),httpAuthSchemeProvider:A.httpAuthSchemeProvider(),credentials:A.credentials(),token:A.token()}},Bl5=(A,q)=>{let K=Object.assign(QV7.getAwsRegionExtensionConfiguration(A),B0.getDefaultExtensionConfiguration(A),UV7.getHttpHandlerExtensionConfiguration(A),xl5(A));return q.forEach((Y)=>Y.configure(K)),Object.assign(A,QV7.resolveAwsRegionExtensionConfiguration(K),B0.resolveDefaultRuntimeConfig(K),UV7.resolveHttpHandlerRuntimeConfig(K),ul5(K))};class g$1 extends B0.Client{config;constructor(...[A]){let q=Il5.getRuntimeConfig(A||{});super(q);this.initConfig=q;let K=bl5(q),Y=mV7.resolveUserAgentConfig(K),z=gV7.resolveRetryConfig(Y),w=Sl5.resolveRegionConfig(z),_=BV7.resolveHostHeaderConfig(w),$=Jb.resolveEndpointConfig(_),O=Cl5.resolveEventStreamSerdeConfig($),H=FV7.resolveHttpAuthSchemeConfig(O),j=oV7.resolveEventStreamConfig(H),J=aV7.resolveWebSocketConfig(j),M=Bl5(J,A?.extensions||[]);this.config=M,this.middlewareStack.use(GN.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(mV7.getUserAgentPlugin(this.config)),this.middlewareStack.use(gV7.getRetryPlugin(this.config)),this.middlewareStack.use(hl5.getContentLengthPlugin(this.config)),this.middlewareStack.use(BV7.getHostHeaderPlugin(this.config)),this.middlewareStack.use(yl5.getLoggerPlugin(this.config)),this.middlewareStack.use(Rl5.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(B$1.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:FV7.defaultBedrockRuntimeHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(D)=>new B$1.DefaultIdentityProviderConfig({"aws.auth#sigv4":D.credentials,"smithy.api#httpBearerAuth":D.token})})),this.middlewareStack.use(B$1.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}var fN=class A extends B0.ServiceException{constructor(q){super(q);Object.setPrototypeOf(this,A.prototype)}},sV7=class A extends fN{name="AccessDeniedException";$fault="client";constructor(q){super({name:"AccessDeniedException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},tV7=class A extends fN{name="InternalServerException";$fault="server";constructor(q){super({name:"InternalServerException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},eV7=class A extends fN{name="ThrottlingException";$fault="client";constructor(q){super({name:"ThrottlingException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},AN7=class A extends fN{name="ValidationException";$fault="client";constructor(q){super({name:"ValidationException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},qN7=class A extends fN{name="ConflictException";$fault="client";constructor(q){super({name:"ConflictException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},KN7=class A extends fN{name="ResourceNotFoundException";$fault="client";constructor(q){super({name:"ResourceNotFoundException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},YN7=class A extends fN{name="ServiceQuotaExceededException";$fault="client";constructor(q){super({name:"ServiceQuotaExceededException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},zN7=class A extends fN{name="ServiceUnavailableException";$fault="server";constructor(q){super({name:"ServiceUnavailableException",$fault:"server",...q});Object.setPrototypeOf(this,A.prototype)}},wN7=class A extends fN{name="ModelErrorException";$fault="client";originalStatusCode;resourceName;constructor(q){super({name:"ModelErrorException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.originalStatusCode=q.originalStatusCode,this.resourceName=q.resourceName}},_N7=class A extends fN{name="ModelNotReadyException";$fault="client";$retryable={};constructor(q){super({name:"ModelNotReadyException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},$N7=class A extends fN{name="ModelTimeoutException";$fault="client";constructor(q){super({name:"ModelTimeoutException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype)}},ON7=class A extends fN{name="ModelStreamErrorException";$fault="client";originalStatusCode;originalMessage;constructor(q){super({name:"ModelStreamErrorException",$fault:"client",...q});Object.setPrototypeOf(this,A.prototype),this.originalStatusCode=q.originalStatusCode,this.originalMessage=q.originalMessage}},ml5="Accept",gl5="AccessDeniedException",Fl5="ApplyGuardrail",Ql5="ApplyGuardrailRequest",Ul5="ApplyGuardrailResponse",pl5="AsyncInvokeMessage",dl5="AsyncInvokeOutputDataConfig",cl5="AsyncInvokeSummary",ll5="AsyncInvokeS3OutputDataConfig",il5="AsyncInvokeSummaries",nl5="AnyToolChoice",rl5="AutoToolChoice",ol5="Body",al5="BidirectionalInputPayloadPart",sl5="BidirectionalOutputPayloadPart",tl5="Citation",el5="ContentBlocks",Ai5="ContentBlockDelta",qi5="ContentBlockDeltaEvent",Ki5="ContentBlockStart",Yi5="ContentBlockStartEvent",zi5="ContentBlockStopEvent",wi5="ContentBlock",_i5="CitationsConfig",$i5="CitationsContentBlock",Oi5="CitationsDelta",Hi5="ConflictException",ji5="CitationGeneratedContent",Ji5="CitationGeneratedContentList",Mi5="CitationLocation",Di5="ConverseMetrics",Xi5="ConverseOutput",Pi5="CachePointBlock",Wi5="ConverseRequest",Zi5="ConverseResponse",Gi5="ConverseStream",fi5="CitationSourceContent",Ti5="CitationSourceContentDelta",Vi5="CitationSourceContentList",Ni5="CitationSourceContentListDelta",vi5="ConverseStreamMetrics",ki5="ConverseStreamMetadataEvent",Ei5="ConverseStreamOutput",Li5="ConverseStreamRequest",yi5="ConverseStreamResponse",Ri5="ConverseStreamTrace",Si5="ConverseTrace",Ci5="CountTokensInput",hi5="ConverseTokensRequest",Ii5="CountTokensRequest",bi5="CountTokensResponse",aO8="Content-Type",xi5="CountTokens",ui5="Citations",Bi5="Converse",mi5="DocumentBlock",gi5="DocumentContentBlocks",Fi5="DocumentContentBlock",Qi5="DocumentCharLocation",Ui5="DocumentChunkLocation",pi5="DocumentPageLocation",di5="DocumentSource",ci5="GuardrailAssessment",li5="GetAsyncInvoke",ii5="GetAsyncInvokeRequest",ni5="GetAsyncInvokeResponse",ri5="GuardrailAssessmentList",oi5="GuardrailAssessmentListMap",ai5="GuardrailAssessmentMap",si5="GuardrailAutomatedReasoningDifferenceScenarioList",ti5="GuardrailAutomatedReasoningFinding",ei5="GuardrailAutomatedReasoningFindingList",An5="GuardrailAutomatedReasoningImpossibleFinding",qn5="GuardrailAutomatedReasoningInvalidFinding",Kn5="GuardrailAutomatedReasoningInputTextReference",Yn5="GuardrailAutomatedReasoningInputTextReferenceList",zn5="GuardrailAutomatedReasoningLogicWarning",wn5="GuardrailAutomatedReasoningNoTranslationsFinding",_n5="GuardrailAutomatedReasoningPolicyAssessment",$n5="GuardrailAutomatedReasoningRule",On5="GuardrailAutomatedReasoningRuleList",Hn5="GuardrailAutomatedReasoningScenario",jn5="GuardrailAutomatedReasoningSatisfiableFinding",Jn5="GuardrailAutomatedReasoningStatementList",Mn5="GuardrailAutomatedReasoningStatementLogicContent",Dn5="GuardrailAutomatedReasoningStatementNaturalLanguageContent",Xn5="GuardrailAutomatedReasoningStatement",Pn5="GuardrailAutomatedReasoningTranslation",Wn5="GuardrailAutomatedReasoningTranslationAmbiguousFinding",Zn5="GuardrailAutomatedReasoningTooComplexFinding",Gn5="GuardrailAutomatedReasoningTranslationList",fn5="GuardrailAutomatedReasoningTranslationOption",Tn5="GuardrailAutomatedReasoningTranslationOptionList",Vn5="GuardrailAutomatedReasoningValidFinding",Nn5="GuardrailConfiguration",vn5="GuardrailContentBlock",kn5="GuardrailContentBlockList",En5="GuardrailConverseContentBlock",Ln5="GuardrailContentFilter",yn5="GuardrailContentFilterList",Rn5="GuardrailContextualGroundingFilter",Sn5="GuardrailContextualGroundingFilters",Cn5="GuardrailContextualGroundingPolicyAssessment",hn5="GuardrailConverseImageBlock",In5="GuardrailConverseImageSource",bn5="GuardrailContentPolicyAssessment",xn5="GuardrailConverseTextBlock",un5="GuardrailCustomWord",Bn5="GuardrailCustomWordList",mn5="GuardrailCoverage",gn5="GuardrailImageBlock",Fn5="GuardrailImageCoverage",Qn5="GuardrailInvocationMetrics",Un5="GuardrailImageSource",pn5="GuardrailManagedWord",dn5="GuardrailManagedWordList",cn5="GuardrailOutputContent",ln5="GuardrailOutputContentList",in5="GuardrailPiiEntityFilter",nn5="GuardrailPiiEntityFilterList",rn5="GuardrailRegexFilter",on5="GuardrailRegexFilterList",an5="GuardrailStreamConfiguration",sn5="GuardrailSensitiveInformationPolicyAssessment",tn5="GuardrailTopic",en5="GuardrailTraceAssessment",Ar5="GuardrailTextBlock",qr5="GuardrailTextCharactersCoverage",Kr5="GuardrailTopicList",Yr5="GuardrailTopicPolicyAssessment",zr5="GuardrailUsage",wr5="GuardrailWordPolicyAssessment",_r5="ImageBlock",$r5="InferenceConfiguration",Or5="InvokeModel",Hr5="InvokeModelRequest",jr5="InvokeModelResponse",Jr5="InvokeModelTokensRequest",Mr5="InvokeModelWithBidirectionalStream",Dr5="InvokeModelWithBidirectionalStreamInput",Xr5="InvokeModelWithBidirectionalStreamOutput",Pr5="InvokeModelWithBidirectionalStreamRequest",Wr5="InvokeModelWithBidirectionalStreamResponse",Zr5="InvokeModelWithResponseStream",Gr5="InvokeModelWithResponseStreamRequest",fr5="InvokeModelWithResponseStreamResponse",Tr5="ImageSource",Vr5="InternalServerException",Nr5="ListAsyncInvokes",vr5="ListAsyncInvokesRequest",kr5="ListAsyncInvokesResponse",Er5="Message",Lr5="ModelErrorException",yr5="ModelInputPayload",Rr5="ModelNotReadyException",Sr5="MessageStartEvent",Cr5="ModelStreamErrorException",hr5="MessageStopEvent",Ir5="ModelTimeoutException",br5="Messages",xr5="PartBody",ur5="PerformanceConfiguration",Br5="PayloadPart",mr5="PromptRouterTrace",gr5="PromptVariableMap",Fr5="PromptVariableValues",Qr5="ReasoningContentBlock",Ur5="ReasoningContentBlockDelta",pr5="RequestMetadata",dr5="ResourceNotFoundException",cr5="ResponseStream",lr5="ReasoningTextBlock",ir5="StartAsyncInvoke",nr5="StartAsyncInvokeRequest",rr5="StartAsyncInvokeResponse",or5="SystemContentBlocks",ar5="SystemContentBlock",sr5="S3Location",tr5="ServiceQuotaExceededException",er5="SearchResultBlock",Ao5="SearchResultContentBlock",qo5="SearchResultContentBlocks",Ko5="SearchResultLocation",Yo5="ServiceTier",zo5="SpecificToolChoice",wo5="SystemTool",_o5="ServiceUnavailableException",$o5="Tag",Oo5="ToolConfiguration",Ho5="ToolChoice",jo5="ThrottlingException",Jo5="ToolInputSchema",Mo5="TagList",Do5="ToolResultBlock",Xo5="ToolResultBlocksDelta",Po5="ToolResultBlockDelta",Wo5="ToolResultBlockStart",Zo5="ToolResultContentBlocks",Go5="ToolResultContentBlock",fo5="ToolSpecification",To5="TokenUsage",Vo5="ToolUseBlock",No5="ToolUseBlockDelta",vo5="ToolUseBlockStart",ko5="Tools",Eo5="Tool",Lo5="VideoBlock",yo5="ValidationException",Ro5="VideoSource",So5="WebLocation",Co5="X-Amzn-Bedrock-Accept",ho5="X-Amzn-Bedrock-Content-Type",HN7="X-Amzn-Bedrock-GuardrailIdentifier",jN7="X-Amzn-Bedrock-GuardrailVersion",F$1="X-Amzn-Bedrock-PerformanceConfig-Latency",Q$1="X-Amzn-Bedrock-Service-Tier",JN7="X-Amzn-Bedrock-Trace",mt="action",Io5="asyncInvokeSummaries",sO8="additionalModelRequestFields",MN7="additionalModelResponseFieldPaths",DN7="additionalModelResponseFields",XN7="actionReason",bo5="automatedReasoningPolicy",xo5="automatedReasoningPolicyUnits",uo5="automatedReasoningPolicies",PN7="accept",Bo5="any",mo5="assessments",go5="auto",gt="bytes",WN7="bucketOwner",w56="body",_g="client",Fo5="contentBlockDelta",tO8="contentBlockIndex",Qo5="contentBlockStart",Uo5="contentBlockStop",po5="citationsContent",do5="claimsFalseScenario",co5="contextualGroundingPolicy",lo5="contextualGroundingPolicyUnits",io5="contentPolicy",no5="contentPolicyImageUnits",ro5="contentPolicyUnits",eO8="cachePoint",ZN7="contradictingRules",oo5="cacheReadInputTokens",AH8="clientRequestToken",U$1="contentType",GN7="claimsTrueScenario",ao5="customWords",so5="cacheWriteInputTokens",qH8="chunk",KH8="citations",to5="citation",fN7="claims",oP6="content",eo5="context",TN7="confidence",Aa5="converse",qa5="delta",Ka5="documentChar",Ya5="documentChunk",YH8="documentIndex",za5="documentPage",wa5="differenceScenarios",_56="detected",_a5="description",$a5="domain",VN7="document",lR="error",NN7="endTime",Oa5="enabled",p$1="end",$m6="format",vN7="failureMessage",Ha5="filterStrength",ja5="findings",kN7="filters",EN7="guardrail",LN7="guardrailCoverage",yN7="guardrailConfig",RN7="guardContent",Om6="guardrailIdentifier",Ja5="guardrailProcessingLatency",Hm6="guardrailVersion",SN7="guarded",$g="http",iR="httpError",SM="httpHeader",z56="httpQuery",zH8="input",d$1="invocationArn",Ma5="inputAssessment",CN7="inferenceConfig",Da5="invocationMetrics",Xa5="invokedModelId",Pa5="invokeModel",Wa5="inputSchema",wH8="internalServerException",hN7="inputTokens",Za5="identifier",Ga5="images",c$1="image",fa5="impossible",Ta5="invalid",IN7="json",Va5="key",Na5="kmsKeyId",bN7="location",xN7="latencyMs",uN7="lastModifiedTime",l$1="logicWarning",va5="latency",ka5="logic",vE="message",BN7="modelArn",$56="modelId",Ea5="modelInput",La5="modelOutput",pV7="maxResults",ya5="messageStart",_H8="modelStreamErrorException",Ra5="messageStop",Sa5="maxTokens",mN7="modelTimeoutException",Ca5="managedWordLists",i$1="match",$H8="messages",gN7="metrics",ha5="metadata",Ft="name",Ia5="naturalLanguage",oO8="nextToken",ba5="noTranslations",xa5="outputs",ua5="outputAssessments",OH8="outputDataConfig",Ba5="originalMessage",ma5="outputScope",FN7="originalStatusCode",ga5="outputTokens",Fa5="options",Qa5="output",QN7="premises",n$1="performanceConfig",r$1="performanceConfigLatency",Ua5="piiEntities",UN7="promptRouter",pN7="promptVariables",pa5="policyVersionArn",dN7="qualifiers",da5="regex",cN7="reasoningContent",lN7="redactedContent",iN7="requestMetadata",ca5="resourceName",la5="reasoningText",ia5="regexes",nN7="role",mc="source",dV7="sortBy",rN7="sourceContent",cV7="statusEquals",na5="sensitiveInformationPolicy",ra5="sensitiveInformationPolicyFreeUnits",oa5="sensitiveInformationPolicyUnits",HH8="s3Location",lV7="sortOrder",aa5="s3OutputDataConfig",sa5="streamProcessingMode",oN7="stopReason",ta5="searchResultIndex",ea5="searchResultLocation",aN7="searchResult",As5="supportingRules",qs5="stopSequences",sN7="submitTime",iV7="submitTimeAfter",nV7="submitTimeBefore",Qt="serviceTier",Ks5="systemTool",Ys5="s3Uri",jH8="serviceUnavailableException",zs5="satisfiable",ws5="score",tN7="server",eN7="signature",Av7="smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime",o$1="status",jm6="start",_s5="statements",$s5="stream",a$1="streaming",JH8="system",nR="type",Os5="translationAmbiguous",MH8="toolConfig",Hs5="textCharacters",js5="toolChoice",Js5="tooComplex",DH8="throttlingException",Ms5="topicPolicy",Ds5="topicPolicyUnits",Xs5="topP",XH8="toolResult",Ps5="toolSpec",Ws5="totalTokens",PH8="toolUse",s$1="toolUseId",Zs5="tags",CM="text",Gs5="temperature",fs5="threshold",WH8="title",qv7="total",Ts5="tools",Vs5="tool",Ns5="topics",aP6="trace",t$1="translation",vs5="translations",e$1="usage",ks5="untranslatedClaims",Es5="untranslatedPremises",Ls5="uri",ys5="url",Rs5="value",ZH8="validationException",Ss5="valid",Kv7="video",Cs5="web",hs5="wordPolicy",Is5="wordPolicyUnits",c1="com.amazonaws.bedrockruntime",Yv7=[0,c1,pl5,8,0],AO1=[0,c1,ol5,8,21],bs5=[0,c1,Mn5,8,0],zv7=[0,c1,Dn5,8,0],xs5=[0,c1,yr5,8,15],GH8=[0,c1,xr5,8,21],us5=[-3,c1,gl5,{[lR]:_g,[iR]:403},[vE],[0]];GN.TypeRegistry.for(c1).registerError(us5,sV7);var Bs5=[3,c1,nl5,0,[],[]],ms5=[3,c1,Ql5,0,[Om6,Hm6,mc,oP6,ma5],[[0,1],[0,1],0,[()=>ge5,0],0]],gs5=[3,c1,Ul5,0,[e$1,mt,XN7,xa5,mo5,LN7],[()=>jv7,0,0,()=>de5,[()=>Gv7,0],()=>Ov7]],Fs5=[3,c1,ll5,0,[Ys5,Na5,WN7],[0,0,0]],Qs5=[3,c1,cl5,0,[d$1,BN7,AH8,o$1,vN7,sN7,uN7,NN7,OH8],[0,0,0,0,[()=>Yv7,0],5,5,5,()=>LH8]],Us5=[3,c1,rl5,0,[],[]],ps5=[3,c1,al5,8,[gt],[[()=>GH8,0]]],ds5=[3,c1,sl5,8,[gt],[[()=>GH8,0]]],fH8=[3,c1,Pi5,0,[nR],[0]],cs5=[3,c1,tl5,0,[WH8,mc,rN7,bN7],[0,0,()=>Ce5,()=>Vv7]],wv7=[3,c1,_i5,0,[Oa5],[2]],ls5=[3,c1,$i5,0,[oP6,KH8],[()=>Re5,()=>Se5]],is5=[3,c1,Oi5,0,[WH8,mc,rN7,bN7],[0,0,()=>he5,()=>Vv7]],ns5=[3,c1,Ti5,0,[CM],[0]],rs5=[-3,c1,Hi5,{[lR]:_g,[iR]:400},[vE],[0]];GN.TypeRegistry.for(c1).registerError(rs5,qN7);var os5=[3,c1,qi5,0,[qa5,tO8],[[()=>Y69,0],1]],as5=[3,c1,Yi5,0,[jm6,tO8],[()=>z69,1]],ss5=[3,c1,zi5,0,[tO8],[1]],ts5=[3,c1,Di5,0,[xN7],[1]],es5=[3,c1,Wi5,0,[$56,$H8,JH8,CN7,MH8,yN7,sO8,pN7,MN7,iN7,n$1,Qt],[[0,1],[()=>kH8,0],[()=>EH8,0],()=>Mv7,()=>NH8,()=>yt5,15,[()=>fv7,0],64,[()=>Tv7,0],()=>zO1,()=>wO1]],At5=[3,c1,Zi5,0,[Qa5,oN7,e$1,gN7,DN7,aP6,n$1,Qt],[[()=>w69,0],0,()=>Wv7,()=>ts5,15,[()=>$t5,0],()=>zO1,()=>wO1]],qt5=[3,c1,ki5,0,[e$1,gN7,aP6,n$1,Qt],[()=>Wv7,()=>Kt5,[()=>wt5,0],()=>zO1,()=>wO1]],Kt5=[3,c1,vi5,0,[xN7],[1]],Yt5=[3,c1,Li5,0,[$56,$H8,JH8,CN7,MH8,yN7,sO8,pN7,MN7,iN7,n$1,Qt],[[0,1],[()=>kH8,0],[()=>EH8,0],()=>Mv7,()=>NH8,()=>dt5,15,[()=>fv7,0],64,[()=>Tv7,0],()=>zO1,()=>wO1]],zt5=[3,c1,yi5,0,[$s5],[[()=>_69,16]]],wt5=[3,c1,Ri5,0,[EN7,UN7],[[()=>Hv7,0],()=>Xv7]],_t5=[3,c1,hi5,0,[$H8,JH8,MH8,sO8],[[()=>kH8,0],[()=>EH8,0],()=>NH8,15]],$t5=[3,c1,Si5,0,[EN7,UN7],[[()=>Hv7,0],()=>Xv7]],Ot5=[3,c1,Ii5,0,[$56,zH8],[[0,1],[()=>$69,0]]],Ht5=[3,c1,bi5,0,[hN7],[1]],_v7=[3,c1,mi5,0,[$m6,Ft,mc,eo5,KH8],[0,0,()=>H69,0,()=>wv7]],jt5=[3,c1,Qi5,0,[YH8,jm6,p$1],[1,1,1]],Jt5=[3,c1,Ui5,0,[YH8,jm6,p$1],[1,1,1]],Mt5=[3,c1,pi5,0,[YH8,jm6,p$1],[1,1,1]],Dt5=[3,c1,ii5,0,[d$1],[[0,1]]],Xt5=[3,c1,ni5,0,[d$1,BN7,AH8,o$1,vN7,sN7,uN7,NN7,OH8],[0,0,0,0,[()=>Yv7,0],5,5,5,()=>LH8]],$v7=[3,c1,ci5,0,[Ms5,io5,hs5,na5,co5,bo5,Da5],[()=>nt5,()=>St5,()=>rt5,()=>pt5,()=>ht5,[()=>ft5,0],()=>mt5]],Pt5=[3,c1,An5,0,[t$1,ZN7,l$1],[[()=>Jm6,0],()=>vH8,[()=>qO1,0]]],Wt5=[3,c1,Kn5,0,[CM],[[()=>zv7,0]]],Zt5=[3,c1,qn5,0,[t$1,ZN7,l$1],[[()=>Jm6,0],()=>vH8,[()=>qO1,0]]],qO1=[3,c1,zn5,0,[nR,QN7,fN7],[0,[()=>_m6,0],[()=>_m6,0]]],Gt5=[3,c1,wn5,0,[],[]],ft5=[3,c1,_n5,0,[ja5],[[()=>ue5,0]]],Tt5=[3,c1,$n5,0,[Za5,pa5],[0,0]],Vt5=[3,c1,jn5,0,[t$1,GN7,do5,l$1],[[()=>Jm6,0],[()=>m$1,0],[()=>m$1,0],[()=>qO1,0]]],m$1=[3,c1,Hn5,0,[_s5],[[()=>_m6,0]]],Nt5=[3,c1,Xn5,0,[ka5,Ia5],[[()=>bs5,0],[()=>zv7,0]]],vt5=[3,c1,Zn5,0,[],[]],Jm6=[3,c1,Pn5,0,[QN7,fN7,Es5,ks5,TN7],[[()=>_m6,0],[()=>_m6,0],[()=>rV7,0],[()=>rV7,0],1]],kt5=[3,c1,Wn5,0,[Fa5,wa5],[[()=>me5,0],[()=>xe5,0]]],Et5=[3,c1,fn5,0,[vs5],[[()=>Be5,0]]],Lt5=[3,c1,Vn5,0,[t$1,GN7,As5,l$1],[[()=>Jm6,0],[()=>m$1,0],()=>vH8,[()=>qO1,0]]],yt5=[3,c1,Nn5,0,[Om6,Hm6,aP6],[0,0,0]],Rt5=[3,c1,Ln5,0,[nR,TN7,Ha5,mt,_56],[0,0,0,0,2]],St5=[3,c1,bn5,0,[kN7],[()=>Fe5]],Ct5=[3,c1,Rn5,0,[nR,fs5,ws5,mt,_56],[0,1,1,0,2]],ht5=[3,c1,Cn5,0,[kN7],[()=>Qe5]],It5=[3,c1,hn5,8,[$m6,mc],[0,[()=>M69,0]]],bt5=[3,c1,xn5,0,[CM,dN7],[0,64]],Ov7=[3,c1,mn5,0,[Hs5,Ga5],[()=>lt5,()=>Bt5]],xt5=[3,c1,un5,0,[i$1,mt,_56],[0,0,2]],ut5=[3,c1,gn5,8,[$m6,mc],[0,[()=>D69,0]]],Bt5=[3,c1,Fn5,0,[SN7,qv7],[1,1]],mt5=[3,c1,Qn5,0,[Ja5,e$1,LN7],[1,()=>jv7,()=>Ov7]],gt5=[3,c1,pn5,0,[i$1,nR,mt,_56],[0,0,0,2]],Ft5=[3,c1,cn5,0,[CM],[0]],Qt5=[3,c1,in5,0,[i$1,nR,mt,_56],[0,0,0,2]],Ut5=[3,c1,rn5,0,[Ft,i$1,da5,mt,_56],[0,0,0,0,2]],pt5=[3,c1,sn5,0,[Ua5,ia5],[()=>ce5,()=>le5]],dt5=[3,c1,an5,0,[Om6,Hm6,aP6,sa5],[0,0,0,0]],ct5=[3,c1,Ar5,0,[CM,dN7],[0,64]],lt5=[3,c1,qr5,0,[SN7,qv7],[1,1]],it5=[3,c1,tn5,0,[Ft,nR,mt,_56],[0,0,0,2]],nt5=[3,c1,Yr5,0,[Ns5],[()=>ie5]],Hv7=[3,c1,en5,0,[La5,Ma5,ua5,XN7],[64,[()=>ee5,0],[()=>te5,0],0]],jv7=[3,c1,zr5,0,[Ds5,ro5,Is5,oa5,ra5,lo5,no5,xo5,uo5],[1,1,1,1,1,1,1,1,1]],rt5=[3,c1,wr5,0,[ao5,Ca5],[()=>Ue5,()=>pe5]],Jv7=[3,c1,_r5,0,[$m6,mc],[0,()=>X69]],Mv7=[3,c1,$r5,0,[Sa5,Gs5,Xs5,qs5],[1,1,1,64]],KO1=[-3,c1,Vr5,{[lR]:tN7,[iR]:500},[vE],[0]];GN.TypeRegistry.for(c1).registerError(KO1,tV7);var ot5=[3,c1,Hr5,0,[w56,U$1,PN7,$56,aP6,Om6,Hm6,r$1,Qt],[[()=>AO1,16],[0,{[SM]:aO8}],[0,{[SM]:ml5}],[0,1],[0,{[SM]:JN7}],[0,{[SM]:HN7}],[0,{[SM]:jN7}],[0,{[SM]:F$1}],[0,{[SM]:Q$1}]]],at5=[3,c1,jr5,0,[w56,U$1,r$1,Qt],[[()=>AO1,16],[0,{[SM]:aO8}],[0,{[SM]:F$1}],[0,{[SM]:Q$1}]]],st5=[3,c1,Jr5,0,[w56],[[()=>AO1,0]]],tt5=[3,c1,Pr5,0,[$56,w56],[[0,1],[()=>P69,16]]],et5=[3,c1,Wr5,0,[w56],[[()=>W69,16]]],Ae5=[3,c1,Gr5,0,[w56,U$1,PN7,$56,aP6,Om6,Hm6,r$1,Qt],[[()=>AO1,16],[0,{[SM]:aO8}],[0,{[SM]:Co5}],[0,1],[0,{[SM]:JN7}],[0,{[SM]:HN7}],[0,{[SM]:jN7}],[0,{[SM]:F$1}],[0,{[SM]:Q$1}]]],qe5=[3,c1,fr5,0,[w56,U$1,r$1,Qt],[[()=>T69,16],[0,{[SM]:ho5}],[0,{[SM]:F$1}],[0,{[SM]:Q$1}]]],Ke5=[3,c1,vr5,0,[iV7,nV7,cV7,pV7,oO8,dV7,lV7],[[5,{[z56]:iV7}],[5,{[z56]:nV7}],[0,{[z56]:cV7}],[1,{[z56]:pV7}],[0,{[z56]:oO8}],[0,{[z56]:dV7}],[0,{[z56]:lV7}]]],Ye5=[3,c1,kr5,0,[oO8,Io5],[0,[()=>ye5,0]]],Dv7=[3,c1,Er5,0,[nN7,oP6],[0,[()=>Ie5,0]]],ze5=[3,c1,Sr5,0,[nN7],[0]],we5=[3,c1,hr5,0,[oN7,DN7],[0,15]],_e5=[-3,c1,Lr5,{[lR]:_g,[iR]:424},[vE,FN7,ca5],[0,1,0]];GN.TypeRegistry.for(c1).registerError(_e5,wN7);var $e5=[-3,c1,Rr5,{[lR]:_g,[iR]:429},[vE],[0]];GN.TypeRegistry.for(c1).registerError($e5,_N7);var YO1=[-3,c1,Cr5,{[lR]:_g,[iR]:424},[vE,FN7,Ba5],[0,1,0]];GN.TypeRegistry.for(c1).registerError(YO1,ON7);var TH8=[-3,c1,Ir5,{[lR]:_g,[iR]:408},[vE],[0]];GN.TypeRegistry.for(c1).registerError(TH8,$N7);var Oe5=[3,c1,Br5,8,[gt],[[()=>GH8,0]]],zO1=[3,c1,ur5,0,[va5],[0]],Xv7=[3,c1,mr5,0,[Xa5],[0]],He5=[3,c1,lr5,8,[CM,eN7],[0,0]],je5=[-3,c1,dr5,{[lR]:_g,[iR]:404},[vE],[0]];GN.TypeRegistry.for(c1).registerError(je5,KN7);var VH8=[3,c1,sr5,0,[Ls5,WN7],[0,0]],Pv7=[3,c1,er5,0,[mc,WH8,oP6,KH8],[0,0,()=>ne5,()=>wv7]],Je5=[3,c1,Ao5,0,[CM],[0]],Me5=[3,c1,Ko5,0,[ta5,jm6,p$1],[1,1,1]],De5=[-3,c1,tr5,{[lR]:_g,[iR]:400},[vE],[0]];GN.TypeRegistry.for(c1).registerError(De5,YN7);var wO1=[3,c1,Yo5,0,[nR],[0]],_O1=[-3,c1,_o5,{[lR]:tN7,[iR]:503},[vE],[0]];GN.TypeRegistry.for(c1).registerError(_O1,zN7);var Xe5=[3,c1,zo5,0,[Ft],[0]],Pe5=[3,c1,nr5,0,[AH8,$56,Ea5,OH8,Zs5],[[0,4],0,[()=>xs5,0],()=>LH8,()=>re5]],We5=[3,c1,rr5,0,[d$1],[0]],Ze5=[3,c1,wo5,0,[Ft],[0]],Ge5=[3,c1,$o5,0,[Va5,Rs5],[0,0]],$O1=[-3,c1,jo5,{[lR]:_g,[iR]:429},[vE],[0]];GN.TypeRegistry.for(c1).registerError($O1,eV7);var Wv7=[3,c1,To5,0,[hN7,ga5,Ws5,oo5,so5],[1,1,1,1,1]],NH8=[3,c1,Oo5,0,[Ts5,js5],[()=>se5,()=>v69]],fe5=[3,c1,Do5,0,[s$1,oP6,o$1,nR],[0,()=>ae5,0,0]],Te5=[3,c1,Wo5,0,[s$1,nR,o$1],[0,0,0]],Ve5=[3,c1,fo5,0,[Ft,_a5,Wa5],[0,0,()=>k69]],Ne5=[3,c1,Vo5,0,[s$1,Ft,zH8,nR],[0,0,15,0]],ve5=[3,c1,No5,0,[zH8],[0]],ke5=[3,c1,vo5,0,[s$1,Ft,nR],[0,0,0]],OO1=[-3,c1,yo5,{[lR]:_g,[iR]:400},[vE],[0]];GN.TypeRegistry.for(c1).registerError(OO1,AN7);var Zv7=[3,c1,Lo5,0,[$m6,mc],[0,()=>y69]],Ee5=[3,c1,So5,0,[ys5,$a5],[0,0]],Le5=[-3,Av7,"BedrockRuntimeServiceException",0,[],[]];GN.TypeRegistry.for(Av7).registerError(Le5,fN);var ye5=[1,c1,il5,0,[()=>Qs5,0]],Re5=[1,c1,Ji5,0,()=>A69],Se5=[1,c1,ui5,0,()=>cs5],Ce5=[1,c1,Vi5,0,()=>q69],he5=[1,c1,Ni5,0,()=>ns5],Ie5=[1,c1,el5,0,[()=>K69,0]],be5=[1,c1,gi5,0,()=>O69],Gv7=[1,c1,ri5,0,[()=>$v7,0]],xe5=[1,c1,si5,0,[()=>m$1,0]],ue5=[1,c1,ei5,0,[()=>j69,0]],rV7=[1,c1,Yn5,0,[()=>Wt5,0]],vH8=[1,c1,On5,0,()=>Tt5],_m6=[1,c1,Jn5,0,[()=>Nt5,0]],Be5=[1,c1,Gn5,0,[()=>Jm6,0]],me5=[1,c1,Tn5,0,[()=>Et5,0]],ge5=[1,c1,kn5,0,[()=>J69,0]],Fe5=[1,c1,yn5,0,()=>Rt5],Qe5=[1,c1,Sn5,0,()=>Ct5],Ue5=[1,c1,Bn5,0,()=>xt5],pe5=[1,c1,dn5,0,()=>gt5],de5=[1,c1,ln5,0,()=>Ft5],ce5=[1,c1,nn5,0,()=>Qt5],le5=[1,c1,on5,0,()=>Ut5],ie5=[1,c1,Kr5,0,()=>it5],kH8=[1,c1,br5,0,[()=>Dv7,0]],ne5=[1,c1,qo5,0,()=>Je5],EH8=[1,c1,or5,0,[()=>V69,0]],re5=[1,c1,Mo5,0,()=>Ge5],oe5=[1,c1,Xo5,0,()=>E69],ae5=[1,c1,Zo5,0,()=>L69],se5=[1,c1,ko5,0,()=>N69],te5=[2,c1,oi5,0,[0,0],[()=>Gv7,0]],ee5=[2,c1,ai5,0,[0,0],[()=>$v7,0]],fv7=[2,c1,gr5,8,0,()=>Z69],Tv7=[2,c1,pr5,8,0,0],LH8=[3,c1,dl5,0,[aa5],[()=>Fs5]],A69=[3,c1,ji5,0,[CM],[0]],Vv7=[3,c1,Mi5,0,[Cs5,Ka5,za5,Ya5,ea5],[()=>Ee5,()=>jt5,()=>Mt5,()=>Jt5,()=>Me5]],q69=[3,c1,fi5,0,[CM],[0]],K69=[3,c1,wi5,0,[CM,c$1,VN7,Kv7,PH8,XH8,RN7,eO8,cN7,po5,aN7],[0,()=>Jv7,()=>_v7,()=>Zv7,()=>Ne5,()=>fe5,[()=>Nv7,0],()=>fH8,[()=>G69,0],()=>ls5,()=>Pv7]],Y69=[3,c1,Ai5,0,[CM,PH8,XH8,cN7,to5],[0,()=>ve5,()=>oe5,[()=>f69,0],()=>is5]],z69=[3,c1,Ki5,0,[PH8,XH8],[()=>ke5,()=>Te5]],w69=[3,c1,Xi5,0,[vE],[[()=>Dv7,0]]],_69=[3,c1,Ei5,{[a$1]:1},[ya5,Qo5,Fo5,Uo5,Ra5,ha5,wH8,_H8,ZH8,DH8,jH8],[()=>ze5,()=>as5,[()=>os5,0],()=>ss5,()=>we5,[()=>qt5,0],[()=>KO1,0],[()=>YO1,0],[()=>OO1,0],[()=>$O1,0],[()=>_O1,0]]],$69=[3,c1,Ci5,0,[Pa5,Aa5],[[()=>st5,0],[()=>_t5,0]]],O69=[3,c1,Fi5,0,[CM],[0]],H69=[3,c1,di5,0,[gt,HH8,CM,oP6],[21,()=>VH8,0,()=>be5]],j69=[3,c1,ti5,0,[Ss5,Ta5,zs5,fa5,Os5,Js5,ba5],[[()=>Lt5,0],[()=>Zt5,0],[()=>Vt5,0],[()=>Pt5,0],[()=>kt5,0],()=>vt5,()=>Gt5]],J69=[3,c1,vn5,0,[CM,c$1],[()=>ct5,[()=>ut5,0]]],Nv7=[3,c1,En5,0,[CM,c$1],[()=>bt5,[()=>It5,0]]],M69=[3,c1,In5,8,[gt],[21]],D69=[3,c1,Un5,8,[gt],[21]],X69=[3,c1,Tr5,0,[gt,HH8],[21,()=>VH8]],P69=[3,c1,Dr5,{[a$1]:1},[qH8],[[()=>ps5,0]]],W69=[3,c1,Xr5,{[a$1]:1},[qH8,wH8,_H8,ZH8,DH8,mN7,jH8],[[()=>ds5,0],[()=>KO1,0],[()=>YO1,0],[()=>OO1,0],[()=>$O1,0],[()=>TH8,0],[()=>_O1,0]]],Z69=[3,c1,Fr5,0,[CM],[0]],G69=[3,c1,Qr5,8,[la5,lN7],[[()=>He5,0],21]],f69=[3,c1,Ur5,8,[CM,lN7,eN7],[0,21,0]],T69=[3,c1,cr5,{[a$1]:1},[qH8,wH8,_H8,ZH8,DH8,mN7,jH8],[[()=>Oe5,0],[()=>KO1,0],[()=>YO1,0],[()=>OO1,0],[()=>$O1,0],[()=>TH8,0],[()=>_O1,0]]],V69=[3,c1,ar5,0,[CM,RN7,eO8],[0,[()=>Nv7,0],()=>fH8]],N69=[3,c1,Eo5,0,[Ps5,Ks5,eO8],[()=>Ve5,()=>Ze5,()=>fH8]],v69=[3,c1,Ho5,0,[go5,Bo5,Vs5],[()=>Us5,()=>Bs5,()=>Xe5]],k69=[3,c1,Jo5,0,[IN7],[15]],E69=[3,c1,Po5,0,[CM],[0]],L69=[3,c1,Go5,0,[IN7,CM,c$1,VN7,Kv7,aN7],[15,0,()=>Jv7,()=>_v7,()=>Zv7,()=>Pv7]],y69=[3,c1,Ro5,0,[gt,HH8],[21,()=>VH8]],R69=[9,c1,Fl5,{[$g]:["POST","/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply",200]},()=>ms5,()=>gs5],S69=[9,c1,Bi5,{[$g]:["POST","/model/{modelId}/converse",200]},()=>es5,()=>At5],C69=[9,c1,Gi5,{[$g]:["POST","/model/{modelId}/converse-stream",200]},()=>Yt5,()=>zt5],h69=[9,c1,xi5,{[$g]:["POST","/model/{modelId}/count-tokens",200]},()=>Ot5,()=>Ht5],I69=[9,c1,li5,{[$g]:["GET","/async-invoke/{invocationArn}",200]},()=>Dt5,()=>Xt5],b69=[9,c1,Or5,{[$g]:["POST","/model/{modelId}/invoke",200]},()=>ot5,()=>at5],x69=[9,c1,Mr5,{[$g]:["POST","/model/{modelId}/invoke-with-bidirectional-stream",200]},()=>tt5,()=>et5],u69=[9,c1,Zr5,{[$g]:["POST","/model/{modelId}/invoke-with-response-stream",200]},()=>Ae5,()=>qe5],B69=[9,c1,Nr5,{[$g]:["GET","/async-invoke",200]},()=>Ke5,()=>Ye5],m69=[9,c1,ir5,{[$g]:["POST","/async-invoke",200]},()=>Pe5,()=>We5];class yH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","ApplyGuardrail",{}).n("BedrockRuntimeClient","ApplyGuardrailCommand").sc(R69).build(){}class RH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","Converse",{}).n("BedrockRuntimeClient","ConverseCommand").sc(S69).build(){}class SH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","ConverseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","ConverseStreamCommand").sc(C69).build(){}class CH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","CountTokens",{}).n("BedrockRuntimeClient","CountTokensCommand").sc(h69).build(){}class hH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","GetAsyncInvoke",{}).n("BedrockRuntimeClient","GetAsyncInvokeCommand").sc(I69).build(){}class IH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","InvokeModel",{}).n("BedrockRuntimeClient","InvokeModelCommand").sc(b69).build(){}class bH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions()),oV7.getEventStreamPlugin(K),aV7.getWebSocketPlugin(K,{headerPrefix:"x-amz-bedrock-"})]}).s("AmazonBedrockFrontendService","InvokeModelWithBidirectionalStream",{eventStream:{input:!0,output:!0}}).n("BedrockRuntimeClient","InvokeModelWithBidirectionalStreamCommand").sc(x69).build(){}class xH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","InvokeModelWithResponseStream",{eventStream:{output:!0}}).n("BedrockRuntimeClient","InvokeModelWithResponseStreamCommand").sc(u69).build(){}class HO1 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","ListAsyncInvokes",{}).n("BedrockRuntimeClient","ListAsyncInvokesCommand").sc(B69).build(){}class uH8 extends B0.Command.classBuilder().ep(wg).m(function(A,q,K,Y){return[Jb.getEndpointPlugin(K,A.getEndpointParameterInstructions())]}).s("AmazonBedrockFrontendService","StartAsyncInvoke",{}).n("BedrockRuntimeClient","StartAsyncInvokeCommand").sc(m69).build(){}var g69={ApplyGuardrailCommand:yH8,ConverseCommand:RH8,ConverseStreamCommand:SH8,CountTokensCommand:CH8,GetAsyncInvokeCommand:hH8,InvokeModelCommand:IH8,InvokeModelWithBidirectionalStreamCommand:bH8,InvokeModelWithResponseStreamCommand:xH8,ListAsyncInvokesCommand:HO1,StartAsyncInvokeCommand:uH8};class BH8 extends g$1{}B0.createAggregatedClient(g69,BH8);var F69=B$1.createPaginator(g$1,HO1,"nextToken","nextToken","maxResults"),Q69={COMPLETED:"Completed",FAILED:"Failed",IN_PROGRESS:"InProgress"},U69={SUBMISSION_TIME:"SubmissionTime"},p69={ASCENDING:"Ascending",DESCENDING:"Descending"},d69={JPEG:"jpeg",PNG:"png"},c69={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},l69={FULL:"FULL",INTERVENTIONS:"INTERVENTIONS"},i69={INPUT:"INPUT",OUTPUT:"OUTPUT"},n69={GUARDRAIL_INTERVENED:"GUARDRAIL_INTERVENED",NONE:"NONE"},r69={ALWAYS_FALSE:"ALWAYS_FALSE",ALWAYS_TRUE:"ALWAYS_TRUE"},o69={BLOCKED:"BLOCKED",NONE:"NONE"},a69={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},s69={HIGH:"HIGH",LOW:"LOW",MEDIUM:"MEDIUM",NONE:"NONE"},t69={HATE:"HATE",INSULTS:"INSULTS",MISCONDUCT:"MISCONDUCT",PROMPT_ATTACK:"PROMPT_ATTACK",SEXUAL:"SEXUAL",VIOLENCE:"VIOLENCE"},e69={BLOCKED:"BLOCKED",NONE:"NONE"},A19={GROUNDING:"GROUNDING",RELEVANCE:"RELEVANCE"},q19={ANONYMIZED:"ANONYMIZED",BLOCKED:"BLOCKED",NONE:"NONE"},K19={ADDRESS:"ADDRESS",AGE:"AGE",AWS_ACCESS_KEY:"AWS_ACCESS_KEY",AWS_SECRET_KEY:"AWS_SECRET_KEY",CA_HEALTH_NUMBER:"CA_HEALTH_NUMBER",CA_SOCIAL_INSURANCE_NUMBER:"CA_SOCIAL_INSURANCE_NUMBER",CREDIT_DEBIT_CARD_CVV:"CREDIT_DEBIT_CARD_CVV",CREDIT_DEBIT_CARD_EXPIRY:"CREDIT_DEBIT_CARD_EXPIRY",CREDIT_DEBIT_CARD_NUMBER:"CREDIT_DEBIT_CARD_NUMBER",DRIVER_ID:"DRIVER_ID",EMAIL:"EMAIL",INTERNATIONAL_BANK_ACCOUNT_NUMBER:"INTERNATIONAL_BANK_ACCOUNT_NUMBER",IP_ADDRESS:"IP_ADDRESS",LICENSE_PLATE:"LICENSE_PLATE",MAC_ADDRESS:"MAC_ADDRESS",NAME:"NAME",PASSWORD:"PASSWORD",PHONE:"PHONE",PIN:"PIN",SWIFT_CODE:"SWIFT_CODE",UK_NATIONAL_HEALTH_SERVICE_NUMBER:"UK_NATIONAL_HEALTH_SERVICE_NUMBER",UK_NATIONAL_INSURANCE_NUMBER:"UK_NATIONAL_INSURANCE_NUMBER",UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER:"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",URL:"URL",USERNAME:"USERNAME",US_BANK_ACCOUNT_NUMBER:"US_BANK_ACCOUNT_NUMBER",US_BANK_ROUTING_NUMBER:"US_BANK_ROUTING_NUMBER",US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER:"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",US_PASSPORT_NUMBER:"US_PASSPORT_NUMBER",US_SOCIAL_SECURITY_NUMBER:"US_SOCIAL_SECURITY_NUMBER",VEHICLE_IDENTIFICATION_NUMBER:"VEHICLE_IDENTIFICATION_NUMBER"},Y19={BLOCKED:"BLOCKED",NONE:"NONE"},z19={DENY:"DENY"},w19={BLOCKED:"BLOCKED",NONE:"NONE"},_19={PROFANITY:"PROFANITY"},$19={DISABLED:"disabled",ENABLED:"enabled",ENABLED_FULL:"enabled_full"},O19={DEFAULT:"default"},H19={CSV:"csv",DOC:"doc",DOCX:"docx",HTML:"html",MD:"md",PDF:"pdf",TXT:"txt",XLS:"xls",XLSX:"xlsx"},j19={JPEG:"jpeg",PNG:"png"},J19={GROUNDING_SOURCE:"grounding_source",GUARD_CONTENT:"guard_content",QUERY:"query"},M19={GIF:"gif",JPEG:"jpeg",PNG:"png",WEBP:"webp"},D19={FLV:"flv",MKV:"mkv",MOV:"mov",MP4:"mp4",MPEG:"mpeg",MPG:"mpg",THREE_GP:"three_gp",WEBM:"webm",WMV:"wmv"},X19={ERROR:"error",SUCCESS:"success"},P19={SERVER_TOOL_USE:"server_tool_use"},W19={ASSISTANT:"assistant",USER:"user"},Z19={OPTIMIZED:"optimized",STANDARD:"standard"},G19={DEFAULT:"default",FLEX:"flex",PRIORITY:"priority"},f19={CONTENT_FILTERED:"content_filtered",END_TURN:"end_turn",GUARDRAIL_INTERVENED:"guardrail_intervened",MAX_TOKENS:"max_tokens",MODEL_CONTEXT_WINDOW_EXCEEDED:"model_context_window_exceeded",STOP_SEQUENCE:"stop_sequence",TOOL_USE:"tool_use"},T19={ASYNC:"async",SYNC:"sync"},V19={DISABLED:"DISABLED",ENABLED:"ENABLED",ENABLED_FULL:"ENABLED_FULL"};Object.defineProperty(mH8,"$Command",{enumerable:!0,get:function(){return B0.Command}});Object.defineProperty(mH8,"__Client",{enumerable:!0,get:function(){return B0.Client}});mH8.AccessDeniedException=sV7;mH8.ApplyGuardrailCommand=yH8;mH8.AsyncInvokeStatus=Q69;mH8.BedrockRuntime=BH8;mH8.BedrockRuntimeClient=g$1;mH8.BedrockRuntimeServiceException=fN;mH8.CachePointType=O19;mH8.ConflictException=qN7;mH8.ConversationRole=W19;mH8.ConverseCommand=RH8;mH8.ConverseStreamCommand=SH8;mH8.CountTokensCommand=CH8;mH8.DocumentFormat=H19;mH8.GetAsyncInvokeCommand=hH8;mH8.GuardrailAction=n69;mH8.GuardrailAutomatedReasoningLogicWarningType=r69;mH8.GuardrailContentFilterConfidence=a69;mH8.GuardrailContentFilterStrength=s69;mH8.GuardrailContentFilterType=t69;mH8.GuardrailContentPolicyAction=o69;mH8.GuardrailContentQualifier=c69;mH8.GuardrailContentSource=i69;mH8.GuardrailContextualGroundingFilterType=A19;mH8.GuardrailContextualGroundingPolicyAction=e69;mH8.GuardrailConverseContentQualifier=J19;mH8.GuardrailConverseImageFormat=j19;mH8.GuardrailImageFormat=d69;mH8.GuardrailManagedWordType=_19;mH8.GuardrailOutputScope=l69;mH8.GuardrailPiiEntityType=K19;mH8.GuardrailSensitiveInformationPolicyAction=q19;mH8.GuardrailStreamProcessingMode=T19;mH8.GuardrailTopicPolicyAction=Y19;mH8.GuardrailTopicType=z19;mH8.GuardrailTrace=$19;mH8.GuardrailWordPolicyAction=w19;mH8.ImageFormat=M19;mH8.InternalServerException=tV7;mH8.InvokeModelCommand=IH8;mH8.InvokeModelWithBidirectionalStreamCommand=bH8;mH8.InvokeModelWithResponseStreamCommand=xH8;mH8.ListAsyncInvokesCommand=HO1;mH8.ModelErrorException=wN7;mH8.ModelNotReadyException=_N7;mH8.ModelStreamErrorException=ON7;mH8.ModelTimeoutException=$N7;mH8.PerformanceConfigLatency=Z19;mH8.ResourceNotFoundException=KN7;mH8.ServiceQuotaExceededException=YN7;mH8.ServiceTierType=G19;mH8.ServiceUnavailableException=zN7;mH8.SortAsyncInvocationBy=U69;mH8.SortOrder=p69;mH8.StartAsyncInvokeCommand=uH8;mH8.StopReason=f19;mH8.ThrottlingException=eV7;mH8.ToolResultStatus=X19;mH8.ToolUseType=P19;mH8.Trace=V19;mH8.ValidationException=AN7;mH8.VideoFormat=D19;mH8.paginateListAsyncInvokes=F69});function rR(A,q){return A.find((K)=>K.includes(q))??null}async function kv7(){let{BedrockClient:A}=await Promise.resolve().then(() => e(L$1(),1)),q=Q46(),K=$1(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Y={region:q,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await aw8(),...K&&{requestHandler:new(await Promise.resolve().then(() => e($N(),1))).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await Promise.resolve().then(() => e(pw(),1))).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!K&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let z=await Ut();if(z)Y.credentials={accessKeyId:z.accessKeyId,secretAccessKey:z.secretAccessKey,sessionToken:z.sessionToken}}return new A(Y)}async function Ev7(){let{BedrockRuntimeClient:A}=await Promise.resolve().then(() => e(jO1(),1)),q=Q46(),K=$1(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Y={region:q,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await aw8(),...K&&{requestHandler:new(await Promise.resolve().then(() => e($N(),1))).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await Promise.resolve().then(() => e(pw(),1))).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!K&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let z=await Ut();if(z)Y.credentials={accessKeyId:z.accessKeyId,secretAccessKey:z.secretAccessKey,sessionToken:z.sessionToken}}return new A(Y)}function gH8(A){return A.startsWith("anthropic.")}function h89(A){if(!A.startsWith("arn:"))return A;let q=A.lastIndexOf("/");if(q===-1)return A;return A.substring(q+1)}function FH8(A){let q=h89(A);for(let K of C89)if(q.startsWith(`${K}.anthropic.`))return K;return}function Lv7(A,q){let K=FH8(A);if(K)return A.replace(`${K}.`,`${q}.`);if(gH8(A))return`${q}.${A}`;return A}var vv7,JO1,C89;var Mm6=k(()=>{Eq();bA();Z8();x1();VE();vv7=T8(async function(){let[A,{ListInferenceProfilesCommand:q}]=await Promise.all([kv7(),Promise.resolve().then(() => e(L$1(),1))]),K=[],Y;try{do{let z=new q({...Y&&{nextToken:Y},typeEquals:"SYSTEM_DEFINED"}),w=await A.send(z);if(w.inferenceProfileSummaries)K.push(...w.inferenceProfileSummaries);Y=w.nextToken}while(Y);return K.filter((z)=>z.inferenceProfileId?.includes("anthropic")).map((z)=>z.inferenceProfileId).filter(Boolean)}catch(z){throw $6(z),z}});JO1=T8(async function(A){try{let[q,{GetInferenceProfileCommand:K}]=await Promise.all([kv7(),Promise.resolve().then(() => e(L$1(),1))]),Y=new K({inferenceProfileIdentifier:A}),z=await q.send(Y);if(!z.models||z.models.length===0)return null;let w=z.models[0];if(!w?.modelArn)return null;let _=w.modelArn.lastIndexOf("/");return _>=0?w.modelArn.substring(_+1):w.modelArn}catch(q){return $6(q),null}});C89=["us","eu","apac","global"]});function dt(A){if(D7()==="foundry")return;let q=A.toLowerCase();if(q.includes("claude-opus-4-6[1m]"))return"Opus 4.6 (with 1M context)";if(q.includes("claude-opus-4-6"))return"Opus 4.6";if(q.includes("claude-opus-4-5"))return"Opus 4.5";if(q.includes("claude-opus-4-1"))return"Opus 4.1";if(q.includes("claude-opus-4"))return"Opus 4";if(q.includes("claude-sonnet-4-6[1m]"))return"Sonnet 4.6 (with 1M context)";if(q.includes("claude-sonnet-4-6"))return"Sonnet 4.6";if(q.includes("claude-sonnet-4-5[1m]"))return"Sonnet 4.5 (with 1M context)";if(q.includes("claude-sonnet-4-5"))return"Sonnet 4.5";if(q.includes("claude-sonnet-4[1m]"))return"Sonnet 4 (with 1M context)";if(q.includes("claude-sonnet-4"))return"Sonnet 4";if(q.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(q.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(q.includes("claude-haiku-4-5"))return"Haiku 4.5";if(q.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}var Dm6,Xm6,Pm6,Wm6,Zm6,Gm6,fm6,Tm6,Vm6,pt,Nm6;var sP6=k(()=>{yz();Dm6={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet"},Xm6={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet"},Pm6={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku"},Wm6={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5"},Zm6={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4"},Gm6={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5"},fm6={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4"},Tm6={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1"},Vm6={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5"},pt={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6"},Nm6={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6"}});function Og(A){let q=[],K=!1;async function Y(){if(K)return;if(q.length===0)return;K=!0;while(q.length>0){let{args:z,resolve:w,reject:_,context:$}=q.shift();try{let O=await A.apply($,z);w(O)}catch(O){_(O)}}if(K=!1,q.length>0)Y()}return function(...z){return new Promise((w,_)=>{q.push({args:z,resolve:w,reject:_,context:this}),Y()})}}function vm6(A){return{haiku35:Pm6[A],haiku45:Wm6[A],sonnet35:Xm6[A],sonnet37:Dm6[A],sonnet40:Zm6[A],sonnet45:Gm6[A],sonnet46:Nm6[A],opus40:fm6[A],opus41:Tm6[A],opus45:Vm6[A],opus46:pt[A]}}async function I89(){let A;try{A=await vv7()}catch(M){return $6(M),vm6("bedrock")}if(!A?.length)return vm6("bedrock");let q=rR(A,"claude-3-5-haiku-20241022"),K=rR(A,"claude-haiku-4-5-20251001"),Y=rR(A,"claude-3-5-sonnet-20241022"),z=rR(A,"claude-3-7-sonnet-20250219"),w=rR(A,"claude-sonnet-4-20250514"),_=rR(A,"claude-sonnet-4-5-20250929"),$=rR(A,"claude-sonnet-4-6"),O=rR(A,"claude-opus-4-20250514"),H=rR(A,"claude-opus-4-1-20250805"),j=rR(A,"claude-opus-4-5-20251101"),J=rR(A,"claude-opus-4-6");return{haiku35:q||Pm6.bedrock,haiku45:K||Wm6.bedrock,sonnet35:Y||Xm6.bedrock,sonnet37:z||Dm6.bedrock,sonnet40:w||Zm6.bedrock,sonnet45:_||Gm6.bedrock,sonnet46:$||Nm6.bedrock,opus40:O||fm6.bedrock,opus41:H||Tm6.bedrock,opus45:j||Vm6.bedrock,opus46:J||pt.bedrock}}function b89(){if(VH6()!==null)return;if(D7()!=="bedrock"){$R6(vm6(D7()));return}yv7()}function p5(){let A=VH6();if(A===null)return b89(),vm6(D7());return A}async function Rv7(){if(VH6()!==null)return;if(D7()!=="bedrock"){$R6(vm6(D7()));return}await yv7()}var yv7;var O56=k(()=>{Q1();x1();Mm6();sP6();yz();yv7=Og(async()=>{if(VH6()!==null)return;try{let A=await I89();$R6(A)}catch(A){$6(A)}})});function tP6(A,q){if(gq()&&q)return x89;return A?bv7:H56}function B89(A,q){return q.input_tokens/1e6*A.inputTokens+q.output_tokens/1e6*A.outputTokens+(q.cache_read_input_tokens??0)/1e6*A.promptCacheReadTokens+(q.cache_creation_input_tokens??0)/1e6*A.promptCacheWriteTokens+(q.server_tool_use?.web_search_requests??0)*A.webSearchRequests}function Cv7(A){return A.input_tokens+(A.cache_read_input_tokens??0)+(A.cache_creation_input_tokens??0)}function m89(A,q){let K=t$(A);if(K===t$(pt.firstParty)){let z=q.speed==="fast",w=Cv7(q)>200000;return tP6(w,z)}let Y=MO1[K];if(!Y)return hv7(A,K),MO1[t$(Hg())]??u89;if(Cv7(q)>200000){if(Y===j56)return DO1;if(Y===H56)return bv7;hv7(A,K)}return Y}function hv7(A,q){c("tengu_unknown_model_cost",{model:A,shortName:q}),e11()}function km6(A,q){let K=m89(A,q);return B89(K,q)}function XO1(A,q){let K={input_tokens:q.inputTokens,output_tokens:q.outputTokens,cache_read_input_tokens:q.cacheReadInputTokens,cache_creation_input_tokens:q.cacheCreationInputTokens};return km6(A,K)}function Iv7(A){if(Number.isInteger(A))return`$${A}`;return`$${A.toFixed(2)}`}function oR(A){return`${Iv7(A.inputTokens)}/${Iv7(A.outputTokens)} per Mtok`}var j56,Sv7,H56,bv7,x89,DO1,QH8,UH8,u89,MO1;var ct=k(()=>{kE();B1();aZ();sP6();Xq();j56={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheReadTokens:0.3,webSearchRequests:0.01},Sv7={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheReadTokens:1.5,webSearchRequests:0.01},H56={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheReadTokens:0.5,webSearchRequests:0.01},bv7={inputTokens:10,outputTokens:37.5,promptCacheWriteTokens:12.5,promptCacheReadTokens:1,webSearchRequests:0.01},x89={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheReadTokens:3,webSearchRequests:0.01},DO1={inputTokens:6,outputTokens:22.5,promptCacheWriteTokens:7.5,promptCacheReadTokens:0.6,webSearchRequests:0.01},QH8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheReadTokens:0.08,webSearchRequests:0.01},UH8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.1,webSearchRequests:0.01},u89=H56;MO1={[t$(Pm6.firstParty)]:QH8,[t$(Wm6.firstParty)]:UH8,[t$(Xm6.firstParty)]:j56,[t$(Dm6.firstParty)]:j56,[t$(Zm6.firstParty)]:j56,[t$(Gm6.firstParty)]:H56,[t$(Nm6.firstParty)]:H56,[t$(fm6.firstParty)]:Sv7,[t$(Tm6.firstParty)]:Sv7,[t$(Vm6.firstParty)]:H56,[t$(pt.firstParty)]:H56}});var B9,Em6="∙",lt="✻",it="↯",pH8="▪",xv7="↻",Lm6,PO1="·✔︎·",WO1="×";var j$=k(()=>{K9();B9=YA.platform==="darwin"?"⏺":"●",Lm6=["·|·","·/·","·—·","·\\·"]});function gc(A){return J56.includes(A)}function eP6(A){return g89.includes(A)}var J56,g89;var A06=k(()=>{J56=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];g89=["sonnet","opus","haiku"]});function F89(A,q){if(A.includes(q))return!0;if(gc(A))return J5(A).toLowerCase().includes(q);return!1}function uv7(A,q){if(!A.startsWith(q))return!1;return A.length===q.length||A[q.length]==="-"}function Q89(A,q){let K=gc(A)?J5(A).toLowerCase():A;if(uv7(K,q))return!0;if(!q.startsWith("claude-")&&uv7(K,`claude-${q}`))return!0;return!1}function Bv7(A,q){for(let K of q){if(eP6(K))continue;let Y=K.indexOf(A);if(Y===-1)continue;let z=Y+A.length;if(z===K.length||K[z]==="-")return!0}return!1}function nt(A){let q=BA()||{},{availableModels:K}=q;if(!K)return!0;if(K.length===0)return!1;let Y=A.trim().toLowerCase(),z=K.map((w)=>w.trim().toLowerCase());if(z.includes(Y)){if(!eP6(Y)||!Bv7(Y,z))return!0}for(let w of z)if(eP6(w)&&!Bv7(w,z)&&F89(Y,w))return!0;if(gc(Y)){let w=J5(Y).toLowerCase();if(z.includes(w))return!0}for(let w of z)if(!eP6(w)&&gc(w)){if(J5(w).toLowerCase()===Y)return!0}for(let w of z)if(!eP6(w)&&!gc(w)){if(Q89(Y,w))return!0}return!1}var ym6=k(()=>{GA();A06();Xq()});var gv7={};m1(gv7,{renderModelSetting:()=>cH8,renderModelName:()=>KP,renderDefaultModelSetting:()=>dH8,parseUserSpecifiedModel:()=>J5,normalizeModelStringForAPI:()=>jg,modelDisplayString:()=>YP,isNonCustomOpusModel:()=>M56,isLegacyModelRemapEnabled:()=>ZO1,getUserSpecifiedModelSetting:()=>aR,getSmallFastModel:()=>Fj,getRuntimeMainLoopModel:()=>Mb,getPublicModelName:()=>lH8,getPublicModelDisplayName:()=>Rm6,getOpus46PricingSuffix:()=>D56,getMainLoopModel:()=>d5,getDefaultSonnetModel:()=>rf,getDefaultOpusModel:()=>TN,getDefaultMainLoopModelSetting:()=>Hg,getDefaultMainLoopModel:()=>m0,getDefaultHaikuModel:()=>q06,getClaudeAiUserDefaultModelDescription:()=>K06,getCanonicalName:()=>t$,getBestModel:()=>mv7});function Fj(){return process.env.ANTHROPIC_SMALL_FAST_MODEL||q06()}function M56(A){return A===p5().opus40||A===p5().opus41||A===p5().opus45||A===p5().opus46}function aR(){let A,q=th();if(q!==void 0)A=q;else{let K=BA()||{};A=process.env.ANTHROPIC_MODEL||K.model||void 0}if(A&&!nt(A))return;return A}function d5(){let A=aR();if(A!==void 0&&A!==null)return J5(A);return m0()}function mv7(){return TN()}function TN(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;if(D7()==="firstParty")return p5().opus46;return p5().opus41}function rf(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;if(D7()!=="firstParty")return p5().sonnet45;return p5().sonnet46}function q06(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;return p5().haiku45}function Mb(A){let{permissionMode:q,mainLoopModel:K,exceeds200kTokens:Y=!1}=A;if(aR()==="opusplan"&&q==="plan"&&!Y)return TN();if(aR()==="haiku"&&q==="plan")return rf();return K}function Hg(){if(XR())return TN();if(rt())return TN();return rf()}function m0(){return J5(Hg())}function t$(A){if(A.includes("claude-opus-4-6"))return"claude-opus-4-6";if(A.includes("claude-opus-4-5"))return"claude-opus-4-5";if(A.includes("claude-opus-4-1"))return"claude-opus-4-1";if(A.includes("claude-opus-4"))return"claude-opus-4";if(A.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(A.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(A.includes("claude-sonnet-4"))return"claude-sonnet-4";if(A.includes("claude-haiku-4-5"))return"claude-haiku-4-5";let q=A.match(/(claude-(\d+-\d+-)?\w+)/);if(q&&q[1])return q[1];return A}function K06(A=!1){if(XR()||rt())return`Opus 4.6 · Most capable for complex work${A?D56(!1,!0):""}`;return"Sonnet 4.6 · Best for everyday tasks"}function dH8(A){if(A==="opusplan")return"Opus 4.6 in plan mode, else Sonnet 4.6";return KP(J5(A))}function D56(A,q){if(D7()!=="firstParty")return"";let K=oR(tP6(A,q));return` ·${q?` (${it})`:""} ${K}`}function cH8(A){if(A==="opusplan")return"Opus Plan";if(gc(A))return A.charAt(0).toUpperCase()+A.slice(1);return KP(A)}function Rm6(A){switch(A){case p5().opus46:return"Opus 4.6";case p5().opus46+"[1m]":return"Opus 4.6 (1M context)";case p5().opus45:return"Opus 4.5";case p5().opus41:return"Opus 4.1";case p5().opus40:return"Opus 4";case p5().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case p5().sonnet46:return"Sonnet 4.6";case p5().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case p5().sonnet45:return"Sonnet 4.5";case p5().sonnet40:return"Sonnet 4";case p5().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case p5().sonnet37:return"Sonnet 3.7";case p5().sonnet35:return"Sonnet 3.5";case p5().haiku45:return"Haiku 4.5";case p5().haiku35:return"Haiku 3.5";default:return null}}function KP(A){let q=Rm6(A);if(q)return q;return A}function lH8(A){let q=Rm6(A);if(q)return`Claude ${q}`;return`Claude (${A})`}function J5(A){let q=A.trim(),K=q.toLowerCase(),Y=rk(K),z=Y?K.replace(/\[1m]$/i,"").trim():K;if(gc(z))switch(z){case"opusplan":return rf()+(Y?"[1m]":"");case"sonnet":return rf()+(Y?"[1m]":"");case"haiku":return q06()+(Y?"[1m]":"");case"opus":return TN()+(Y?"[1m]":"");case"best":return mv7();default:}if(D7()==="firstParty"&&p89(z)&&ZO1())return TN()+(Y?"[1m]":"");if(Y)return q.replace(/\[1m\]$/i,"").trim()+"[1m]";return q}function p89(A){return U89.includes(A)}function ZO1(){if($1(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP))return!1;return p8("tengu_grey_wool",!0)}function YP(A){if(A===null){if(A7())return`Default (${K06()})`;return`Default (${m0()})`}let q=J5(A);return A===q?q:`${A} (${q})`}function jg(A){return A.replace(/\[(1|2)m\]/gi,"")}var U89;var Xq=k(()=>{Q1();bA();PM();Z8();O56();ct();GA();yz();j$();ym6();A06();rA();U89=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function gq(){return!$1(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function kJ(){if(!gq())return!1;return ot()===null}function d89(A,q){switch(A){case"free":return q==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function ot(){if(!gq())return"Fast mode is not available";if(!ZY()&&p8("tengu_marble_sandcastle",!0))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";let A=p8("tengu_penguins_off",null);if(A!==null)return L(`Fast mode unavailable: ${A}`),A;if(u7()&&JR6()){if(!HA("flagSettings")?.fastMode)return L("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(D7()!=="firstParty")return L("Fast mode unavailable: Fast mode is not available on Bedrock, Vertex, or Foundry"),"Fast mode is not available on Bedrock, Vertex, or Foundry";if(VN.status==="disabled"&&p8("tengu_tangerine_ladder_boost",!0)){if(VN.reason==="network_error"||VN.reason==="unknown")return null;let q=g7()!==null?"oauth":"api-key",K=d89(VN.reason,q);return L(`Fast mode unavailable: ${K}`),K}return null}function rH8(A){if(!gq())return!1;if(!kJ())return!1;if(!nO(A))return!1;let q=h7();if(q.fastModePerSessionOptIn)return!1;return q.fastMode===!0}function nO(A){if(!gq())return!1;let q=A??Hg();return J5(q).toLowerCase().includes("opus-4-6")}function Qv7(A){return GO1.add(A),()=>{GO1.delete(A)}}function oH8(){if(Y06.status==="cooldown"&&Date.now()>=Y06.resetAt){if(gq()&&!iH8){L("Fast mode cooldown expired, re-enabling fast mode"),iH8=!0;for(let A of GO1)A.onCooldownExpired()}Y06={status:"active"}}return Y06}function Uv7(A,q){if(!gq())return;Y06={status:"cooldown",resetAt:A,reason:q},iH8=!1;let K=A-Date.now();L(`Fast mode cooldown triggered (${q}), duration ${Math.round(K/1000)}s`),c("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:K,cooldown_reason:q});for(let Y of GO1)Y.onCooldownTriggered(A,q)}function X56(){Y06={status:"active"}}function pv7(){if(VN.status==="disabled")return;VN={status:"disabled",reason:"preference"},xA("userSettings",{fastMode:void 0}),_8((A)=>({...A,penguinModeOrgEnabled:!1}));for(let A of fO1)A(!1)}function dv7(A){return nH8.add(A),()=>{nH8.delete(A)}}function c89(A){switch(A){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function l89(A){return A==="org_level_disabled_until"||A==="out_of_credits"}function cv7(A){let q=c89(A);if(L(`Fast mode overage rejection: ${A??"unknown"} — ${q}`),c("tengu_fast_mode_overage_rejected",{overage_disabled_reason:A??"unknown"}),!l89(A))xA("userSettings",{fastMode:void 0}),_8((K)=>({...K,penguinModeOrgEnabled:!1}));for(let K of nH8)K(q)}function Jg(){return oH8().status==="cooldown"}function Mg(A,q){let K=gq()&&kJ()&&!!q&&nO(A);if(K&&Jg())return"cooldown";if(K)return"on";return"off"}function lv7(A){return fO1.add(A),()=>{fO1.delete(A)}}async function i89(A){let q=`${U7().BASE_API_URL}/api/claude_code_penguin_mode`,K="accessToken"in A?{Authorization:`Bearer ${A.accessToken}`,"anthropic-beta":G0}:{"x-api-key":A.apiKey};return(await I8.get(q,{headers:K})).data}function aH8(){if(!gq())return;if(VN.status!=="pending")return;let A=!1,q=T1().penguinModeOrgEnabled===!0;VN=A||q?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function TO1(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return;if(!gq())return;if(Sm6)return L("Fast mode prefetch in progress, returning in-flight promise"),Sm6;let A=nk();if(!(g7()?.accessToken&&Cf())&&!A){VN=T1().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let K=Date.now();if(K-Fv7<n89){L("Skipping fast mode prefetch, fetched recently");return}Fv7=K;let Y=async()=>{let w=g7(),_=w?.accessToken&&Cf()?{accessToken:w.accessToken}:A?{apiKey:A}:null;if(!_)throw Error("No auth available");return i89(_)};async function z(){try{let w;try{w=await Y()}catch($){if(I8.isAxiosError($)&&($.response?.status===401||$.response?.status===403&&typeof $.response?.data==="string"&&$.response.data.includes("OAuth token has been revoked"))){let H=g7()?.accessToken;if(H)await Sf(H),w=await Y();else throw $}else throw $}let _=VN.status!=="pending"?VN.status==="enabled":T1().penguinModeOrgEnabled;if(VN=w.enabled?{status:"enabled"}:{status:"disabled",reason:w.disabled_reason??"preference"},_!==w.enabled){if(!w.enabled)xA("userSettings",{fastMode:void 0});_8(($)=>({...$,penguinModeOrgEnabled:w.enabled}));for(let $ of fO1)$(w.enabled)}L(`Org fast mode: ${w.enabled?"enabled":`disabled (${w.disabled_reason??"preference"})`}`)}catch(w){VN=T1().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},L(`Failed to fetch org fast mode status, defaulting to ${VN.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${w}`,{level:"error"}),c("tengu_org_penguin_mode_fetch_failed",{})}finally{Sm6=null}}return Sm6=z(),Sm6}var Cm6="opus",EE="Opus 4.6",Y06,iH8=!1,GO1,nH8,VN,fO1,n89=30000,Fv7=0,Sm6=null;var aZ=k(()=>{A3();GA();B1();G1();Q1();bA();yz();Xq();rA();L5();Q8();Z8();Y06={status:"active"},GO1=new Set;nH8=new Set;VN={status:"pending"},fO1=new Set});function sH8(A){let q=f_();if(q.lastSessionId!==A)return;let K;if(q.lastModelUsage)K=Object.fromEntries(Object.entries(q.lastModelUsage).map(([Y,z])=>[Y,{...z,contextWindow:XM(Y,kj()),maxOutputTokens:Ks(Y).default}]));return{totalCostUSD:q.lastCost??0,totalAPIDuration:q.lastAPIDuration??0,totalAPIDurationWithoutRetries:q.lastAPIDurationWithoutRetries??0,totalToolDuration:q.lastToolDuration??0,totalLinesAdded:q.lastLinesAdded??0,totalLinesRemoved:q.lastLinesRemoved??0,lastDuration:q.lastDuration,modelUsage:K}}function VO1(A){let q=sH8(A);if(!q)return!1;return _R6(q),!0}function NO1(A){T_((q)=>({...q,lastCost:bX(),lastAPIDuration:kk(),lastAPIDurationWithoutRetries:vg1(),lastToolDuration:kg1(),lastDuration:ZH6(),lastLinesAdded:E46(),lastLinesRemoved:L46(),lastTotalInputTokens:y46(),lastTotalOutputTokens:R46(),lastTotalCacheCreationInputTokens:wR6(),lastTotalCacheReadInputTokens:zR6(),lastTotalWebSearchRequests:bg1(),lastFpsAverage:A?.averageFps,lastFpsLow1Pct:A?.low1PctFps,lastModelUsage:Object.fromEntries(Object.entries(sh()).map(([K,Y])=>[K,{inputTokens:Y.inputTokens,outputTokens:Y.outputTokens,cacheReadInputTokens:Y.cacheReadInputTokens,cacheCreationInputTokens:Y.cacheCreationInputTokens,webSearchRequests:Y.webSearchRequests,costUSD:Y.costUSD}])),lastSessionId:d1()}))}function hm6(A,q=4){return`$${A>0.5?o89(A,100).toFixed(2):A.toFixed(q)}`}function r89(){let A=sh();if(Object.keys(A).length===0)return"Usage:                 0 input, 0 output, 0 cache read, 0 cache write";let q={};for(let[Y,z]of Object.entries(A)){let w=t$(Y);if(!q[w])q[w]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0,contextWindow:0,maxOutputTokens:0};let _=q[w];_.inputTokens+=z.inputTokens,_.outputTokens+=z.outputTokens,_.cacheReadInputTokens+=z.cacheReadInputTokens,_.cacheCreationInputTokens+=z.cacheCreationInputTokens,_.webSearchRequests+=z.webSearchRequests,_.costUSD+=z.costUSD}let K="Usage by model:";for(let[Y,z]of Object.entries(q)){let w=`  ${f3(z.inputTokens)} input, ${f3(z.outputTokens)} output, ${f3(z.cacheReadInputTokens)} cache read, ${f3(z.cacheCreationInputTokens)} cache write`+(z.webSearchRequests>0?`, ${f3(z.webSearchRequests)} web search`:"")+` (${hm6(z.costUSD)})`;K+=`
`+`${Y}:`.padStart(21)+w}return K}function vO1(){let A=hm6(bX())+(xg1()?" (costs may be inaccurate due to usage of unknown models)":""),q=r89();return M1.dim(`Total cost:            ${A}
Total duration (API):  ${G3(kk())}
Total duration (wall): ${G3(ZH6())}
Total code changes:    ${E46()} ${E46()===1?"line":"lines"} added, ${L46()} ${L46()===1?"line":"lines"} removed
${q}`)}function o89(A,q){return Math.round(A*q)/q}function a89(A,q,K){let Y=ug1(K)??{inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0,contextWindow:0,maxOutputTokens:0};return Y.inputTokens+=q.input_tokens,Y.outputTokens+=q.output_tokens,Y.cacheReadInputTokens+=q.cache_read_input_tokens??0,Y.cacheCreationInputTokens+=q.cache_creation_input_tokens??0,Y.webSearchRequests+=q.server_tool_use?.web_search_requests??0,Y.costUSD+=A,Y.contextWindow=XM(K,kj()),Y.maxOutputTokens=Ks(K).default,Y}function kO1(A,q,K){let Y=a89(A,q,K);Ng1(A,Y,K);let z=gq()&&q.speed==="fast"?{model:K,speed:"fast"}:{model:K};Ug1()?.add(A,z),NH6()?.add(q.input_tokens,{...z,type:"input"}),NH6()?.add(q.output_tokens,{...z,type:"output"}),NH6()?.add(q.cache_read_input_tokens??0,{...z,type:"cacheRead"}),NH6()?.add(q.cache_creation_input_tokens??0,{...z,type:"cacheCreation"})}var kE=k(()=>{iK();aZ();Oq();Xq();Q8();Q1();Q1();Q1();PM();Q1()});function Im6(A){return A.replaceAll("&",nv7).replaceAll("$",rv7)}function ov7(A){return A.replaceAll(nv7,"&").replaceAll(rv7,"$")}function bm6(A,q){let K=0,Y=0;if(A.length===0&&q)K=q.split(/\r?\n/).length;else K=A.reduce((z,w)=>z+w.lines.filter((_)=>_.startsWith("+")).length,0),Y=A.reduce((z,w)=>z+w.lines.filter((_)=>_.startsWith("-")).length,0);t11(K,Y),A81()?.add(K,{type:"added"}),A81()?.add(Y,{type:"removed"}),c("tengu_file_changed",{lines_added:K,lines_removed:Y})}function EO1({filePath:A,oldContent:q,newContent:K,ignoreWhitespace:Y=!1,singleHunk:z=!1}){return nD6(A,A,Im6(q),Im6(K),void 0,void 0,{ignoreWhitespace:Y,context:z?1e5:iv7}).hunks.map((w)=>({...w,lines:w.lines.map(ov7)}))}function sR({filePath:A,fileContents:q,edits:K,ignoreWhitespace:Y=!1}){let z=Im6(Fc(q));return nD6(A,A,z,K.reduce((w,_)=>{let{old_string:$,new_string:O}=_,H="replace_all"in _?_.replace_all:!1,j=Im6(Fc($)),J=Im6(Fc(O));if(H)return w.replaceAll(j,()=>J);else return w.replace(j,()=>J)},z),void 0,void 0,{context:iv7,ignoreWhitespace:Y}).hunks.map((w)=>({...w,lines:w.lines.map(ov7)}))}var iv7=3,nv7="<<:AMPERSAND_TOKEN:>>",rv7="<<:DOLLAR_TOKEN:>>";var Qc=k(()=>{rD6();kE();p7();B1();Q1()});var LO1="ZPMQVRWSNKTXJBYH",B02,m02,g02;var at=k(()=>{rA();Q1();G1();B1();B02=Array.from({length:256},(A,q)=>LO1[q>>>4]+LO1[q&15]),m02=new RegExp(`^(\\d+)#([${LO1}]{2})\\|`),g02=new RegExp(`^(\\d+)#([${LO1}]{2})$`)});function s89(){return`
- You must use your \`${u4}\` tool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file. `}function av7(){return t89()}function t89(){return`Performs exact string replacements in files.

Usage:${s89()}
- When editing text from Read tool output, ensure you preserve the exact indentation (tabs/spaces) as it appears AFTER the line number prefix. The line number prefix format is: spaces + line number + tab. Everything after that tab is the actual file content to match. Never include any part of the line number prefix in the old_string or new_string.
- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
- The edit will FAIL if \`old_string\` is not unique in the file. Either provide a larger string with more surrounding context to make it unique or use \`replace_all\` to change every instance of \`old_string\`.
- Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable for instance.`}var sv7=k(()=>{U2();at()});function tv7(A){return A.replaceAll(tH8,"'").replaceAll(yO1,"'").replaceAll(eH8,'"').replaceAll(Aj8,'"')}function qj8(A){let q=A.split(/(\r\n|\n|\r)/),K="";for(let Y=0;Y<q.length;Y++){let z=q[Y];if(z!==void 0)if(Y%2===0)K+=z.replace(/\s+$/,"");else K+=z}return K}function P56(A,q){if(A.includes(q))return q;let K=tv7(q),z=tv7(A).indexOf(K);if(z!==-1)return A.substring(z,z+q.length);return null}function z06(A,q,K){if(A===q)return K;let Y=q.includes(eH8)||q.includes(Aj8),z=q.includes(tH8)||q.includes(yO1);if(!Y&&!z)return K;let w=K;if(Y)w=e89(w);if(z)w=AA9(w);return w}function ev7(A,q){if(q===0)return!0;let K=A[q-1];return K===" "||K==="\t"||K===`
`||K==="\r"||K==="("||K==="["||K==="{"||K==="—"||K==="–"}function e89(A){let q=[...A],K=[];for(let Y=0;Y<q.length;Y++)if(q[Y]==='"')K.push(ev7(q,Y)?eH8:Aj8);else K.push(q[Y]);return K.join("")}function AA9(A){let q=[...A],K=[];for(let Y=0;Y<q.length;Y++)if(q[Y]==="'"){let z=Y>0?q[Y-1]:void 0,w=Y<q.length-1?q[Y+1]:void 0,_=z!==void 0&&/\p{L}/u.test(z),$=w!==void 0&&/\p{L}/u.test(w);if(_&&$)K.push(yO1);else K.push(ev7(q,Y)?tH8:yO1)}else K.push(q[Y]);return K.join("")}function qA9(A,q,K,Y=!1){let z=Y?(_,$,O)=>_.replaceAll($,()=>O):(_,$,O)=>_.replace($,()=>O);if(K!=="")return z(A,q,K);return!q.endsWith(`
`)&&A.includes(q+`
`)?z(A,q+`
`,K):z(A,q,K)}function RO1({filePath:A,fileContents:q,oldString:K,newString:Y,replaceAll:z=!1}){return xm6({filePath:A,fileContents:q,edits:[{old_string:K,new_string:Y,replace_all:z}]})}function xm6({filePath:A,fileContents:q,edits:K}){let Y=q,z=[];if(!q&&K.length===1&&K[0]&&K[0].old_string===""&&K[0].new_string==="")return{patch:sR({filePath:A,fileContents:q,edits:[{old_string:q,new_string:Y,replace_all:!1}]}),updatedFile:""};for(let _ of K){let $=_.old_string.replace(/\n+$/,"");for(let H of z)if($!==""&&H.includes($))throw Error("Cannot edit file: old_string is a substring of a new_string from a previous edit.");let O=Y;if(Y=_.old_string===""?_.new_string:qA9(Y,_.old_string,_.new_string,_.replace_all),Y===O)throw Error("String not found in file. Failed to apply edit.");z.push(_.new_string)}if(Y===q)throw Error("Original and edited file match exactly. Failed to apply edit.");return{patch:EO1({filePath:A,oldContent:Fc(q),newContent:Fc(Y)}),updatedFile:Y}}function Ak7(A,q){return nD6("file.txt","file.txt",A,q,void 0,void 0,{context:8}).hunks.map((Y)=>({startLine:Y.oldStart,content:Y.lines.filter((z)=>!z.startsWith("-")&&!z.startsWith("\\")).map((z)=>z.slice(1)).join(`
`)})).map(SO1).join(`
...
`)}function qk7(A){return A.map((q)=>{let K=[],Y=[],z=[];for(let w of q.lines)if(w.startsWith(" "))K.push(w.slice(1)),Y.push(w.slice(1)),z.push(w.slice(1));else if(w.startsWith("-"))Y.push(w.slice(1));else if(w.startsWith("+"))z.push(w.slice(1));return{old_string:Y.join(`
`),new_string:z.join(`
`),replace_all:!1}})}function YA9(A){let q=A,K=[];for(let[Y,z]of Object.entries(KA9)){let w=q;if(q=q.replaceAll(Y,z),w!==q)K.push({from:Y,to:z})}return{result:q,appliedReplacements:K}}function Kk7({file_path:A,edits:q}){if(q.length===0)return{file_path:A,edits:q};try{let K=t4(A);if(!P1().existsSync(K))return{file_path:A,edits:q};let Y=Kj8(K);return{file_path:A,edits:q.map(({old_string:z,new_string:w,replace_all:_})=>{let $=qj8(w),O=z;if(Y.includes(O))return{old_string:O,new_string:$,replace_all:_};let{result:H,appliedReplacements:j}=YA9(O);if(Y.includes(H)){let J=$;for(let{from:M,to:D}of j)J=J.replaceAll(M,D);return{old_string:H,new_string:J,replace_all:_}}return{old_string:O,new_string:$,replace_all:_}})}}catch(K){$6(K)}return{file_path:A,edits:q}}function zA9(A,q,K){if(A.length===q.length&&A.every(($,O)=>{let H=q[O];return H!==void 0&&$.old_string===H.old_string&&$.new_string===H.new_string&&$.replace_all===H.replace_all}))return!0;let Y=null,z=null,w=null,_=null;try{Y=xm6({filePath:"temp",fileContents:K,edits:A})}catch($){z=D1($)}try{w=xm6({filePath:"temp",fileContents:K,edits:q})}catch($){_=D1($)}if(z!==null&&_!==null)return z===_;if(z!==null||_!==null)return!1;return Y.updatedFile===w.updatedFile}function Yk7(A,q){if(A.file_path!==q.file_path)return!1;if(A.edits.length===q.edits.length&&A.edits.every((z,w)=>{let _=q.edits[w];return _!==void 0&&z.old_string===_.old_string&&z.new_string===_.new_string&&z.replace_all===_.replace_all}))return!0;let Y=P1().existsSync(A.file_path)?Kj8(A.file_path):"";return zA9(A.edits,q.edits,Y)}var tH8="‘",yO1="’",eH8="“",Aj8="”",KA9;var W56=k(()=>{rD6();p7();Qc();Kz();Y7();x1();at();MA();KA9={"<fnr>":"<function_results>","<n>":"<name>","</n>":"</name>","<o>":"<output>","</o>":"</output>","<e>":"<error>","</e>":"</error>","<s>":"<system>","</s>":"</system>","<r>":"<result>","</r>":"</result>","< META_START >":"<META_START>","< META_END >":"<META_END>","< EOT >":"<EOT>","< META >":"<META>","< SOS >":"<SOS>","\n\nH:":`

Human:`,"\n\nA:":`

Assistant:`}});async function um6(A,q,{concurrency:K=Number.POSITIVE_INFINITY,stopOnError:Y=!0,signal:z}={}){return new Promise((w,_)=>{if(A[Symbol.iterator]===void 0&&A[Symbol.asyncIterator]===void 0)throw TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof A})`);if(typeof q!=="function")throw TypeError("Mapper function is required");if(!(Number.isSafeInteger(K)&&K>=1||K===Number.POSITIVE_INFINITY))throw TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${K}\` (${typeof K})`);let $=[],O=[],H=new Map,j=!1,J=!1,M=!1,D=0,X=0,P=A[Symbol.iterator]===void 0?A[Symbol.asyncIterator]():A[Symbol.iterator](),W=()=>{f(z.reason)},Z=()=>{z?.removeEventListener("abort",W)},G=(N)=>{w(N),Z()},f=(N)=>{j=!0,J=!0,_(N),Z()};if(z){if(z.aborted)f(z.reason);z.addEventListener("abort",W,{once:!0})}let V=async()=>{if(J)return;let N=await P.next(),v=X;if(X++,N.done){if(M=!0,D===0&&!J){if(!Y&&O.length>0){f(AggregateError(O));return}if(J=!0,H.size===0){G($);return}let y=[];for(let[R,h]of $.entries()){if(H.get(R)===zk7)continue;y.push(h)}G(y)}return}D++,(async()=>{try{let y=await N.value;if(J)return;let R=await q(y,v);if(R===zk7)H.set(v,R);$[v]=R,D--,await V()}catch(y){if(Y)f(y);else{O.push(y),D--;try{await V()}catch(R){f(R)}}}})()};(async()=>{for(let N=0;N<K;N++){try{await V()}catch(v){f(v);break}if(M||j)break}})()})}var zk7;var Yj8=k(()=>{zk7=Symbol("skip")});class zj8{constructor(A){this._client=A}async*callToolStream(A,q=gB,K){let Y=this._client,z={...K,task:K?.task??(Y.isToolTask(A.name)?{}:void 0)},w=Y.requestStream({method:"tools/call",params:A},q,z),_=Y.getToolOutputValidator(A.name);for await(let $ of w){if($.type==="result"&&_){let O=$.result;if(!O.structuredContent&&!O.isError){yield{type:"error",error:new fq(YK.InvalidRequest,`Tool ${A.name} has an output schema but did not return structured content`)};return}if(O.structuredContent)try{let H=_(O.structuredContent);if(!H.valid){yield{type:"error",error:new fq(YK.InvalidParams,`Structured content does not match the tool's output schema: ${H.errorMessage}`)};return}}catch(H){if(H instanceof fq){yield{type:"error",error:H};return}yield{type:"error",error:new fq(YK.InvalidParams,`Failed to validate structured content: ${H instanceof Error?H.message:String(H)}`)};return}}yield $}}async getTask(A,q){return this._client.getTask({taskId:A},q)}async getTaskResult(A,q,K){return this._client.getTaskResult({taskId:A},q,K)}async listTasks(A,q){return this._client.listTasks(A?{cursor:A}:void 0,q)}async cancelTask(A,q){return this._client.cancelTask({taskId:A},q)}requestStream(A,q,K){return this._client.requestStream(A,q,K)}}var wk7=k(()=>{uX()});function CO1(A,q){if(!A||q===null||typeof q!=="object")return;if(A.type==="object"&&A.properties&&typeof A.properties==="object"){let K=q,Y=A.properties;for(let z of Object.keys(Y)){let w=Y[z];if(K[z]===void 0&&Object.prototype.hasOwnProperty.call(w,"default"))K[z]=w.default;if(K[z]!==void 0)CO1(w,K[z])}}if(Array.isArray(A.anyOf)){for(let K of A.anyOf)if(typeof K!=="boolean")CO1(K,q)}if(Array.isArray(A.oneOf)){for(let K of A.oneOf)if(typeof K!=="boolean")CO1(K,q)}}function wA9(A){if(!A)return{supportsFormMode:!1,supportsUrlMode:!1};let q=A.form!==void 0,K=A.url!==void 0;return{supportsFormMode:q||!q&&!K,supportsUrlMode:K}}var hO1;var _k7=k(()=>{Il1();uX();xi1();qC6();wk7();hO1=class hO1 extends YC6{constructor(A,q){super(q);if(this._clientInfo=A,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=q?.capabilities??{},this._jsonSchemaValidator=q?.jsonSchemaValidator??new yC6,q?.listChanged)this._pendingListChangedConfig=q.listChanged}_setupListChangedHandlers(A){if(A.tools&&this._serverCapabilities?.tools?.listChanged)this._setupListChangedHandler("tools",IS6,A.tools,async()=>{return(await this.listTools()).tools});if(A.prompts&&this._serverCapabilities?.prompts?.listChanged)this._setupListChangedHandler("prompts",SS6,A.prompts,async()=>{return(await this.listPrompts()).prompts});if(A.resources&&this._serverCapabilities?.resources?.listChanged)this._setupListChangedHandler("resources",yS6,A.resources,async()=>{return(await this.listResources()).resources})}get experimental(){if(!this._experimental)this._experimental={tasks:new zj8(this)};return this._experimental}registerCapabilities(A){if(this.transport)throw Error("Cannot register capabilities after connecting to transport");this._capabilities=T71(this._capabilities,A)}setRequestHandler(A,q){let Y=vj6(A)?.method;if(!Y)throw Error("Schema is missing a method literal");let z;if(Ka(Y)){let _=Y;z=_._zod?.def?.value??_.value}else{let _=Y;z=_._def?.value??_.value}if(typeof z!=="string")throw Error("Schema method literal must be a string");let w=z;if(w==="elicitation/create"){let _=async($,O)=>{let H=Nf(pp,$);if(!H.success){let Z=H.error instanceof Error?H.error.message:String(H.error);throw new fq(YK.InvalidParams,`Invalid elicitation request: ${Z}`)}let{params:j}=H.data;j.mode=j.mode??"form";let{supportsFormMode:J,supportsUrlMode:M}=wA9(this._capabilities.elicitation);if(j.mode==="form"&&!J)throw new fq(YK.InvalidParams,"Client does not support form-mode elicitation requests");if(j.mode==="url"&&!M)throw new fq(YK.InvalidParams,"Client does not support URL-mode elicitation requests");let D=await Promise.resolve(q($,O));if(j.task){let Z=Nf(Up,D);if(!Z.success){let G=Z.error instanceof Error?Z.error.message:String(Z.error);throw new fq(YK.InvalidParams,`Invalid task creation result: ${G}`)}return Z.data}let X=Nf(io,D);if(!X.success){let Z=X.error instanceof Error?X.error.message:String(X.error);throw new fq(YK.InvalidParams,`Invalid elicitation result: ${Z}`)}let P=X.data,W=j.mode==="form"?j.requestedSchema:void 0;if(j.mode==="form"&&P.action==="accept"&&P.content&&W){if(this._capabilities.elicitation?.form?.applyDefaults)try{CO1(W,P.content)}catch{}}return P};return super.setRequestHandler(A,_)}if(w==="sampling/createMessage"){let _=async($,O)=>{let H=Nf(Ic1,$);if(!H.success){let P=H.error instanceof Error?H.error.message:String(H.error);throw new fq(YK.InvalidParams,`Invalid sampling request: ${P}`)}let{params:j}=H.data,J=await Promise.resolve(q($,O));if(j.task){let P=Nf(Up,J);if(!P.success){let W=P.error instanceof Error?P.error.message:String(P.error);throw new fq(YK.InvalidParams,`Invalid task creation result: ${W}`)}return P.data}let D=j.tools||j.toolChoice?xS6:t46,X=Nf(D,J);if(!X.success){let P=X.error instanceof Error?X.error.message:String(X.error);throw new fq(YK.InvalidParams,`Invalid sampling result: ${P}`)}return X.data};return super.setRequestHandler(A,_)}return super.setRequestHandler(A,q)}assertCapability(A,q){if(!this._serverCapabilities?.[A])throw Error(`Server does not support ${A} (required for ${q})`)}async connect(A,q){if(await super.connect(A),A.sessionId!==void 0)return;try{let K=await this.request({method:"initialize",params:{protocolVersion:co,capabilities:this._capabilities,clientInfo:this._clientInfo}},Nc1,q);if(K===void 0)throw Error(`Server sent invalid initialize result: ${K}`);if(!IA1.includes(K.protocolVersion))throw Error(`Server's protocol version is not supported: ${K.protocolVersion}`);if(this._serverCapabilities=K.capabilities,this._serverVersion=K.serverInfo,A.setProtocolVersion)A.setProtocolVersion(K.protocolVersion);if(this._instructions=K.instructions,await this.notification({method:"notifications/initialized"}),this._pendingListChangedConfig)this._setupListChangedHandlers(this._pendingListChangedConfig),this._pendingListChangedConfig=void 0}catch(K){throw this.close(),K}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(A){switch(A){case"logging/setLevel":if(!this._serverCapabilities?.logging)throw Error(`Server does not support logging (required for ${A})`);break;case"prompts/get":case"prompts/list":if(!this._serverCapabilities?.prompts)throw Error(`Server does not support prompts (required for ${A})`);break;case"resources/list":case"resources/templates/list":case"resources/read":case"resources/subscribe":case"resources/unsubscribe":if(!this._serverCapabilities?.resources)throw Error(`Server does not support resources (required for ${A})`);if(A==="resources/subscribe"&&!this._serverCapabilities.resources.subscribe)throw Error(`Server does not support resource subscriptions (required for ${A})`);break;case"tools/call":case"tools/list":if(!this._serverCapabilities?.tools)throw Error(`Server does not support tools (required for ${A})`);break;case"completion/complete":if(!this._serverCapabilities?.completions)throw Error(`Server does not support completions (required for ${A})`);break;case"initialize":break;case"ping":break}}assertNotificationCapability(A){switch(A){case"notifications/roots/list_changed":if(!this._capabilities.roots?.listChanged)throw Error(`Client does not support roots list changed notifications (required for ${A})`);break;case"notifications/initialized":break;case"notifications/cancelled":break;case"notifications/progress":break}}assertRequestHandlerCapability(A){if(!this._capabilities)return;switch(A){case"sampling/createMessage":if(!this._capabilities.sampling)throw Error(`Client does not support sampling capability (required for ${A})`);break;case"elicitation/create":if(!this._capabilities.elicitation)throw Error(`Client does not support elicitation capability (required for ${A})`);break;case"roots/list":if(!this._capabilities.roots)throw Error(`Client does not support roots capability (required for ${A})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw Error(`Client does not support tasks capability (required for ${A})`);break;case"ping":break}}assertTaskCapability(A){w41(this._serverCapabilities?.tasks?.requests,A,"Server")}assertTaskHandlerCapability(A){if(!this._capabilities)return;_41(this._capabilities.tasks?.requests,A,"Client")}async ping(A){return this.request({method:"ping"},Qp,A)}async complete(A,q){return this.request({method:"completion/complete",params:A},bc1,q)}async setLoggingLevel(A,q){return this.request({method:"logging/setLevel",params:{level:A}},Qp,q)}async getPrompt(A,q){return this.request({method:"prompts/get",params:A},Cc1,q)}async listPrompts(A,q){return this.request({method:"prompts/list",params:A},RS6,q)}async listResources(A,q){return this.request({method:"resources/list",params:A},ES6,q)}async listResourceTemplates(A,q){return this.request({method:"resources/templates/list",params:A},kc1,q)}async readResource(A,q){return this.request({method:"resources/read",params:A},LS6,q)}async subscribeResource(A,q){return this.request({method:"resources/subscribe",params:A},Qp,q)}async unsubscribeResource(A,q){return this.request({method:"resources/unsubscribe",params:A},Qp,q)}async callTool(A,q=gB,K){if(this.isToolTaskRequired(A.name))throw new fq(YK.InvalidRequest,`Tool "${A.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let Y=await this.request({method:"tools/call",params:A},q,K),z=this.getToolOutputValidator(A.name);if(z){if(!Y.structuredContent&&!Y.isError)throw new fq(YK.InvalidRequest,`Tool ${A.name} has an output schema but did not return structured content`);if(Y.structuredContent)try{let w=z(Y.structuredContent);if(!w.valid)throw new fq(YK.InvalidParams,`Structured content does not match the tool's output schema: ${w.errorMessage}`)}catch(w){if(w instanceof fq)throw w;throw new fq(YK.InvalidParams,`Failed to validate structured content: ${w instanceof Error?w.message:String(w)}`)}}return Y}isToolTask(A){if(!this._serverCapabilities?.tasks?.requests?.tools?.call)return!1;return this._cachedKnownTaskTools.has(A)}isToolTaskRequired(A){return this._cachedRequiredTaskTools.has(A)}cacheToolMetadata(A){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let q of A){if(q.outputSchema){let Y=this._jsonSchemaValidator.getValidator(q.outputSchema);this._cachedToolOutputValidators.set(q.name,Y)}let K=q.execution?.taskSupport;if(K==="required"||K==="optional")this._cachedKnownTaskTools.add(q.name);if(K==="required")this._cachedRequiredTaskTools.add(q.name)}}getToolOutputValidator(A){return this._cachedToolOutputValidators.get(A)}async listTools(A,q){let K=await this.request({method:"tools/list",params:A},hS6,q);return this.cacheToolMetadata(K.tools),K}_setupListChangedHandler(A,q,K,Y){let z=N9A.safeParse(K);if(!z.success)throw Error(`Invalid ${A} listChanged options: ${z.error.message}`);if(typeof K.onChanged!=="function")throw Error(`Invalid ${A} listChanged options: onChanged must be a function`);let{autoRefresh:w,debounceMs:_}=z.data,{onChanged:$}=K,O=async()=>{if(!w){$(null,null);return}try{let j=await Y();$(null,j)}catch(j){let J=j instanceof Error?j:Error(String(j));$(J,null)}},H=()=>{if(_){let j=this._listChangedDebounceTimers.get(A);if(j)clearTimeout(j);let J=setTimeout(O,_);this._listChangedDebounceTimers.set(A,J)}else O()};this.setNotificationHandler(q,H)}async sendRootsListChanged(){return this.notification({method:"notifications/roots/list_changed"})}}});import IO1 from"node:process";import{PassThrough as _A9}from"node:stream";function OA9(){let A={};for(let q of $A9){let K=IO1.env[q];if(K===void 0)continue;if(K.startsWith("()"))continue;A[q]=K}return A}class wj8{constructor(A){if(this._readBuffer=new BS6,this._stderrStream=null,this._serverParams=A,A.stderr==="pipe"||A.stderr==="overlapped")this._stderrStream=new _A9}async start(){if(this._process)throw Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((A,q)=>{if(this._process=$k7.default(this._serverParams.command,this._serverParams.args??[],{env:{...OA9(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:IO1.platform==="win32"&&HA9(),cwd:this._serverParams.cwd}),this._process.on("error",(K)=>{q(K),this.onerror?.(K)}),this._process.on("spawn",()=>{A()}),this._process.on("close",(K)=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",(K)=>{this.onerror?.(K)}),this._process.stdout?.on("data",(K)=>{this._readBuffer.append(K),this.processReadBuffer()}),this._process.stdout?.on("error",(K)=>{this.onerror?.(K)}),this._stderrStream&&this._process.stderr)this._process.stderr.pipe(this._stderrStream)})}get stderr(){if(this._stderrStream)return this._stderrStream;return this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){while(!0)try{let A=this._readBuffer.readMessage();if(A===null)break;this.onmessage?.(A)}catch(A){this.onerror?.(A)}}async close(){if(this._process){let A=this._process;this._process=void 0;let q=new Promise((K)=>{A.once("close",()=>{K()})});try{A.stdin?.end()}catch{}if(await Promise.race([q,new Promise((K)=>setTimeout(K,2000).unref())]),A.exitCode===null){try{A.kill("SIGTERM")}catch{}await Promise.race([q,new Promise((K)=>setTimeout(K,2000).unref())])}if(A.exitCode===null)try{A.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(A){return new Promise((q)=>{if(!this._process?.stdin)throw Error("Not connected");let K=lA1(A);if(this._process.stdin.write(K))q();else this._process.stdin.once("drain",q)})}}function HA9(){return"type"in IO1}var $k7,$A9;var Ok7=k(()=>{Bc1();$k7=e(Ro1(),1),$A9=IO1.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"]});function _j8(A){}function bO1(A){if(typeof A=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:q=_j8,onError:K=_j8,onRetry:Y=_j8,onComment:z}=A,w="",_=!0,$,O="",H="";function j(P){let W=_?P.replace(/^\xEF\xBB\xBF/,""):P,[Z,G]=jA9(`${w}${W}`);for(let f of Z)J(f);w=G,_=!1}function J(P){if(P===""){D();return}if(P.startsWith(":")){z&&z(P.slice(P.startsWith(": ")?2:1));return}let W=P.indexOf(":");if(W!==-1){let Z=P.slice(0,W),G=P[W+1]===" "?2:1,f=P.slice(W+G);M(Z,f,P);return}M(P,"",P)}function M(P,W,Z){switch(P){case"event":H=W;break;case"data":O=`${O}${W}
`;break;case"id":$=W.includes("\x00")?void 0:W;break;case"retry":/^\d+$/.test(W)?Y(parseInt(W,10)):K(new $j8(`Invalid \`retry\` value: "${W}"`,{type:"invalid-retry",value:W,line:Z}));break;default:K(new $j8(`Unknown field "${P.length>20?`${P.slice(0,20)}…`:P}"`,{type:"unknown-field",field:P,value:W,line:Z}));break}}function D(){O.length>0&&q({id:$,event:H||void 0,data:O.endsWith(`
`)?O.slice(0,-1):O}),$=void 0,O="",H=""}function X(P={}){w&&P.consume&&J(w),_=!0,$=void 0,O="",H="",w=""}return{feed:j,reset:X}}function jA9(A){let q=[],K="",Y=0;for(;Y<A.length;){let z=A.indexOf("\r",Y),w=A.indexOf(`
`,Y),_=-1;if(z!==-1&&w!==-1?_=Math.min(z,w):z!==-1?_=z:w!==-1&&(_=w),_===-1){K=A.slice(Y);break}else{let $=A.slice(Y,_);q.push($),Y=_+1,A[Y-1]==="\r"&&A[Y]===`
`&&Y++}}return[q,K]}var $j8;var Oj8=k(()=>{$j8=class $j8 extends Error{constructor(A,q){super(A),this.name="ParseError",this.type=q.type,this.field=q.field,this.value=q.value,this.line=q.line}}});function JA9(A){let q=globalThis.DOMException;return typeof q=="function"?new q(A,"SyntaxError"):SyntaxError(A)}function jj8(A){return A instanceof Error?"errors"in A&&Array.isArray(A.errors)?A.errors.map(jj8).join(", "):("cause"in A)&&A.cause instanceof Error?`${A}: ${jj8(A.cause)}`:A.message:`${A}`}function Hk7(A){return{type:A.type,message:A.message,code:A.code,defaultPrevented:A.defaultPrevented,cancelable:A.cancelable,timeStamp:A.timeStamp}}function MA9(){let A="document"in globalThis?globalThis.document:void 0;return A&&typeof A=="object"&&"baseURI"in A&&typeof A.baseURI=="string"?A.baseURI:void 0}var Hj8,Jk7=(A)=>{throw TypeError(A)},Gj8=(A,q,K)=>q.has(A)||Jk7("Cannot "+K),e9=(A,q,K)=>(Gj8(A,q,"read from private field"),K?K.call(A):q.get(A)),pD=(A,q,K)=>q.has(A)?Jk7("Cannot add the same private member more than once"):q instanceof WeakSet?q.add(A):q.set(A,K),rO=(A,q,K,Y)=>(Gj8(A,q,"write to private field"),q.set(A,K),K),Uc=(A,q,K)=>(Gj8(A,q,"access private method"),K),NN,Z56,w06,xO1,uO1,gm6,O06,Fm6,st,_06,H06,$06,Bm6,Db,Jj8,Mj8,Dj8,jk7,Xj8,Pj8,mm6,Wj8,Zj8,j06;var Mk7=k(()=>{Oj8();Hj8=class Hj8 extends Event{constructor(A,q){var K,Y;super(A),this.code=(K=q==null?void 0:q.code)!=null?K:void 0,this.message=(Y=q==null?void 0:q.message)!=null?Y:void 0}[Symbol.for("nodejs.util.inspect.custom")](A,q,K){return K(Hk7(this),q)}[Symbol.for("Deno.customInspect")](A,q){return A(Hk7(this),q)}};j06=class j06 extends EventTarget{constructor(A,q){var K,Y;super(),pD(this,Db),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,pD(this,NN),pD(this,Z56),pD(this,w06),pD(this,xO1),pD(this,uO1),pD(this,gm6),pD(this,O06),pD(this,Fm6,null),pD(this,st),pD(this,_06),pD(this,H06,null),pD(this,$06,null),pD(this,Bm6,null),pD(this,Mj8,async(z)=>{var w;e9(this,_06).reset();let{body:_,redirected:$,status:O,headers:H}=z;if(O===204){Uc(this,Db,mm6).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if($?rO(this,w06,new URL(z.url)):rO(this,w06,void 0),O!==200){Uc(this,Db,mm6).call(this,`Non-200 status code (${O})`,O);return}if(!(H.get("content-type")||"").startsWith("text/event-stream")){Uc(this,Db,mm6).call(this,'Invalid content type, expected "text/event-stream"',O);return}if(e9(this,NN)===this.CLOSED)return;rO(this,NN,this.OPEN);let j=new Event("open");if((w=e9(this,Bm6))==null||w.call(this,j),this.dispatchEvent(j),typeof _!="object"||!_||!("getReader"in _)){Uc(this,Db,mm6).call(this,"Invalid response body, expected a web ReadableStream",O),this.close();return}let J=new TextDecoder,M=_.getReader(),D=!0;do{let{done:X,value:P}=await M.read();P&&e9(this,_06).feed(J.decode(P,{stream:!X})),X&&(D=!1,e9(this,_06).reset(),Uc(this,Db,Wj8).call(this))}while(D)}),pD(this,Dj8,(z)=>{rO(this,st,void 0),!(z.name==="AbortError"||z.type==="aborted")&&Uc(this,Db,Wj8).call(this,jj8(z))}),pD(this,Xj8,(z)=>{typeof z.id=="string"&&rO(this,Fm6,z.id);let w=new MessageEvent(z.event||"message",{data:z.data,origin:e9(this,w06)?e9(this,w06).origin:e9(this,Z56).origin,lastEventId:z.id||""});e9(this,$06)&&(!z.event||z.event==="message")&&e9(this,$06).call(this,w),this.dispatchEvent(w)}),pD(this,Pj8,(z)=>{rO(this,gm6,z)}),pD(this,Zj8,()=>{rO(this,O06,void 0),e9(this,NN)===this.CONNECTING&&Uc(this,Db,Jj8).call(this)});try{if(A instanceof URL)rO(this,Z56,A);else if(typeof A=="string")rO(this,Z56,new URL(A,MA9()));else throw Error("Invalid URL")}catch{throw JA9("An invalid or illegal string was specified")}rO(this,_06,bO1({onEvent:e9(this,Xj8),onRetry:e9(this,Pj8)})),rO(this,NN,this.CONNECTING),rO(this,gm6,3000),rO(this,uO1,(K=q==null?void 0:q.fetch)!=null?K:globalThis.fetch),rO(this,xO1,(Y=q==null?void 0:q.withCredentials)!=null?Y:!1),Uc(this,Db,Jj8).call(this)}get readyState(){return e9(this,NN)}get url(){return e9(this,Z56).href}get withCredentials(){return e9(this,xO1)}get onerror(){return e9(this,H06)}set onerror(A){rO(this,H06,A)}get onmessage(){return e9(this,$06)}set onmessage(A){rO(this,$06,A)}get onopen(){return e9(this,Bm6)}set onopen(A){rO(this,Bm6,A)}addEventListener(A,q,K){let Y=q;super.addEventListener(A,Y,K)}removeEventListener(A,q,K){let Y=q;super.removeEventListener(A,Y,K)}close(){e9(this,O06)&&clearTimeout(e9(this,O06)),e9(this,NN)!==this.CLOSED&&(e9(this,st)&&e9(this,st).abort(),rO(this,NN,this.CLOSED),rO(this,st,void 0))}};NN=new WeakMap,Z56=new WeakMap,w06=new WeakMap,xO1=new WeakMap,uO1=new WeakMap,gm6=new WeakMap,O06=new WeakMap,Fm6=new WeakMap,st=new WeakMap,_06=new WeakMap,H06=new WeakMap,$06=new WeakMap,Bm6=new WeakMap,Db=new WeakSet,Jj8=function(){rO(this,NN,this.CONNECTING),rO(this,st,new AbortController),e9(this,uO1)(e9(this,Z56),Uc(this,Db,jk7).call(this)).then(e9(this,Mj8)).catch(e9(this,Dj8))},Mj8=new WeakMap,Dj8=new WeakMap,jk7=function(){var A;let q={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...e9(this,Fm6)?{"Last-Event-ID":e9(this,Fm6)}:void 0},cache:"no-store",signal:(A=e9(this,st))==null?void 0:A.signal};return"window"in globalThis&&(q.credentials=this.withCredentials?"include":"same-origin"),q},Xj8=new WeakMap,Pj8=new WeakMap,mm6=function(A,q){var K;e9(this,NN)!==this.CLOSED&&rO(this,NN,this.CLOSED);let Y=new Hj8("error",{code:q,message:A});(K=e9(this,H06))==null||K.call(this,Y),this.dispatchEvent(Y)},Wj8=function(A,q){var K;if(e9(this,NN)===this.CLOSED)return;rO(this,NN,this.CONNECTING);let Y=new Hj8("error",{code:q,message:A});(K=e9(this,H06))==null||K.call(this,Y),this.dispatchEvent(Y),rO(this,O06,setTimeout(e9(this,Zj8),e9(this,gm6)))},Zj8=new WeakMap,j06.CONNECTING=0,j06.OPEN=1,j06.CLOSED=2});function J06(A){if(!A)return{};if(A instanceof Headers)return Object.fromEntries(A.entries());if(Array.isArray(A))return Object.fromEntries(A);return{...A}}function G56(A=fetch,q){if(!q)return A;return async(K,Y)=>{let z={...q,...Y,headers:Y?.headers?{...J06(q.headers),...J06(Y.headers)}:q.headers};return A(K,z)}}async function DA9(A){return(await fj8).getRandomValues(new Uint8Array(A))}async function XA9(A){let K="",Y=await DA9(A);for(let z=0;z<A;z++){let w=Y[z]%66;K+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"[w]}return K}async function PA9(A){return await XA9(A)}async function WA9(A){let q=await(await fj8).subtle.digest("SHA-256",new TextEncoder().encode(A));return btoa(String.fromCharCode(...new Uint8Array(q))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Tj8(A){if(!A)A=43;if(A<43||A>128)throw`Expected a length between 43 and 128. Received ${A}.`;let q=await PA9(A),K=await WA9(q);return{code_verifier:q,code_challenge:K}}var fj8;var Dk7=k(()=>{fj8=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then((A)=>A.webcrypto)});var g0,Pk7,Qm6,ZA9,Wk7,Zk7,BO1,Xk7,GA9,fA9,Gk7,kW2,EW2;var mO1=k(()=>{B7();g0=dd1().superRefine((A,q)=>{if(!URL.canParse(A))return q.addIssue({code:Pc1.custom,message:"URL must be parseable",fatal:!0}),RR6}).refine((A)=>{let q=new URL(A);return q.protocol!=="javascript:"&&q.protocol!=="data:"&&q.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Pk7=JM({resource:n1().url(),authorization_servers:r7(g0).optional(),jwks_uri:n1().url().optional(),scopes_supported:r7(n1()).optional(),bearer_methods_supported:r7(n1()).optional(),resource_signing_alg_values_supported:r7(n1()).optional(),resource_name:n1().optional(),resource_documentation:n1().optional(),resource_policy_uri:n1().url().optional(),resource_tos_uri:n1().url().optional(),tls_client_certificate_bound_access_tokens:O2().optional(),authorization_details_types_supported:r7(n1()).optional(),dpop_signing_alg_values_supported:r7(n1()).optional(),dpop_bound_access_tokens_required:O2().optional()}),Qm6=JM({issuer:n1(),authorization_endpoint:g0,token_endpoint:g0,registration_endpoint:g0.optional(),scopes_supported:r7(n1()).optional(),response_types_supported:r7(n1()),response_modes_supported:r7(n1()).optional(),grant_types_supported:r7(n1()).optional(),token_endpoint_auth_methods_supported:r7(n1()).optional(),token_endpoint_auth_signing_alg_values_supported:r7(n1()).optional(),service_documentation:g0.optional(),revocation_endpoint:g0.optional(),revocation_endpoint_auth_methods_supported:r7(n1()).optional(),revocation_endpoint_auth_signing_alg_values_supported:r7(n1()).optional(),introspection_endpoint:n1().optional(),introspection_endpoint_auth_methods_supported:r7(n1()).optional(),introspection_endpoint_auth_signing_alg_values_supported:r7(n1()).optional(),code_challenge_methods_supported:r7(n1()).optional(),client_id_metadata_document_supported:O2().optional()}),ZA9=JM({issuer:n1(),authorization_endpoint:g0,token_endpoint:g0,userinfo_endpoint:g0.optional(),jwks_uri:g0,registration_endpoint:g0.optional(),scopes_supported:r7(n1()).optional(),response_types_supported:r7(n1()),response_modes_supported:r7(n1()).optional(),grant_types_supported:r7(n1()).optional(),acr_values_supported:r7(n1()).optional(),subject_types_supported:r7(n1()),id_token_signing_alg_values_supported:r7(n1()),id_token_encryption_alg_values_supported:r7(n1()).optional(),id_token_encryption_enc_values_supported:r7(n1()).optional(),userinfo_signing_alg_values_supported:r7(n1()).optional(),userinfo_encryption_alg_values_supported:r7(n1()).optional(),userinfo_encryption_enc_values_supported:r7(n1()).optional(),request_object_signing_alg_values_supported:r7(n1()).optional(),request_object_encryption_alg_values_supported:r7(n1()).optional(),request_object_encryption_enc_values_supported:r7(n1()).optional(),token_endpoint_auth_methods_supported:r7(n1()).optional(),token_endpoint_auth_signing_alg_values_supported:r7(n1()).optional(),display_values_supported:r7(n1()).optional(),claim_types_supported:r7(n1()).optional(),claims_supported:r7(n1()).optional(),service_documentation:n1().optional(),claims_locales_supported:r7(n1()).optional(),ui_locales_supported:r7(n1()).optional(),claims_parameter_supported:O2().optional(),request_parameter_supported:O2().optional(),request_uri_parameter_supported:O2().optional(),require_request_uri_registration:O2().optional(),op_policy_uri:g0.optional(),op_tos_uri:g0.optional(),client_id_metadata_document_supported:O2().optional()}),Wk7=Y4({...ZA9.shape,...Qm6.pick({code_challenge_methods_supported:!0}).shape}),Zk7=Y4({access_token:n1(),id_token:n1().optional(),token_type:n1(),expires_in:WS6.number().optional(),scope:n1().optional(),refresh_token:n1().optional()}).strip(),BO1=Y4({error:n1(),error_description:n1().optional(),error_uri:n1().optional()}),Xk7=g0.optional().or(Gq("").transform(()=>{return})),GA9=Y4({redirect_uris:r7(g0),token_endpoint_auth_method:n1().optional(),grant_types:r7(n1()).optional(),response_types:r7(n1()).optional(),client_name:n1().optional(),client_uri:g0.optional(),logo_uri:Xk7,scope:n1().optional(),contacts:r7(n1()).optional(),tos_uri:Xk7,policy_uri:n1().optional(),jwks_uri:g0.optional(),jwks:_c1().optional(),software_id:n1().optional(),software_version:n1().optional(),software_statement:n1().optional()}).strip(),fA9=Y4({client_id:n1(),client_secret:n1().optional(),client_id_issued_at:tY().optional(),client_secret_expires_at:tY().optional()}).strip(),Gk7=GA9.merge(fA9),kW2=Y4({error:n1(),error_description:n1().optional()}).strip(),EW2=Y4({token:n1(),token_type_hint:n1().optional()}).strip()});function fk7(A){let q=typeof A==="string"?new URL(A):new URL(A.href);return q.hash="",q}function Tk7({requestedResource:A,configuredResource:q}){let K=typeof A==="string"?new URL(A):new URL(A.href),Y=typeof q==="string"?new URL(q):new URL(q.href);if(K.origin!==Y.origin)return!1;if(K.pathname.length<Y.pathname.length)return!1;let z=K.pathname.endsWith("/")?K.pathname:K.pathname+"/",w=Y.pathname.endsWith("/")?Y.pathname:Y.pathname+"/";return z.startsWith(w)}var hM,gO1,M06,tt,D06,FO1,QO1,UO1,Dg,X06,pO1,dO1,cO1,lO1,P06,W06,iO1,nO1,Vk7;var Vj8=k(()=>{hM=class hM extends Error{constructor(A,q){super(A);this.errorUri=q,this.name=this.constructor.name}toResponseObject(){let A={error:this.errorCode,error_description:this.message};if(this.errorUri)A.error_uri=this.errorUri;return A}get errorCode(){return this.constructor.errorCode}};gO1=class gO1 extends hM{};gO1.errorCode="invalid_request";M06=class M06 extends hM{};M06.errorCode="invalid_client";tt=class tt extends hM{};tt.errorCode="invalid_grant";D06=class D06 extends hM{};D06.errorCode="unauthorized_client";FO1=class FO1 extends hM{};FO1.errorCode="unsupported_grant_type";QO1=class QO1 extends hM{};QO1.errorCode="invalid_scope";UO1=class UO1 extends hM{};UO1.errorCode="access_denied";Dg=class Dg extends hM{};Dg.errorCode="server_error";X06=class X06 extends hM{};X06.errorCode="temporarily_unavailable";pO1=class pO1 extends hM{};pO1.errorCode="unsupported_response_type";dO1=class dO1 extends hM{};dO1.errorCode="unsupported_token_type";cO1=class cO1 extends hM{};cO1.errorCode="invalid_token";lO1=class lO1 extends hM{};lO1.errorCode="method_not_allowed";P06=class P06 extends hM{};P06.errorCode="too_many_requests";W06=class W06 extends hM{};W06.errorCode="invalid_client_metadata";iO1=class iO1 extends hM{};iO1.errorCode="insufficient_scope";nO1=class nO1 extends hM{};nO1.errorCode="invalid_target";Vk7={[gO1.errorCode]:gO1,[M06.errorCode]:M06,[tt.errorCode]:tt,[D06.errorCode]:D06,[FO1.errorCode]:FO1,[QO1.errorCode]:QO1,[UO1.errorCode]:UO1,[Dg.errorCode]:Dg,[X06.errorCode]:X06,[pO1.errorCode]:pO1,[dO1.errorCode]:dO1,[cO1.errorCode]:cO1,[lO1.errorCode]:lO1,[P06.errorCode]:P06,[W06.errorCode]:W06,[iO1.errorCode]:iO1,[nO1.errorCode]:nO1}});function TA9(A){return["client_secret_basic","client_secret_post","none"].includes(A)}function VA9(A,q){let K=A.client_secret!==void 0;if(q.length===0)return K?"client_secret_post":"none";if("token_endpoint_auth_method"in A&&A.token_endpoint_auth_method&&TA9(A.token_endpoint_auth_method)&&q.includes(A.token_endpoint_auth_method))return A.token_endpoint_auth_method;if(K&&q.includes("client_secret_basic"))return"client_secret_basic";if(K&&q.includes("client_secret_post"))return"client_secret_post";if(q.includes("none"))return"none";return K?"client_secret_post":"none"}function NA9(A,q,K,Y){let{client_id:z,client_secret:w}=q;switch(A){case"client_secret_basic":vA9(z,w,K);return;case"client_secret_post":kA9(z,w,Y);return;case"none":EA9(z,Y);return;default:throw Error(`Unsupported client authentication method: ${A}`)}}function vA9(A,q,K){if(!q)throw Error("client_secret_basic authentication requires a client_secret");let Y=btoa(`${A}:${q}`);K.set("Authorization",`Basic ${Y}`)}function kA9(A,q,K){if(K.set("client_id",A),q)K.set("client_secret",q)}function EA9(A,q){q.set("client_id",A)}async function vk7(A){let q=A instanceof Response?A.status:void 0,K=A instanceof Response?await A.text():A;try{let Y=BO1.parse(JSON.parse(K)),{error:z,error_description:w,error_uri:_}=Y;return new(Vk7[z]||Dg)(w||"",_)}catch(Y){let z=`${q?`HTTP ${q}: `:""}Invalid OAuth error response: ${Y}. Raw body: ${K}`;return new Dg(z)}}async function tR(A,q){try{return await kj8(A,q)}catch(K){if(K instanceof M06||K instanceof D06)return await A.invalidateCredentials?.("all"),await kj8(A,q);else if(K instanceof tt)return await A.invalidateCredentials?.("tokens"),await kj8(A,q);throw K}}async function kj8(A,{serverUrl:q,authorizationCode:K,scope:Y,resourceMetadataUrl:z,fetchFn:w}){let _=await A.discoveryState?.(),$,O,H,j=z;if(!j&&_?.resourceMetadataUrl)j=new URL(_.resourceMetadataUrl);if(_?.authorizationServerUrl){if(O=_.authorizationServerUrl,$=_.resourceMetadata,H=_.authorizationServerMetadata??await Um6(O,{fetchFn:w}),!$)try{$=await kk7(q,{resourceMetadataUrl:j},w)}catch{}if(H!==_.authorizationServerMetadata||$!==_.resourceMetadata)await A.saveDiscoveryState?.({authorizationServerUrl:String(O),resourceMetadataUrl:j?.toString(),resourceMetadata:$,authorizationServerMetadata:H})}else{let G=await IA9(q,{resourceMetadataUrl:j,fetchFn:w});O=G.authorizationServerUrl,H=G.authorizationServerMetadata,$=G.resourceMetadata,await A.saveDiscoveryState?.({authorizationServerUrl:String(O),resourceMetadataUrl:j?.toString(),resourceMetadata:$,authorizationServerMetadata:H})}let J=await yA9(q,A,$),M=await Promise.resolve(A.clientInformation());if(!M){if(K!==void 0)throw Error("Existing OAuth client information is required when exchanging an authorization code");let G=H?.client_id_metadata_document_supported===!0,f=A.clientMetadataUrl;if(f&&!LA9(f))throw new W06(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${f}`);if(G&&f)M={client_id:f},await A.saveClientInformation?.(M);else{if(!A.saveClientInformation)throw Error("OAuth client information must be saveable for dynamic registration");let N=await BA9(O,{metadata:H,clientMetadata:A.clientMetadata,fetchFn:w});await A.saveClientInformation(N),M=N}}let D=!A.redirectUrl;if(K!==void 0||D){let G=await uA9(A,O,{metadata:H,resource:J,authorizationCode:K,fetchFn:w});return await A.saveTokens(G),"AUTHORIZED"}let X=await A.tokens();if(X?.refresh_token)try{let G=await yj8(O,{metadata:H,clientInformation:M,refreshToken:X.refresh_token,resource:J,addClientAuthentication:A.addClientAuthentication,fetchFn:w});return await A.saveTokens(G),"AUTHORIZED"}catch(G){if(!(G instanceof hM)||G instanceof Dg);else throw G}let P=A.state?await A.state():void 0,{authorizationUrl:W,codeVerifier:Z}=await bA9(O,{metadata:H,clientInformation:M,state:P,redirectUrl:A.redirectUrl,scope:Y||$?.scopes_supported?.join(" ")||A.clientMetadata.scope,resource:J});return await A.saveCodeVerifier(Z),await A.redirectToAuthorization(W),"REDIRECT"}function LA9(A){if(!A)return!1;try{let q=new URL(A);return q.protocol==="https:"&&q.pathname!=="/"}catch{return!1}}async function yA9(A,q,K){let Y=fk7(A);if(q.validateResourceURL)return await q.validateResourceURL(Y,K?.resource);if(!K)return;if(!Tk7({requestedResource:Y,configuredResource:K.resource}))throw Error(`Protected resource ${K.resource} does not match expected ${Y} (or origin)`);return new URL(K.resource)}function Z06(A){let q=A.headers.get("WWW-Authenticate");if(!q)return{};let[K,Y]=q.split(" ");if(K.toLowerCase()!=="bearer"||!Y)return{};let z=Ej8(A,"resource_metadata")||void 0,w;if(z)try{w=new URL(z)}catch{}let _=Ej8(A,"scope")||void 0,$=Ej8(A,"error")||void 0;return{resourceMetadataUrl:w,scope:_,error:$}}function Ej8(A,q){let K=A.headers.get("WWW-Authenticate");if(!K)return null;let Y=new RegExp(`${q}=(?:"([^"]+)"|([^\\s,]+))`),z=K.match(Y);if(z)return z[1]||z[2];return null}async function kk7(A,q,K=fetch){let Y=await CA9(A,"oauth-protected-resource",K,{protocolVersion:q?.protocolVersion,metadataUrl:q?.resourceMetadataUrl});if(!Y||Y.status===404)throw await Y?.body?.cancel(),Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!Y.ok)throw await Y.body?.cancel(),Error(`HTTP ${Y.status} trying to load well-known OAuth protected resource metadata.`);return Pk7.parse(await Y.json())}async function Lj8(A,q,K=fetch){try{return await K(A,{headers:q})}catch(Y){if(Y instanceof TypeError)if(q)return Lj8(A,void 0,K);else return;throw Y}}function RA9(A,q="",K={}){if(q.endsWith("/"))q=q.slice(0,-1);return K.prependPathname?`${q}/.well-known/${A}`:`/.well-known/${A}${q}`}async function Nk7(A,q,K=fetch){return await Lj8(A,{"MCP-Protocol-Version":q},K)}function SA9(A,q){return!A||A.status>=400&&A.status<500&&q!=="/"}async function CA9(A,q,K,Y){let z=new URL(A),w=Y?.protocolVersion??co,_;if(Y?.metadataUrl)_=new URL(Y.metadataUrl);else{let O=RA9(q,z.pathname);_=new URL(O,Y?.metadataServerUrl??z),_.search=z.search}let $=await Nk7(_,w,K);if(!Y?.metadataUrl&&SA9($,z.pathname)){let O=new URL(`/.well-known/${q}`,z);$=await Nk7(O,w,K)}return $}function hA9(A){let q=typeof A==="string"?new URL(A):A,K=q.pathname!=="/",Y=[];if(!K)return Y.push({url:new URL("/.well-known/oauth-authorization-server",q.origin),type:"oauth"}),Y.push({url:new URL("/.well-known/openid-configuration",q.origin),type:"oidc"}),Y;let z=q.pathname;if(z.endsWith("/"))z=z.slice(0,-1);return Y.push({url:new URL(`/.well-known/oauth-authorization-server${z}`,q.origin),type:"oauth"}),Y.push({url:new URL(`/.well-known/openid-configuration${z}`,q.origin),type:"oidc"}),Y.push({url:new URL(`${z}/.well-known/openid-configuration`,q.origin),type:"oidc"}),Y}async function Um6(A,{fetchFn:q=fetch,protocolVersion:K=co}={}){let Y={"MCP-Protocol-Version":K,Accept:"application/json"},z=hA9(A);for(let{url:w,type:_}of z){let $=await Lj8(w,Y,q);if(!$)continue;if(!$.ok){if(await $.body?.cancel(),$.status>=400&&$.status<500)continue;throw Error(`HTTP ${$.status} trying to load ${_==="oauth"?"OAuth":"OpenID provider"} metadata from ${w}`)}if(_==="oauth")return Qm6.parse(await $.json());else return Wk7.parse(await $.json())}return}async function IA9(A,q){let K,Y;try{if(K=await kk7(A,{resourceMetadataUrl:q?.resourceMetadataUrl},q?.fetchFn),K.authorization_servers&&K.authorization_servers.length>0)Y=K.authorization_servers[0]}catch{}if(!Y)Y=String(new URL("/",A));let z=await Um6(Y,{fetchFn:q?.fetchFn});return{authorizationServerUrl:Y,authorizationServerMetadata:z,resourceMetadata:K}}async function bA9(A,{metadata:q,clientInformation:K,redirectUrl:Y,scope:z,state:w,resource:_}){let $;if(q){if($=new URL(q.authorization_endpoint),!q.response_types_supported.includes(Nj8))throw Error(`Incompatible auth server: does not support response type ${Nj8}`);if(q.code_challenge_methods_supported&&!q.code_challenge_methods_supported.includes(vj8))throw Error(`Incompatible auth server: does not support code challenge method ${vj8}`)}else $=new URL("/authorize",A);let O=await Tj8(),H=O.code_verifier,j=O.code_challenge;if($.searchParams.set("response_type",Nj8),$.searchParams.set("client_id",K.client_id),$.searchParams.set("code_challenge",j),$.searchParams.set("code_challenge_method",vj8),$.searchParams.set("redirect_uri",String(Y)),w)$.searchParams.set("state",w);if(z)$.searchParams.set("scope",z);if(z?.includes("offline_access"))$.searchParams.append("prompt","consent");if(_)$.searchParams.set("resource",_.href);return{authorizationUrl:$,codeVerifier:H}}function xA9(A,q,K){return new URLSearchParams({grant_type:"authorization_code",code:A,code_verifier:q,redirect_uri:String(K)})}async function Ek7(A,{metadata:q,tokenRequestParams:K,clientInformation:Y,addClientAuthentication:z,resource:w,fetchFn:_}){let $=q?.token_endpoint?new URL(q.token_endpoint):new URL("/token",A),O=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(w)K.set("resource",w.href);if(z)await z(O,K,$,q);else if(Y){let j=q?.token_endpoint_auth_methods_supported??[],J=VA9(Y,j);NA9(J,Y,O,K)}let H=await(_??fetch)($,{method:"POST",headers:O,body:K});if(!H.ok)throw await vk7(H);return Zk7.parse(await H.json())}async function yj8(A,{metadata:q,clientInformation:K,refreshToken:Y,resource:z,addClientAuthentication:w,fetchFn:_}){let $=new URLSearchParams({grant_type:"refresh_token",refresh_token:Y}),O=await Ek7(A,{metadata:q,tokenRequestParams:$,clientInformation:K,addClientAuthentication:w,resource:z,fetchFn:_});return{refresh_token:Y,...O}}async function uA9(A,q,{metadata:K,resource:Y,authorizationCode:z,fetchFn:w}={}){let _=A.clientMetadata.scope,$;if(A.prepareTokenRequest)$=await A.prepareTokenRequest(_);if(!$){if(!z)throw Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!A.redirectUrl)throw Error("redirectUrl is required for authorization_code flow");let H=await A.codeVerifier();$=xA9(z,H,A.redirectUrl)}let O=await A.clientInformation();return Ek7(q,{metadata:K,tokenRequestParams:$,clientInformation:O??void 0,addClientAuthentication:A.addClientAuthentication,resource:Y,fetchFn:w})}async function BA9(A,{metadata:q,clientMetadata:K,fetchFn:Y}){let z;if(q){if(!q.registration_endpoint)throw Error("Incompatible auth server: does not support dynamic client registration");z=new URL(q.registration_endpoint)}else z=new URL("/register",A);let w=await(Y??fetch)(z,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K)});if(!w.ok)throw await vk7(w);return Gk7.parse(await w.json())}var zP,Nj8="code",vj8="S256";var pm6=k(()=>{Dk7();uX();mO1();mO1();Vj8();zP=class zP extends Error{constructor(A){super(A??"Unauthorized")}}});class rO1{constructor(A,q){this._url=A,this._resourceMetadataUrl=void 0,this._scope=void 0,this._eventSourceInit=q?.eventSourceInit,this._requestInit=q?.requestInit,this._authProvider=q?.authProvider,this._fetch=q?.fetch,this._fetchWithInit=G56(q?.fetch,q?.requestInit)}async _authThenStart(){if(!this._authProvider)throw new zP("No auth provider");let A;try{A=await tR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(q){throw this.onerror?.(q),q}if(A!=="AUTHORIZED")throw new zP;return await this._startOrAuth()}async _commonHeaders(){let A={};if(this._authProvider){let K=await this._authProvider.tokens();if(K)A.Authorization=`Bearer ${K.access_token}`}if(this._protocolVersion)A["mcp-protocol-version"]=this._protocolVersion;let q=J06(this._requestInit?.headers);return new Headers({...A,...q})}_startOrAuth(){let A=this?._eventSourceInit?.fetch??this._fetch??fetch;return new Promise((q,K)=>{this._eventSource=new j06(this._url.href,{...this._eventSourceInit,fetch:async(Y,z)=>{let w=await this._commonHeaders();w.set("Accept","text/event-stream");let _=await A(Y,{...z,headers:w});if(_.status===401&&_.headers.has("www-authenticate")){let{resourceMetadataUrl:$,scope:O}=Z06(_);this._resourceMetadataUrl=$,this._scope=O}return _}}),this._abortController=new AbortController,this._eventSource.onerror=(Y)=>{if(Y.code===401&&this._authProvider){this._authThenStart().then(q,K);return}let z=new Lk7(Y.code,Y.message,Y);K(z),this.onerror?.(z)},this._eventSource.onopen=()=>{},this._eventSource.addEventListener("endpoint",(Y)=>{let z=Y;try{if(this._endpoint=new URL(z.data,this._url),this._endpoint.origin!==this._url.origin)throw Error(`Endpoint origin does not match connection origin: ${this._endpoint.origin}`)}catch(w){K(w),this.onerror?.(w),this.close();return}q()}),this._eventSource.onmessage=(Y)=>{let z=Y,w;try{w=qI.parse(JSON.parse(z.data))}catch(_){this.onerror?.(_);return}this.onmessage?.(w)}})}async start(){if(this._eventSource)throw Error("SSEClientTransport already started! If using Client class, note that connect() calls start() automatically.");return await this._startOrAuth()}async finishAuth(A){if(!this._authProvider)throw new zP("No auth provider");if(await tR(this._authProvider,{serverUrl:this._url,authorizationCode:A,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new zP("Failed to authorize")}async close(){this._abortController?.abort(),this._eventSource?.close(),this.onclose?.()}async send(A){if(!this._endpoint)throw Error("Not connected");try{let q=await this._commonHeaders();q.set("content-type","application/json");let K={...this._requestInit,method:"POST",headers:q,body:JSON.stringify(A),signal:this._abortController?.signal},Y=await(this._fetch??fetch)(this._endpoint,K);if(!Y.ok){let z=await Y.text().catch(()=>null);if(Y.status===401&&this._authProvider){let{resourceMetadataUrl:w,scope:_}=Z06(Y);if(this._resourceMetadataUrl=w,this._scope=_,await tR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new zP;return this.send(A)}throw Error(`Error POSTing to endpoint (HTTP ${Y.status}): ${z}`)}await Y.body?.cancel()}catch(q){throw this.onerror?.(q),q}}setProtocolVersion(A){this._protocolVersion=A}}var Lk7;var yk7=k(()=>{Mk7();uX();pm6();Lk7=class Lk7 extends Error{constructor(A,q,K){super(`SSE error: ${q}`);this.code=A,this.event=K}}});var Rj8;var Rk7=k(()=>{Oj8();Rj8=class Rj8 extends TransformStream{constructor({onError:A,onRetry:q,onComment:K}={}){let Y;super({start(z){Y=bO1({onEvent:(w)=>{z.enqueue(w)},onError(w){A==="terminate"?z.error(w):typeof A=="function"&&A(w)},onRetry:q,onComment:K})},transform(z){Y.feed(z)}})}}});class oO1{constructor(A,q){this._hasCompletedAuthFlow=!1,this._url=A,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=q?.requestInit,this._authProvider=q?.authProvider,this._fetch=q?.fetch,this._fetchWithInit=G56(q?.fetch,q?.requestInit),this._sessionId=q?.sessionId,this._reconnectionOptions=q?.reconnectionOptions??mA9}async _authThenStart(){if(!this._authProvider)throw new zP("No auth provider");let A;try{A=await tR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(q){throw this.onerror?.(q),q}if(A!=="AUTHORIZED")throw new zP;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let A={};if(this._authProvider){let K=await this._authProvider.tokens();if(K)A.Authorization=`Bearer ${K.access_token}`}if(this._sessionId)A["mcp-session-id"]=this._sessionId;if(this._protocolVersion)A["mcp-protocol-version"]=this._protocolVersion;let q=J06(this._requestInit?.headers);return new Headers({...A,...q})}async _startOrAuthSse(A){let{resumptionToken:q}=A;try{let K=await this._commonHeaders();if(K.set("Accept","text/event-stream"),q)K.set("last-event-id",q);let Y=await(this._fetch??fetch)(this._url,{method:"GET",headers:K,signal:this._abortController?.signal});if(!Y.ok){if(await Y.body?.cancel(),Y.status===401&&this._authProvider)return await this._authThenStart();if(Y.status===405)return;throw new f56(Y.status,`Failed to open SSE stream: ${Y.statusText}`)}this._handleSseStream(Y.body,A,!0)}catch(K){throw this.onerror?.(K),K}}_getNextReconnectionDelay(A){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let q=this._reconnectionOptions.initialReconnectionDelay,K=this._reconnectionOptions.reconnectionDelayGrowFactor,Y=this._reconnectionOptions.maxReconnectionDelay;return Math.min(q*Math.pow(K,A),Y)}_scheduleReconnection(A,q=0){let K=this._reconnectionOptions.maxRetries;if(q>=K){this.onerror?.(Error(`Maximum reconnection attempts (${K}) exceeded.`));return}let Y=this._getNextReconnectionDelay(q);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(A).catch((z)=>{this.onerror?.(Error(`Failed to reconnect SSE stream: ${z instanceof Error?z.message:String(z)}`)),this._scheduleReconnection(A,q+1)})},Y)}_handleSseStream(A,q,K){if(!A)return;let{onresumptiontoken:Y,replayMessageId:z}=q,w,_=!1,$=!1;(async()=>{try{let H=A.pipeThrough(new TextDecoderStream).pipeThrough(new Rj8({onRetry:(M)=>{this._serverRetryMs=M}})).getReader();while(!0){let{value:M,done:D}=await H.read();if(D)break;if(M.id)w=M.id,_=!0,Y?.(M.id);if(!M.data)continue;if(!M.event||M.event==="message")try{let X=qI.parse(JSON.parse(M.data));if(a46(X)){if($=!0,z!==void 0)X.id=z}this.onmessage?.(X)}catch(X){this.onerror?.(X)}}if((K||_)&&!$&&this._abortController&&!this._abortController.signal.aborted)this._scheduleReconnection({resumptionToken:w,onresumptiontoken:Y,replayMessageId:z},0)}catch(H){if(this.onerror?.(Error(`SSE stream disconnected: ${H}`)),(K||_)&&!$&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:w,onresumptiontoken:Y,replayMessageId:z},0)}catch(M){this.onerror?.(Error(`Failed to reconnect: ${M instanceof Error?M.message:String(M)}`))}}})()}async start(){if(this._abortController)throw Error("StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.");this._abortController=new AbortController}async finishAuth(A){if(!this._authProvider)throw new zP("No auth provider");if(await tR(this._authProvider,{serverUrl:this._url,authorizationCode:A,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new zP("Failed to authorize")}async close(){if(this._reconnectionTimeout)clearTimeout(this._reconnectionTimeout),this._reconnectionTimeout=void 0;this._abortController?.abort(),this.onclose?.()}async send(A,q){try{let{resumptionToken:K,onresumptiontoken:Y}=q||{};if(K){this._startOrAuthSse({resumptionToken:K,replayMessageId:GS6(A)?A.id:void 0}).catch((J)=>this.onerror?.(J));return}let z=await this._commonHeaders();z.set("content-type","application/json"),z.set("accept","application/json, text/event-stream");let w={...this._requestInit,method:"POST",headers:z,body:JSON.stringify(A),signal:this._abortController?.signal},_=await(this._fetch??fetch)(this._url,w),$=_.headers.get("mcp-session-id");if($)this._sessionId=$;if(!_.ok){let J=await _.text().catch(()=>null);if(_.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new f56(401,"Server returned 401 after successful authentication");let{resourceMetadataUrl:M,scope:D}=Z06(_);if(this._resourceMetadataUrl=M,this._scope=D,await tR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!=="AUTHORIZED")throw new zP;return this._hasCompletedAuthFlow=!0,this.send(A)}if(_.status===403&&this._authProvider){let{resourceMetadataUrl:M,scope:D,error:X}=Z06(_);if(X==="insufficient_scope"){let P=_.headers.get("WWW-Authenticate");if(this._lastUpscopingHeader===P)throw new f56(403,"Server returned 403 after trying upscoping");if(D)this._scope=D;if(M)this._resourceMetadataUrl=M;if(this._lastUpscopingHeader=P??void 0,await tR(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!=="AUTHORIZED")throw new zP;return this.send(A)}}throw new f56(_.status,`Error POSTing to endpoint: ${J}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,_.status===202){if(await _.body?.cancel(),P9A(A))this._startOrAuthSse({resumptionToken:void 0}).catch((J)=>this.onerror?.(J));return}let H=(Array.isArray(A)?A:[A]).filter((J)=>("method"in J)&&("id"in J)&&J.id!==void 0).length>0,j=_.headers.get("content-type");if(H)if(j?.includes("text/event-stream"))this._handleSseStream(_.body,{onresumptiontoken:Y},!1);else if(j?.includes("application/json")){let J=await _.json(),M=Array.isArray(J)?J.map((D)=>qI.parse(D)):[qI.parse(J)];for(let D of M)this.onmessage?.(D)}else throw await _.body?.cancel(),new f56(-1,`Unexpected content type: ${j}`);else await _.body?.cancel()}catch(K){throw this.onerror?.(K),K}}get sessionId(){return this._sessionId}async terminateSession(){if(!this._sessionId)return;try{let A=await this._commonHeaders(),q={...this._requestInit,method:"DELETE",headers:A,signal:this._abortController?.signal},K=await(this._fetch??fetch)(this._url,q);if(await K.body?.cancel(),!K.ok&&K.status!==405)throw new f56(K.status,`Failed to terminate session: ${K.statusText}`);this._sessionId=void 0}catch(A){throw this.onerror?.(A),A}}setProtocolVersion(A){this._protocolVersion=A}get protocolVersion(){return this._protocolVersion}async resumeStream(A,q){await this._startOrAuthSse({resumptionToken:A,onresumptiontoken:q?.onresumptiontoken})}}var mA9,f56;var Sk7=k(()=>{uX();pm6();Rk7();mA9={initialReconnectionDelay:1000,maxReconnectionDelay:30000,reconnectionDelayGrowFactor:1.5,maxRetries:2};f56=class f56 extends Error{constructor(A,q){super(`Streamable HTTP error: ${q}`);this.code=A}}});function gA9(A,q,K){var Y=-1,z=A.length,w=q.length,_={};while(++Y<z){var $=Y<w?q[Y]:void 0;K(_,A[Y],$)}return _}var Ck7;var hk7=k(()=>{Ck7=gA9});function FA9(A,q){return Ck7(A||[],q||[],Fo)}var Ik7;var bk7=k(()=>{vR6();hk7();Ik7=FA9});function T56(){return p8("tengu_mcp_elicitation",!1)}var aO1=k(()=>{rA()});function QA9(A){return A.mode==="url"?"url":"form"}function UA9(A,q,K){return A.findIndex((Y)=>Y.serverName===q&&Y.params.mode==="url"&&("elicitationId"in Y.params)&&Y.params.elicitationId===K)}function xk7(A,q,K){try{A.setRequestHandler(pp,async(Y,z)=>{w8(q,`Received elicitation request: ${U6(Y)}`);let w=QA9(Y.params);c("tengu_mcp_elicitation_shown",{mode:w});try{let _=await dm6(q,Y.params,z.signal);if(_)return w8(q,`Elicitation resolved by hook: ${U6(_)}`),c("tengu_mcp_elicitation_response",{mode:w,action:_.action}),_;let $=w==="url"&&"elicitationId"in Y.params?Y.params.elicitationId:void 0,H=await new Promise((J)=>{let M=()=>{J({action:"cancel"})};if(z.signal.aborted){M();return}let D=$?{actionLabel:"Skip confirmation"}:void 0;K((X)=>({...X,elicitation:{queue:[...X.elicitation.queue,{serverName:q,requestId:z.requestId,params:Y.params,signal:z.signal,waitingState:D,respond:(P)=>{z.signal.removeEventListener("abort",M),c("tengu_mcp_elicitation_response",{mode:w,action:P.action}),J(P)}}]}})),z.signal.addEventListener("abort",M)});return w8(q,`Elicitation response: ${U6(H)}`),await cm6(q,H,z.signal,w,$)}catch(_){return qz(q,`Elicitation error: ${_}`),{action:"cancel"}}}),A.setNotificationHandler(uS6,(Y)=>{let{elicitationId:z}=Y.params;w8(q,`Received elicitation completion notification: ${z}`),Xg({message:`MCP server "${q}" confirmed elicitation ${z} complete`,notificationType:"elicitation_complete"});let w=!1;if(K((_)=>{let $=UA9(_.elicitation.queue,q,z);if($===-1)return _;w=!0;let O=[..._.elicitation.queue];return O[$]={...O[$],completed:!0},{..._,elicitation:{queue:O}}}),!w)w8(q,`Ignoring completion notification for unknown elicitation: ${z}`)})}catch{return}}async function dm6(A,q,K){try{let Y=q.mode==="url"?"url":"form",z="url"in q?q.url:void 0,w="elicitationId"in q?q.elicitationId:void 0,{elicitationResponse:_,blockingError:$}=await Sj8({serverName:A,message:q.message,requestedSchema:"requestedSchema"in q?q.requestedSchema:void 0,signal:K,mode:Y,url:z,elicitationId:w});if($)return{action:"decline"};if(_)return{action:_.action,content:_.content};return}catch(Y){qz(A,`Elicitation hook error: ${Y}`);return}}async function cm6(A,q,K,Y,z){try{let{elicitationResultResponse:w,blockingError:_}=await Cj8({serverName:A,action:q.action,content:q.content,signal:K,mode:Y,elicitationId:z});if(_)return Xg({message:`Elicitation response for server "${A}": decline`,notificationType:"elicitation_response"}),{action:"decline"};let $=w?{action:w.action,content:w.content??q.content}:q;return Xg({message:`Elicitation response for server "${A}": ${$.action}`,notificationType:"elicitation_response"}),$}catch(w){return qz(A,`ElicitationResult hook error: ${w}`),Xg({message:`Elicitation response for server "${A}": ${q.action}`,notificationType:"elicitation_response"}),q}}var sO1=k(()=>{uX();B1();x1();a1();J$()});var lm6=C((_Z2,uk7)=>{var pA9=Number.MAX_SAFE_INTEGER||9007199254740991,dA9=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uk7.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:pA9,RELEASE_TYPES:dA9,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var im6=C(($Z2,Bk7)=>{var cA9=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};Bk7.exports=cA9});var G06=C((Pg,mk7)=>{var{MAX_SAFE_COMPONENT_LENGTH:hj8,MAX_SAFE_BUILD_LENGTH:lA9,MAX_LENGTH:iA9}=lm6(),nA9=im6();Pg=mk7.exports={};var rA9=Pg.re=[],oA9=Pg.safeRe=[],U4=Pg.src=[],aA9=Pg.safeSrc=[],p4=Pg.t={},sA9=0,Ij8="[a-zA-Z0-9-]",tA9=[["\\s",1],["\\d",iA9],[Ij8,lA9]],eA9=(A)=>{for(let[q,K]of tA9)A=A.split(`${q}*`).join(`${q}{0,${K}}`).split(`${q}+`).join(`${q}{1,${K}}`);return A},M5=(A,q,K)=>{let Y=eA9(q),z=sA9++;nA9(A,z,q),p4[A]=z,U4[z]=q,aA9[z]=Y,rA9[z]=new RegExp(q,K?"g":void 0),oA9[z]=new RegExp(Y,K?"g":void 0)};M5("NUMERICIDENTIFIER","0|[1-9]\\d*");M5("NUMERICIDENTIFIERLOOSE","\\d+");M5("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Ij8}*`);M5("MAINVERSION",`(${U4[p4.NUMERICIDENTIFIER]})\\.(${U4[p4.NUMERICIDENTIFIER]})\\.(${U4[p4.NUMERICIDENTIFIER]})`);M5("MAINVERSIONLOOSE",`(${U4[p4.NUMERICIDENTIFIERLOOSE]})\\.(${U4[p4.NUMERICIDENTIFIERLOOSE]})\\.(${U4[p4.NUMERICIDENTIFIERLOOSE]})`);M5("PRERELEASEIDENTIFIER",`(?:${U4[p4.NONNUMERICIDENTIFIER]}|${U4[p4.NUMERICIDENTIFIER]})`);M5("PRERELEASEIDENTIFIERLOOSE",`(?:${U4[p4.NONNUMERICIDENTIFIER]}|${U4[p4.NUMERICIDENTIFIERLOOSE]})`);M5("PRERELEASE",`(?:-(${U4[p4.PRERELEASEIDENTIFIER]}(?:\\.${U4[p4.PRERELEASEIDENTIFIER]})*))`);M5("PRERELEASELOOSE",`(?:-?(${U4[p4.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${U4[p4.PRERELEASEIDENTIFIERLOOSE]})*))`);M5("BUILDIDENTIFIER",`${Ij8}+`);M5("BUILD",`(?:\\+(${U4[p4.BUILDIDENTIFIER]}(?:\\.${U4[p4.BUILDIDENTIFIER]})*))`);M5("FULLPLAIN",`v?${U4[p4.MAINVERSION]}${U4[p4.PRERELEASE]}?${U4[p4.BUILD]}?`);M5("FULL",`^${U4[p4.FULLPLAIN]}$`);M5("LOOSEPLAIN",`[v=\\s]*${U4[p4.MAINVERSIONLOOSE]}${U4[p4.PRERELEASELOOSE]}?${U4[p4.BUILD]}?`);M5("LOOSE",`^${U4[p4.LOOSEPLAIN]}$`);M5("GTLT","((?:<|>)?=?)");M5("XRANGEIDENTIFIERLOOSE",`${U4[p4.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);M5("XRANGEIDENTIFIER",`${U4[p4.NUMERICIDENTIFIER]}|x|X|\\*`);M5("XRANGEPLAIN",`[v=\\s]*(${U4[p4.XRANGEIDENTIFIER]})(?:\\.(${U4[p4.XRANGEIDENTIFIER]})(?:\\.(${U4[p4.XRANGEIDENTIFIER]})(?:${U4[p4.PRERELEASE]})?${U4[p4.BUILD]}?)?)?`);M5("XRANGEPLAINLOOSE",`[v=\\s]*(${U4[p4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${U4[p4.XRANGEIDENTIFIERLOOSE]})(?:\\.(${U4[p4.XRANGEIDENTIFIERLOOSE]})(?:${U4[p4.PRERELEASELOOSE]})?${U4[p4.BUILD]}?)?)?`);M5("XRANGE",`^${U4[p4.GTLT]}\\s*${U4[p4.XRANGEPLAIN]}$`);M5("XRANGELOOSE",`^${U4[p4.GTLT]}\\s*${U4[p4.XRANGEPLAINLOOSE]}$`);M5("COERCEPLAIN",`(^|[^\\d])(\\d{1,${hj8}})(?:\\.(\\d{1,${hj8}}))?(?:\\.(\\d{1,${hj8}}))?`);M5("COERCE",`${U4[p4.COERCEPLAIN]}(?:$|[^\\d])`);M5("COERCEFULL",U4[p4.COERCEPLAIN]+`(?:${U4[p4.PRERELEASE]})?(?:${U4[p4.BUILD]})?(?:$|[^\\d])`);M5("COERCERTL",U4[p4.COERCE],!0);M5("COERCERTLFULL",U4[p4.COERCEFULL],!0);M5("LONETILDE","(?:~>?)");M5("TILDETRIM",`(\\s*)${U4[p4.LONETILDE]}\\s+`,!0);Pg.tildeTrimReplace="$1~";M5("TILDE",`^${U4[p4.LONETILDE]}${U4[p4.XRANGEPLAIN]}$`);M5("TILDELOOSE",`^${U4[p4.LONETILDE]}${U4[p4.XRANGEPLAINLOOSE]}$`);M5("LONECARET","(?:\\^)");M5("CARETTRIM",`(\\s*)${U4[p4.LONECARET]}\\s+`,!0);Pg.caretTrimReplace="$1^";M5("CARET",`^${U4[p4.LONECARET]}${U4[p4.XRANGEPLAIN]}$`);M5("CARETLOOSE",`^${U4[p4.LONECARET]}${U4[p4.XRANGEPLAINLOOSE]}$`);M5("COMPARATORLOOSE",`^${U4[p4.GTLT]}\\s*(${U4[p4.LOOSEPLAIN]})$|^$`);M5("COMPARATOR",`^${U4[p4.GTLT]}\\s*(${U4[p4.FULLPLAIN]})$|^$`);M5("COMPARATORTRIM",`(\\s*)${U4[p4.GTLT]}\\s*(${U4[p4.LOOSEPLAIN]}|${U4[p4.XRANGEPLAIN]})`,!0);Pg.comparatorTrimReplace="$1$2$3";M5("HYPHENRANGE",`^\\s*(${U4[p4.XRANGEPLAIN]})\\s+-\\s+(${U4[p4.XRANGEPLAIN]})\\s*$`);M5("HYPHENRANGELOOSE",`^\\s*(${U4[p4.XRANGEPLAINLOOSE]})\\s+-\\s+(${U4[p4.XRANGEPLAINLOOSE]})\\s*$`);M5("STAR","(<|>)?=?\\s*\\*");M5("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");M5("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var tO1=C((OZ2,gk7)=>{var A79=Object.freeze({loose:!0}),q79=Object.freeze({}),K79=(A)=>{if(!A)return q79;if(typeof A!=="object")return A79;return A};gk7.exports=K79});var bj8=C((HZ2,Uk7)=>{var Fk7=/^[0-9]+$/,Qk7=(A,q)=>{let K=Fk7.test(A),Y=Fk7.test(q);if(K&&Y)A=+A,q=+q;return A===q?0:K&&!Y?-1:Y&&!K?1:A<q?-1:1},Y79=(A,q)=>Qk7(q,A);Uk7.exports={compareIdentifiers:Qk7,rcompareIdentifiers:Y79}});var sZ=C((jZ2,dk7)=>{var eO1=im6(),{MAX_LENGTH:pk7,MAX_SAFE_INTEGER:AH1}=lm6(),{safeRe:qH1,t:KH1}=G06(),z79=tO1(),{compareIdentifiers:f06}=bj8();class Xb{constructor(A,q){if(q=z79(q),A instanceof Xb)if(A.loose===!!q.loose&&A.includePrerelease===!!q.includePrerelease)return A;else A=A.version;else if(typeof A!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof A}".`);if(A.length>pk7)throw TypeError(`version is longer than ${pk7} characters`);eO1("SemVer",A,q),this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease;let K=A.trim().match(q.loose?qH1[KH1.LOOSE]:qH1[KH1.FULL]);if(!K)throw TypeError(`Invalid Version: ${A}`);if(this.raw=A,this.major=+K[1],this.minor=+K[2],this.patch=+K[3],this.major>AH1||this.major<0)throw TypeError("Invalid major version");if(this.minor>AH1||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>AH1||this.patch<0)throw TypeError("Invalid patch version");if(!K[4])this.prerelease=[];else this.prerelease=K[4].split(".").map((Y)=>{if(/^[0-9]+$/.test(Y)){let z=+Y;if(z>=0&&z<AH1)return z}return Y});this.build=K[5]?K[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(A){if(eO1("SemVer.compare",this.version,this.options,A),!(A instanceof Xb)){if(typeof A==="string"&&A===this.version)return 0;A=new Xb(A,this.options)}if(A.version===this.version)return 0;return this.compareMain(A)||this.comparePre(A)}compareMain(A){if(!(A instanceof Xb))A=new Xb(A,this.options);return f06(this.major,A.major)||f06(this.minor,A.minor)||f06(this.patch,A.patch)}comparePre(A){if(!(A instanceof Xb))A=new Xb(A,this.options);if(this.prerelease.length&&!A.prerelease.length)return-1;else if(!this.prerelease.length&&A.prerelease.length)return 1;else if(!this.prerelease.length&&!A.prerelease.length)return 0;let q=0;do{let K=this.prerelease[q],Y=A.prerelease[q];if(eO1("prerelease compare",q,K,Y),K===void 0&&Y===void 0)return 0;else if(Y===void 0)return 1;else if(K===void 0)return-1;else if(K===Y)continue;else return f06(K,Y)}while(++q)}compareBuild(A){if(!(A instanceof Xb))A=new Xb(A,this.options);let q=0;do{let K=this.build[q],Y=A.build[q];if(eO1("build compare",q,K,Y),K===void 0&&Y===void 0)return 0;else if(Y===void 0)return 1;else if(K===void 0)return-1;else if(K===Y)continue;else return f06(K,Y)}while(++q)}inc(A,q,K){if(A.startsWith("pre")){if(!q&&K===!1)throw Error("invalid increment argument: identifier is empty");if(q){let Y=`-${q}`.match(this.options.loose?qH1[KH1.PRERELEASELOOSE]:qH1[KH1.PRERELEASE]);if(!Y||Y[1]!==q)throw Error(`invalid identifier: ${q}`)}}switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",q,K);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",q,K);break;case"prepatch":this.prerelease.length=0,this.inc("patch",q,K),this.inc("pre",q,K);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",q,K);this.inc("pre",q,K);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Y=Number(K)?1:0;if(this.prerelease.length===0)this.prerelease=[Y];else{let z=this.prerelease.length;while(--z>=0)if(typeof this.prerelease[z]==="number")this.prerelease[z]++,z=-2;if(z===-1){if(q===this.prerelease.join(".")&&K===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Y)}}if(q){let z=[q,Y];if(K===!1)z=[q];if(f06(this.prerelease[0],q)===0){if(isNaN(this.prerelease[1]))this.prerelease=z}else this.prerelease=z}break}default:throw Error(`invalid increment argument: ${A}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}dk7.exports=Xb});var V56=C((JZ2,lk7)=>{var ck7=sZ(),w79=(A,q,K=!1)=>{if(A instanceof ck7)return A;try{return new ck7(A,q)}catch(Y){if(!K)return null;throw Y}};lk7.exports=w79});var nk7=C((MZ2,ik7)=>{var _79=V56(),$79=(A,q)=>{let K=_79(A,q);return K?K.version:null};ik7.exports=$79});var ok7=C((DZ2,rk7)=>{var O79=V56(),H79=(A,q)=>{let K=O79(A.trim().replace(/^[=v]+/,""),q);return K?K.version:null};rk7.exports=H79});var tk7=C((XZ2,sk7)=>{var ak7=sZ(),j79=(A,q,K,Y,z)=>{if(typeof K==="string")z=Y,Y=K,K=void 0;try{return new ak7(A instanceof ak7?A.version:A,K).inc(q,Y,z).version}catch(w){return null}};sk7.exports=j79});var qE7=C((PZ2,AE7)=>{var ek7=V56(),J79=(A,q)=>{let K=ek7(A,null,!0),Y=ek7(q,null,!0),z=K.compare(Y);if(z===0)return null;let w=z>0,_=w?K:Y,$=w?Y:K,O=!!_.prerelease.length;if(!!$.prerelease.length&&!O){if(!$.patch&&!$.minor)return"major";if($.compareMain(_)===0){if($.minor&&!$.patch)return"minor";return"patch"}}let j=O?"pre":"";if(K.major!==Y.major)return j+"major";if(K.minor!==Y.minor)return j+"minor";if(K.patch!==Y.patch)return j+"patch";return"prerelease"};AE7.exports=J79});var YE7=C((WZ2,KE7)=>{var M79=sZ(),D79=(A,q)=>new M79(A,q).major;KE7.exports=D79});var wE7=C((ZZ2,zE7)=>{var X79=sZ(),P79=(A,q)=>new X79(A,q).minor;zE7.exports=P79});var $E7=C((GZ2,_E7)=>{var W79=sZ(),Z79=(A,q)=>new W79(A,q).patch;_E7.exports=Z79});var HE7=C((fZ2,OE7)=>{var G79=V56(),f79=(A,q)=>{let K=G79(A,q);return K&&K.prerelease.length?K.prerelease:null};OE7.exports=f79});var eR=C((TZ2,JE7)=>{var jE7=sZ(),T79=(A,q,K)=>new jE7(A,K).compare(new jE7(q,K));JE7.exports=T79});var DE7=C((VZ2,ME7)=>{var V79=eR(),N79=(A,q,K)=>V79(q,A,K);ME7.exports=N79});var PE7=C((NZ2,XE7)=>{var v79=eR(),k79=(A,q)=>v79(A,q,!0);XE7.exports=k79});var YH1=C((vZ2,ZE7)=>{var WE7=sZ(),E79=(A,q,K)=>{let Y=new WE7(A,K),z=new WE7(q,K);return Y.compare(z)||Y.compareBuild(z)};ZE7.exports=E79});var fE7=C((kZ2,GE7)=>{var L79=YH1(),y79=(A,q)=>A.sort((K,Y)=>L79(K,Y,q));GE7.exports=y79});var VE7=C((EZ2,TE7)=>{var R79=YH1(),S79=(A,q)=>A.sort((K,Y)=>R79(Y,K,q));TE7.exports=S79});var nm6=C((LZ2,NE7)=>{var C79=eR(),h79=(A,q,K)=>C79(A,q,K)>0;NE7.exports=h79});var zH1=C((yZ2,vE7)=>{var I79=eR(),b79=(A,q,K)=>I79(A,q,K)<0;vE7.exports=b79});var xj8=C((RZ2,kE7)=>{var x79=eR(),u79=(A,q,K)=>x79(A,q,K)===0;kE7.exports=u79});var uj8=C((SZ2,EE7)=>{var B79=eR(),m79=(A,q,K)=>B79(A,q,K)!==0;EE7.exports=m79});var wH1=C((CZ2,LE7)=>{var g79=eR(),F79=(A,q,K)=>g79(A,q,K)>=0;LE7.exports=F79});var _H1=C((hZ2,yE7)=>{var Q79=eR(),U79=(A,q,K)=>Q79(A,q,K)<=0;yE7.exports=U79});var Bj8=C((IZ2,RE7)=>{var p79=xj8(),d79=uj8(),c79=nm6(),l79=wH1(),i79=zH1(),n79=_H1(),r79=(A,q,K,Y)=>{switch(q){case"===":if(typeof A==="object")A=A.version;if(typeof K==="object")K=K.version;return A===K;case"!==":if(typeof A==="object")A=A.version;if(typeof K==="object")K=K.version;return A!==K;case"":case"=":case"==":return p79(A,K,Y);case"!=":return d79(A,K,Y);case">":return c79(A,K,Y);case">=":return l79(A,K,Y);case"<":return i79(A,K,Y);case"<=":return n79(A,K,Y);default:throw TypeError(`Invalid operator: ${q}`)}};RE7.exports=r79});var CE7=C((bZ2,SE7)=>{var o79=sZ(),a79=V56(),{safeRe:$H1,t:OH1}=G06(),s79=(A,q)=>{if(A instanceof o79)return A;if(typeof A==="number")A=String(A);if(typeof A!=="string")return null;q=q||{};let K=null;if(!q.rtl)K=A.match(q.includePrerelease?$H1[OH1.COERCEFULL]:$H1[OH1.COERCE]);else{let O=q.includePrerelease?$H1[OH1.COERCERTLFULL]:$H1[OH1.COERCERTL],H;while((H=O.exec(A))&&(!K||K.index+K[0].length!==A.length)){if(!K||H.index+H[0].length!==K.index+K[0].length)K=H;O.lastIndex=H.index+H[1].length+H[2].length}O.lastIndex=-1}if(K===null)return null;let Y=K[2],z=K[3]||"0",w=K[4]||"0",_=q.includePrerelease&&K[5]?`-${K[5]}`:"",$=q.includePrerelease&&K[6]?`+${K[6]}`:"";return a79(`${Y}.${z}.${w}${_}${$}`,q)};SE7.exports=s79});var bE7=C((xZ2,IE7)=>{class hE7{constructor(){this.max=1000,this.map=new Map}get(A){let q=this.map.get(A);if(q===void 0)return;else return this.map.delete(A),this.map.set(A,q),q}delete(A){return this.map.delete(A)}set(A,q){if(!this.delete(A)&&q!==void 0){if(this.map.size>=this.max){let Y=this.map.keys().next().value;this.delete(Y)}this.map.set(A,q)}return this}}IE7.exports=hE7});var AS=C((uZ2,mE7)=>{var t79=/\s+/g;class rm6{constructor(A,q){if(q=A49(q),A instanceof rm6)if(A.loose===!!q.loose&&A.includePrerelease===!!q.includePrerelease)return A;else return new rm6(A.raw,q);if(A instanceof mj8)return this.raw=A.value,this.set=[[A]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=A.trim().replace(t79," "),this.set=this.raw.split("||").map((K)=>this.parseRange(K.trim())).filter((K)=>K.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let K=this.set[0];if(this.set=this.set.filter((Y)=>!uE7(Y[0])),this.set.length===0)this.set=[K];else if(this.set.length>1){for(let Y of this.set)if(Y.length===1&&$49(Y[0])){this.set=[Y];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let A=0;A<this.set.length;A++){if(A>0)this.formatted+="||";let q=this.set[A];for(let K=0;K<q.length;K++){if(K>0)this.formatted+=" ";this.formatted+=q[K].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(A){let K=((this.options.includePrerelease&&w49)|(this.options.loose&&_49))+":"+A,Y=xE7.get(K);if(Y)return Y;let z=this.options.loose,w=z?vN[of.HYPHENRANGELOOSE]:vN[of.HYPHENRANGE];A=A.replace(w,Z49(this.options.includePrerelease)),e$("hyphen replace",A),A=A.replace(vN[of.COMPARATORTRIM],K49),e$("comparator trim",A),A=A.replace(vN[of.TILDETRIM],Y49),e$("tilde trim",A),A=A.replace(vN[of.CARETTRIM],z49),e$("caret trim",A);let _=A.split(" ").map((j)=>O49(j,this.options)).join(" ").split(/\s+/).map((j)=>W49(j,this.options));if(z)_=_.filter((j)=>{return e$("loose invalid filter",j,this.options),!!j.match(vN[of.COMPARATORLOOSE])});e$("range list",_);let $=new Map,O=_.map((j)=>new mj8(j,this.options));for(let j of O){if(uE7(j))return[j];$.set(j.value,j)}if($.size>1&&$.has(""))$.delete("");let H=[...$.values()];return xE7.set(K,H),H}intersects(A,q){if(!(A instanceof rm6))throw TypeError("a Range is required");return this.set.some((K)=>{return BE7(K,q)&&A.set.some((Y)=>{return BE7(Y,q)&&K.every((z)=>{return Y.every((w)=>{return z.intersects(w,q)})})})})}test(A){if(!A)return!1;if(typeof A==="string")try{A=new q49(A,this.options)}catch(q){return!1}for(let q=0;q<this.set.length;q++)if(G49(this.set[q],A,this.options))return!0;return!1}}mE7.exports=rm6;var e79=bE7(),xE7=new e79,A49=tO1(),mj8=om6(),e$=im6(),q49=sZ(),{safeRe:vN,t:of,comparatorTrimReplace:K49,tildeTrimReplace:Y49,caretTrimReplace:z49}=G06(),{FLAG_INCLUDE_PRERELEASE:w49,FLAG_LOOSE:_49}=lm6(),uE7=(A)=>A.value==="<0.0.0-0",$49=(A)=>A.value==="",BE7=(A,q)=>{let K=!0,Y=A.slice(),z=Y.pop();while(K&&Y.length)K=Y.every((w)=>{return z.intersects(w,q)}),z=Y.pop();return K},O49=(A,q)=>{return e$("comp",A,q),A=J49(A,q),e$("caret",A),A=H49(A,q),e$("tildes",A),A=D49(A,q),e$("xrange",A),A=P49(A,q),e$("stars",A),A},af=(A)=>!A||A.toLowerCase()==="x"||A==="*",H49=(A,q)=>{return A.trim().split(/\s+/).map((K)=>j49(K,q)).join(" ")},j49=(A,q)=>{let K=q.loose?vN[of.TILDELOOSE]:vN[of.TILDE];return A.replace(K,(Y,z,w,_,$)=>{e$("tilde",A,Y,z,w,_,$);let O;if(af(z))O="";else if(af(w))O=`>=${z}.0.0 <${+z+1}.0.0-0`;else if(af(_))O=`>=${z}.${w}.0 <${z}.${+w+1}.0-0`;else if($)e$("replaceTilde pr",$),O=`>=${z}.${w}.${_}-${$} <${z}.${+w+1}.0-0`;else O=`>=${z}.${w}.${_} <${z}.${+w+1}.0-0`;return e$("tilde return",O),O})},J49=(A,q)=>{return A.trim().split(/\s+/).map((K)=>M49(K,q)).join(" ")},M49=(A,q)=>{e$("caret",A,q);let K=q.loose?vN[of.CARETLOOSE]:vN[of.CARET],Y=q.includePrerelease?"-0":"";return A.replace(K,(z,w,_,$,O)=>{e$("caret",A,z,w,_,$,O);let H;if(af(w))H="";else if(af(_))H=`>=${w}.0.0${Y} <${+w+1}.0.0-0`;else if(af($))if(w==="0")H=`>=${w}.${_}.0${Y} <${w}.${+_+1}.0-0`;else H=`>=${w}.${_}.0${Y} <${+w+1}.0.0-0`;else if(O)if(e$("replaceCaret pr",O),w==="0")if(_==="0")H=`>=${w}.${_}.${$}-${O} <${w}.${_}.${+$+1}-0`;else H=`>=${w}.${_}.${$}-${O} <${w}.${+_+1}.0-0`;else H=`>=${w}.${_}.${$}-${O} <${+w+1}.0.0-0`;else if(e$("no pr"),w==="0")if(_==="0")H=`>=${w}.${_}.${$}${Y} <${w}.${_}.${+$+1}-0`;else H=`>=${w}.${_}.${$}${Y} <${w}.${+_+1}.0-0`;else H=`>=${w}.${_}.${$} <${+w+1}.0.0-0`;return e$("caret return",H),H})},D49=(A,q)=>{return e$("replaceXRanges",A,q),A.split(/\s+/).map((K)=>X49(K,q)).join(" ")},X49=(A,q)=>{A=A.trim();let K=q.loose?vN[of.XRANGELOOSE]:vN[of.XRANGE];return A.replace(K,(Y,z,w,_,$,O)=>{e$("xRange",A,Y,z,w,_,$,O);let H=af(w),j=H||af(_),J=j||af($),M=J;if(z==="="&&M)z="";if(O=q.includePrerelease?"-0":"",H)if(z===">"||z==="<")Y="<0.0.0-0";else Y="*";else if(z&&M){if(j)_=0;if($=0,z===">")if(z=">=",j)w=+w+1,_=0,$=0;else _=+_+1,$=0;else if(z==="<=")if(z="<",j)w=+w+1;else _=+_+1;if(z==="<")O="-0";Y=`${z+w}.${_}.${$}${O}`}else if(j)Y=`>=${w}.0.0${O} <${+w+1}.0.0-0`;else if(J)Y=`>=${w}.${_}.0${O} <${w}.${+_+1}.0-0`;return e$("xRange return",Y),Y})},P49=(A,q)=>{return e$("replaceStars",A,q),A.trim().replace(vN[of.STAR],"")},W49=(A,q)=>{return e$("replaceGTE0",A,q),A.trim().replace(vN[q.includePrerelease?of.GTE0PRE:of.GTE0],"")},Z49=(A)=>(q,K,Y,z,w,_,$,O,H,j,J,M)=>{if(af(Y))K="";else if(af(z))K=`>=${Y}.0.0${A?"-0":""}`;else if(af(w))K=`>=${Y}.${z}.0${A?"-0":""}`;else if(_)K=`>=${K}`;else K=`>=${K}${A?"-0":""}`;if(af(H))O="";else if(af(j))O=`<${+H+1}.0.0-0`;else if(af(J))O=`<${H}.${+j+1}.0-0`;else if(M)O=`<=${H}.${j}.${J}-${M}`;else if(A)O=`<${H}.${j}.${+J+1}-0`;else O=`<=${O}`;return`${K} ${O}`.trim()},G49=(A,q,K)=>{for(let Y=0;Y<A.length;Y++)if(!A[Y].test(q))return!1;if(q.prerelease.length&&!K.includePrerelease){for(let Y=0;Y<A.length;Y++){if(e$(A[Y].semver),A[Y].semver===mj8.ANY)continue;if(A[Y].semver.prerelease.length>0){let z=A[Y].semver;if(z.major===q.major&&z.minor===q.minor&&z.patch===q.patch)return!0}}return!1}return!0}});var om6=C((BZ2,dE7)=>{var am6=Symbol("SemVer ANY");class HH1{static get ANY(){return am6}constructor(A,q){if(q=gE7(q),A instanceof HH1)if(A.loose===!!q.loose)return A;else A=A.value;if(A=A.trim().split(/\s+/).join(" "),Fj8("comparator",A,q),this.options=q,this.loose=!!q.loose,this.parse(A),this.semver===am6)this.value="";else this.value=this.operator+this.semver.version;Fj8("comp",this)}parse(A){let q=this.options.loose?FE7[QE7.COMPARATORLOOSE]:FE7[QE7.COMPARATOR],K=A.match(q);if(!K)throw TypeError(`Invalid comparator: ${A}`);if(this.operator=K[1]!==void 0?K[1]:"",this.operator==="=")this.operator="";if(!K[2])this.semver=am6;else this.semver=new UE7(K[2],this.options.loose)}toString(){return this.value}test(A){if(Fj8("Comparator.test",A,this.options.loose),this.semver===am6||A===am6)return!0;if(typeof A==="string")try{A=new UE7(A,this.options)}catch(q){return!1}return gj8(A,this.operator,this.semver,this.options)}intersects(A,q){if(!(A instanceof HH1))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new pE7(A.value,q).test(this.value)}else if(A.operator===""){if(A.value==="")return!0;return new pE7(this.value,q).test(A.semver)}if(q=gE7(q),q.includePrerelease&&(this.value==="<0.0.0-0"||A.value==="<0.0.0-0"))return!1;if(!q.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&A.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&A.operator.startsWith("<"))return!0;if(this.semver.version===A.semver.version&&this.operator.includes("=")&&A.operator.includes("="))return!0;if(gj8(this.semver,"<",A.semver,q)&&this.operator.startsWith(">")&&A.operator.startsWith("<"))return!0;if(gj8(this.semver,">",A.semver,q)&&this.operator.startsWith("<")&&A.operator.startsWith(">"))return!0;return!1}}dE7.exports=HH1;var gE7=tO1(),{safeRe:FE7,t:QE7}=G06(),gj8=Bj8(),Fj8=im6(),UE7=sZ(),pE7=AS()});var sm6=C((mZ2,cE7)=>{var f49=AS(),T49=(A,q,K)=>{try{q=new f49(q,K)}catch(Y){return!1}return q.test(A)};cE7.exports=T49});var iE7=C((gZ2,lE7)=>{var V49=AS(),N49=(A,q)=>new V49(A,q).set.map((K)=>K.map((Y)=>Y.value).join(" ").trim().split(" "));lE7.exports=N49});var rE7=C((FZ2,nE7)=>{var v49=sZ(),k49=AS(),E49=(A,q,K)=>{let Y=null,z=null,w=null;try{w=new k49(q,K)}catch(_){return null}return A.forEach((_)=>{if(w.test(_)){if(!Y||z.compare(_)===-1)Y=_,z=new v49(Y,K)}}),Y};nE7.exports=E49});var aE7=C((QZ2,oE7)=>{var L49=sZ(),y49=AS(),R49=(A,q,K)=>{let Y=null,z=null,w=null;try{w=new y49(q,K)}catch(_){return null}return A.forEach((_)=>{if(w.test(_)){if(!Y||z.compare(_)===1)Y=_,z=new L49(Y,K)}}),Y};oE7.exports=R49});var eE7=C((UZ2,tE7)=>{var Qj8=sZ(),S49=AS(),sE7=nm6(),C49=(A,q)=>{A=new S49(A,q);let K=new Qj8("0.0.0");if(A.test(K))return K;if(K=new Qj8("0.0.0-0"),A.test(K))return K;K=null;for(let Y=0;Y<A.set.length;++Y){let z=A.set[Y],w=null;if(z.forEach((_)=>{let $=new Qj8(_.semver.version);switch(_.operator){case">":if($.prerelease.length===0)$.patch++;else $.prerelease.push(0);$.raw=$.format();case"":case">=":if(!w||sE7($,w))w=$;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${_.operator}`)}}),w&&(!K||sE7(K,w)))K=w}if(K&&A.test(K))return K;return null};tE7.exports=C49});var qL7=C((pZ2,AL7)=>{var h49=AS(),I49=(A,q)=>{try{return new h49(A,q).range||"*"}catch(K){return null}};AL7.exports=I49});var jH1=C((dZ2,wL7)=>{var b49=sZ(),zL7=om6(),{ANY:x49}=zL7,u49=AS(),B49=sm6(),KL7=nm6(),YL7=zH1(),m49=_H1(),g49=wH1(),F49=(A,q,K,Y)=>{A=new b49(A,Y),q=new u49(q,Y);let z,w,_,$,O;switch(K){case">":z=KL7,w=m49,_=YL7,$=">",O=">=";break;case"<":z=YL7,w=g49,_=KL7,$="<",O="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(B49(A,q,Y))return!1;for(let H=0;H<q.set.length;++H){let j=q.set[H],J=null,M=null;if(j.forEach((D)=>{if(D.semver===x49)D=new zL7(">=0.0.0");if(J=J||D,M=M||D,z(D.semver,J.semver,Y))J=D;else if(_(D.semver,M.semver,Y))M=D}),J.operator===$||J.operator===O)return!1;if((!M.operator||M.operator===$)&&w(A,M.semver))return!1;else if(M.operator===O&&_(A,M.semver))return!1}return!0};wL7.exports=F49});var $L7=C((cZ2,_L7)=>{var Q49=jH1(),U49=(A,q,K)=>Q49(A,q,">",K);_L7.exports=U49});var HL7=C((lZ2,OL7)=>{var p49=jH1(),d49=(A,q,K)=>p49(A,q,"<",K);OL7.exports=d49});var ML7=C((iZ2,JL7)=>{var jL7=AS(),c49=(A,q,K)=>{return A=new jL7(A,K),q=new jL7(q,K),A.intersects(q,K)};JL7.exports=c49});var XL7=C((nZ2,DL7)=>{var l49=sm6(),i49=eR();DL7.exports=(A,q,K)=>{let Y=[],z=null,w=null,_=A.sort((j,J)=>i49(j,J,K));for(let j of _)if(l49(j,q,K)){if(w=j,!z)z=j}else{if(w)Y.push([z,w]);w=null,z=null}if(z)Y.push([z,null]);let $=[];for(let[j,J]of Y)if(j===J)$.push(j);else if(!J&&j===_[0])$.push("*");else if(!J)$.push(`>=${j}`);else if(j===_[0])$.push(`<=${J}`);else $.push(`${j} - ${J}`);let O=$.join(" || "),H=typeof q.raw==="string"?q.raw:String(q);return O.length<H.length?O:q}});var TL7=C((rZ2,fL7)=>{var PL7=AS(),pj8=om6(),{ANY:Uj8}=pj8,tm6=sm6(),dj8=eR(),n49=(A,q,K={})=>{if(A===q)return!0;A=new PL7(A,K),q=new PL7(q,K);let Y=!1;A:for(let z of A.set){for(let w of q.set){let _=o49(z,w,K);if(Y=Y||_!==null,_)continue A}if(Y)return!1}return!0},r49=[new pj8(">=0.0.0-0")],WL7=[new pj8(">=0.0.0")],o49=(A,q,K)=>{if(A===q)return!0;if(A.length===1&&A[0].semver===Uj8)if(q.length===1&&q[0].semver===Uj8)return!0;else if(K.includePrerelease)A=r49;else A=WL7;if(q.length===1&&q[0].semver===Uj8)if(K.includePrerelease)return!0;else q=WL7;let Y=new Set,z,w;for(let D of A)if(D.operator===">"||D.operator===">=")z=ZL7(z,D,K);else if(D.operator==="<"||D.operator==="<=")w=GL7(w,D,K);else Y.add(D.semver);if(Y.size>1)return null;let _;if(z&&w){if(_=dj8(z.semver,w.semver,K),_>0)return null;else if(_===0&&(z.operator!==">="||w.operator!=="<="))return null}for(let D of Y){if(z&&!tm6(D,String(z),K))return null;if(w&&!tm6(D,String(w),K))return null;for(let X of q)if(!tm6(D,String(X),K))return!1;return!0}let $,O,H,j,J=w&&!K.includePrerelease&&w.semver.prerelease.length?w.semver:!1,M=z&&!K.includePrerelease&&z.semver.prerelease.length?z.semver:!1;if(J&&J.prerelease.length===1&&w.operator==="<"&&J.prerelease[0]===0)J=!1;for(let D of q){if(j=j||D.operator===">"||D.operator===">=",H=H||D.operator==="<"||D.operator==="<=",z){if(M){if(D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===M.major&&D.semver.minor===M.minor&&D.semver.patch===M.patch)M=!1}if(D.operator===">"||D.operator===">="){if($=ZL7(z,D,K),$===D&&$!==z)return!1}else if(z.operator===">="&&!tm6(z.semver,String(D),K))return!1}if(w){if(J){if(D.semver.prerelease&&D.semver.prerelease.length&&D.semver.major===J.major&&D.semver.minor===J.minor&&D.semver.patch===J.patch)J=!1}if(D.operator==="<"||D.operator==="<="){if(O=GL7(w,D,K),O===D&&O!==w)return!1}else if(w.operator==="<="&&!tm6(w.semver,String(D),K))return!1}if(!D.operator&&(w||z)&&_!==0)return!1}if(z&&H&&!w&&_!==0)return!1;if(w&&j&&!z&&_!==0)return!1;if(M||J)return!1;return!0},ZL7=(A,q,K)=>{if(!A)return q;let Y=dj8(A.semver,q.semver,K);return Y>0?A:Y<0?q:q.operator===">"&&A.operator===">="?q:A},GL7=(A,q,K)=>{if(!A)return q;let Y=dj8(A.semver,q.semver,K);return Y<0?A:Y>0?q:q.operator==="<"&&A.operator==="<="?q:A};fL7.exports=n49});var T06=C((oZ2,vL7)=>{var cj8=G06(),VL7=lm6(),a49=sZ(),NL7=bj8(),s49=V56(),t49=nk7(),e49=ok7(),Aq9=tk7(),qq9=qE7(),Kq9=YE7(),Yq9=wE7(),zq9=$E7(),wq9=HE7(),_q9=eR(),$q9=DE7(),Oq9=PE7(),Hq9=YH1(),jq9=fE7(),Jq9=VE7(),Mq9=nm6(),Dq9=zH1(),Xq9=xj8(),Pq9=uj8(),Wq9=wH1(),Zq9=_H1(),Gq9=Bj8(),fq9=CE7(),Tq9=om6(),Vq9=AS(),Nq9=sm6(),vq9=iE7(),kq9=rE7(),Eq9=aE7(),Lq9=eE7(),yq9=qL7(),Rq9=jH1(),Sq9=$L7(),Cq9=HL7(),hq9=ML7(),Iq9=XL7(),bq9=TL7();vL7.exports={parse:s49,valid:t49,clean:e49,inc:Aq9,diff:qq9,major:Kq9,minor:Yq9,patch:zq9,prerelease:wq9,compare:_q9,rcompare:$q9,compareLoose:Oq9,compareBuild:Hq9,sort:jq9,rsort:Jq9,gt:Mq9,lt:Dq9,eq:Xq9,neq:Pq9,gte:Wq9,lte:Zq9,cmp:Gq9,coerce:fq9,Comparator:Tq9,Range:Vq9,satisfies:Nq9,toComparators:vq9,maxSatisfying:kq9,minSatisfying:Eq9,minVersion:Lq9,validRange:yq9,outside:Rq9,gtr:Sq9,ltr:Cq9,intersects:hq9,simplifyRange:Iq9,subset:bq9,SemVer:a49,re:cj8.re,src:cj8.src,tokens:cj8.t,SEMVER_SPEC_VERSION:VL7.SEMVER_SPEC_VERSION,RELEASE_TYPES:VL7.RELEASE_TYPES,compareIdentifiers:NL7.compareIdentifiers,rcompareIdentifiers:NL7.rcompareIdentifiers}});function JH1(){if(!lj8)lj8=T06();return lj8}function sf(A,q){if(typeof Bun<"u")return Bun.semver.order(A,q)===1;return JH1().gt(A,q,{loose:!0})}function dD(A,q){if(typeof Bun<"u")return Bun.semver.order(A,q)>=0;return JH1().gte(A,q,{loose:!0})}function V06(A,q){if(typeof Bun<"u")return Bun.semver.order(A,q)===-1;return JH1().lt(A,q,{loose:!0})}function ij8(A,q){if(typeof Bun<"u")return Bun.semver.satisfies(A,q);return JH1().satisfies(A,q,{loose:!0})}var lj8;function xq9(A,q,K){var Y=-1,z=A.length;if(q<0)q=-q>z?0:z+q;if(K=K>z?z:K,K<0)K+=z;z=q>K?0:K-q>>>0,q>>>=0;var w=Array(z);while(++Y<z)w[Y]=A[Y+q];return w}var MH1;var nj8=k(()=>{MH1=xq9});function uq9(A,q,K){var Y=A.length;return K=K===void 0?Y:K,!q&&K>=Y?A:MH1(A,q,K)}var kL7;var EL7=k(()=>{nj8();kL7=uq9});function cq9(A){return dq9.test(A)}var Bq9="\\ud800-\\udfff",mq9="\\u0300-\\u036f",gq9="\\ufe20-\\ufe2f",Fq9="\\u20d0-\\u20ff",Qq9,Uq9="\\ufe0e\\ufe0f",pq9="\\u200d",dq9,DH1;var rj8=k(()=>{Qq9=mq9+gq9+Fq9,dq9=RegExp("["+pq9+Bq9+Qq9+Uq9+"]");DH1=cq9});function lq9(A){return A.split("")}var LL7;var yL7=k(()=>{LL7=lq9});function zK9(A){return A.match(YK9)||[]}var RL7="\\ud800-\\udfff",iq9="\\u0300-\\u036f",nq9="\\ufe20-\\ufe2f",rq9="\\u20d0-\\u20ff",oq9,aq9="\\ufe0e\\ufe0f",sq9,oj8,aj8="\\ud83c[\\udffb-\\udfff]",tq9,SL7,CL7="(?:\\ud83c[\\udde6-\\uddff]){2}",hL7="[\\ud800-\\udbff][\\udc00-\\udfff]",eq9="\\u200d",IL7,bL7,AK9,qK9,KK9,YK9,xL7;var uL7=k(()=>{oq9=iq9+nq9+rq9,sq9="["+RL7+"]",oj8="["+oq9+"]",tq9="(?:"+oj8+"|"+aj8+")",SL7="[^"+RL7+"]",IL7=tq9+"?",bL7="["+aq9+"]?",AK9="(?:"+eq9+"(?:"+[SL7,CL7,hL7].join("|")+")"+bL7+IL7+")*",qK9=bL7+IL7+AK9,KK9="(?:"+[SL7+oj8+"?",oj8,CL7,hL7,sq9].join("|")+")",YK9=RegExp(aj8+"(?="+aj8+")|"+KK9+qK9,"g");xL7=zK9});function wK9(A){return DH1(A)?xL7(A):LL7(A)}var BL7;var mL7=k(()=>{yL7();rj8();uL7();BL7=wK9});function _K9(A){return function(q){q=JH6(q);var K=DH1(q)?BL7(q):void 0,Y=K?K[0]:q.charAt(0),z=K?kL7(K,1).join(""):q.slice(1);return Y[A]()+z}}var gL7;var FL7=k(()=>{EL7();rj8();mL7();i11();gL7=_K9});var $K9,QL7;var UL7=k(()=>{FL7();$K9=gL7("toUpperCase"),QL7=$K9});function OK9(A){return QL7(JH6(A).toLowerCase())}var Pb;var N06=k(()=>{i11();UL7();Pb=OK9});import*as F0 from"path";import*as em6 from"os";function jK9(A){let q=em6.homedir(),K=[],Y=pL7[A.toLowerCase()];if(!Y)return K;let z=process.env.APPDATA||F0.join(q,"AppData","Roaming"),w=process.env.LOCALAPPDATA||F0.join(q,"AppData","Local");switch(em6.platform()){case"darwin":if(K.push(F0.join(q,"Library","Application Support","JetBrains"),F0.join(q,"Library","Application Support")),A.toLowerCase()==="androidstudio")K.push(F0.join(q,"Library","Application Support","Google"));break;case"win32":if(K.push(F0.join(z,"JetBrains"),F0.join(w,"JetBrains"),F0.join(z)),A.toLowerCase()==="androidstudio")K.push(F0.join(w,"Google"));break;case"linux":K.push(F0.join(q,".config","JetBrains"),F0.join(q,".local","share","JetBrains"));for(let _ of Y)K.push(F0.join(q,"."+_));if(A.toLowerCase()==="androidstudio")K.push(F0.join(q,".config","Google"));break;default:break}return K}async function JK9(A){let q=[],K=P1(),Y=jK9(A),z=pL7[A.toLowerCase()];if(!z)return q;for(let w of Y)try{let _=await K.readdir(w);for(let $ of z){let O=new RegExp("^"+$+".*$"),H=[];for(let j of _){if(!O.test(j.name))continue;try{let J=F0.join(w,j.name);if((await K.stat(J)).isDirectory())H.push(J)}catch{}}for(let j of H){let J=em6.platform()==="linux"?j:F0.join(j,"plugins");try{await K.stat(J),q.push(J)}catch{}}}}catch{continue}return q.filter((w,_)=>q.indexOf(w)===_)}async function MK9(A){let q=await JK9(A);for(let K of q){let Y=F0.join(K,HK9);try{return await P1().stat(Y),!0}catch{}}return!1}async function DK9(A,q=!1){if(!q){let Y=sj8.get(A);if(Y)return Y}let K=MK9(A).then((Y)=>{return tj8.set(A,Y),Y});return sj8.set(A,K),K}async function dL7(A,q=!1){if(q)tj8.delete(A),sj8.delete(A);return DK9(A,q)}function cL7(A){return tj8.get(A)??!1}var HK9="claude-code-jetbrains-plugin",pL7,tj8,sj8;var ej8=k(()=>{Y7();pL7={pycharm:["PyCharm"],intellij:["IntelliJIdea","IdeaIC"],webstorm:["WebStorm"],phpstorm:["PhpStorm"],rubymine:["RubyMine"],clion:["CLion"],goland:["GoLand"],rider:["Rider"],datagrip:["DataGrip"],appcode:["AppCode"],dataspell:["DataSpell"],aqua:["Aqua"],gateway:["Gateway"],fleet:["Fleet"],androidstudio:["AndroidStudio"]};tj8=new Map,sj8=new Map});import{execFileSync as lL7}from"node:child_process";class v06{wslDistroName;constructor(A){this.wslDistroName=A}toLocalPath(A){if(!A)return A;if(this.wslDistroName){let q=A.match(/^\\\\wsl(?:\.localhost|\$)\\([^\\]+)(.*)$/);if(q&&q[1]!==this.wslDistroName)return A}try{return lL7("wslpath",["-u",A],{encoding:"utf8",stdio:["pipe","pipe","ignore"]}).trim()}catch{return A.replace(/\\/g,"/").replace(/^([A-Z]):/i,(q,K)=>`/mnt/${K.toLowerCase()}`)}}toIDEPath(A){if(!A)return A;try{return lL7("wslpath",["-w",A],{encoding:"utf8",stdio:["pipe","pipe","ignore"]}).trim()}catch{return A}}}function iL7(A,q){let K=A.match(/^\\\\wsl(?:\.localhost|\$)\\([^\\]+)(.*)$/);if(K)return K[1]===q;return!0}var AJ8=()=>{};import{setMaxListeners as XK9}from"events";function g3(A=PK9){let q=new AbortController;return XK9(A,q.signal),q}function WK9(A){let q=this.deref();A.deref()?.abort(q?.signal.reason)}function ZK9(A){let q=this.deref(),K=A.deref();if(q&&K)q.signal.removeEventListener("abort",K)}function N56(A,q){let K=g3(q);if(A.signal.aborted)return K.abort(A.signal.reason),K;let Y=new WeakRef(K),z=new WeakRef(A),w=WK9.bind(z,Y);return A.signal.addEventListener("abort",w,{once:!0}),K.signal.addEventListener("abort",ZK9.bind(z,new WeakRef(w)),{once:!0}),K}var PK9=50;var Qj=()=>{};var nL7,GK9,Y6=function(A){return GK9.H.useMemoCache(A)};var K1=k(()=>{nL7=e(W6(),1),GK9=nL7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE});var fK9=function(){return vj.Date.now()},XH1;var rL7=k(()=>{yy();XH1=fK9});function VK9(A){var q=A.length;while(q--&&TK9.test(A.charAt(q)));return q}var TK9,oL7;var aL7=k(()=>{TK9=/\s/;oL7=VK9});function vK9(A){return A?A.slice(0,oL7(A)+1).replace(NK9,""):A}var NK9,sL7;var tL7=k(()=>{aL7();NK9=/^\s+/;sL7=vK9});function RK9(A){if(typeof A=="number")return A;if(uo(A))return eL7;if(Bw(A)){var q=typeof A.valueOf=="function"?A.valueOf():A;A=Bw(q)?q+"":q}if(typeof A!="string")return A===0?A:+A;A=sL7(A);var K=EK9.test(A);return K||LK9.test(A)?yK9(A.slice(2),K?2:8):kK9.test(A)?eL7:+A}var eL7=NaN,kK9,EK9,LK9,yK9,qJ8;var Ay7=k(()=>{tL7();Pf();YR6();kK9=/^[-+]0x[0-9a-f]+$/i,EK9=/^0b[01]+$/i,LK9=/^0o[0-7]+$/i,yK9=parseInt;qJ8=RK9});function IK9(A,q,K){var Y,z,w,_,$,O,H=0,j=!1,J=!1,M=!0;if(typeof A!="function")throw TypeError(SK9);if(q=qJ8(q)||0,Bw(K))j=!!K.leading,J="maxWait"in K,w=J?CK9(qJ8(K.maxWait)||0,q):w,M="trailing"in K?!!K.trailing:M;function D(v){var y=Y,R=z;return Y=z=void 0,H=v,_=A.apply(R,y),_}function X(v){return H=v,$=setTimeout(Z,q),j?D(v):_}function P(v){var y=v-O,R=v-H,h=q-y;return J?hK9(h,w-R):h}function W(v){var y=v-O,R=v-H;return O===void 0||y>=q||y<0||J&&R>=w}function Z(){var v=XH1();if(W(v))return G(v);$=setTimeout(Z,P(v))}function G(v){if($=void 0,M&&Y)return D(v);return Y=z=void 0,_}function f(){if($!==void 0)clearTimeout($);H=0,Y=O=z=$=void 0}function V(){return $===void 0?_:G(XH1())}function N(){var v=XH1(),y=W(v);if(Y=arguments,z=this,O=v,y){if($===void 0)return X(O);if(J)return clearTimeout($),$=setTimeout(Z,q),D(O)}if($===void 0)$=setTimeout(Z,q);return _}return N.cancel=f,N.flush=V,N}var SK9="Expected a function",CK9,hK9,qy7;var Ky7=k(()=>{Pf();rL7();Ay7();CK9=Math.max,hK9=Math.min;qy7=IK9});function xK9(A,q,K){var Y=!0,z=!0;if(typeof A!="function")throw TypeError(bK9);if(Bw(K))Y="leading"in K?!!K.leading:Y,z="trailing"in K?!!K.trailing:z;return qy7(A,q,{leading:Y,maxWait:q,trailing:z})}var bK9="Expected a function",Yy7;var zy7=k(()=>{Ky7();Pf();Yy7=xK9});function KJ8(A,{include:q,exclude:K}={}){let Y=(z)=>{let w=(_)=>typeof _==="string"?z===_:_.test(z);if(q)return q.some(w);if(K)return!K.some(w);return!0};for(let[z,w]of uK9(A.constructor.prototype)){if(w==="constructor"||!Y(w))continue;let _=Reflect.getOwnPropertyDescriptor(z,w);if(_&&typeof _.value==="function")A[w]=A[w].bind(A)}return A}var uK9=(A)=>{let q=new Set;do for(let K of Reflect.ownKeys(A))q.add([A,K]);while((A=Reflect.getPrototypeOf(A))&&A!==Object.prototype);return q};import{PassThrough as wy7}from"node:stream";var _y7,YJ8,BK9=(A)=>{let q=new wy7,K=new wy7;q.write=(z)=>{A("stdout",z)},K.write=(z)=>{A("stderr",z)};let Y=new console.Console(q,K);for(let z of _y7)YJ8[z]=console[z],console[z]=Y[z];return()=>{for(let z of _y7)console[z]=YJ8[z];YJ8={}}},$y7;var Oy7=k(()=>{_y7=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],YJ8={},$y7=BK9});function _J8(A,q){var K=A.length;A.push(q);A:for(;0<K;){var Y=K-1>>>1,z=A[Y];if(0<PH1(z,q))A[Y]=q,A[K]=z,K=Y;else break A}}function Wg(A){return A.length===0?null:A[0]}function fH1(A){if(A.length===0)return null;var q=A[0],K=A.pop();if(K!==q){A[0]=K;A:for(var Y=0,z=A.length,w=z>>>1;Y<w;){var _=2*(Y+1)-1,$=A[_],O=_+1,H=A[O];if(0>PH1($,K))O<z&&0>PH1(H,$)?(A[Y]=H,A[O]=K,Y=O):(A[Y]=$,A[_]=K,Y=_);else if(O<z&&0>PH1(H,K))A[Y]=H,A[O]=K,Y=O;else break A}}return q}function PH1(A,q){var K=A.sortIndex-q.sortIndex;return K!==0?K:A.id-q.id}function ZH1(A){for(var q=Wg(et);q!==null;){if(q.callback===null)fH1(et);else if(q.startTime<=A)fH1(et),q.sortIndex=q.expirationTime,_J8(pc,q);else break;q=Wg(et)}}function MJ8(A){if(qg6=!1,ZH1(A),!Ag6)if(Wg(pc)!==null)Ag6=!0,E06||(E06=!0,k06());else{var q=Wg(et);q!==null&&DJ8(MJ8,q.startTime-A)}}function Dy7(){return JJ8?!0:Zg()-My7<gK9?!1:!0}function wJ8(){if(JJ8=!1,E06){var A=Zg();My7=A;var q=!0;try{A:{Ag6=!1,qg6&&(qg6=!1,Jy7(Kg6),Kg6=-1),HJ8=!0;var K=zJ8;try{q:{ZH1(A);for(qS=Wg(pc);qS!==null&&!(qS.expirationTime>A&&Dy7());){var Y=qS.callback;if(typeof Y==="function"){qS.callback=null,zJ8=qS.priorityLevel;var z=Y(qS.expirationTime<=A);if(A=Zg(),typeof z==="function"){qS.callback=z,ZH1(A),q=!0;break q}qS===Wg(pc)&&fH1(pc),ZH1(A)}else fH1(pc);qS=Wg(pc)}if(qS!==null)q=!0;else{var w=Wg(et);w!==null&&DJ8(MJ8,w.startTime-A),q=!1}}break A}finally{qS=null,zJ8=K,HJ8=!1}q=void 0}}finally{q?k06():E06=!1}}}function DJ8(A,q){Kg6=jy7(function(){A(Zg())},q)}var Zg=void 0,$J8,WH1,OJ8,pc,et,mK9=1,qS=null,zJ8=3,HJ8=!1,Ag6=!1,qg6=!1,JJ8=!1,jy7,Jy7,Hy7,E06=!1,Kg6=-1,gK9=5,My7=-1,k06,GH1,jJ8,XJ8=5,PJ8=1,TH1=3,WJ8=2,ZJ8=function(A){A.callback=null},GJ8=function(){JJ8=!0},VH1=function(A,q,K){var Y=Zg();switch(typeof K==="object"&&K!==null?(K=K.delay,K=typeof K==="number"&&0<K?Y+K:Y):K=Y,A){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5000}return z=K+z,A={id:mK9++,callback:q,priorityLevel:A,startTime:K,expirationTime:z,sortIndex:-1},K>Y?(A.sortIndex=K,_J8(et,A),Wg(pc)===null&&A===Wg(et)&&(qg6?(Jy7(Kg6),Kg6=-1):qg6=!0,DJ8(MJ8,K-Y))):(A.sortIndex=z,_J8(pc,A),Ag6||HJ8||(Ag6=!0,E06||(E06=!0,k06()))),A},fJ8;var Py7=k(()=>{if(typeof performance==="object"&&typeof performance.now==="function")$J8=performance,Zg=function(){return $J8.now()};else WH1=Date,OJ8=WH1.now(),Zg=function(){return WH1.now()-OJ8};pc=[],et=[],jy7=typeof setTimeout==="function"?setTimeout:null,Jy7=typeof clearTimeout==="function"?clearTimeout:null,Hy7=typeof setImmediate<"u"?setImmediate:null;if(typeof Hy7==="function")k06=function(){Hy7(wJ8)};else if(typeof MessageChannel<"u")GH1=new MessageChannel,jJ8=GH1.port2,GH1.port1.onmessage=wJ8,k06=function(){jJ8.postMessage(null)};else k06=function(){jy7(wJ8,0)};fJ8=Dy7});var Wy7=C((dG2,Yg6)=>{Py7();var TJ8=e(W6());Yg6.exports=function(A){function q(E,S,p,n){return new Am1(E,S,p,n)}function K(){}function Y(E){var S="https://react.dev/errors/"+E;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)S+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+E+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function z(E){var S=E,p=E;if(E.alternate)for(;S.return;)S=S.return;else{E=S;do S=E,(S.flags&4098)!==0&&(p=S.return),E=S.return;while(E)}return S.tag===3?p:null}function w(E){if(z(E)!==E)throw Error(Y(188))}function _(E){var S=E.alternate;if(!S){if(S=z(E),S===null)throw Error(Y(188));return S!==E?null:E}for(var p=E,n=S;;){var J6=p.return;if(J6===null)break;var E6=J6.alternate;if(E6===null){if(n=J6.return,n!==null){p=n;continue}break}if(J6.child===E6.child){for(E6=J6.child;E6;){if(E6===p)return w(J6),E;if(E6===n)return w(J6),S;E6=E6.sibling}throw Error(Y(188))}if(p.return!==n.return)p=J6,n=E6;else{for(var O1=!1,p1=J6.child;p1;){if(p1===p){O1=!0,p=J6,n=E6;break}if(p1===n){O1=!0,n=J6,p=E6;break}p1=p1.sibling}if(!O1){for(p1=E6.child;p1;){if(p1===p){O1=!0,p=E6,n=J6;break}if(p1===n){O1=!0,n=E6,p=J6;break}p1=p1.sibling}if(!O1)throw Error(Y(189))}}if(p.alternate!==n)throw Error(Y(190))}if(p.tag!==3)throw Error(Y(188));return p.stateNode.current===p?E:S}function $(E){var S=E.tag;if(S===5||S===26||S===27||S===6)return E;for(E=E.child;E!==null;){if(S=$(E),S!==null)return S;E=E.sibling}return null}function O(E){var S=E.tag;if(S===5||S===26||S===27||S===6)return E;for(E=E.child;E!==null;){if(E.tag!==4&&(S=O(E),S!==null))return S;E=E.sibling}return null}function H(E){if(E===null||typeof E!=="object")return null;return E=wy6&&E[wy6]||E["@@iterator"],typeof E==="function"?E:null}function j(E){if(E==null)return null;if(typeof E==="function")return E.$$typeof===Km1?null:E.displayName||E.name||null;if(typeof E==="string")return E;switch(E){case Oo:return"Fragment";case Yy6:return"Profiler";case Ky6:return"StrictMode";case fZ:return"Suspense";case zy6:return"SuspenseList";case Yp:return"Activity"}if(typeof E==="object")switch(E.$$typeof){case mh:return"Portal";case Gy:return E.displayName||"Context";case Zy:return(E._context.displayName||"Context")+".Consumer";case gh:var S=E.render;return E=E.displayName,E||(E=S.displayName||S.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case $O6:return S=E.displayName||null,S!==null?S:j(E.type)||"Memo";case Fh:S=E._payload,E=E._init;try{return j(E(S))}catch(p){}}return null}function J(E){return{current:E}}function M(E){0>TB||(E.current=Do[TB],Do[TB]=null,TB--)}function D(E,S){TB++,Do[TB]=E.current,E.current=S}function X(E){return E>>>=0,E===0?32:31-(Vy6(E)/t61|0)|0}function P(E){var S=E&42;if(S!==0)return S;switch(E&-E){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return E&261888;case 262144:case 524288:case 1048576:case 2097152:return E&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return E&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return E}}function W(E,S,p){var n=E.pendingLanes;if(n===0)return 0;var J6=0,E6=E.suspendedLanes,O1=E.pingedLanes;E=E.warmLanes;var p1=n&134217727;return p1!==0?(n=p1&~E6,n!==0?J6=P(n):(O1&=p1,O1!==0?J6=P(O1):p||(p=p1&~E,p!==0&&(J6=P(p))))):(p1=n&~E6,p1!==0?J6=P(p1):O1!==0?J6=P(O1):p||(p=n&~E,p!==0&&(J6=P(p)))),J6===0?0:S!==0&&S!==J6&&(S&E6)===0&&(E6=J6&-J6,p=S&-S,E6>=p||E6===32&&(p&4194048)!==0)?S:J6}function Z(E,S){return(E.pendingLanes&~(E.suspendedLanes&~E.pingedLanes)&S)===0}function G(E,S){switch(E){case 1:case 2:case 4:case 8:case 64:return S+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return S+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function f(){var E=kO6;return kO6<<=1,(kO6&62914560)===0&&(kO6=4194304),E}function V(E){for(var S=[],p=0;31>p;p++)S.push(E);return S}function N(E,S){E.pendingLanes|=S,S!==268435456&&(E.suspendedLanes=0,E.pingedLanes=0,E.warmLanes=0)}function v(E,S,p,n,J6,E6){var O1=E.pendingLanes;E.pendingLanes=p,E.suspendedLanes=0,E.pingedLanes=0,E.warmLanes=0,E.expiredLanes&=p,E.entangledLanes&=p,E.errorRecoveryDisabledLanes&=p,E.shellSuspendCounter=0;var{entanglements:p1,expirationTimes:a8,hiddenUpdates:gA}=E;for(p=O1&~p;0<p;){var i7=31-Hf(p),N7=1<<i7;p1[i7]=0,a8[i7]=-1;var h4=gA[i7];if(h4!==null)for(gA[i7]=null,i7=0;i7<h4.length;i7++){var F3=h4[i7];F3!==null&&(F3.lane&=-536870913)}p&=~N7}n!==0&&y(E,n,0),E6!==0&&J6===0&&E.tag!==0&&(E.suspendedLanes|=E6&~(O1&~S))}function y(E,S,p){E.pendingLanes|=S,E.suspendedLanes&=~S;var n=31-Hf(S);E.entangledLanes|=S,E.entanglements[n]=E.entanglements[n]|1073741824|p&261930}function R(E,S){var p=E.entangledLanes|=S;for(E=E.entanglements;p;){var n=31-Hf(p),J6=1<<n;J6&S|E[n]&S&&(E[n]|=S),p&=~J6}}function h(E,S){var p=S&-S;return p=(p&42)!==0?1:B(p),(p&(E.suspendedLanes|S))!==0?0:p}function B(E){switch(E){case 2:E=1;break;case 8:E=4;break;case 32:E=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:E=128;break;case 268435456:E=134217728;break;default:E=0}return E}function x(E){return E&=-E,2<E?8<E?(E&134217727)!==0?32:268435456:8:2}function F(E){if(typeof Sm1==="function"&&ky6(E),jf&&typeof jf.setStrictMode==="function")try{jf.setStrictMode(O46,E)}catch(S){}}function g(E,S){return E===S&&(E!==0||1/E===1/S)||E!==E&&S!==S}function b(E){if(Ly6===void 0)try{throw Error()}catch(p){var S=p.stack.trim().match(/\n( *(at )?)/);Ly6=S&&S[1]||"",K11=-1<p.stack.indexOf(`
    at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ly6+E+K11}function U(E,S){if(!E||yy6)return"";yy6=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(S){var N7=function(){throw Error()};if(Object.defineProperty(N7.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(N7,[])}catch(F3){var h4=F3}Reflect.construct(E,[],N7)}else{try{N7.call()}catch(F3){h4=F3}E.call(N7.prototype)}}else{try{throw Error()}catch(F3){h4=F3}(N7=E())&&typeof N7.catch==="function"&&N7.catch(function(){})}}catch(F3){if(F3&&h4&&typeof F3.stack==="string")return[F3.stack,h4.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var J6=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");J6&&J6.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E6=n.DetermineComponentFrameRoot(),O1=E6[0],p1=E6[1];if(O1&&p1){var a8=O1.split(`
`),gA=p1.split(`
`);for(J6=n=0;n<a8.length&&!a8[n].includes("DetermineComponentFrameRoot");)n++;for(;J6<gA.length&&!gA[J6].includes("DetermineComponentFrameRoot");)J6++;if(n===a8.length||J6===gA.length)for(n=a8.length-1,J6=gA.length-1;1<=n&&0<=J6&&a8[n]!==gA[J6];)J6--;for(;1<=n&&0<=J6;n--,J6--)if(a8[n]!==gA[J6]){if(n!==1||J6!==1)do if(n--,J6--,0>J6||a8[n]!==gA[J6]){var i7=`
`+a8[n].replace(" at new "," at ");return E.displayName&&i7.includes("<anonymous>")&&(i7=i7.replace("<anonymous>",E.displayName)),i7}while(1<=n&&0<=J6);break}}}finally{yy6=!1,Error.prepareStackTrace=p}return(p=E?E.displayName||E.name:"")?b(p):""}function d(E,S){switch(E.tag){case 26:case 27:case 5:return b(E.type);case 16:return b("Lazy");case 13:return E.child!==S&&S!==null?b("Suspense Fallback"):b("Suspense");case 19:return b("SuspenseList");case 0:case 15:return U(E.type,!1);case 11:return U(E.type.render,!1);case 1:return U(E.type,!0);case 31:return b("Activity");default:return""}}function l(E){try{var S="",p=null;do S+=d(E,p),p=E,E=E.return;while(E);return S}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function t(E,S){if(typeof E==="object"&&E!==null){var p=Y11.get(E);if(p!==void 0)return p;return S={value:E,source:S,stack:l(S)},Y11.set(E,S),S}return{value:E,source:S,stack:l(S)}}function s(E,S){Hp[jp++]=Jp,Hp[jp++]=EO6,EO6=E,Jp=S}function H6(E,S,p){Jf[CX++]=Xk,Jf[CX++]=Pk,Jf[CX++]=ky,ky=E;var n=Xk;E=Pk;var J6=32-Hf(n)-1;n&=~(1<<J6),p+=1;var E6=32-Hf(S)+J6;if(30<E6){var O1=J6-J6%5;E6=(n&(1<<O1)-1).toString(32),n>>=O1,J6-=O1,Xk=1<<32-Hf(S)+J6|p<<J6|n,Pk=E6+E}else Xk=1<<E6|p<<J6|n,Pk=E}function Z6(E){E.return!==null&&(s(E,1),H6(E,1,0))}function G6(E){for(;E===EO6;)EO6=Hp[--jp],Hp[jp]=null,Jp=Hp[--jp],Hp[jp]=null;for(;E===ky;)ky=Jf[--CX],Jf[CX]=null,Pk=Jf[--CX],Jf[CX]=null,Xk=Jf[--CX],Jf[CX]=null}function q6(E,S){Jf[CX++]=Xk,Jf[CX++]=Pk,Jf[CX++]=ky,Xk=S.id,Pk=S.overflow,ky=E}function w6(E,S){D(yD,S),D(Xo,E),D(Gj,null),E=fy(S),M(Gj),D(Gj,E)}function j6(){M(Gj),M(Xo),M(yD)}function _6(E){E.memoizedState!==null&&D(Ey,E);var S=Gj.current,p=_y6(S,E.type);S!==p&&(D(Xo,E),D(Gj,p))}function k6(E){Xo.current===E&&(M(Gj),M(Xo)),Ey.current===E&&(M(Ey),$f?Vy._currentValue=$p:Vy._currentValue2=$p)}function P6(E){var S=Error(Y(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw X6(t(S,E)),Ry6}function A6(E,S){if(!SX)throw Error(Y(175));Vm1(E.stateNode,E.type,E.memoizedProps,S,E)||P6(E,!0)}function K6(E){for(RD=E.return;RD;)switch(RD.tag){case 5:case 31:case 13:fV=!1;return;case 27:case 3:fV=!0;return;default:RD=RD.return}}function z6(E){if(!SX||E!==RD)return!1;if(!r9)return K6(E),r9=!0,!1;var S=E.tag;if(EH?S!==3&&S!==27&&(S!==5||GO6(E.type)&&!JO6(E.type,E.memoizedProps))&&q$&&P6(E):S!==3&&(S!==5||GO6(E.type)&&!JO6(E.type,E.memoizedProps))&&q$&&P6(E),K6(E),S===13){if(!SX)throw Error(Y(316));if(E=E.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(Y(317));q$=c61(E)}else if(S===31){if(E=E.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(Y(317));q$=d61(E)}else q$=EH&&S===27?Zm1(E.type,q$):RD?XO6(E.stateNode):null;return!0}function a(){SX&&(q$=RD=null,r9=!1)}function r(){var E=VB;return E!==null&&(EZ===null?EZ=E:EZ.push.apply(EZ,E),VB=null),E}function X6(E){VB===null?VB=[E]:VB.push(E)}function O6(E,S,p){$f?(D(LO6,S._currentValue),S._currentValue=p):(D(LO6,S._currentValue2),S._currentValue2=p)}function D6(E){var S=LO6.current;$f?E._currentValue=S:E._currentValue2=S,M(LO6)}function y6(E,S,p){for(;E!==null;){var n=E.alternate;if((E.childLanes&S)!==S?(E.childLanes|=S,n!==null&&(n.childLanes|=S)):n!==null&&(n.childLanes&S)!==S&&(n.childLanes|=S),E===p)break;E=E.return}}function C6(E,S,p,n){var J6=E.child;J6!==null&&(J6.return=E);for(;J6!==null;){var E6=J6.dependencies;if(E6!==null){var O1=J6.child;E6=E6.firstContext;A:for(;E6!==null;){var p1=E6;E6=J6;for(var a8=0;a8<S.length;a8++)if(p1.context===S[a8]){E6.lanes|=p,p1=E6.alternate,p1!==null&&(p1.lanes|=p),y6(E6.return,p,E),n||(O1=null);break A}E6=p1.next}}else if(J6.tag===18){if(O1=J6.return,O1===null)throw Error(Y(341));O1.lanes|=p,E6=O1.alternate,E6!==null&&(E6.lanes|=p),y6(O1,p,E),O1=null}else O1=J6.child;if(O1!==null)O1.return=J6;else for(O1=J6;O1!==null;){if(O1===E){O1=null;break}if(J6=O1.sibling,J6!==null){J6.return=O1.return,O1=J6;break}O1=O1.return}J6=O1}}function h6(E,S,p,n){E=null;for(var J6=S,E6=!1;J6!==null;){if(!E6){if((J6.flags&524288)!==0)E6=!0;else if((J6.flags&262144)!==0)break}if(J6.tag===10){var O1=J6.alternate;if(O1===null)throw Error(Y(387));if(O1=O1.memoizedProps,O1!==null){var p1=J6.type;LD(J6.pendingProps.value,O1.value)||(E!==null?E.push(p1):E=[p1])}}else if(J6===Ey.current){if(O1=J6.alternate,O1===null)throw Error(Y(387));O1.memoizedState.memoizedState!==J6.memoizedState.memoizedState&&(E!==null?E.push(Vy):E=[Vy])}J6=J6.return}E!==null&&C6(S,E,p,n),S.flags|=262144}function f6(E){for(E=E.firstContext;E!==null;){var S=E.context;if(!LD($f?S._currentValue:S._currentValue2,E.memoizedValue))return!0;E=E.next}return!1}function M6(E){Mp=E,dh=null,E=E.dependencies,E!==null&&(E.firstContext=null)}function V6(E){return b6(Mp,E)}function p6(E,S){return Mp===null&&M6(E),b6(E,S)}function b6(E,S){var p=$f?S._currentValue:S._currentValue2;if(S={context:S,memoizedValue:p,next:null},dh===null){if(E===null)throw Error(Y(308));dh=S,E.dependencies={lanes:0,firstContext:S},E.flags|=524288}else dh=dh.next=S;return p}function R6(){return{controller:new Cm1,data:new Map,refCount:0}}function x6(E){E.refCount--,E.refCount===0&&hm1(Im1,function(){E.controller.abort()})}function d6(){}function t6(E){E!==Dp&&E.next===null&&(Dp===null?H46=Dp=E:Dp=Dp.next=E),RO6=!0,yO6||(yO6=!0,T6())}function L6(E,S){if(!Sy6&&RO6){Sy6=!0;do{var p=!1;for(var n=H46;n!==null;){if(!S)if(E!==0){var J6=n.pendingLanes;if(J6===0)var E6=0;else{var{suspendedLanes:O1,pingedLanes:p1}=n;E6=(1<<31-Hf(42|E)+1)-1,E6&=J6&~(O1&~p1),E6=E6&201326741?E6&201326741|1:E6?E6|2:0}E6!==0&&(p=!0,v1(n,E6))}else E6=I9,E6=W(n,n===_2?E6:0,n.cancelPendingCommit!==null||n.timeoutHandle!==_p),(E6&3)===0||Z(n,E6)||(p=!0,v1(n,E6));n=n.next}}while(p);Sy6=!1}}function u6(){e6()}function e6(){RO6=yO6=!1;var E=0;Xp!==0&&wm1()&&(E=Xp);for(var S=VZ(),p=null,n=H46;n!==null;){var J6=n.next,E6=H1(n,S);if(E6===0)n.next=null,p===null?H46=J6:p.next=J6,J6===null&&(Dp=p);else if(p=n,E!==0||(E6&3)!==0)RO6=!0;n=J6}DJ!==0&&DJ!==5||L6(E,!1),Xp!==0&&(Xp=0)}function H1(E,S){for(var{suspendedLanes:p,pingedLanes:n,expirationTimes:J6}=E,E6=E.pendingLanes&-62914561;0<E6;){var O1=31-Hf(E6),p1=1<<O1,a8=J6[O1];if(a8===-1){if((p1&p)===0||(p1&n)!==0)J6[O1]=G(p1,S)}else a8<=S&&(E.expiredLanes|=p1);E6&=~p1}if(S=_2,p=I9,p=W(E,E===S?p:0,E.cancelPendingCommit!==null||E.timeoutHandle!==_p),n=E.callbackNode,p===0||E===S&&(Mw===2||Mw===9)||E.cancelPendingCommit!==null)return n!==null&&n!==null&&Ny6(n),E.callbackNode=null,E.callbackPriority=0;if((p&3)===0||Z(E,p)){if(S=p&-p,S===E.callbackPriority)return S;switch(n!==null&&Ny6(n),x(p)){case 2:case 8:p=ph;break;case 32:p=ED;break;case 268435456:p=vy6;break;default:p=ED}return n=Z1.bind(null,E),p=$46(p,n),E.callbackPriority=S,E.callbackNode=p,S}return n!==null&&n!==null&&Ny6(n),E.callbackPriority=2,E.callbackNode=null,2}function Z1(E,S){if(DJ!==0&&DJ!==5)return E.callbackNode=null,E.callbackPriority=0,null;var p=E.callbackNode;if(Py()&&E.callbackNode!==p)return null;var n=I9;if(n=W(E,E===_2?n:0,E.cancelPendingCommit!==null||E.timeoutHandle!==_p),n===0)return null;return xh(E,n,S),H1(E,VZ()),E.callbackNode!=null&&E.callbackNode===p?Z1.bind(null,E):null}function v1(E,S){if(Py())return null;xh(E,S,!0)}function T6(){C61?h61(function(){(D9&6)!==0?$46(A11,u6):e6()}):$46(A11,u6)}function v6(){if(Xp===0){var E=Wo;E===0&&(E=MJ,MJ<<=1,(MJ&261888)===0&&(MJ=256)),Xp=E}return Xp}function A1(E,S){if(Po===null){var p=Po=[];Cy6=0,Wo=v6(),Zo={status:"pending",value:void 0,then:function(n){p.push(n)}}}return Cy6++,S.then(F6,F6),S}function F6(){if(--Cy6===0&&Po!==null){Zo!==null&&(Zo.status="fulfilled");var E=Po;Po=null,Wo=0,Zo=null;for(var S=0;S<E.length;S++)(0,E[S])()}}function m6(E,S){var p=[],n={status:"pending",value:null,reason:null,then:function(J6){p.push(J6)}};return E.then(function(){n.status="fulfilled",n.value=S;for(var J6=0;J6<p.length;J6++)(0,p[J6])(S)},function(J6){n.status="rejected",n.reason=J6;for(J6=0;J6<p.length;J6++)(0,p[J6])(void 0)}),n}function l6(){var E=Pp.current;return E!==null?E:_2.pooledCache}function N1(E,S){S===null?D(Pp,Pp.current):D(Pp,S.pool)}function X1(){var E=l6();return E===null?null:{parent:$f?F$._currentValue:F$._currentValue2,pool:E}}function k1(E,S){if(LD(E,S))return!0;if(typeof E!=="object"||E===null||typeof S!=="object"||S===null)return!1;var p=Object.keys(E),n=Object.keys(S);if(p.length!==n.length)return!1;for(n=0;n<p.length;n++){var J6=p[n];if(!q11.call(S,J6)||!LD(E[J6],S[J6]))return!1}return!0}function i1(E){return E=E.status,E==="fulfilled"||E==="rejected"}function t8(E,S,p){switch(p=E[p],p===void 0?E.push(S):p!==S&&(S.then(d6,d6),S=p),S.status){case"fulfilled":return S.value;case"rejected":throw E=S.reason,X7(E),E;default:if(typeof S.status==="string")S.then(d6,d6);else{if(E=_2,E!==null&&100<E.shellSuspendCounter)throw Error(Y(482));E=S,E.status="pending",E.then(function(n){if(S.status==="pending"){var J6=S;J6.status="fulfilled",J6.value=n}},function(n){if(S.status==="pending"){var J6=S;J6.status="rejected",J6.reason=n}})}switch(S.status){case"fulfilled":return S.value;case"rejected":throw E=S.reason,X7(E),E}throw Wp=S,Go}}function s8(E){try{var S=E._init;return S(E._payload)}catch(p){if(p!==null&&typeof p==="object"&&typeof p.then==="function")throw Wp=p,Go;throw p}}function _7(){if(Wp===null)throw Error(Y(459));var E=Wp;return Wp=null,E}function X7(E){if(E===Go||E===SO6)throw Error(Y(483))}function RA(E){var S=j46;return j46+=1,Zp===null&&(Zp=[]),t8(Zp,E,S)}function M7(E,S){S=S.props.ref,E.ref=S!==void 0?S:null}function Fq(E,S){if(S.$$typeof===qy6)throw Error(Y(525));throw E=Object.prototype.toString.call(S),Error(Y(31,E==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":E))}function aA(E){function S(m8,X8){if(E){var r8=m8.deletions;r8===null?(m8.deletions=[X8],m8.flags|=16):r8.push(X8)}}function p(m8,X8){if(!E)return null;for(;X8!==null;)S(m8,X8),X8=X8.sibling;return null}function n(m8){for(var X8=new Map;m8!==null;)m8.key!==null?X8.set(m8.key,m8):X8.set(m8.index,m8),m8=m8.sibling;return X8}function J6(m8,X8){return m8=Bh(m8,X8),m8.index=0,m8.sibling=null,m8}function E6(m8,X8,r8){if(m8.index=r8,!E)return m8.flags|=1048576,X8;if(r8=m8.alternate,r8!==null)return r8=r8.index,r8<X8?(m8.flags|=67108866,X8):r8;return m8.flags|=67108866,X8}function O1(m8){return E&&m8.alternate===null&&(m8.flags|=67108866),m8}function p1(m8,X8,r8,dA){if(X8===null||X8.tag!==6)return X8=tL6(r8,m8.mode,dA),X8.return=m8,X8;return X8=J6(X8,r8),X8.return=m8,X8}function a8(m8,X8,r8,dA){var NK=r8.type;if(NK===Oo)return i7(m8,X8,r8.props.children,dA,r8.key);if(X8!==null&&(X8.elementType===NK||typeof NK==="object"&&NK!==null&&NK.$$typeof===Fh&&s8(NK)===X8.type))return X8=J6(X8,r8.props),M7(X8,r8),X8.return=m8,X8;return X8=wO6(r8.type,r8.key,r8.props,null,m8.mode,dA),M7(X8,r8),X8.return=m8,X8}function gA(m8,X8,r8,dA){if(X8===null||X8.tag!==4||X8.stateNode.containerInfo!==r8.containerInfo||X8.stateNode.implementation!==r8.implementation)return X8=_f(r8,m8.mode,dA),X8.return=m8,X8;return X8=J6(X8,r8.children||[]),X8.return=m8,X8}function i7(m8,X8,r8,dA,NK){if(X8===null||X8.tag!==7)return X8=wf(r8,m8.mode,dA,NK),X8.return=m8,X8;return X8=J6(X8,r8),X8.return=m8,X8}function N7(m8,X8,r8){if(typeof X8==="string"&&X8!==""||typeof X8==="number"||typeof X8==="bigint")return X8=tL6(""+X8,m8.mode,r8),X8.return=m8,X8;if(typeof X8==="object"&&X8!==null){switch(X8.$$typeof){case WB:return r8=wO6(X8.type,X8.key,X8.props,null,m8.mode,r8),M7(r8,X8),r8.return=m8,r8;case mh:return X8=_f(X8,m8.mode,r8),X8.return=m8,X8;case Fh:return X8=s8(X8),N7(m8,X8,r8)}if(zp(X8)||H(X8))return X8=wf(X8,m8.mode,r8,null),X8.return=m8,X8;if(typeof X8.then==="function")return N7(m8,RA(X8),r8);if(X8.$$typeof===Gy)return N7(m8,p6(m8,X8),r8);Fq(m8,X8)}return null}function h4(m8,X8,r8,dA){var NK=X8!==null?X8.key:null;if(typeof r8==="string"&&r8!==""||typeof r8==="number"||typeof r8==="bigint")return NK!==null?null:p1(m8,X8,""+r8,dA);if(typeof r8==="object"&&r8!==null){switch(r8.$$typeof){case WB:return r8.key===NK?a8(m8,X8,r8,dA):null;case mh:return r8.key===NK?gA(m8,X8,r8,dA):null;case Fh:return r8=s8(r8),h4(m8,X8,r8,dA)}if(zp(r8)||H(r8))return NK!==null?null:i7(m8,X8,r8,dA,null);if(typeof r8.then==="function")return h4(m8,X8,RA(r8),dA);if(r8.$$typeof===Gy)return h4(m8,X8,p6(m8,r8),dA);Fq(m8,r8)}return null}function F3(m8,X8,r8,dA,NK){if(typeof dA==="string"&&dA!==""||typeof dA==="number"||typeof dA==="bigint")return m8=m8.get(r8)||null,p1(X8,m8,""+dA,NK);if(typeof dA==="object"&&dA!==null){switch(dA.$$typeof){case WB:return m8=m8.get(dA.key===null?r8:dA.key)||null,a8(X8,m8,dA,NK);case mh:return m8=m8.get(dA.key===null?r8:dA.key)||null,gA(X8,m8,dA,NK);case Fh:return dA=s8(dA),F3(m8,X8,r8,dA,NK)}if(zp(dA)||H(dA))return m8=m8.get(r8)||null,i7(X8,m8,dA,NK,null);if(typeof dA.then==="function")return F3(m8,X8,r8,RA(dA),NK);if(dA.$$typeof===Gy)return F3(m8,X8,r8,p6(X8,dA),NK);Fq(X8,dA)}return null}function SD(m8,X8,r8,dA){for(var NK=null,U$=null,oq=X8,H4=X8=0,OM=null;oq!==null&&H4<r8.length;H4++){oq.index>H4?(OM=oq,oq=null):OM=oq.sibling;var k3=h4(m8,oq,r8[H4],dA);if(k3===null){oq===null&&(oq=OM);break}E&&oq&&k3.alternate===null&&S(m8,oq),X8=E6(k3,X8,H4),U$===null?NK=k3:U$.sibling=k3,U$=k3,oq=OM}if(H4===r8.length)return p(m8,oq),r9&&s(m8,H4),NK;if(oq===null){for(;H4<r8.length;H4++)oq=N7(m8,r8[H4],dA),oq!==null&&(X8=E6(oq,X8,H4),U$===null?NK=oq:U$.sibling=oq,U$=oq);return r9&&s(m8,H4),NK}for(oq=n(oq);H4<r8.length;H4++)OM=F3(oq,m8,H4,r8[H4],dA),OM!==null&&(E&&OM.alternate!==null&&oq.delete(OM.key===null?H4:OM.key),X8=E6(OM,X8,H4),U$===null?NK=OM:U$.sibling=OM,U$=OM);return E&&oq.forEach(function(xw){return S(m8,xw)}),r9&&s(m8,H4),NK}function W46(m8,X8,r8,dA){if(r8==null)throw Error(Y(151));for(var NK=null,U$=null,oq=X8,H4=X8=0,OM=null,k3=r8.next();oq!==null&&!k3.done;H4++,k3=r8.next()){oq.index>H4?(OM=oq,oq=null):OM=oq.sibling;var xw=h4(m8,oq,k3.value,dA);if(xw===null){oq===null&&(oq=OM);break}E&&oq&&xw.alternate===null&&S(m8,oq),X8=E6(xw,X8,H4),U$===null?NK=xw:U$.sibling=xw,U$=xw,oq=OM}if(k3.done)return p(m8,oq),r9&&s(m8,H4),NK;if(oq===null){for(;!k3.done;H4++,k3=r8.next())k3=N7(m8,k3.value,dA),k3!==null&&(X8=E6(k3,X8,H4),U$===null?NK=k3:U$.sibling=k3,U$=k3);return r9&&s(m8,H4),NK}for(oq=n(oq);!k3.done;H4++,k3=r8.next())k3=F3(oq,m8,H4,k3.value,dA),k3!==null&&(E&&k3.alternate!==null&&oq.delete(k3.key===null?H4:k3.key),X8=E6(k3,X8,H4),U$===null?NK=k3:U$.sibling=k3,U$=k3);return E&&oq.forEach(function(Bm1){return S(m8,Bm1)}),r9&&s(m8,H4),NK}function Np(m8,X8,r8,dA){if(typeof r8==="object"&&r8!==null&&r8.type===Oo&&r8.key===null&&(r8=r8.props.children),typeof r8==="object"&&r8!==null){switch(r8.$$typeof){case WB:A:{for(var NK=r8.key;X8!==null;){if(X8.key===NK){if(NK=r8.type,NK===Oo){if(X8.tag===7){p(m8,X8.sibling),dA=J6(X8,r8.props.children),dA.return=m8,m8=dA;break A}}else if(X8.elementType===NK||typeof NK==="object"&&NK!==null&&NK.$$typeof===Fh&&s8(NK)===X8.type){p(m8,X8.sibling),dA=J6(X8,r8.props),M7(dA,r8),dA.return=m8,m8=dA;break A}p(m8,X8);break}else S(m8,X8);X8=X8.sibling}r8.type===Oo?(dA=wf(r8.props.children,m8.mode,dA,r8.key),dA.return=m8,m8=dA):(dA=wO6(r8.type,r8.key,r8.props,null,m8.mode,dA),M7(dA,r8),dA.return=m8,m8=dA)}return O1(m8);case mh:A:{for(NK=r8.key;X8!==null;){if(X8.key===NK)if(X8.tag===4&&X8.stateNode.containerInfo===r8.containerInfo&&X8.stateNode.implementation===r8.implementation){p(m8,X8.sibling),dA=J6(X8,r8.children||[]),dA.return=m8,m8=dA;break A}else{p(m8,X8);break}else S(m8,X8);X8=X8.sibling}dA=_f(r8,m8.mode,dA),dA.return=m8,m8=dA}return O1(m8);case Fh:return r8=s8(r8),Np(m8,X8,r8,dA)}if(zp(r8))return SD(m8,X8,r8,dA);if(H(r8)){if(NK=H(r8),typeof NK!=="function")throw Error(Y(150));return r8=NK.call(r8),W46(m8,X8,r8,dA)}if(typeof r8.then==="function")return Np(m8,X8,RA(r8),dA);if(r8.$$typeof===Gy)return Np(m8,X8,p6(m8,r8),dA);Fq(m8,r8)}return typeof r8==="string"&&r8!==""||typeof r8==="number"||typeof r8==="bigint"?(r8=""+r8,X8!==null&&X8.tag===6?(p(m8,X8.sibling),dA=J6(X8,r8),dA.return=m8,m8=dA):(p(m8,X8),dA=tL6(r8,m8.mode,dA),dA.return=m8,m8=dA),O1(m8)):p(m8,X8)}return function(m8,X8,r8,dA){try{j46=0;var NK=Np(m8,X8,r8,dA);return Zp=null,NK}catch(oq){if(oq===Go||oq===SO6)throw oq;var U$=q(29,oq,null,m8.mode);return U$.lanes=dA,U$.return=m8,U$}finally{}}}function a7(){for(var E=NB,S=hy6=NB=0;S<E;){var p=TV[S];TV[S++]=null;var n=TV[S];TV[S++]=null;var J6=TV[S];TV[S++]=null;var E6=TV[S];if(TV[S++]=null,n!==null&&J6!==null){var O1=n.pending;O1===null?J6.next=J6:(J6.next=O1.next,O1.next=J6),n.pending=J6}E6!==0&&nY(p,J6,E6)}}function P7(E,S,p,n){TV[NB++]=E,TV[NB++]=S,TV[NB++]=p,TV[NB++]=n,hy6|=n,E.lanes|=n,E=E.alternate,E!==null&&(E.lanes|=n)}function g4(E,S,p,n){return P7(E,S,p,n),HK(E)}function Mq(E,S){return P7(E,null,null,S),HK(E)}function nY(E,S,p){E.lanes|=p;var n=E.alternate;n!==null&&(n.lanes|=p);for(var J6=!1,E6=E.return;E6!==null;)E6.childLanes|=p,n=E6.alternate,n!==null&&(n.childLanes|=p),E6.tag===22&&(E=E6.stateNode,E===null||E._visibility&1||(J6=!0)),E=E6,E6=E6.return;return E.tag===3?(E6=E.stateNode,J6&&S!==null&&(J6=31-Hf(p),E=E6.hiddenUpdates,n=E[J6],n===null?E[J6]=[S]:n.push(S),S.lane=p|536870912),E6):null}function HK(E){if(50<Eo)throw Eo=0,py6=null,Error(Y(185));for(var S=E.return;S!==null;)E=S,S=E.return;return E.tag===3?E.stateNode:null}function Gz(E){E.updateQueue={baseState:E.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function CY(E,S){E=E.updateQueue,S.updateQueue===E&&(S.updateQueue={baseState:E.baseState,firstBaseUpdate:E.firstBaseUpdate,lastBaseUpdate:E.lastBaseUpdate,shared:E.shared,callbacks:null})}function l9(E){return{lane:E,tag:0,payload:null,callback:null,next:null}}function fz(E,S,p){var n=E.updateQueue;if(n===null)return null;if(n=n.shared,(D9&2)!==0){var J6=n.pending;return J6===null?S.next=S:(S.next=J6.next,J6.next=S),n.pending=S,S=HK(E),nY(E,null,p),S}return P7(E,n,S,p),HK(E)}function a_(E,S,p){if(S=S.updateQueue,S!==null&&(S=S.shared,(p&4194048)!==0)){var n=S.lanes;n&=E.pendingLanes,p|=n,S.lanes=p,R(E,p)}}function VH(E,S){var{updateQueue:p,alternate:n}=E;if(n!==null&&(n=n.updateQueue,p===n)){var J6=null,E6=null;if(p=p.firstBaseUpdate,p!==null){do{var O1={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};E6===null?J6=E6=O1:E6=E6.next=O1,p=p.next}while(p!==null);E6===null?J6=E6=S:E6=E6.next=S}else J6=E6=S;p={baseState:n.baseState,firstBaseUpdate:J6,lastBaseUpdate:E6,shared:n.shared,callbacks:n.callbacks},E.updateQueue=p;return}E=p.lastBaseUpdate,E===null?p.firstBaseUpdate=S:E.next=S,p.lastBaseUpdate=S}function R9(){if(Iy6){var E=Zo;if(E!==null)throw E}}function DY(E,S,p,n){Iy6=!1;var J6=E.updateQueue;vB=!1;var{firstBaseUpdate:E6,lastBaseUpdate:O1}=J6,p1=J6.shared.pending;if(p1!==null){J6.shared.pending=null;var a8=p1,gA=a8.next;a8.next=null,O1===null?E6=gA:O1.next=gA,O1=a8;var i7=E.alternate;i7!==null&&(i7=i7.updateQueue,p1=i7.lastBaseUpdate,p1!==O1&&(p1===null?i7.firstBaseUpdate=gA:p1.next=gA,i7.lastBaseUpdate=a8))}if(E6!==null){var N7=J6.baseState;O1=0,i7=gA=a8=null,p1=E6;do{var h4=p1.lane&-536870913,F3=h4!==p1.lane;if(F3?(I9&h4)===h4:(n&h4)===h4){h4!==0&&h4===Wo&&(Iy6=!0),i7!==null&&(i7=i7.next={lane:0,tag:p1.tag,payload:p1.payload,callback:null,next:null});A:{var SD=E,W46=p1;h4=S;var Np=p;switch(W46.tag){case 1:if(SD=W46.payload,typeof SD==="function"){N7=SD.call(Np,N7,h4);break A}N7=SD;break A;case 3:SD.flags=SD.flags&-65537|128;case 0:if(SD=W46.payload,h4=typeof SD==="function"?SD.call(Np,N7,h4):SD,h4===null||h4===void 0)break A;N7=Ay6({},N7,h4);break A;case 2:vB=!0}}h4=p1.callback,h4!==null&&(E.flags|=64,F3&&(E.flags|=8192),F3=J6.callbacks,F3===null?J6.callbacks=[h4]:F3.push(h4))}else F3={lane:h4,tag:p1.tag,payload:p1.payload,callback:p1.callback,next:null},i7===null?(gA=i7=F3,a8=N7):i7=i7.next=F3,O1|=h4;if(p1=p1.next,p1===null)if(p1=J6.shared.pending,p1===null)break;else F3=p1,p1=F3.next,F3.next=null,J6.lastBaseUpdate=F3,J6.shared.pending=null}while(1);i7===null&&(a8=N7),J6.baseState=a8,J6.firstBaseUpdate=gA,J6.lastBaseUpdate=i7,E6===null&&(J6.shared.lanes=0),Zk|=O1,E.lanes=O1,E.memoizedState=N7}}function Rw(E,S){if(typeof E!=="function")throw Error(Y(191,E));E.call(S)}function B$(E,S){var p=E.callbacks;if(p!==null)for(E.callbacks=null,E=0;E<p.length;E++)Rw(p[E],S)}function Wq(E,S){E=nh,D(hO6,E),D(fo,S),nh=E|S.baseLanes}function XY(){D(hO6,nh),D(fo,fo.current)}function H_(){nh=hO6.current,M(fo),M(hO6)}function k4(E){var S=E.alternate;D(LH,LH.current&1),D(Mf,E),VV===null&&(S===null||fo.current!==null?VV=E:S.memoizedState!==null&&(VV=E))}function D3(E){D(LH,LH.current),D(Mf,E),VV===null&&(VV=E)}function x5(E){E.tag===22?(D(LH,LH.current),D(Mf,E),VV===null&&(VV=E)):S9(E)}function S9(){D(LH,LH.current),D(Mf,Mf.current)}function H5(E){M(Mf),VV===E&&(VV=null),M(LH)}function PY(E){for(var S=E;S!==null;){if(S.tag===13){var p=S.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||Y46(p)||Ny(p)))return S}else if(S.tag===19&&(S.memoizedProps.revealOrder==="forwards"||S.memoizedProps.revealOrder==="backwards"||S.memoizedProps.revealOrder==="unstable_legacy-backwards"||S.memoizedProps.revealOrder==="together")){if((S.flags&128)!==0)return S}else if(S.child!==null){S.child.return=S,S=S.child;continue}if(S===E)break;for(;S.sibling===null;){if(S.return===null||S.return===E)return null;S=S.return}S.sibling.return=S.return,S=S.sibling}return null}function C4(){throw Error(Y(321))}function x2(E,S){if(S===null)return!1;for(var p=0;p<S.length&&p<E.length;p++)if(!LD(E[p],S[p]))return!1;return!0}function Tz(E,S,p,n,J6,E6){return ch=E6,A5=S,S.memoizedState=null,S.updateQueue=null,S.lanes=0,VK.H=E===null||E.memoizedState===null?xO6:uO6,fp=!1,E6=p(n,J6),fp=!1,To&&(E6=Sw(S,p,n,J6)),UK(E),E6}function UK(E){VK.H=M46;var S=bw!==null&&bw.next!==null;if(ch=0,fj=bw=A5=null,IO6=!1,J46=0,Vo=null,S)throw Error(Y(300));E===null||Tj||(E=E.dependencies,E!==null&&f6(E)&&(Tj=!0))}function Sw(E,S,p,n){A5=E;var J6=0;do{if(To&&(Vo=null),J46=0,To=!1,25<=J6)throw Error(Y(301));if(J6+=1,fj=bw=null,E.updateQueue!=null){var E6=E.updateQueue;E6.lastEffect=null,E6.events=null,E6.stores=null,E6.memoCache!=null&&(E6.memoCache.index=0)}VK.H=_11,E6=S(p,n)}while(To);return E6}function NH(){var E=VK.H,S=E.useState()[0];return S=typeof S.then==="function"?AA(S):S,E=E.useState()[0],(bw!==null?bw.memoizedState:null)!==E&&(A5.flags|=1024),S}function Y1(){var E=bO6!==0;return bO6=0,E}function w1(E,S,p){S.updateQueue=E.updateQueue,S.flags&=-2053,E.lanes&=~p}function R1(E){if(IO6){for(E=E.memoizedState;E!==null;){var S=E.queue;S!==null&&(S.pending=null),E=E.next}IO6=!1}ch=0,fj=bw=A5=null,To=!1,J46=bO6=0,Vo=null}function F1(){var E={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fj===null?A5.memoizedState=fj=E:fj=fj.next=E,fj}function e1(){if(bw===null){var E=A5.alternate;E=E!==null?E.memoizedState:null}else E=bw.next;var S=fj===null?A5.memoizedState:fj.next;if(S!==null)fj=S,bw=E;else{if(E===null){if(A5.alternate===null)throw Error(Y(467));throw Error(Y(310))}bw=E,E={memoizedState:bw.memoizedState,baseState:bw.baseState,baseQueue:bw.baseQueue,queue:bw.queue,next:null},fj===null?A5.memoizedState=fj=E:fj=fj.next=E}return fj}function y8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function AA(E){var S=J46;return J46+=1,Vo===null&&(Vo=[]),E=t8(Vo,E,S),S=A5,(fj===null?S.memoizedState:fj.next)===null&&(S=S.alternate,VK.H=S===null||S.memoizedState===null?xO6:uO6),E}function C1(E){if(E!==null&&typeof E==="object"){if(typeof E.then==="function")return AA(E);if(E.$$typeof===Gy)return V6(E)}throw Error(Y(438,String(E)))}function k8(E){var S=null,p=A5.updateQueue;if(p!==null&&(S=p.memoCache),S==null){var n=A5.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(S={data:n.data.map(function(J6){return J6.slice()}),index:0})))}if(S==null&&(S={data:[],index:0}),p===null&&(p=y8(),A5.updateQueue=p),p.memoCache=S,p=S.data[S.index],p===void 0)for(p=S.data[S.index]=Array(E),n=0;n<E;n++)p[n]=ZB;return S.index++,p}function g8(E,S){return typeof S==="function"?S(E):S}function o8(E){var S=e1();return WA(S,bw,E)}function WA(E,S,p){var n=E.queue;if(n===null)throw Error(Y(311));n.lastRenderedReducer=p;var J6=E.baseQueue,E6=n.pending;if(E6!==null){if(J6!==null){var O1=J6.next;J6.next=E6.next,E6.next=O1}S.baseQueue=J6=E6,n.pending=null}if(E6=E.baseState,J6===null)E.memoizedState=E6;else{S=J6.next;var p1=O1=null,a8=null,gA=S,i7=!1;do{var N7=gA.lane&-536870913;if(N7!==gA.lane?(I9&N7)===N7:(ch&N7)===N7){var h4=gA.revertLane;if(h4===0)a8!==null&&(a8=a8.next={lane:0,revertLane:0,gesture:null,action:gA.action,hasEagerState:gA.hasEagerState,eagerState:gA.eagerState,next:null}),N7===Wo&&(i7=!0);else if((ch&h4)===h4){gA=gA.next,h4===Wo&&(i7=!0);continue}else N7={lane:0,revertLane:gA.revertLane,gesture:null,action:gA.action,hasEagerState:gA.hasEagerState,eagerState:gA.eagerState,next:null},a8===null?(p1=a8=N7,O1=E6):a8=a8.next=N7,A5.lanes|=h4,Zk|=h4;N7=gA.action,fp&&p(E6,N7),E6=gA.hasEagerState?gA.eagerState:p(E6,N7)}else h4={lane:N7,revertLane:gA.revertLane,gesture:gA.gesture,action:gA.action,hasEagerState:gA.hasEagerState,eagerState:gA.eagerState,next:null},a8===null?(p1=a8=h4,O1=E6):a8=a8.next=h4,A5.lanes|=N7,Zk|=N7;gA=gA.next}while(gA!==null&&gA!==S);if(a8===null?O1=E6:a8.next=p1,!LD(E6,E.memoizedState)&&(Tj=!0,i7&&(p=Zo,p!==null)))throw p;E.memoizedState=E6,E.baseState=O1,E.baseQueue=a8,n.lastRenderedState=E6}return J6===null&&(n.lanes=0),[E.memoizedState,n.dispatch]}function y7(E){var S=e1(),p=S.queue;if(p===null)throw Error(Y(311));p.lastRenderedReducer=E;var{dispatch:n,pending:J6}=p,E6=S.memoizedState;if(J6!==null){p.pending=null;var O1=J6=J6.next;do E6=E(E6,O1.action),O1=O1.next;while(O1!==J6);LD(E6,S.memoizedState)||(Tj=!0),S.memoizedState=E6,S.baseQueue===null&&(S.baseState=E6),p.lastRenderedState=E6}return[E6,n]}function N3(E,S,p){var n=A5,J6=e1(),E6=r9;if(E6){if(p===void 0)throw Error(Y(407));p=p()}else p=S();var O1=!LD((bw||J6).memoizedState,p);if(O1&&(J6.memoizedState=p,Tj=!0),J6=J6.queue,vH(Aq.bind(null,n,J6,E),[E]),J6.getSnapshot!==S||O1||fj!==null&&fj.memoizedState.tag&1){if(n.flags|=2048,Dj(9,{destroy:void 0},W4.bind(null,n,J6,p,S),null),_2===null)throw Error(Y(349));E6||(ch&127)!==0||x4(n,S,p)}return p}function x4(E,S,p){E.flags|=16384,E={getSnapshot:S,value:p},S=A5.updateQueue,S===null?(S=y8(),A5.updateQueue=S,S.stores=[E]):(p=S.stores,p===null?S.stores=[E]:p.push(E))}function W4(E,S,p,n){S.value=p,S.getSnapshot=n,t5(S)&&pK(E)}function Aq(E,S,p){return p(function(){t5(S)&&pK(E)})}function t5(E){var S=E.getSnapshot;E=E.value;try{var p=S();return!LD(E,p)}catch(n){return!0}}function pK(E){var S=Mq(E,2);S!==null&&wM(S,E,2)}function C9(E){var S=F1();if(typeof E==="function"){var p=E;if(E=p(),fp){F(!0);try{p()}finally{F(!1)}}}return S.memoizedState=S.baseState=E,S.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:g8,lastRenderedState:E},S}function j_(E,S,p,n){return E.baseState=p,WA(E,bw,typeof n==="function"?n:g8)}function u2(E,S,p,n,J6){if(SO(E))throw Error(Y(485));if(E=S.action,E!==null){var E6={payload:J6,action:E,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O1){E6.listeners.push(O1)}};VK.T!==null?p(!0):E6.isTransition=!1,n(E6),p=S.pending,p===null?(E6.next=S.pending=E6,Vz(S,E6)):(E6.next=p.next,S.pending=p.next=E6)}}function Vz(E,S){var{action:p,payload:n}=S,J6=E.state;if(S.isTransition){var E6=VK.T,O1={};VK.T=O1;try{var p1=p(J6,n),a8=VK.S;a8!==null&&a8(O1,p1),F4(E,S,p1)}catch(gA){ww(E,S,gA)}finally{E6!==null&&O1.types!==null&&(E6.types=O1.types),VK.T=E6}}else try{E6=p(J6,n),F4(E,S,E6)}catch(gA){ww(E,S,gA)}}function F4(E,S,p){p!==null&&typeof p==="object"&&typeof p.then==="function"?p.then(function(n){yO(E,S,n)},function(n){return ww(E,S,n)}):yO(E,S,p)}function yO(E,S,p){S.status="fulfilled",S.value=p,fK(S),E.state=p,S=E.pending,S!==null&&(p=S.next,p===S?E.pending=null:(p=p.next,S.next=p,Vz(E,p)))}function ww(E,S,p){var n=E.pending;if(E.pending=null,n!==null){n=n.next;do S.status="rejected",S.reason=p,fK(S),S=S.next;while(S!==n)}E.action=null}function fK(E){E=E.listeners;for(var S=0;S<E.length;S++)(0,E[S])()}function vq(E,S){return S}function XV(E,S){if(r9){var p=_2.formState;if(p!==null){A:{var n=A5;if(r9){if(q$){var J6=m61(q$,fV);if(J6){q$=XO6(J6),n=g61(J6);break A}}P6(n)}n=!1}n&&(S=p[0])}}p=F1(),p.memoizedState=p.baseState=S,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vq,lastRenderedState:S},p.queue=n,p=z4.bind(null,A5,n),n.dispatch=p,n=C9(!1);var E6=$w.bind(null,A5,!1,n.queue);return n=F1(),J6={state:S,dispatch:null,action:E,pending:null},n.queue=J6,p=u2.bind(null,A5,J6,E6,p),J6.dispatch=p,n.memoizedState=E,[S,p,!1]}function wk(E){var S=e1();return Cw(S,bw,E)}function Cw(E,S,p){if(S=WA(E,S,vq)[0],E=o8(g8)[0],typeof S==="object"&&S!==null&&typeof S.then==="function")try{var n=AA(S)}catch(O1){if(O1===Go)throw SO6;throw O1}else n=S;S=e1();var J6=S.queue,E6=J6.dispatch;return p!==S.memoizedState&&(A5.flags|=2048,Dj(9,{destroy:void 0},MZ.bind(null,J6,p),null)),[n,E6,E]}function MZ(E,S){E.action=S}function GD(E){var S=e1(),p=bw;if(p!==null)return Cw(S,p,E);e1(),S=S.memoizedState,p=e1();var n=p.queue.dispatch;return p.memoizedState=E,[S,n,!1]}function Dj(E,S,p,n){return E={tag:E,create:p,deps:n,inst:S,next:null},S=A5.updateQueue,S===null&&(S=y8(),A5.updateQueue=S),p=S.lastEffect,p===null?S.lastEffect=E.next=E:(n=p.next,p.next=E,E.next=n,S.lastEffect=E),E}function v3(){return e1().memoizedState}function dK(E,S,p,n){var J6=F1();A5.flags|=E,J6.memoizedState=Dj(1|S,{destroy:void 0},p,n===void 0?null:n)}function OJ(E,S,p,n){var J6=e1();n=n===void 0?null:n;var E6=J6.memoizedState.inst;bw!==null&&n!==null&&x2(n,bw.memoizedState.deps)?J6.memoizedState=Dj(S,E6,p,n):(A5.flags|=E,J6.memoizedState=Dj(1|S,E6,p,n))}function z2(E,S){dK(8390656,8,E,S)}function vH(E,S){OJ(2048,8,E,S)}function HJ(E){A5.flags|=4;var S=A5.updateQueue;if(S===null)S=y8(),A5.updateQueue=S,S.events=[E];else{var p=S.events;p===null?S.events=[E]:p.push(E)}}function zM(E){var S=e1().memoizedState;return HJ({ref:S,nextImpl:E}),function(){if((D9&2)!==0)throw Error(Y(440));return S.impl.apply(void 0,arguments)}}function WY(E,S){return OJ(4,2,E,S)}function B2(E,S){return OJ(4,4,E,S)}function m2(E,S){if(typeof S==="function"){E=E();var p=S(E);return function(){typeof p==="function"?p():S(null)}}if(S!==null&&S!==void 0)return E=E(),S.current=E,function(){S.current=null}}function X3(E,S,p){p=p!==null&&p!==void 0?p.concat([E]):null,OJ(4,4,m2.bind(null,S,E),p)}function kH(){}function RO(E,S){var p=e1();S=S===void 0?null:S;var n=p.memoizedState;if(S!==null&&x2(S,n[1]))return n[0];return p.memoizedState=[E,S],E}function Xj(E,S){var p=e1();S=S===void 0?null:S;var n=p.memoizedState;if(S!==null&&x2(S,n[1]))return n[0];if(n=E(),fp){F(!0);try{E()}finally{F(!1)}}return p.memoizedState=[n,S],n}function Pj(E,S,p){if(p===void 0||(ch&1073741824)!==0&&(I9&261930)===0)return E.memoizedState=S;return E.memoizedState=p,E=qO6(),A5.lanes|=E,Zk|=E,p}function _w(E,S,p,n){if(LD(p,S))return p;if(fo.current!==null)return E=Pj(E,p,n),LD(E,S)||(Tj=!0),E;if((ch&42)===0||(ch&1073741824)!==0&&(I9&261930)===0)return Tj=!0,E.memoizedState=p;return E=qO6(),A5.lanes|=E,Zk|=E,S}function TA(E,S,p,n,J6){var E6=Dk();_M(E6!==0&&8>E6?E6:8);var O1=VK.T,p1={};VK.T=p1,$w(E,!1,S,p);try{var a8=J6(),gA=VK.S;if(gA!==null&&gA(p1,a8),a8!==null&&typeof a8==="object"&&typeof a8.then==="function"){var i7=m6(a8,n);J9(E,S,i7,yX(E))}else J9(E,S,n,yX(E))}catch(N7){J9(E,S,{then:function(){},status:"rejected",reason:N7},yX())}finally{_M(E6),O1!==null&&p1.types!==null&&(O1.types=p1.types),VK.T=O1}}function IA(E){var S=E.memoizedState;if(S!==null)return S;S={memoizedState:$p,baseState:$p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:g8,lastRenderedState:$p},next:null};var p={};return S.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:g8,lastRenderedState:p},next:null},E.memoizedState=S,E=E.alternate,E!==null&&(E.memoizedState=S),S}function qq(){return V6(Vy)}function P3(){return e1().memoizedState}function Dq(){return e1().memoizedState}function i9(E){for(var S=E.return;S!==null;){switch(S.tag){case 24:case 3:var p=yX();E=l9(p);var n=fz(S,E,p);n!==null&&(wM(n,S,p),a_(n,S,p)),S={cache:R6()},E.payload=S;return}S=S.return}}function hY(E,S,p){var n=yX();p={lane:n,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},SO(E)?hw(S,p):(p=g4(E,S,p,n),p!==null&&(wM(p,E,n),s_(p,S,n)))}function z4(E,S,p){var n=yX();J9(E,S,p,n)}function J9(E,S,p,n){var J6={lane:n,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(SO(E))hw(S,J6);else{var E6=E.alternate;if(E.lanes===0&&(E6===null||E6.lanes===0)&&(E6=S.lastRenderedReducer,E6!==null))try{var O1=S.lastRenderedState,p1=E6(O1,p);if(J6.hasEagerState=!0,J6.eagerState=p1,LD(p1,O1))return P7(E,S,J6,0),_2===null&&a7(),!1}catch(a8){}finally{}if(p=g4(E,S,J6,n),p!==null)return wM(p,E,n),s_(p,S,n),!0}return!1}function $w(E,S,p,n){if(n={lane:2,revertLane:v6(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},SO(E)){if(S)throw Error(Y(479))}else S=g4(E,p,n,2),S!==null&&wM(S,E,2)}function SO(E){var S=E.alternate;return E===A5||S!==null&&S===A5}function hw(E,S){To=IO6=!0;var p=E.pending;p===null?S.next=S:(S.next=p.next,p.next=S),E.pending=S}function s_(E,S,p){if((p&4194048)!==0){var n=S.lanes;n&=E.pendingLanes,p|=n,S.lanes=p,R(E,p)}}function m$(E,S,p,n){S=E.memoizedState,p=p(n,S),p=p===null||p===void 0?S:Ay6({},S,p),E.memoizedState=p,E.lanes===0&&(E.updateQueue.baseState=p)}function e5(E,S,p,n,J6,E6,O1){return E=E.stateNode,typeof E.shouldComponentUpdate==="function"?E.shouldComponentUpdate(n,E6,O1):S.prototype&&S.prototype.isPureReactComponent?!k1(p,n)||!k1(J6,E6):!0}function t_(E,S,p,n){E=S.state,typeof S.componentWillReceiveProps==="function"&&S.componentWillReceiveProps(p,n),typeof S.UNSAFE_componentWillReceiveProps==="function"&&S.UNSAFE_componentWillReceiveProps(p,n),S.state!==E&&by6.enqueueReplaceState(S,S.state,null)}function Ow(E,S){var p=S;if("ref"in S){p={};for(var n in S)n!=="ref"&&(p[n]=S[n])}if(E=E.defaultProps){p===S&&(p=Ay6({},p));for(var J6 in E)p[J6]===void 0&&(p[J6]=E[J6])}return p}function LX(E,S){try{var p=E.onUncaughtError;p(S.value,{componentStack:S.stack})}catch(n){setTimeout(function(){throw n})}}function z0(E,S,p){try{var n=E.onCaughtError;n(p.value,{componentStack:p.stack,errorBoundary:S.tag===1?S.stateNode:null})}catch(J6){setTimeout(function(){throw J6})}}function qf(E,S,p){return p=l9(p),p.tag=3,p.payload={element:null},p.callback=function(){LX(E,S)},p}function PV(E){return E=l9(E),E.tag=3,E}function _k(E,S,p,n){var J6=p.type.getDerivedStateFromError;if(typeof J6==="function"){var E6=n.value;E.payload=function(){return J6(E6)},E.callback=function(){z0(S,p,n)}}var O1=p.stateNode;O1!==null&&typeof O1.componentDidCatch==="function"&&(E.callback=function(){z0(S,p,n),typeof J6!=="function"&&(Gk===null?Gk=new Set([this]):Gk.add(this));var p1=n.stack;this.componentDidCatch(n.value,{componentStack:p1!==null?p1:""})})}function JB(E,S,p,n,J6){if(p.flags|=32768,n!==null&&typeof n==="object"&&typeof n.then==="function"){if(S=p.alternate,S!==null&&h6(S,p,J6,!0),p=Mf.current,p!==null){switch(p.tag){case 31:case 13:return VV===null?qA():p.alternate===null&&bO===0&&(bO=3),p.flags&=-257,p.flags|=65536,p.lanes=J6,n===CO6?p.flags|=16384:(S=p.updateQueue,S===null?p.updateQueue=new Set([n]):S.add(n),YO6(E,n,J6)),!1;case 22:return p.flags|=65536,n===CO6?p.flags|=16384:(S=p.updateQueue,S===null?(S={transitions:null,markerInstances:null,retryQueue:new Set([n])},p.updateQueue=S):(p=S.retryQueue,p===null?S.retryQueue=new Set([n]):p.add(n)),YO6(E,n,J6)),!1}throw Error(Y(435,p.tag))}return YO6(E,n,J6),qA(),!1}if(r9)return S=Mf.current,S!==null?((S.flags&65536)===0&&(S.flags|=256),S.flags|=65536,S.lanes=J6,n!==Ry6&&(E=Error(Y(422),{cause:n}),X6(t(E,p)))):(n!==Ry6&&(S=Error(Y(423),{cause:n}),X6(t(S,p))),E=E.current.alternate,E.flags|=65536,J6&=-J6,E.lanes|=J6,n=t(n,p),J6=qf(E.stateNode,n,J6),VH(E,J6),bO!==4&&(bO=2)),!1;var E6=Error(Y(520),{cause:n});if(E6=t(E6,p),X46===null?X46=[E6]:X46.push(E6),bO!==4&&(bO=2),S===null)return!0;n=t(n,p),p=S;do{switch(p.tag){case 3:return p.flags|=65536,E=J6&-J6,p.lanes|=E,E=qf(p.stateNode,n,E),VH(p,E),!1;case 1:if(S=p.type,E6=p.stateNode,(p.flags&128)===0&&(typeof S.getDerivedStateFromError==="function"||E6!==null&&typeof E6.componentDidCatch==="function"&&(Gk===null||!Gk.has(E6))))return p.flags|=65536,J6&=-J6,p.lanes|=J6,J6=PV(J6),_k(J6,E,p,n),VH(p,J6),!1}p=p.return}while(p!==null);return!1}function Iw(E,S,p,n){S.child=E===null?w11(S,null,p,n):Gp(S,E.child,p,n)}function fD(E,S,p,n,J6){p=p.render;var E6=S.ref;if("ref"in n){var O1={};for(var p1 in n)p1!=="ref"&&(O1[p1]=n[p1])}else O1=n;if(M6(S),n=Tz(E,S,p,O1,E6,J6),p1=Y1(),E!==null&&!Tj)return w1(E,S,J6),w0(E,S,J6);return r9&&p1&&Z6(S),S.flags|=1,Iw(E,S,n,J6),S.child}function B6(E,S,p,n,J6){if(E===null){var E6=p.type;if(typeof E6==="function"&&!sL6(E6)&&E6.defaultProps===void 0&&p.compare===null)return S.tag=15,S.type=E6,Q6(E,S,E6,n,J6);return E=wO6(p.type,null,n,S,S.mode,J6),E.ref=S.ref,E.return=S,S.child=E}if(E6=E.child,!Yo(E,J6)){var O1=E6.memoizedProps;if(p=p.compare,p=p!==null?p:k1,p(O1,n)&&E.ref===S.ref)return w0(E,S,J6)}return S.flags|=1,E=Bh(E6,n),E.ref=S.ref,E.return=S,S.child=E}function Q6(E,S,p,n,J6){if(E!==null){var E6=E.memoizedProps;if(k1(E6,n)&&E.ref===S.ref)if(Tj=!1,S.pendingProps=n=E6,Yo(E,J6))(E.flags&131072)!==0&&(Tj=!0);else return S.lanes=E.lanes,w0(E,S,J6)}return w2(E,S,p,n,J6)}function S1(E,S,p,n){var J6=n.children,E6=E!==null?E.memoizedState:null;if(E===null&&S.stateNode===null&&(S.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((S.flags&128)!==0){if(E6=E6!==null?E6.baseLanes|p:p,E!==null){n=S.child=E.child;for(J6=0;n!==null;)J6=J6|n.lanes|n.childLanes,n=n.sibling;n=J6&~E6}else n=0,S.child=null;return U8(E,S,E6,p,n)}if((p&536870912)!==0)S.memoizedState={baseLanes:0,cachePool:null},E!==null&&N1(S,E6!==null?E6.cachePool:null),E6!==null?Wq(S,E6):XY(),x5(S);else return n=S.lanes=536870912,U8(E,S,E6!==null?E6.baseLanes|p:p,p,n)}else E6!==null?(N1(S,E6.cachePool),Wq(S,E6),S9(S),S.memoizedState=null):(E!==null&&N1(S,null),XY(),S9(S));return Iw(E,S,J6,p),S.child}function N8(E,S){return E!==null&&E.tag===22||S.stateNode!==null||(S.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),S.sibling}function U8(E,S,p,n,J6){var E6=l6();return E6=E6===null?null:{parent:$f?F$._currentValue:F$._currentValue2,pool:E6},S.memoizedState={baseLanes:p,cachePool:E6},E!==null&&N1(S,null),XY(),x5(S),E!==null&&h6(E,S,n,!0),S.childLanes=J6,null}function R7(E,S){return S=J_({mode:S.mode,children:S.children},E.mode),S.ref=E.ref,E.child=S,S.return=E,S}function kq(E,S,p){return Gp(S,E.child,null,p),E=R7(S,S.pendingProps),E.flags|=2,H5(S),S.memoizedState=null,E}function tK(E,S,p){var n=S.pendingProps,J6=(S.flags&128)!==0;if(S.flags&=-129,E===null){if(r9){if(n.mode==="hidden")return E=R7(S,n),S.lanes=536870912,N8(null,E);if(D3(S),(E=q$)?(E=TZ(E,fV),E!==null&&(S.memoizedState={dehydrated:E,treeContext:ky!==null?{id:Xk,overflow:Pk}:null,retryLane:536870912,hydrationErrors:null},p=G61(E),p.return=S,S.child=p,RD=S,q$=null)):E=null,E===null)throw P6(S);return S.lanes=536870912,null}return R7(S,n)}var E6=E.memoizedState;if(E6!==null){var O1=E6.dehydrated;if(D3(S),J6)if(S.flags&256)S.flags&=-257,S=kq(E,S,p);else if(S.memoizedState!==null)S.child=E.child,S.flags|=128,S=null;else throw Error(Y(558));else if(Tj||h6(E,S,p,!1),J6=(p&E.childLanes)!==0,Tj||J6){if(n=_2,n!==null&&(O1=h(n,p),O1!==0&&O1!==E6.retryLane))throw E6.retryLane=O1,Mq(E,O1),wM(n,E,O1),xy6;qA(),S=kq(E,S,p)}else E=E6.treeContext,SX&&(q$=F61(O1),RD=S,r9=!0,VB=null,fV=!1,E!==null&&q6(S,E)),S=R7(S,n),S.flags|=4096;return S}return E=Bh(E.child,{mode:n.mode,children:n.children}),E.ref=S.ref,S.child=E,E.return=S,E}function n9(E,S){var p=S.ref;if(p===null)E!==null&&E.ref!==null&&(S.flags|=4194816);else{if(typeof p!=="function"&&typeof p!=="object")throw Error(Y(284));if(E===null||E.ref!==p)S.flags|=4194816}}function w2(E,S,p,n,J6){if(M6(S),p=Tz(E,S,p,n,void 0,J6),n=Y1(),E!==null&&!Tj)return w1(E,S,J6),w0(E,S,J6);return r9&&n&&Z6(S),S.flags|=1,Iw(E,S,p,J6),S.child}function CO(E,S,p,n,J6,E6){if(M6(S),S.updateQueue=null,p=Sw(S,n,p,J6),UK(E),n=Y1(),E!==null&&!Tj)return w1(E,S,E6),w0(E,S,E6);return r9&&n&&Z6(S),S.flags|=1,Iw(E,S,p,E6),S.child}function h1(E,S,p,n,J6){if(M6(S),S.stateNode===null){var E6=GV,O1=p.contextType;typeof O1==="object"&&O1!==null&&(E6=V6(O1)),E6=new p(n,E6),S.memoizedState=E6.state!==null&&E6.state!==void 0?E6.state:null,E6.updater=by6,S.stateNode=E6,E6._reactInternals=S,E6=S.stateNode,E6.props=n,E6.state=S.memoizedState,E6.refs={},Gz(S),O1=p.contextType,E6.context=typeof O1==="object"&&O1!==null?V6(O1):GV,E6.state=S.memoizedState,O1=p.getDerivedStateFromProps,typeof O1==="function"&&(m$(S,p,O1,n),E6.state=S.memoizedState),typeof p.getDerivedStateFromProps==="function"||typeof E6.getSnapshotBeforeUpdate==="function"||typeof E6.UNSAFE_componentWillMount!=="function"&&typeof E6.componentWillMount!=="function"||(O1=E6.state,typeof E6.componentWillMount==="function"&&E6.componentWillMount(),typeof E6.UNSAFE_componentWillMount==="function"&&E6.UNSAFE_componentWillMount(),O1!==E6.state&&by6.enqueueReplaceState(E6,E6.state,null),DY(S,n,E6,J6),R9(),E6.state=S.memoizedState),typeof E6.componentDidMount==="function"&&(S.flags|=4194308),n=!0}else if(E===null){E6=S.stateNode;var p1=S.memoizedProps,a8=Ow(p,p1);E6.props=a8;var gA=E6.context,i7=p.contextType;O1=GV,typeof i7==="object"&&i7!==null&&(O1=V6(i7));var N7=p.getDerivedStateFromProps;i7=typeof N7==="function"||typeof E6.getSnapshotBeforeUpdate==="function",p1=S.pendingProps!==p1,i7||typeof E6.UNSAFE_componentWillReceiveProps!=="function"&&typeof E6.componentWillReceiveProps!=="function"||(p1||gA!==O1)&&t_(S,E6,n,O1),vB=!1;var h4=S.memoizedState;E6.state=h4,DY(S,n,E6,J6),R9(),gA=S.memoizedState,p1||h4!==gA||vB?(typeof N7==="function"&&(m$(S,p,N7,n),gA=S.memoizedState),(a8=vB||e5(S,p,a8,n,h4,gA,O1))?(i7||typeof E6.UNSAFE_componentWillMount!=="function"&&typeof E6.componentWillMount!=="function"||(typeof E6.componentWillMount==="function"&&E6.componentWillMount(),typeof E6.UNSAFE_componentWillMount==="function"&&E6.UNSAFE_componentWillMount()),typeof E6.componentDidMount==="function"&&(S.flags|=4194308)):(typeof E6.componentDidMount==="function"&&(S.flags|=4194308),S.memoizedProps=n,S.memoizedState=gA),E6.props=n,E6.state=gA,E6.context=O1,n=a8):(typeof E6.componentDidMount==="function"&&(S.flags|=4194308),n=!1)}else{E6=S.stateNode,CY(E,S),O1=S.memoizedProps,i7=Ow(p,O1),E6.props=i7,N7=S.pendingProps,h4=E6.context,gA=p.contextType,a8=GV,typeof gA==="object"&&gA!==null&&(a8=V6(gA)),p1=p.getDerivedStateFromProps,(gA=typeof p1==="function"||typeof E6.getSnapshotBeforeUpdate==="function")||typeof E6.UNSAFE_componentWillReceiveProps!=="function"&&typeof E6.componentWillReceiveProps!=="function"||(O1!==N7||h4!==a8)&&t_(S,E6,n,a8),vB=!1,h4=S.memoizedState,E6.state=h4,DY(S,n,E6,J6),R9();var F3=S.memoizedState;O1!==N7||h4!==F3||vB||E!==null&&E.dependencies!==null&&f6(E.dependencies)?(typeof p1==="function"&&(m$(S,p,p1,n),F3=S.memoizedState),(i7=vB||e5(S,p,i7,n,h4,F3,a8)||E!==null&&E.dependencies!==null&&f6(E.dependencies))?(gA||typeof E6.UNSAFE_componentWillUpdate!=="function"&&typeof E6.componentWillUpdate!=="function"||(typeof E6.componentWillUpdate==="function"&&E6.componentWillUpdate(n,F3,a8),typeof E6.UNSAFE_componentWillUpdate==="function"&&E6.UNSAFE_componentWillUpdate(n,F3,a8)),typeof E6.componentDidUpdate==="function"&&(S.flags|=4),typeof E6.getSnapshotBeforeUpdate==="function"&&(S.flags|=1024)):(typeof E6.componentDidUpdate!=="function"||O1===E.memoizedProps&&h4===E.memoizedState||(S.flags|=4),typeof E6.getSnapshotBeforeUpdate!=="function"||O1===E.memoizedProps&&h4===E.memoizedState||(S.flags|=1024),S.memoizedProps=n,S.memoizedState=F3),E6.props=n,E6.state=F3,E6.context=a8,n=i7):(typeof E6.componentDidUpdate!=="function"||O1===E.memoizedProps&&h4===E.memoizedState||(S.flags|=4),typeof E6.getSnapshotBeforeUpdate!=="function"||O1===E.memoizedProps&&h4===E.memoizedState||(S.flags|=1024),n=!1)}return E6=n,n9(E,S),n=(S.flags&128)!==0,E6||n?(E6=S.stateNode,p=n&&typeof p.getDerivedStateFromError!=="function"?null:E6.render(),S.flags|=1,E!==null&&n?(S.child=Gp(S,E.child,null,J6),S.child=Gp(S,null,p,J6)):Iw(E,S,p,J6),S.memoizedState=E6.state,E=S.child):E=w0(E,S,J6),E}function VA(E,S,p,n){return a(),S.flags|=256,Iw(E,S,p,n),S.child}function S7(E){return{baseLanes:E,cachePool:X1()}}function E4(E,S,p){return E=E!==null?E.childLanes&~p:0,S&&(E|=Df),E}function e3(E,S,p){var n=S.pendingProps,J6=!1,E6=(S.flags&128)!==0,O1;if((O1=E6)||(O1=E!==null&&E.memoizedState===null?!1:(LH.current&2)!==0),O1&&(J6=!0,S.flags&=-129),O1=(S.flags&32)!==0,S.flags&=-33,E===null){if(r9){if(J6?k4(S):S9(S),(E=q$)?(E=vy(E,fV),E!==null&&(S.memoizedState={dehydrated:E,treeContext:ky!==null?{id:Xk,overflow:Pk}:null,retryLane:536870912,hydrationErrors:null},p=G61(E),p.return=S,S.child=p,RD=S,q$=null)):E=null,E===null)throw P6(S);return Ny(E)?S.lanes=32:S.lanes=536870912,null}var p1=n.children;if(n=n.fallback,J6)return S9(S),J6=S.mode,p1=J_({mode:"hidden",children:p1},J6),n=wf(n,J6,p,null),p1.return=S,n.return=S,p1.sibling=n,S.child=p1,n=S.child,n.memoizedState=S7(p),n.childLanes=E4(E,O1,p),S.memoizedState=uy6,N8(null,n);return k4(S),g$(S,p1)}var a8=E.memoizedState;if(a8!==null&&(p1=a8.dehydrated,p1!==null)){if(E6)S.flags&256?(k4(S),S.flags&=-257,S=hO(E,S,p)):S.memoizedState!==null?(S9(S),S.child=E.child,S.flags|=128,S=null):(S9(S),p1=n.fallback,J6=S.mode,n=J_({mode:"visible",children:n.children},J6),p1=wf(p1,J6,p,null),p1.flags|=2,n.return=S,p1.return=S,n.sibling=p1,S.child=n,Gp(S,E.child,null,p),n=S.child,n.memoizedState=S7(p),n.childLanes=E4(E,O1,p),S.memoizedState=uy6,S=N8(null,n));else if(k4(S),Ny(p1))O1=Wm1(p1).digest,n=Error(Y(419)),n.stack="",n.digest=O1,X6({value:n,source:null,stack:null}),S=hO(E,S,p);else if(Tj||h6(E,S,p,!1),O1=(p&E.childLanes)!==0,Tj||O1){if(O1=_2,O1!==null&&(n=h(O1,p),n!==0&&n!==a8.retryLane))throw a8.retryLane=n,Mq(E,n),wM(O1,E,n),xy6;Y46(p1)||qA(),S=hO(E,S,p)}else Y46(p1)?(S.flags|=192,S.child=E.child,S=null):(E=a8.treeContext,SX&&(q$=Q61(p1),RD=S,r9=!0,VB=null,fV=!1,E!==null&&q6(S,E)),S=g$(S,n.children),S.flags|=4096);return S}if(J6)return S9(S),p1=n.fallback,J6=S.mode,a8=E.child,E6=a8.sibling,n=Bh(a8,{mode:"hidden",children:n.children}),n.subtreeFlags=a8.subtreeFlags&65011712,E6!==null?p1=Bh(E6,p1):(p1=wf(p1,J6,p,null),p1.flags|=2),p1.return=S,n.return=S,n.sibling=p1,S.child=n,N8(null,n),n=S.child,p1=E.child.memoizedState,p1===null?p1=S7(p):(J6=p1.cachePool,J6!==null?(a8=$f?F$._currentValue:F$._currentValue2,J6=J6.parent!==a8?{parent:a8,pool:a8}:J6):J6=X1(),p1={baseLanes:p1.baseLanes|p,cachePool:J6}),n.memoizedState=p1,n.childLanes=E4(E,O1,p),S.memoizedState=uy6,N8(E.child,n);return k4(S),p=E.child,E=p.sibling,p=Bh(p,{mode:"visible",children:n.children}),p.return=S,p.sibling=null,E!==null&&(O1=S.deletions,O1===null?(S.deletions=[E],S.flags|=16):O1.push(E)),S.child=p,S.memoizedState=null,p}function g$(E,S){return S=J_({mode:"visible",children:S},E.mode),S.return=E,E.child=S}function J_(E,S){return E=q(22,E,null,S),E.lanes=0,E}function hO(E,S,p){return Gp(S,E.child,null,p),E=g$(S,S.pendingProps.children),E.flags|=2,S.memoizedState=null,E}function $k(E,S,p){E.lanes|=S;var n=E.alternate;n!==null&&(n.lanes|=S),y6(E.return,S,p)}function yh(E,S,p,n,J6,E6){var O1=E.memoizedState;O1===null?E.memoizedState={isBackwards:S,rendering:null,renderingStartTime:0,last:n,tail:p,tailMode:J6,treeForkCount:E6}:(O1.isBackwards=S,O1.rendering=null,O1.renderingStartTime=0,O1.last=n,O1.tail=p,O1.tailMode=J6,O1.treeForkCount=E6)}function DZ(E,S,p){var n=S.pendingProps,J6=n.revealOrder,E6=n.tail;n=n.children;var O1=LH.current,p1=(O1&2)!==0;if(p1?(O1=O1&1|2,S.flags|=128):O1&=1,D(LH,O1),Iw(E,S,n,p),n=r9?Jp:0,!p1&&E!==null&&(E.flags&128)!==0)A:for(E=S.child;E!==null;){if(E.tag===13)E.memoizedState!==null&&$k(E,p,S);else if(E.tag===19)$k(E,p,S);else if(E.child!==null){E.child.return=E,E=E.child;continue}if(E===S)break A;for(;E.sibling===null;){if(E.return===null||E.return===S)break A;E=E.return}E.sibling.return=E.return,E=E.sibling}switch(J6){case"forwards":p=S.child;for(J6=null;p!==null;)E=p.alternate,E!==null&&PY(E)===null&&(J6=p),p=p.sibling;p=J6,p===null?(J6=S.child,S.child=null):(J6=p.sibling,p.sibling=null),yh(S,!1,J6,p,E6,n);break;case"backwards":case"unstable_legacy-backwards":p=null,J6=S.child;for(S.child=null;J6!==null;){if(E=J6.alternate,E!==null&&PY(E)===null){S.child=J6;break}E=J6.sibling,J6.sibling=p,p=J6,J6=E}yh(S,!0,p,null,E6,n);break;case"together":yh(S,!1,null,null,void 0,n);break;default:S.memoizedState=null}return S.child}function w0(E,S,p){if(E!==null&&(S.dependencies=E.dependencies),Zk|=S.lanes,(p&S.childLanes)===0)if(E!==null){if(h6(E,S,p,!1),(p&S.childLanes)===0)return null}else return null;if(E!==null&&S.child!==E.child)throw Error(Y(153));if(S.child!==null){E=S.child,p=Bh(E,E.pendingProps),S.child=p;for(p.return=S;E.sibling!==null;)E=E.sibling,p=p.sibling=Bh(E,E.pendingProps),p.return=S;p.sibling=null}return S.child}function Yo(E,S){if((E.lanes&S)!==0)return!0;return E=E.dependencies,E!==null&&f6(E)?!0:!1}function Kf(E,S,p){switch(S.tag){case 3:w6(S,S.stateNode.containerInfo),O6(S,F$,E.memoizedState.cache),a();break;case 27:case 5:_6(S);break;case 4:w6(S,S.stateNode.containerInfo);break;case 10:O6(S,S.type,S.memoizedProps.value);break;case 31:if(S.memoizedState!==null)return S.flags|=128,D3(S),null;break;case 13:var n=S.memoizedState;if(n!==null){if(n.dehydrated!==null)return k4(S),S.flags|=128,null;if((p&S.child.childLanes)!==0)return e3(E,S,p);return k4(S),E=w0(E,S,p),E!==null?E.sibling:null}k4(S);break;case 19:var J6=(E.flags&128)!==0;if(n=(p&S.childLanes)!==0,n||(h6(E,S,p,!1),n=(p&S.childLanes)!==0),J6){if(n)return DZ(E,S,p);S.flags|=128}if(J6=S.memoizedState,J6!==null&&(J6.rendering=null,J6.tail=null,J6.lastEffect=null),D(LH,LH.current),n)break;else return null;case 22:return S.lanes=0,S1(E,S,p,S.pendingProps);case 24:O6(S,F$,E.memoizedState.cache)}return w0(E,S,p)}function oU(E,S,p){if(E!==null)if(E.memoizedProps!==S.pendingProps)Tj=!0;else{if(!Yo(E,p)&&(S.flags&128)===0)return Tj=!1,Kf(E,S,p);Tj=(E.flags&131072)!==0?!0:!1}else Tj=!1,r9&&(S.flags&1048576)!==0&&H6(S,Jp,S.index);switch(S.lanes=0,S.tag){case 16:A:{var n=S.pendingProps;if(E=s8(S.elementType),S.type=E,typeof E==="function")sL6(E)?(n=Ow(E,n),S.tag=1,S=h1(null,S,E,n,p)):(S.tag=0,S=w2(null,S,E,n,p));else{if(E!==void 0&&E!==null){var J6=E.$$typeof;if(J6===gh){S.tag=11,S=fD(null,S,E,n,p);break A}else if(J6===$O6){S.tag=14,S=B6(null,S,E,n,p);break A}}throw S=j(E)||E,Error(Y(306,S,""))}}return S;case 0:return w2(E,S,S.type,S.pendingProps,p);case 1:return n=S.type,J6=Ow(n,S.pendingProps),h1(E,S,n,J6,p);case 3:A:{if(w6(S,S.stateNode.containerInfo),E===null)throw Error(Y(387));var E6=S.pendingProps;J6=S.memoizedState,n=J6.element,CY(E,S),DY(S,E6,null,p);var O1=S.memoizedState;if(E6=O1.cache,O6(S,F$,E6),E6!==J6.cache&&C6(S,[F$],p,!0),R9(),E6=O1.element,SX&&J6.isDehydrated)if(J6={element:E6,isDehydrated:!1,cache:O1.cache},S.updateQueue.baseState=J6,S.memoizedState=J6,S.flags&256){S=VA(E,S,E6,p);break A}else if(E6!==n){n=t(Error(Y(424)),S),X6(n),S=VA(E,S,E6,p);break A}else for(SX&&(q$=fm1(S.stateNode.containerInfo),RD=S,r9=!0,VB=null,fV=!0),p=w11(S,null,E6,p),S.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(a(),E6===n){S=w0(E,S,p);break A}Iw(E,S,E6,p)}S=S.child}return S;case 26:if(ZV)return n9(E,S),E===null?(p=VO6(S.type,null,S.pendingProps,null))?S.memoizedState=p:r9||(S.stateNode=Lm1(S.type,S.pendingProps,yD.current,S)):S.memoizedState=VO6(S.type,E.memoizedProps,S.pendingProps,E.memoizedState),null;case 27:if(EH)return _6(S),E===null&&EH&&r9&&(n=S.stateNode=NO6(S.type,S.pendingProps,yD.current,Gj.current,!1),RD=S,fV=!0,q$=Tm1(S.type,n,q$)),Iw(E,S,S.pendingProps.children,p),n9(E,S),E===null&&(S.flags|=4194304),S.child;case 5:if(E===null&&r9){if(fO6(S.type,S.pendingProps,Gj.current),J6=n=q$)n=U61(n,S.type,S.pendingProps,fV),n!==null?(S.stateNode=n,RD=S,q$=Gm1(n),fV=!1,J6=!0):J6=!1;J6||P6(S)}return _6(S),J6=S.type,E6=S.pendingProps,O1=E!==null?E.memoizedProps:null,n=E6.children,JO6(J6,E6)?n=null:O1!==null&&JO6(J6,O1)&&(S.flags|=32),S.memoizedState!==null&&(J6=Tz(E,S,NH,null,null,p),$f?Vy._currentValue=J6:Vy._currentValue2=J6),n9(E,S),Iw(E,S,n,p),S.child;case 6:if(E===null&&r9){if(Em1(S.pendingProps,Gj.current),E=p=q$)p=p61(p,S.pendingProps,fV),p!==null?(S.stateNode=p,RD=S,q$=null,E=!0):E=!1;E||P6(S)}return null;case 13:return e3(E,S,p);case 4:return w6(S,S.stateNode.containerInfo),n=S.pendingProps,E===null?S.child=Gp(S,null,n,p):Iw(E,S,n,p),S.child;case 11:return fD(E,S,S.type,S.pendingProps,p);case 7:return Iw(E,S,S.pendingProps,p),S.child;case 8:return Iw(E,S,S.pendingProps.children,p),S.child;case 12:return Iw(E,S,S.pendingProps.children,p),S.child;case 10:return n=S.pendingProps,O6(S,S.type,n.value),Iw(E,S,n.children,p),S.child;case 9:return J6=S.type._context,n=S.pendingProps.children,M6(S),J6=V6(J6),n=n(J6),S.flags|=1,Iw(E,S,n,p),S.child;case 14:return B6(E,S,S.type,S.pendingProps,p);case 15:return Q6(E,S,S.type,S.pendingProps,p);case 19:return DZ(E,S,p);case 31:return tK(E,S,p);case 22:return S1(E,S,p,S.pendingProps);case 24:return M6(S),n=V6(F$),E===null?(J6=l6(),J6===null&&(J6=_2,E6=R6(),J6.pooledCache=E6,E6.refCount++,E6!==null&&(J6.pooledCacheLanes|=p),J6=E6),S.memoizedState={parent:n,cache:J6},Gz(S),O6(S,F$,J6)):((E.lanes&p)!==0&&(CY(E,S),DY(S,null,null,p),R9()),J6=E.memoizedState,E6=S.memoizedState,J6.parent!==n?(J6={parent:n,cache:n},S.memoizedState=J6,S.lanes===0&&(S.memoizedState=S.updateQueue.baseState=J6),O6(S,F$,n)):(n=E6.cache,O6(S,F$,n),n!==J6.cache&&C6(S,[F$],p,!0))),Iw(E,S,S.pendingProps.children,p),S.child;case 29:throw S.pendingProps}throw Error(Y(156,S.tag))}function IO(E){E.flags|=4}function My(E){Ty&&(E.flags|=8)}function U76(E,S){if(E!==null&&E.child===S.child)return!1;if((S.flags&16)!==0)return!0;for(E=S.child;E!==null;){if((E.flags&8218)!==0||(E.subtreeFlags&8218)!==0)return!0;E=E.sibling}return!1}function p76(E,S,p,n){if(kD)for(p=S.child;p!==null;){if(p.tag===5||p.tag===6)vD(E,p.stateNode);else if(!(p.tag===4||EH&&p.tag===27)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===S)break;for(;p.sibling===null;){if(p.return===null||p.return===S)return;p=p.return}p.sibling.return=p.return,p=p.sibling}else if(Ty)for(var J6=S.child;J6!==null;){if(J6.tag===5){var E6=J6.stateNode;p&&n&&(E6=Wy6(E6,J6.type,J6.memoizedProps)),vD(E,E6)}else if(J6.tag===6)E6=J6.stateNode,p&&n&&(E6=DO6(E6,J6.memoizedProps)),vD(E,E6);else if(J6.tag!==4){if(J6.tag===22&&J6.memoizedState!==null)E6=J6.child,E6!==null&&(E6.return=J6),p76(E,J6,!0,!0);else if(J6.child!==null){J6.child.return=J6,J6=J6.child;continue}}if(J6===S)break;for(;J6.sibling===null;){if(J6.return===null||J6.return===S)return;J6=J6.return}J6.sibling.return=J6.return,J6=J6.sibling}}function d76(E,S,p,n){var J6=!1;if(Ty)for(var E6=S.child;E6!==null;){if(E6.tag===5){var O1=E6.stateNode;p&&n&&(O1=Wy6(O1,E6.type,E6.memoizedProps)),K46(E,O1)}else if(E6.tag===6)O1=E6.stateNode,p&&n&&(O1=DO6(O1,E6.memoizedProps)),K46(E,O1);else if(E6.tag!==4){if(E6.tag===22&&E6.memoizedState!==null)J6=E6.child,J6!==null&&(J6.return=E6),d76(E,E6,!0,!0),J6=!0;else if(E6.child!==null){E6.child.return=E6,E6=E6.child;continue}}if(E6===S)break;for(;E6.sibling===null;){if(E6.return===null||E6.return===S)return J6;E6=E6.return}E6.sibling.return=E6.return,E6=E6.sibling}return J6}function Ok(E,S){if(Ty&&U76(E,S)){E=S.stateNode;var p=E.containerInfo,n=Py6();d76(n,S,!1,!1),E.pendingChildren=n,IO(S),B61(p,n)}}function TD(E,S,p,n){if(kD)E.memoizedProps!==n&&IO(S);else if(Ty){var{stateNode:J6,memoizedProps:E6}=E;if((E=U76(E,S))||E6!==n){var O1=Gj.current;E6=Xy6(J6,p,E6,n,!E,null),E6===J6?S.stateNode=J6:(My(S),jO6(E6,p,n,O1)&&IO(S),S.stateNode=E6,E&&p76(E6,S,!1,!1))}else S.stateNode=J6}}function c76(E,S,p,n,J6){if((E.mode&32)!==0&&(p===null?$m1(S,n):y61(S,p,n))){if(E.flags|=16777216,(J6&335544128)===J6||t76(S,n))if(R61(E.stateNode,S,n))E.flags|=8192;else if(KO6())E.flags|=8192;else throw Wp=CO6,NZ}else E.flags&=-16777217}function s$6(E,S){if(ym1(S)){if(E.flags|=16777216,!s61(S))if(KO6())E.flags|=8192;else throw Wp=CO6,NZ}else E.flags&=-16777217}function Dy(E,S){S!==null&&(E.flags|=4),E.flags&16384&&(S=E.tag!==22?f():536870912,E.lanes|=S,ko|=S)}function Hk(E,S){if(!r9)switch(E.tailMode){case"hidden":S=E.tail;for(var p=null;S!==null;)S.alternate!==null&&(p=S),S=S.sibling;p===null?E.tail=null:p.sibling=null;break;case"collapsed":p=E.tail;for(var n=null;p!==null;)p.alternate!==null&&(n=p),p=p.sibling;n===null?S||E.tail===null?E.tail=null:E.tail.sibling=null:n.sibling=null}}function Hw(E){var S=E.alternate!==null&&E.alternate.child===E.child,p=0,n=0;if(S)for(var J6=E.child;J6!==null;)p|=J6.lanes|J6.childLanes,n|=J6.subtreeFlags&65011712,n|=J6.flags&65011712,J6.return=E,J6=J6.sibling;else for(J6=E.child;J6!==null;)p|=J6.lanes|J6.childLanes,n|=J6.subtreeFlags,n|=J6.flags,J6.return=E,J6=J6.sibling;return E.subtreeFlags|=n,E.childLanes=p,S}function t$6(E,S,p){var n=S.pendingProps;switch(G6(S),S.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hw(S),null;case 1:return Hw(S),null;case 3:if(p=S.stateNode,n=null,E!==null&&(n=E.memoizedState.cache),S.memoizedState.cache!==n&&(S.flags|=2048),D6(F$),j6(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),E===null||E.child===null)z6(S)?IO(S):E===null||E.memoizedState.isDehydrated&&(S.flags&256)===0||(S.flags|=1024,r());return Ok(E,S),Hw(S),null;case 26:if(ZV){var{type:J6,memoizedState:E6}=S;return E===null?(IO(S),E6!==null?(Hw(S),s$6(S,E6)):(Hw(S),c76(S,J6,null,n,p))):E6?E6!==E.memoizedState?(IO(S),Hw(S),s$6(S,E6)):(Hw(S),S.flags&=-16777217):(E6=E.memoizedProps,kD?E6!==n&&IO(S):TD(E,S,J6,n),Hw(S),c76(S,J6,E6,n,p)),null}case 27:if(EH){if(k6(S),p=yD.current,J6=S.type,E!==null&&S.stateNode!=null)kD?E.memoizedProps!==n&&IO(S):TD(E,S,J6,n);else{if(!n){if(S.stateNode===null)throw Error(Y(166));return Hw(S),null}E=Gj.current,z6(S)?A6(S,E):(E=NO6(J6,n,p,E,!0),S.stateNode=E,IO(S))}return Hw(S),null}case 5:if(k6(S),J6=S.type,E!==null&&S.stateNode!=null)TD(E,S,J6,n);else{if(!n){if(S.stateNode===null)throw Error(Y(166));return Hw(S),null}if(E6=Gj.current,z6(S))A6(S,E6),km1(S.stateNode,J6,n,E6)&&(S.flags|=64);else{var O1=k61(J6,n,yD.current,E6,S);My(S),p76(O1,S,!1,!1),S.stateNode=O1,jO6(O1,J6,n,E6)&&IO(S)}}return Hw(S),c76(S,S.type,E===null?null:E.memoizedProps,S.pendingProps,p),null;case 6:if(E&&S.stateNode!=null)p=E.memoizedProps,kD?p!==n&&IO(S):Ty&&(p!==n?(E=yD.current,p=Gj.current,My(S),S.stateNode=E61(n,E,p,S)):S.stateNode=E.stateNode);else{if(typeof n!=="string"&&S.stateNode===null)throw Error(Y(166));if(E=yD.current,p=Gj.current,z6(S)){if(!SX)throw Error(Y(176));if(E=S.stateNode,p=S.memoizedProps,n=null,J6=RD,J6!==null)switch(J6.tag){case 27:case 5:n=J6.memoizedProps}Nm1(E,p,S,n)||P6(S,!0)}else My(S),S.stateNode=E61(n,E,p,S)}return Hw(S),null;case 31:if(p=S.memoizedState,E===null||E.memoizedState!==null){if(n=z6(S),p!==null){if(E===null){if(!n)throw Error(Y(318));if(!SX)throw Error(Y(556));if(E=S.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(Y(557));PO6(E,S)}else a(),(S.flags&128)===0&&(S.memoizedState=null),S.flags|=4;Hw(S),E=!1}else p=r(),E!==null&&E.memoizedState!==null&&(E.memoizedState.hydrationErrors=p),E=!0;if(!E){if(S.flags&256)return H5(S),S;return H5(S),null}if((S.flags&128)!==0)throw Error(Y(558))}return Hw(S),null;case 13:if(n=S.memoizedState,E===null||E.memoizedState!==null&&E.memoizedState.dehydrated!==null){if(J6=z6(S),n!==null&&n.dehydrated!==null){if(E===null){if(!J6)throw Error(Y(318));if(!SX)throw Error(Y(344));if(J6=S.memoizedState,J6=J6!==null?J6.dehydrated:null,!J6)throw Error(Y(317));Jo(J6,S)}else a(),(S.flags&128)===0&&(S.memoizedState=null),S.flags|=4;Hw(S),J6=!1}else J6=r(),E!==null&&E.memoizedState!==null&&(E.memoizedState.hydrationErrors=J6),J6=!0;if(!J6){if(S.flags&256)return H5(S),S;return H5(S),null}}if(H5(S),(S.flags&128)!==0)return S.lanes=p,S;return p=n!==null,E=E!==null&&E.memoizedState!==null,p&&(n=S.child,J6=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(J6=n.alternate.memoizedState.cachePool.pool),E6=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(E6=n.memoizedState.cachePool.pool),E6!==J6&&(n.flags|=2048)),p!==E&&p&&(S.child.flags|=8192),Dy(S,S.updateQueue),Hw(S),null;case 4:return j6(),Ok(E,S),E===null&&zm1(S.stateNode.containerInfo),Hw(S),null;case 10:return D6(S.type),Hw(S),null;case 19:if(M(LH),n=S.memoizedState,n===null)return Hw(S),null;if(J6=(S.flags&128)!==0,E6=n.rendering,E6===null)if(J6)Hk(n,!1);else{if(bO!==0||E!==null&&(E.flags&128)!==0)for(E=S.child;E!==null;){if(E6=PY(E),E6!==null){S.flags|=128,Hk(n,!1),E=E6.updateQueue,S.updateQueue=E,Dy(S,E),S.subtreeFlags=0,E=p;for(p=S.child;p!==null;)Z61(p,E),p=p.sibling;return D(LH,LH.current&1|2),r9&&s(S,n.treeForkCount),S.child}E=E.sibling}n.tail!==null&&VZ()>P46&&(S.flags|=128,J6=!0,Hk(n,!1),S.lanes=4194304)}else{if(!J6)if(E=PY(E6),E!==null){if(S.flags|=128,J6=!0,E=E.updateQueue,S.updateQueue=E,Dy(S,E),Hk(n,!0),n.tail===null&&n.tailMode==="hidden"&&!E6.alternate&&!r9)return Hw(S),null}else 2*VZ()-n.renderingStartTime>P46&&p!==536870912&&(S.flags|=128,J6=!0,Hk(n,!1),S.lanes=4194304);n.isBackwards?(E6.sibling=S.child,S.child=E6):(E=n.last,E!==null?E.sibling=E6:S.child=E6,n.last=E6)}if(n.tail!==null)return E=n.tail,n.rendering=E,n.tail=E.sibling,n.renderingStartTime=VZ(),E.sibling=null,p=LH.current,D(LH,J6?p&1|2:p&1),r9&&s(S,n.treeForkCount),E;return Hw(S),null;case 22:case 23:return H5(S),H_(),n=S.memoizedState!==null,E!==null?E.memoizedState!==null!==n&&(S.flags|=8192):n&&(S.flags|=8192),n?(p&536870912)!==0&&(S.flags&128)===0&&(Hw(S),S.subtreeFlags&6&&(S.flags|=8192)):Hw(S),p=S.updateQueue,p!==null&&Dy(S,p.retryQueue),p=null,E!==null&&E.memoizedState!==null&&E.memoizedState.cachePool!==null&&(p=E.memoizedState.cachePool.pool),n=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(n=S.memoizedState.cachePool.pool),n!==p&&(S.flags|=2048),E!==null&&M(Pp),null;case 24:return p=null,E!==null&&(p=E.memoizedState.cache),S.memoizedState.cache!==p&&(S.flags|=2048),D6(F$),Hw(S),null;case 25:return null;case 30:return null}throw Error(Y(156,S.tag))}function Xy(E,S){switch(G6(S),S.tag){case 1:return E=S.flags,E&65536?(S.flags=E&-65537|128,S):null;case 3:return D6(F$),j6(),E=S.flags,(E&65536)!==0&&(E&128)===0?(S.flags=E&-65537|128,S):null;case 26:case 27:case 5:return k6(S),null;case 31:if(S.memoizedState!==null){if(H5(S),S.alternate===null)throw Error(Y(340));a()}return E=S.flags,E&65536?(S.flags=E&-65537|128,S):null;case 13:if(H5(S),E=S.memoizedState,E!==null&&E.dehydrated!==null){if(S.alternate===null)throw Error(Y(340));a()}return E=S.flags,E&65536?(S.flags=E&-65537|128,S):null;case 19:return M(LH),null;case 4:return j6(),null;case 10:return D6(S.type),null;case 22:case 23:return H5(S),H_(),E!==null&&M(Pp),E=S.flags,E&65536?(S.flags=E&-65537|128,S):null;case 24:return D6(F$),null;case 25:return null;default:return null}}function K8(E,S){switch(G6(S),S.tag){case 3:D6(F$),j6();break;case 26:case 27:case 5:k6(S);break;case 4:j6();break;case 31:S.memoizedState!==null&&H5(S);break;case 13:H5(S);break;case 19:M(LH);break;case 10:D6(S.type);break;case 22:case 23:H5(S),H_(),E!==null&&M(Pp);break;case 24:D6(F$)}}function zA(E,S){try{var p=S.updateQueue,n=p!==null?p.lastEffect:null;if(n!==null){var J6=n.next;p=J6;do{if((p.tag&E)===E){n=void 0;var{create:E6,inst:O1}=p;n=E6(),O1.destroy=n}p=p.next}while(p!==J6)}}catch(p1){j5(S,S.return,p1)}}function F8(E,S,p){try{var n=S.updateQueue,J6=n!==null?n.lastEffect:null;if(J6!==null){var E6=J6.next;n=E6;do{if((n.tag&E)===E){var O1=n.inst,p1=O1.destroy;if(p1!==void 0){O1.destroy=void 0,J6=S;var a8=p,gA=p1;try{gA()}catch(i7){j5(J6,a8,i7)}}}n=n.next}while(n!==E6)}}catch(i7){j5(S,S.return,i7)}}function Z4(E){var S=E.updateQueue;if(S!==null){var p=E.stateNode;try{B$(S,p)}catch(n){j5(E,E.return,n)}}}function TK(E,S,p){p.props=Ow(E.type,E.memoizedProps),p.state=E.memoizedState;try{p.componentWillUnmount()}catch(n){j5(E,S,n)}}function u5(E,S){try{var p=E.ref;if(p!==null){switch(E.tag){case 26:case 27:case 5:var n=Ho(E.stateNode);break;case 30:n=E.stateNode;break;default:n=E.stateNode}typeof p==="function"?E.refCleanup=p(n):p.current=n}}catch(J6){j5(E,S,J6)}}function rY(E,S){var{ref:p,refCleanup:n}=E;if(p!==null)if(typeof n==="function")try{n()}catch(J6){j5(E,S,J6)}finally{E.refCleanup=null,E=E.alternate,E!=null&&(E.refCleanup=null)}else if(typeof p==="function")try{p(null)}catch(J6){j5(E,S,J6)}else p.current=null}function Nz(E){var{type:S,memoizedProps:p,stateNode:n}=E;try{A46(n,S,p,E)}catch(J6){j5(E,E.return,J6)}}function Rh(E,S,p){try{b61(E.stateNode,E.type,p,S,E)}catch(n){j5(E,E.return,n)}}function l76(E){return E.tag===5||E.tag===3||(ZV?E.tag===26:!1)||(EH?E.tag===27&&Qq(E.type):!1)||E.tag===4}function VD(E){A:for(;;){for(;E.sibling===null;){if(E.return===null||l76(E.return))return null;E=E.return}E.sibling.return=E.return;for(E=E.sibling;E.tag!==5&&E.tag!==6&&E.tag!==18;){if(EH&&E.tag===27&&Qq(E.type))continue A;if(E.flags&2)continue A;if(E.child===null||E.tag===4)continue A;else E.child.return=E,E=E.child}if(!(E.flags&2))return E.stateNode}}function Sh(E,S,p){var n=E.tag;if(n===5||n===6)E=E.stateNode,S?Xm1(p,E,S):Jm1(p,E);else if(n!==4&&(EH&&n===27&&Qq(E.type)&&(p=E.stateNode,S=null),E=E.child,E!==null))for(Sh(E,S,p),E=E.sibling;E!==null;)Sh(E,S,p),E=E.sibling}function zo(E,S,p){var n=E.tag;if(n===5||n===6)E=E.stateNode,S?Dm1(p,E,S):B5(p,E);else if(n!==4&&(EH&&n===27&&Qq(E.type)&&(p=E.stateNode),E=E.child,E!==null))for(zo(E,S,p),E=E.sibling;E!==null;)zo(E,S,p),E=E.sibling}function jw(E,S,p){E=E.containerInfo;try{MO6(E,p)}catch(n){j5(S,S.return,n)}}function aU(E){var{stateNode:S,memoizedProps:p}=E;try{Ty6(E.type,p,S,E)}catch(n){j5(E,E.return,n)}}function sU(E,S){HO6(E.containerInfo);for($M=S;$M!==null;)if(E=$M,S=E.child,(E.subtreeFlags&1028)!==0&&S!==null)S.return=E,$M=S;else for(;$M!==null;){E=$M;var p=E.alternate;switch(S=E.flags,E.tag){case 0:if((S&4)!==0&&(S=E.updateQueue,S=S!==null?S.events:null,S!==null))for(var n=0;n<S.length;n++){var J6=S[n];J6.ref.impl=J6.nextImpl}break;case 11:case 15:break;case 1:if((S&1024)!==0&&p!==null){S=void 0,n=E,J6=p.memoizedProps,p=p.memoizedState;var E6=n.stateNode;try{var O1=Ow(n.type,J6);S=E6.getSnapshotBeforeUpdate(O1,p),E6.__reactInternalSnapshotBeforeUpdate=S}catch(p1){j5(n,n.return,p1)}}break;case 3:(S&1024)!==0&&kD&&GB(E.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((S&1024)!==0)throw Error(Y(163))}if(S=E.sibling,S!==null){S.return=E.return,$M=S;break}$M=E.return}}function IY(E,S,p){var n=p.flags;switch(p.tag){case 0:case 11:case 15:WZ(E,p),n&4&&zA(5,p);break;case 1:if(WZ(E,p),n&4)if(E=p.stateNode,S===null)try{E.componentDidMount()}catch(O1){j5(p,p.return,O1)}else{var J6=Ow(p.type,S.memoizedProps);S=S.memoizedState;try{E.componentDidUpdate(J6,S,E.__reactInternalSnapshotBeforeUpdate)}catch(O1){j5(p,p.return,O1)}}n&64&&Z4(p),n&512&&u5(p,p.return);break;case 3:if(WZ(E,p),n&64&&(n=p.updateQueue,n!==null)){if(E=null,p.child!==null)switch(p.child.tag){case 27:case 5:E=Ho(p.child.stateNode);break;case 1:E=p.child.stateNode}try{B$(n,E)}catch(O1){j5(p,p.return,O1)}}break;case 27:EH&&S===null&&n&4&&aU(p);case 26:case 5:if(WZ(E,p),S===null){if(n&4)Nz(p);else if(n&64){E=p.type,S=p.memoizedProps,J6=p.stateNode;try{vm1(J6,E,S,p)}catch(O1){j5(p,p.return,O1)}}}n&512&&u5(p,p.return);break;case 12:WZ(E,p);break;case 31:WZ(E,p),n&4&&Jk(E,p);break;case 13:WZ(E,p),n&4&&e$6(E,p),n&64&&(n=p.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(p=zO6.bind(null,p),fB(n,p))));break;case 22:if(n=p.memoizedState!==null||lh,!n){S=S!==null&&S.memoizedState!==null||Vj,J6=lh;var E6=Vj;lh=n,(Vj=S)&&!E6?ZZ(E,p,(p.subtreeFlags&8772)!==0):WZ(E,p),lh=J6,Vj=E6}break;case 30:break;default:WZ(E,p)}}function i76(E){var S=E.alternate;S!==null&&(E.alternate=null,i76(S)),E.child=null,E.deletions=null,E.sibling=null,E.tag===5&&(S=E.stateNode,S!==null&&_m1(S)),E.stateNode=null,E.return=null,E.dependencies=null,E.memoizedProps=null,E.memoizedState=null,E.pendingProps=null,E.stateNode=null,E.updateQueue=null}function XZ(E,S,p){for(p=p.child;p!==null;)jk(E,S,p),p=p.sibling}function jk(E,S,p){if(jf&&typeof jf.onCommitFiberUnmount==="function")try{jf.onCommitFiberUnmount(O46,p)}catch(E6){}switch(p.tag){case 26:if(ZV){Vj||rY(p,S),XZ(E,S,p),p.memoizedState?Zy6(p.memoizedState):p.stateNode&&fy6(p.stateNode);break}case 27:if(EH){Vj||rY(p,S);var n=Q$,J6=vZ;Qq(p.type)&&(Q$=p.stateNode,vZ=!1),XZ(E,S,p),_46(p.stateNode),Q$=n,vZ=J6;break}case 5:Vj||rY(p,S);case 6:if(kD){if(n=Q$,J6=vZ,Q$=null,XZ(E,S,p),Q$=n,vZ=J6,Q$!==null)if(vZ)try{Pm1(Q$,p.stateNode)}catch(E6){j5(p,S,E6)}else try{WV(Q$,p.stateNode)}catch(E6){j5(p,S,E6)}}else XZ(E,S,p);break;case 18:kD&&Q$!==null&&(vZ?WO6(Q$,p.stateNode):n61(Q$,p.stateNode));break;case 4:kD?(n=Q$,J6=vZ,Q$=p.stateNode.containerInfo,vZ=!0,XZ(E,S,p),Q$=n,vZ=J6):(Ty&&jw(p.stateNode,p,Py6()),XZ(E,S,p));break;case 0:case 11:case 14:case 15:F8(2,p,S),Vj||F8(4,p,S),XZ(E,S,p);break;case 1:Vj||(rY(p,S),n=p.stateNode,typeof n.componentWillUnmount==="function"&&TK(p,S,n)),XZ(E,S,p);break;case 21:XZ(E,S,p);break;case 22:Vj=(n=Vj)||p.memoizedState!==null,XZ(E,S,p),Vj=n;break;default:XZ(E,S,p)}}function Jk(E,S){if(SX&&S.memoizedState===null&&(E=S.alternate,E!==null&&(E=E.memoizedState,E!==null))){E=E.dehydrated;try{Mo(E)}catch(p){j5(S,S.return,p)}}}function e$6(E,S){if(SX&&S.memoizedState===null&&(E=S.alternate,E!==null&&(E=E.memoizedState,E!==null&&(E=E.dehydrated,E!==null))))try{z46(E)}catch(p){j5(S,S.return,p)}}function PZ(E){switch(E.tag){case 31:case 13:case 19:var S=E.stateNode;return S===null&&(S=E.stateNode=new my6),S;case 22:return E=E.stateNode,S=E._retryCache,S===null&&(S=E._retryCache=new my6),S;default:throw Error(Y(435,E.tag))}}function Ch(E,S){var p=PZ(E);S.forEach(function(n){if(!p.has(n)){p.add(n);var J6=W61.bind(null,E,n);n.then(J6,J6)}})}function M_(E,S){var p=S.deletions;if(p!==null)for(var n=0;n<p.length;n++){var J6=p[n],E6=E,O1=S;if(kD){var p1=O1;A:for(;p1!==null;){switch(p1.tag){case 27:if(EH){if(Qq(p1.type)){Q$=p1.stateNode,vZ=!1;break A}break}case 5:Q$=p1.stateNode,vZ=!1;break A;case 3:case 4:Q$=p1.stateNode.containerInfo,vZ=!0;break A}p1=p1.return}if(Q$===null)throw Error(Y(160));jk(E6,O1,J6),Q$=null,vZ=!1}else jk(E6,O1,J6);E6=J6.alternate,E6!==null&&(E6.return=null),J6.return=null}if(S.subtreeFlags&13886)for(S=S.child;S!==null;)MB(S,E),S=S.sibling}function MB(E,S){var{alternate:p,flags:n}=E;switch(E.tag){case 0:case 11:case 14:case 15:M_(S,E),jJ(E),n&4&&(F8(3,E,E.return),zA(3,E),F8(5,E,E.return));break;case 1:M_(S,E),jJ(E),n&512&&(Vj||p===null||rY(p,p.return)),n&64&&lh&&(E=E.updateQueue,E!==null&&(n=E.callbacks,n!==null&&(p=E.shared.hiddenCallbacks,E.shared.hiddenCallbacks=p===null?n:p.concat(n))));break;case 26:if(ZV){var J6=Wk;if(M_(S,E),jJ(E),n&512&&(Vj||p===null||rY(p,p.return)),n&4){n=p!==null?p.memoizedState:null;var E6=E.memoizedState;p===null?E6===null?E.stateNode===null?E.stateNode=Qh(J6,E.type,E.memoizedProps,E):Gy6(J6,E.type,E.stateNode):E.stateNode=o61(J6,E6,E.memoizedProps):n!==E6?(n===null?p.stateNode!==null&&fy6(p.stateNode):Zy6(n),E6===null?Gy6(J6,E.type,E.stateNode):o61(J6,E6,E.memoizedProps)):E6===null&&E.stateNode!==null&&Rh(E,E.memoizedProps,p.memoizedProps)}break}case 27:if(EH){M_(S,E),jJ(E),n&512&&(Vj||p===null||rY(p,p.return)),p!==null&&n&4&&Rh(E,E.memoizedProps,p.memoizedProps);break}case 5:if(M_(S,E),jJ(E),n&512&&(Vj||p===null||rY(p,p.return)),kD){if(E.flags&32){J6=E.stateNode;try{q46(J6)}catch(N7){j5(E,E.return,N7)}}n&4&&E.stateNode!=null&&(J6=E.memoizedProps,Rh(E,J6,p!==null?p.memoizedProps:J6)),n&1024&&(By6=!0)}else Ty&&E.alternate!==null&&(E.alternate.stateNode=E.stateNode);break;case 6:if(M_(S,E),jJ(E),n&4&&kD){if(E.stateNode===null)throw Error(Y(162));n=E.memoizedProps,p=p!==null?p.memoizedProps:n,J6=E.stateNode;try{Mm1(J6,p,n)}catch(N7){j5(E,E.return,N7)}}break;case 3:if(ZV?(a61(),J6=Wk,Wk=TO6(S.containerInfo),M_(S,E),Wk=J6):M_(S,E),jJ(E),n&4){if(kD&&SX&&p!==null&&p.memoizedState.isDehydrated)try{l61(S.containerInfo)}catch(N7){j5(E,E.return,N7)}if(Ty){n=S.containerInfo,p=S.pendingChildren;try{MO6(n,p)}catch(N7){j5(E,E.return,N7)}}}By6&&(By6=!1,_0(E));break;case 4:ZV?(p=Wk,Wk=TO6(E.stateNode.containerInfo),M_(S,E),jJ(E),Wk=p):(M_(S,E),jJ(E)),n&4&&Ty&&jw(E.stateNode,E,E.stateNode.pendingChildren);break;case 12:M_(S,E),jJ(E);break;case 31:M_(S,E),jJ(E),n&4&&(n=E.updateQueue,n!==null&&(E.updateQueue=null,Ch(E,n)));break;case 13:M_(S,E),jJ(E),E.child.flags&8192&&E.memoizedState!==null!==(p!==null&&p.memoizedState!==null)&&(UO6=VZ()),n&4&&(n=E.updateQueue,n!==null&&(E.updateQueue=null,Ch(E,n)));break;case 22:J6=E.memoizedState!==null;var O1=p!==null&&p.memoizedState!==null,p1=lh,a8=Vj;if(lh=p1||J6,Vj=a8||O1,M_(S,E),Vj=a8,lh=p1,jJ(E),n&8192&&(S=E.stateNode,S._visibility=J6?S._visibility&-2:S._visibility|1,J6&&(p===null||O1||lh||Vj||JJ(E)),kD))A:if(p=null,kD)for(S=E;;){if(S.tag===5||ZV&&S.tag===26){if(p===null){O1=p=S;try{E6=O1.stateNode,J6?Dy6(E6):u61(O1.stateNode,O1.memoizedProps)}catch(N7){j5(O1,O1.return,N7)}}}else if(S.tag===6){if(p===null){O1=S;try{var gA=O1.stateNode;J6?x61(gA):Of(gA,O1.memoizedProps)}catch(N7){j5(O1,O1.return,N7)}}}else if(S.tag===18){if(p===null){O1=S;try{var i7=O1.stateNode;J6?r61(i7):ZO6(O1.stateNode)}catch(N7){j5(O1,O1.return,N7)}}}else if((S.tag!==22&&S.tag!==23||S.memoizedState===null||S===E)&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===E)break A;for(;S.sibling===null;){if(S.return===null||S.return===E)break A;p===S&&(p=null),S=S.return}p===S&&(p=null),S.sibling.return=S.return,S=S.sibling}n&4&&(n=E.updateQueue,n!==null&&(p=n.retryQueue,p!==null&&(n.retryQueue=null,Ch(E,p))));break;case 19:M_(S,E),jJ(E),n&4&&(n=E.updateQueue,n!==null&&(E.updateQueue=null,Ch(E,n)));break;case 30:break;case 21:break;default:M_(S,E),jJ(E)}}function jJ(E){var S=E.flags;if(S&2){try{for(var p,n=E.return;n!==null;){if(l76(n)){p=n;break}n=n.return}if(kD){if(p==null)throw Error(Y(160));switch(p.tag){case 27:if(EH){var J6=p.stateNode,E6=VD(E);zo(E,E6,J6);break}case 5:var O1=p.stateNode;p.flags&32&&(q46(O1),p.flags&=-33);var p1=VD(E);zo(E,p1,O1);break;case 3:case 4:var a8=p.stateNode.containerInfo,gA=VD(E);Sh(E,gA,a8);break;default:throw Error(Y(161))}}}catch(i7){j5(E,E.return,i7)}E.flags&=-3}S&4096&&(E.flags&=-4097)}function _0(E){if(E.subtreeFlags&1024)for(E=E.child;E!==null;){var S=E;_0(S),S.tag===5&&S.flags&1024&&Om1(S.stateNode),E=E.sibling}}function WZ(E,S){if(S.subtreeFlags&8772)for(S=S.child;S!==null;)IY(E,S.alternate,S),S=S.sibling}function JJ(E){for(E=E.child;E!==null;){var S=E;switch(S.tag){case 0:case 11:case 14:case 15:F8(4,S,S.return),JJ(S);break;case 1:rY(S,S.return);var p=S.stateNode;typeof p.componentWillUnmount==="function"&&TK(S,S.return,p),JJ(S);break;case 27:EH&&_46(S.stateNode);case 26:case 5:rY(S,S.return),JJ(S);break;case 22:S.memoizedState===null&&JJ(S);break;case 30:JJ(S);break;default:JJ(S)}E=E.sibling}}function ZZ(E,S,p){p=p&&(S.subtreeFlags&8772)!==0;for(S=S.child;S!==null;){var n=S.alternate,J6=E,E6=S,O1=E6.flags;switch(E6.tag){case 0:case 11:case 15:ZZ(J6,E6,p),zA(4,E6);break;case 1:if(ZZ(J6,E6,p),n=E6,J6=n.stateNode,typeof J6.componentDidMount==="function")try{J6.componentDidMount()}catch(gA){j5(n,n.return,gA)}if(n=E6,J6=n.updateQueue,J6!==null){var p1=n.stateNode;try{var a8=J6.shared.hiddenCallbacks;if(a8!==null)for(J6.shared.hiddenCallbacks=null,J6=0;J6<a8.length;J6++)Rw(a8[J6],p1)}catch(gA){j5(n,n.return,gA)}}p&&O1&64&&Z4(E6),u5(E6,E6.return);break;case 27:EH&&aU(E6);case 26:case 5:ZZ(J6,E6,p),p&&n===null&&O1&4&&Nz(E6),u5(E6,E6.return);break;case 12:ZZ(J6,E6,p);break;case 31:ZZ(J6,E6,p),p&&O1&4&&Jk(J6,E6);break;case 13:ZZ(J6,E6,p),p&&O1&4&&e$6(J6,E6);break;case 22:E6.memoizedState===null&&ZZ(J6,E6,p),u5(E6,E6.return);break;case 30:break;default:ZZ(J6,E6,p)}S=S.sibling}}function wo(E,S){var p=null;E!==null&&E.memoizedState!==null&&E.memoizedState.cachePool!==null&&(p=E.memoizedState.cachePool.pool),E=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(E=S.memoizedState.cachePool.pool),E!==p&&(E!=null&&E.refCount++,p!=null&&x6(p))}function hh(E,S){E=null,S.alternate!==null&&(E=S.alternate.memoizedState.cache),S=S.memoizedState.cache,S!==E&&(S.refCount++,E!=null&&x6(E))}function Wj(E,S,p,n){if(S.subtreeFlags&10256)for(S=S.child;S!==null;)DB(E,S,p,n),S=S.sibling}function DB(E,S,p,n){var J6=S.flags;switch(S.tag){case 0:case 11:case 15:Wj(E,S,p,n),J6&2048&&zA(9,S);break;case 1:Wj(E,S,p,n);break;case 3:Wj(E,S,p,n),J6&2048&&(E=null,S.alternate!==null&&(E=S.alternate.memoizedState.cache),S=S.memoizedState.cache,S!==E&&(S.refCount++,E!=null&&x6(E)));break;case 12:if(J6&2048){Wj(E,S,p,n),E=S.stateNode;try{var E6=S.memoizedProps,O1=E6.id,p1=E6.onPostCommit;typeof p1==="function"&&p1(O1,S.alternate===null?"mount":"update",E.passiveEffectDuration,-0)}catch(a8){j5(S,S.return,a8)}}else Wj(E,S,p,n);break;case 31:Wj(E,S,p,n);break;case 13:Wj(E,S,p,n);break;case 23:break;case 22:E6=S.stateNode,O1=S.alternate,S.memoizedState!==null?E6._visibility&2?Wj(E,S,p,n):tU(E,S):E6._visibility&2?Wj(E,S,p,n):(E6._visibility|=2,Ih(E,S,p,n,(S.subtreeFlags&10256)!==0||!1)),J6&2048&&wo(O1,S);break;case 24:Wj(E,S,p,n),J6&2048&&hh(S.alternate,S);break;default:Wj(E,S,p,n)}}function Ih(E,S,p,n,J6){J6=J6&&((S.subtreeFlags&10256)!==0||!1);for(S=S.child;S!==null;){var E6=E,O1=S,p1=p,a8=n,gA=O1.flags;switch(O1.tag){case 0:case 11:case 15:Ih(E6,O1,p1,a8,J6),zA(8,O1);break;case 23:break;case 22:var i7=O1.stateNode;O1.memoizedState!==null?i7._visibility&2?Ih(E6,O1,p1,a8,J6):tU(E6,O1):(i7._visibility|=2,Ih(E6,O1,p1,a8,J6)),J6&&gA&2048&&wo(O1.alternate,O1);break;case 24:Ih(E6,O1,p1,a8,J6),J6&&gA&2048&&hh(O1.alternate,O1);break;default:Ih(E6,O1,p1,a8,J6)}S=S.sibling}}function tU(E,S){if(S.subtreeFlags&10256)for(S=S.child;S!==null;){var p=E,n=S,J6=n.flags;switch(n.tag){case 22:tU(p,n),J6&2048&&wo(n.alternate,n);break;case 24:tU(p,n),J6&2048&&hh(n.alternate,n);break;default:tU(p,n)}S=S.sibling}}function bh(E,S,p){if(E.subtreeFlags&No)for(E=E.child;E!==null;)eU(E,S,p),E=E.sibling}function eU(E,S,p){switch(E.tag){case 26:if(bh(E,S,p),E.flags&No)if(E.memoizedState!==null)Uh(p,Wk,E.memoizedState,E.memoizedProps);else{var{stateNode:n,type:J6}=E;E=E.memoizedProps,((S&335544128)===S||t76(J6,E))&&Hy6(p,n,J6,E)}break;case 5:bh(E,S,p),E.flags&No&&(n=E.stateNode,J6=E.type,E=E.memoizedProps,((S&335544128)===S||t76(J6,E))&&Hy6(p,n,J6,E));break;case 3:case 4:ZV?(n=Wk,Wk=TO6(E.stateNode.containerInfo),bh(E,S,p),Wk=n):bh(E,S,p);break;case 22:E.memoizedState===null&&(n=E.alternate,n!==null&&n.memoizedState!==null?(n=No,No=16777216,bh(E,S,p),No=n):bh(E,S,p));break;default:bh(E,S,p)}}function Ap(E){var S=E.alternate;if(S!==null&&(E=S.child,E!==null)){S.child=null;do S=E.sibling,E.sibling=null,E=S;while(E!==null)}}function Mk(E){var S=E.deletions;if((E.flags&16)!==0){if(S!==null)for(var p=0;p<S.length;p++){var n=S[p];$M=n,n76(n,E)}Ap(E)}if(E.subtreeFlags&10256)for(E=E.child;E!==null;)oL6(E),E=E.sibling}function oL6(E){switch(E.tag){case 0:case 11:case 15:Mk(E),E.flags&2048&&F8(9,E,E.return);break;case 3:Mk(E);break;case 12:Mk(E);break;case 22:var S=E.stateNode;E.memoizedState!==null&&S._visibility&2&&(E.return===null||E.return.tag!==13)?(S._visibility&=-3,qp(E)):Mk(E);break;default:Mk(E)}}function qp(E){var S=E.deletions;if((E.flags&16)!==0){if(S!==null)for(var p=0;p<S.length;p++){var n=S[p];$M=n,n76(n,E)}Ap(E)}for(E=E.child;E!==null;){switch(S=E,S.tag){case 0:case 11:case 15:F8(8,S,S.return),qp(S);break;case 22:p=S.stateNode,p._visibility&2&&(p._visibility&=-3,qp(S));break;default:qp(S)}E=E.sibling}}function n76(E,S){for(;$M!==null;){var p=$M;switch(p.tag){case 0:case 11:case 15:F8(8,p,S);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var n=p.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:x6(p.memoizedState.cache)}if(n=p.child,n!==null)n.return=p,$M=n;else A:for(p=E;$M!==null;){n=$M;var{sibling:J6,return:E6}=n;if(i76(n),n===p){$M=null;break A}if(J6!==null){J6.return=E6,$M=J6;break A}$M=E6}}}function _o(E){var S=s76(E);if(S!=null){if(typeof S.memoizedProps["data-testname"]!=="string")throw Error(Y(364));return S}if(E=I61(E),E===null)throw Error(Y(362));return E.stateNode.current}function Jw(E,S){var p=E.tag;switch(S.$$typeof){case BO6:if(E.type===S.value)return!0;break;case mO6:A:{S=S.value,E=[E,0];for(p=0;p<E.length;){var n=E[p++],J6=n.tag,E6=E[p++],O1=S[E6];if(J6!==5&&J6!==26&&J6!==27||!jo(n)){for(;O1!=null&&Jw(n,O1);)E6++,O1=S[E6];if(E6===S.length){S=!0;break A}else for(n=n.child;n!==null;)E.push(n,E6),n=n.sibling}}S=!1}return S;case gO6:if((p===5||p===26||p===27)&&Jy6(E.stateNode,S.value))return!0;break;case QO6:if(p===5||p===6||p===26||p===27){if(E=jy6(E),E!==null&&0<=E.indexOf(S.value))return!0}break;case FO6:if(p===5||p===26||p===27){if(E=E.memoizedProps["data-testname"],typeof E==="string"&&E.toLowerCase()===S.value.toLowerCase())return!0}break;default:throw Error(Y(365))}return!1}function e_(E){switch(E.$$typeof){case BO6:return"<"+(j(E.value)||"Unknown")+">";case mO6:return":has("+(e_(E)||"")+")";case gO6:return'[role="'+E.value+'"]';case QO6:return'"'+E.value+'"';case FO6:return'[data-testname="'+E.value+'"]';default:throw Error(Y(365))}}function AO6(E,S){var p=[];E=[E,0];for(var n=0;n<E.length;){var J6=E[n++],E6=J6.tag,O1=E[n++],p1=S[O1];if(E6!==5&&E6!==26&&E6!==27||!jo(J6)){for(;p1!=null&&Jw(J6,p1);)O1++,p1=S[O1];if(O1===S.length)p.push(J6);else for(J6=J6.child;J6!==null;)E.push(J6,O1),J6=J6.sibling}}return p}function r76(E,S){if(!e76)throw Error(Y(363));E=_o(E),E=AO6(E,S),S=[],E=Array.from(E);for(var p=0;p<E.length;){var n=E[p++],J6=n.tag;if(J6===5||J6===26||J6===27)jo(n)||S.push(n.stateNode);else for(n=n.child;n!==null;)E.push(n),n=n.sibling}return S}function yX(){return(D9&2)!==0&&I9!==0?I9&-I9:VK.T!==null?v6():L61()}function qO6(){if(Df===0)if((I9&536870912)===0||r9){var E=vO6;vO6<<=1,(vO6&3932160)===0&&(vO6=262144),Df=E}else Df=536870912;return E=Mf.current,E!==null&&(E.flags|=32),Df}function wM(E,S,p){if(E===_2&&(Mw===2||Mw===9)||E.cancelPendingCommit!==null)Yf(E,0),RX(E,I9,Df,!1);if(N(E,p),(D9&2)===0||E!==_2)E===_2&&((D9&2)===0&&(Tp|=p),bO===4&&RX(E,I9,Df,!1)),t6(E)}function xh(E,S,p){if((D9&6)!==0)throw Error(Y(327));var n=!p&&(S&127)===0&&(S&E.expiredLanes)===0||Z(E,S),J6=n?x7(E,S):l7(E,S,!0),E6=n;do{if(J6===0){vo&&!n&&RX(E,S,0,!1);break}else{if(p=E.current.alternate,E6&&!XB(p)){J6=l7(E,S,!1),E6=!1;continue}if(J6===2){if(E6=S,E.errorRecoveryDisabledLanes&E6)var O1=0;else O1=E.pendingLanes&-536870913,O1=O1!==0?O1:O1&536870912?536870912:0;if(O1!==0){S=O1;A:{var p1=E;J6=X46;var a8=SX&&p1.current.memoizedState.isDehydrated;if(a8&&(Yf(p1,O1).flags|=256),O1=l7(p1,O1,!1),O1!==2){if(gy6&&!a8){p1.errorRecoveryDisabledLanes|=E6,Tp|=E6,J6=4;break A}E6=EZ,EZ=J6,E6!==null&&(EZ===null?EZ=E6:EZ.push.apply(EZ,E6))}J6=O1}if(E6=!1,J6!==2)continue}}if(J6===1){Yf(E,0),RX(E,S,0,!0);break}A:{switch(n=E,E6=J6,E6){case 0:case 1:throw Error(Y(345));case 4:if((S&4194048)!==S)break;case 6:RX(n,S,Df,!ih);break A;case 2:EZ=null;break;case 3:case 5:break;default:throw Error(Y(329))}if((S&62914560)===S&&(J6=UO6+300-VZ(),10<J6)){if(RX(n,S,Df,!ih),W(n,0,!0)!==0)break A;fk=S,n.timeoutHandle=Ym1($o.bind(null,n,p,EZ,pO6,Qy6,S,Df,Tp,ko,ih,E6,"Throttled",-0,0),J6);break A}$o(n,p,EZ,pO6,Qy6,S,Df,Tp,ko,ih,E6,null,-0,0)}}break}while(1);t6(E)}function $o(E,S,p,n,J6,E6,O1,p1,a8,gA,i7,N7,h4,F3){if(E.timeoutHandle=_p,N7=S.subtreeFlags,N7&8192||(N7&16785408)===16785408){N7=Oy6(),eU(S,E6,N7);var SD=(E6&62914560)===E6?UO6-VZ():(E6&4194048)===E6?$11-VZ():0;if(SD=S61(N7,SD),SD!==null){fk=E6,E.cancelPendingCommit=SD(Zj.bind(null,E,S,E6,p,n,J6,O1,p1,a8,i7,N7,null,h4,F3)),RX(E,E6,O1,!gA);return}}Zj(E,S,E6,p,n,J6,O1,p1,a8)}function XB(E){for(var S=E;;){var p=S.tag;if((p===0||p===11||p===15)&&S.flags&16384&&(p=S.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var n=0;n<p.length;n++){var J6=p[n],E6=J6.getSnapshot;J6=J6.value;try{if(!LD(E6(),J6))return!1}catch(O1){return!1}}if(p=S.child,S.subtreeFlags&16384&&p!==null)p.return=S,S=p;else{if(S===E)break;for(;S.sibling===null;){if(S.return===null||S.return===E)return!0;S=S.return}S.sibling.return=S.return,S=S.sibling}}return!0}function RX(E,S,p,n){S&=~Fy6,S&=~Tp,E.suspendedLanes|=S,E.pingedLanes&=~S,n&&(E.warmLanes|=S),n=E.expirationTimes;for(var J6=S;0<J6;){var E6=31-Hf(J6),O1=1<<E6;n[E6]=-1,J6&=~O1}p!==0&&y(E,p,S)}function GZ(){return(D9&6)===0?(L6(0,!1),!1):!0}function uh(){if(X9!==null){if(Mw===0)var E=X9.return;else E=X9,dh=Mp=null,R1(E),Zp=null,j46=0,E=X9;for(;E!==null;)K8(E.alternate,E),E=E.return;X9=null}}function Yf(E,S){var p=E.timeoutHandle;p!==_p&&(E.timeoutHandle=_p,$y6(p)),p=E.cancelPendingCommit,p!==null&&(E.cancelPendingCommit=null,p()),fk=0,uh(),_2=E,X9=p=Bh(E.current,null),I9=S,Mw=0,kZ=null,ih=!1,vo=Z(E,S),gy6=!1,ko=Df=Fy6=Tp=Zk=bO=0,EZ=X46=null,Qy6=!1,(S&8)!==0&&(S|=S&32);var n=E.entangledLanes;if(n!==0)for(E=E.entanglements,n&=S;0<n;){var J6=31-Hf(n),E6=1<<J6;S|=E[J6],n&=~E6}return nh=S,a7(),p}function o76(E,S){A5=null,VK.H=M46,S===Go||S===SO6?(S=_7(),Mw=3):S===NZ?(S=_7(),Mw=4):Mw=S===xy6?8:S!==null&&typeof S==="object"&&typeof S.then==="function"?6:1,kZ=S,X9===null&&(bO=1,LX(E,t(S,E.current)))}function KO6(){var E=Mf.current;return E===null?!0:(I9&4194048)===I9?VV===null?!0:!1:(I9&62914560)===I9||(I9&536870912)!==0?E===VV:!1}function L1(){var E=VK.H;return VK.H=M46,E===null?M46:E}function S8(){var E=VK.A;return VK.A=xm1,E}function qA(){bO=4,ih||(I9&4194048)!==I9&&Mf.current!==null||(vo=!0),(Zk&134217727)===0&&(Tp&134217727)===0||_2===null||RX(_2,I9,Df,!1)}function l7(E,S,p){var n=D9;D9|=2;var J6=L1(),E6=S8();if(_2!==E||I9!==S)pO6=null,Yf(E,S);S=!1;var O1=bO;A:do try{if(Mw!==0&&X9!==null){var p1=X9,a8=kZ;switch(Mw){case 8:uh(),O1=6;break A;case 3:case 2:case 9:case 6:Mf.current===null&&(S=!0);var gA=Mw;if(Mw=0,kZ=null,mq(E,p1,a8,gA),p&&vo){O1=0;break A}break;default:gA=Mw,Mw=0,kZ=null,mq(E,p1,a8,gA)}}tA(),O1=bO;break}catch(i7){o76(E,i7)}while(1);return S&&E.shellSuspendCounter++,dh=Mp=null,D9=n,VK.H=J6,VK.A=E6,X9===null&&(_2=null,I9=0,a7()),O1}function tA(){for(;X9!==null;)KK(X9)}function x7(E,S){var p=D9;D9|=2;var n=L1(),J6=S8();_2!==E||I9!==S?(pO6=null,P46=VZ()+500,Yf(E,S)):vo=Z(E,S);A:do try{if(Mw!==0&&X9!==null){S=X9;var E6=kZ;q:switch(Mw){case 1:Mw=0,kZ=null,mq(E,S,E6,1);break;case 2:case 9:if(i1(E6)){Mw=0,kZ=null,hq(S);break}S=function(){Mw!==2&&Mw!==9||_2!==E||(Mw=7),t6(E)},E6.then(S,S);break A;case 3:Mw=7;break A;case 4:Mw=5;break A;case 7:i1(E6)?(Mw=0,kZ=null,hq(S)):(Mw=0,kZ=null,mq(E,S,E6,7));break;case 5:var O1=null;switch(X9.tag){case 26:O1=X9.memoizedState;case 5:case 27:var p1=X9,a8=p1.type,gA=p1.pendingProps;if(O1?s61(O1):R61(p1.stateNode,a8,gA)){Mw=0,kZ=null;var i7=p1.sibling;if(i7!==null)X9=i7;else{var N7=p1.return;N7!==null?(X9=N7,Zq(N7)):X9=null}break q}}Mw=0,kZ=null,mq(E,S,E6,5);break;case 6:Mw=0,kZ=null,mq(E,S,E6,6);break;case 8:uh(),bO=6;break A;default:throw Error(Y(462))}}a6();break}catch(h4){o76(E,h4)}while(1);if(dh=Mp=null,VK.H=n,VK.A=J6,D9=p,X9!==null)return 0;return _2=null,I9=0,a7(),bO}function a6(){for(;X9!==null&&!e61();)KK(X9)}function KK(E){var S=oU(E.alternate,E,nh);E.memoizedProps=E.pendingProps,S===null?Zq(E):X9=S}function hq(E){var S=E,p=S.alternate;switch(S.tag){case 15:case 0:S=CO(p,S,S.pendingProps,S.type,void 0,I9);break;case 11:S=CO(p,S,S.pendingProps,S.type.render,S.ref,I9);break;case 5:R1(S);default:K8(p,S),S=X9=Z61(S,nh),S=oU(p,S,nh)}E.memoizedProps=E.pendingProps,S===null?Zq(E):X9=S}function mq(E,S,p,n){dh=Mp=null,R1(S),Zp=null,j46=0;var J6=S.return;try{if(JB(E,J6,S,p,I9)){bO=1,LX(E,t(p,E.current)),X9=null;return}}catch(E6){if(J6!==null)throw X9=J6,E6;bO=1,LX(E,t(p,E.current)),X9=null;return}if(S.flags&32768){if(r9||n===1)E=!0;else if(vo||(I9&536870912)!==0)E=!1;else if(ih=E=!0,n===2||n===9||n===3||n===6)n=Mf.current,n!==null&&n.tag===13&&(n.flags|=16384);vz(S,E)}else Zq(S)}function Zq(E){var S=E;do{if((S.flags&32768)!==0){vz(S,ih);return}E=S.return;var p=t$6(S.alternate,S,nh);if(p!==null){X9=p;return}if(S=S.sibling,S!==null){X9=S;return}X9=S=E}while(S!==null);bO===0&&(bO=5)}function vz(E,S){do{var p=Xy(E.alternate,E);if(p!==null){p.flags&=32767,X9=p;return}if(p=E.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!S&&(E=E.sibling,E!==null)){X9=E;return}X9=E=p}while(E!==null);bO=6,X9=null}function Zj(E,S,p,n,J6,E6,O1,p1,a8){E.cancelPendingCommit=null;do Py();while(DJ!==0);if((D9&6)!==0)throw Error(Y(327));if(S!==null){if(S===E.current)throw Error(Y(177));if(E6=S.lanes|S.childLanes,E6|=hy6,v(E,p,E6,O1,p1,a8),E===_2&&(X9=_2=null,I9=0),Vp=S,rh=E,fk=p,dO6=E6,cO6=J6,Uy6=n,(S.subtreeFlags&10256)!==0||(S.flags&10256)!==0?(E.callbackNode=null,E.callbackPriority=0,Wy(ED,function(){return a76(),null})):(E.callbackNode=null,E.callbackPriority=0),n=(S.flags&13878)!==0,(S.subtreeFlags&13878)!==0||n){n=VK.T,VK.T=null,J6=Dk(),_M(2),O1=D9,D9|=4;try{sU(E,S,p)}finally{D9=O1,_M(J6),VK.T=n}}DJ=1,h9(),A$(),zf()}}function h9(){if(DJ===1){DJ=0;var E=rh,S=Vp,p=(S.flags&13878)!==0;if((S.subtreeFlags&13878)!==0||p){p=VK.T,VK.T=null;var n=Dk();_M(2);var J6=D9;D9|=4;try{MB(S,E),wp(E.containerInfo)}finally{D9=J6,_M(n),VK.T=p}}E.current=S,DJ=2}}function A$(){if(DJ===2){DJ=0;var E=rh,S=Vp,p=(S.flags&8772)!==0;if((S.subtreeFlags&8772)!==0||p){p=VK.T,VK.T=null;var n=Dk();_M(2);var J6=D9;D9|=4;try{IY(E,S.alternate,S)}finally{D9=J6,_M(n),VK.T=p}}DJ=3}}function zf(){if(DJ===4||DJ===3){DJ=0,Rm1();var E=rh,S=Vp,p=fk,n=Uy6;(S.subtreeFlags&10256)!==0||(S.flags&10256)!==0?DJ=5:(DJ=0,Vp=rh=null,PB(E,E.pendingLanes));var J6=E.pendingLanes;if(J6===0&&(Gk=null),x(p),S=S.stateNode,jf&&typeof jf.onCommitFiberRoot==="function")try{jf.onCommitFiberRoot(O46,S,void 0,(S.current.flags&128)===128)}catch(a8){}if(n!==null){S=VK.T,J6=Dk(),_M(2),VK.T=null;try{for(var E6=E.onRecoverableError,O1=0;O1<n.length;O1++){var p1=n[O1];E6(p1.value,{componentStack:p1.stack})}}finally{VK.T=S,_M(J6)}}(fk&3)!==0&&Py(),t6(E),J6=E.pendingLanes,(p&261930)!==0&&(J6&42)!==0?E===py6?Eo++:(Eo=0,py6=E):Eo=0,SX&&i61(),L6(0,!1)}}function PB(E,S){(E.pooledCacheLanes&=S)===0&&(S=E.pooledCache,S!=null&&(E.pooledCache=null,x6(S)))}function Py(){return h9(),A$(),zf(),a76()}function a76(){if(DJ!==5)return!1;var E=rh,S=dO6;dO6=0;var p=x(fk),n=32>p?32:p;p=VK.T;var J6=Dk();try{_M(n),VK.T=null,n=cO6,cO6=null;var E6=rh,O1=fk;if(DJ=0,Vp=rh=null,fk=0,(D9&6)!==0)throw Error(Y(331));var p1=D9;if(D9|=4,oL6(E6.current),DB(E6,E6.current,O1,n),D9=p1,L6(0,!1),jf&&typeof jf.onPostCommitFiberRoot==="function")try{jf.onPostCommitFiberRoot(O46,E6)}catch(a8){}return!0}finally{_M(J6),VK.T=p,PB(E,S)}}function Kp(E,S,p){S=t(p,S),S=qf(E.stateNode,S,2),E=fz(E,S,2),E!==null&&(N(E,2),t6(E))}function j5(E,S,p){if(E.tag===3)Kp(E,E,p);else for(;S!==null;){if(S.tag===3){Kp(S,E,p);break}else if(S.tag===1){var n=S.stateNode;if(typeof S.type.getDerivedStateFromError==="function"||typeof n.componentDidCatch==="function"&&(Gk===null||!Gk.has(n))){E=t(p,E),p=PV(2),n=fz(S,p,2),n!==null&&(_k(p,n,S,E),N(n,2),t6(n));break}}S=S.return}}function YO6(E,S,p){var n=E.pingCache;if(n===null){n=E.pingCache=new um1;var J6=new Set;n.set(S,J6)}else J6=n.get(S),J6===void 0&&(J6=new Set,n.set(S,J6));J6.has(p)||(gy6=!0,J6.add(p),E=P61.bind(null,E,S,p),S.then(E,E))}function P61(E,S,p){var n=E.pingCache;n!==null&&n.delete(S),E.pingedLanes|=E.suspendedLanes&p,E.warmLanes&=~p,_2===E&&(I9&p)===p&&(bO===4||bO===3&&(I9&62914560)===I9&&300>VZ()-UO6?(D9&2)===0&&Yf(E,0):Fy6|=p,ko===I9&&(ko=0)),t6(E)}function aL6(E,S){S===0&&(S=f()),E=Mq(E,S),E!==null&&(N(E,S),t6(E))}function zO6(E){var S=E.memoizedState,p=0;S!==null&&(p=S.retryLane),aL6(E,p)}function W61(E,S){var p=0;switch(E.tag){case 31:case 13:var{stateNode:n,memoizedState:J6}=E;J6!==null&&(p=J6.retryLane);break;case 19:n=E.stateNode;break;case 22:n=E.stateNode._retryCache;break;default:throw Error(Y(314))}n!==null&&n.delete(S),aL6(E,p)}function Wy(E,S){return $46(E,S)}function Am1(E,S,p,n){this.tag=E,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=S,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sL6(E){return E=E.prototype,!(!E||!E.isReactComponent)}function Bh(E,S){var p=E.alternate;return p===null?(p=q(E.tag,S,E.key,E.mode),p.elementType=E.elementType,p.type=E.type,p.stateNode=E.stateNode,p.alternate=E,E.alternate=p):(p.pendingProps=S,p.type=E.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=E.flags&65011712,p.childLanes=E.childLanes,p.lanes=E.lanes,p.child=E.child,p.memoizedProps=E.memoizedProps,p.memoizedState=E.memoizedState,p.updateQueue=E.updateQueue,S=E.dependencies,p.dependencies=S===null?null:{lanes:S.lanes,firstContext:S.firstContext},p.sibling=E.sibling,p.index=E.index,p.ref=E.ref,p.refCleanup=E.refCleanup,p}function Z61(E,S){E.flags&=65011714;var p=E.alternate;return p===null?(E.childLanes=0,E.lanes=S,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=p.childLanes,E.lanes=p.lanes,E.child=p.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=p.memoizedProps,E.memoizedState=p.memoizedState,E.updateQueue=p.updateQueue,E.type=p.type,S=p.dependencies,E.dependencies=S===null?null:{lanes:S.lanes,firstContext:S.firstContext}),E}function wO6(E,S,p,n,J6,E6){var O1=0;if(n=E,typeof E==="function")sL6(E)&&(O1=1);else if(typeof E==="string")O1=ZV&&EH?w46(E,p,Gj.current)?26:Op(E)?27:5:ZV?w46(E,p,Gj.current)?26:5:EH?Op(E)?27:5:5;else A:switch(E){case Yp:return E=q(31,p,S,J6),E.elementType=Yp,E.lanes=E6,E;case Oo:return wf(p.children,J6,E6,S);case Ky6:O1=8,J6|=24;break;case Yy6:return E=q(12,p,S,J6|2),E.elementType=Yy6,E.lanes=E6,E;case fZ:return E=q(13,p,S,J6),E.elementType=fZ,E.lanes=E6,E;case zy6:return E=q(19,p,S,J6),E.elementType=zy6,E.lanes=E6,E;default:if(typeof E==="object"&&E!==null)switch(E.$$typeof){case Gy:O1=10;break A;case Zy:O1=9;break A;case gh:O1=11;break A;case $O6:O1=14;break A;case Fh:O1=16,n=null;break A}O1=29,p=Error(Y(130,E===null?"null":typeof E,"")),n=null}return S=q(O1,p,S,J6),S.elementType=E,S.type=n,S.lanes=E6,S}function wf(E,S,p,n){return E=q(7,E,n,S),E.lanes=p,E}function tL6(E,S,p){return E=q(6,E,null,S),E.lanes=p,E}function G61(E){var S=q(18,null,null,0);return S.stateNode=E,S}function _f(E,S,p){return S=q(4,E.children!==null?E.children:[],E.key,S),S.lanes=p,S.stateNode={containerInfo:E.containerInfo,pendingChildren:null,implementation:E.implementation},S}function qm1(E,S,p,n,J6,E6,O1,p1,a8){this.tag=1,this.containerInfo=E,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_p,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=V(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=V(0),this.hiddenUpdates=V(null),this.identifierPrefix=n,this.onUncaughtError=J6,this.onCaughtError=E6,this.onRecoverableError=O1,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a8,this.incompleteTransitions=new Map}function f61(E,S,p,n,J6,E6,O1,p1,a8,gA,i7,N7){return E=new qm1(E,S,p,O1,a8,gA,i7,N7,p1),S=1,E6===!0&&(S|=24),E6=q(3,null,null,S),E.current=E6,E6.stateNode=E,S=R6(),S.refCount++,E.pooledCache=S,S.refCount++,E6.memoizedState={element:n,isDehydrated:p,cache:S},Gz(E6),E}function T61(E){if(!E)return GV;return E=GV,E}function V61(E){var S=E._reactInternals;if(S===void 0){if(typeof E.render==="function")throw Error(Y(188));throw E=Object.keys(E).join(","),Error(Y(268,E))}return E=_(S),E=E!==null?$(E):null,E===null?null:Ho(E.stateNode)}function N61(E,S,p,n,J6,E6){J6=T61(J6),n.context===null?n.context=J6:n.pendingContext=J6,n=l9(S),n.payload={element:p},E6=E6===void 0?null:E6,E6!==null&&(n.callback=E6),p=fz(E,n,S),p!==null&&(wM(p,E,S),a_(p,E,S))}function eL6(E,S){if(E=E.memoizedState,E!==null&&E.dehydrated!==null){var p=E.retryLane;E.retryLane=p!==0&&p<S?p:S}}function _O6(E,S){eL6(E,S),(E=E.alternate)&&eL6(E,S)}var M9={},Ay6=Object.assign,qy6=Symbol.for("react.element"),WB=Symbol.for("react.transitional.element"),mh=Symbol.for("react.portal"),Oo=Symbol.for("react.fragment"),Ky6=Symbol.for("react.strict_mode"),Yy6=Symbol.for("react.profiler"),Zy=Symbol.for("react.consumer"),Gy=Symbol.for("react.context"),gh=Symbol.for("react.forward_ref"),fZ=Symbol.for("react.suspense"),zy6=Symbol.for("react.suspense_list"),$O6=Symbol.for("react.memo"),Fh=Symbol.for("react.lazy"),Yp=Symbol.for("react.activity"),ZB=Symbol.for("react.memo_cache_sentinel"),wy6=Symbol.iterator,Km1=Symbol.for("react.client.reference"),zp=Array.isArray,VK=TJ8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,v61=A.rendererVersion,ND=A.rendererPackageName,OO6=A.extraDevToolsConfig,Ho=A.getPublicInstance,fy=A.getRootHostContext,_y6=A.getChildHostContext,HO6=A.prepareForCommit,wp=A.resetAfterCommit,k61=A.createInstance;A.cloneMutableInstance;var{appendInitialChild:vD,finalizeInitialChildren:jO6,shouldSetTextContent:JO6,createTextInstance:E61}=A;A.cloneMutableTextInstance;var{scheduleTimeout:Ym1,cancelTimeout:$y6,noTimeout:_p,isPrimaryRenderer:$f}=A;A.warnsIfNotActing;var{supportsMutation:kD,supportsPersistence:Ty,supportsHydration:SX,getInstanceFromNode:s76}=A;A.beforeActiveInstanceBlur;var zm1=A.preparePortalMount;A.prepareScopeUpdate,A.getInstanceFromScope;var{setCurrentUpdatePriority:_M,getCurrentUpdatePriority:Dk,resolveUpdatePriority:L61}=A;A.trackSchedulerEvent,A.resolveEventType,A.resolveEventTimeStamp;var{shouldAttemptEagerTransition:wm1,detachDeletedInstance:_m1}=A;A.requestPostPaintCallback;var{maySuspendCommit:$m1,maySuspendCommitOnUpdate:y61,maySuspendCommitInSyncRender:t76,preloadInstance:R61,startSuspendingCommit:Oy6,suspendInstance:Hy6}=A;A.suspendOnActiveViewTransition;var S61=A.waitForCommitToBeReady;A.getSuspendedCommitReason;var{NotPendingTransition:$p,HostTransitionContext:Vy,resetFormInstance:Om1}=A;A.bindToConsole;var{supportsMicrotasks:C61,scheduleMicrotask:h61,supportsTestSelectors:e76,findFiberRoot:I61,getBoundingRect:Hm1,getTextContent:jy6,isHiddenSubtree:jo,matchAccessibilityRole:Jy6,setFocusIfFocusable:jm1,setupIntersectionObserver:My6,appendChild:B5,appendChildToContainer:Jm1,commitTextUpdate:Mm1,commitMount:A46,commitUpdate:b61,insertBefore:Dm1,insertInContainerBefore:Xm1,removeChild:WV,removeChildFromContainer:Pm1,resetTextContent:q46,hideInstance:Dy6,hideTextInstance:x61,unhideInstance:u61,unhideTextInstance:Of}=A;A.cancelViewTransitionName,A.cancelRootViewTransitionName,A.restoreRootViewTransitionName,A.cloneRootViewTransitionContainer,A.removeRootViewTransitionClone,A.measureClonedInstance,A.hasInstanceChanged,A.hasInstanceAffectedParent,A.startViewTransition,A.startGestureTransition,A.stopViewTransition,A.getCurrentGestureOffset,A.createViewTransitionInstance;var GB=A.clearContainer;A.createFragmentInstance,A.updateFragmentInstanceFiber,A.commitNewChildToFragmentInstance,A.deleteChildFromFragmentInstance;var{cloneInstance:Xy6,createContainerChildSet:Py6,appendChildToContainerChildSet:K46,finalizeContainerChildren:B61,replaceContainerChildren:MO6,cloneHiddenInstance:Wy6,cloneHiddenTextInstance:DO6,isSuspenseInstancePending:Y46,isSuspenseInstanceFallback:Ny,getSuspenseInstanceFallbackErrorDetails:Wm1,registerSuspenseInstanceRetry:fB,canHydrateFormStateMarker:m61,isFormStateMarkerMatching:g61,getNextHydratableSibling:XO6,getNextHydratableSiblingAfterSingleton:Zm1,getFirstHydratableChild:Gm1,getFirstHydratableChildWithinContainer:fm1,getFirstHydratableChildWithinActivityInstance:F61,getFirstHydratableChildWithinSuspenseInstance:Q61,getFirstHydratableChildWithinSingleton:Tm1,canHydrateInstance:U61,canHydrateTextInstance:p61,canHydrateActivityInstance:TZ,canHydrateSuspenseInstance:vy,hydrateInstance:Vm1,hydrateTextInstance:Nm1,hydrateActivityInstance:PO6,hydrateSuspenseInstance:Jo,getNextHydratableInstanceAfterActivityInstance:d61,getNextHydratableInstanceAfterSuspenseInstance:c61,commitHydratedInstance:vm1,commitHydratedContainer:l61,commitHydratedActivityInstance:Mo,commitHydratedSuspenseInstance:z46,finalizeHydratedChildren:km1,flushHydrationEvents:i61}=A;A.clearActivityBoundary;var n61=A.clearSuspenseBoundary;A.clearActivityBoundaryFromContainer;var{clearSuspenseBoundaryFromContainer:WO6,hideDehydratedBoundary:r61,unhideDehydratedBoundary:ZO6,shouldDeleteUnhydratedTailInstances:GO6}=A;A.diffHydratedPropsForDevWarnings,A.diffHydratedTextForDevWarnings,A.describeHydratableInstanceForDevWarnings;var{validateHydratableInstance:fO6,validateHydratableTextInstance:Em1,supportsResources:ZV,isHostHoistableType:w46,getHoistableRoot:TO6,getResource:VO6,acquireResource:o61,releaseResource:Zy6,hydrateHoistable:Qh,mountHoistable:Gy6,unmountHoistable:fy6,createHoistableInstance:Lm1,prepareToCommitHoistables:a61,mayResourceSuspendCommit:ym1,preloadResource:s61,suspendResource:Uh,supportsSingletons:EH,resolveSingletonInstance:NO6,acquireSingletonInstance:Ty6,releaseSingletonInstance:_46,isHostSingletonType:Op,isSingletonScope:Qq}=A,Do=[],TB=-1,GV={},Hf=Math.clz32?Math.clz32:X,Vy6=Math.log,t61=Math.LN2,MJ=256,vO6=262144,kO6=4194304,$46=VH1,Ny6=ZJ8,e61=fJ8,Rm1=GJ8,VZ=Zg,A11=PJ8,ph=WJ8,ED=TH1,vy6=XJ8,Sm1=void 0,ky6=void 0,O46=null,jf=null,LD=typeof Object.is==="function"?Object.is:g,Ey6=typeof reportError==="function"?reportError:function(E){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E==="object"&&E!==null&&typeof E.message==="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(S))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",E);return}console.error(E)},q11=Object.prototype.hasOwnProperty,Ly6,K11,yy6=!1,Y11=new WeakMap,Hp=[],jp=0,EO6=null,Jp=0,Jf=[],CX=0,ky=null,Xk=1,Pk="",Gj=J(null),Xo=J(null),yD=J(null),Ey=J(null),RD=null,q$=null,r9=!1,VB=null,fV=!1,Ry6=Error(Y(519)),LO6=J(null),Mp=null,dh=null,Cm1=typeof AbortController<"u"?AbortController:function(){var E=[],S=this.signal={aborted:!1,addEventListener:function(p,n){E.push(n)}};this.abort=function(){S.aborted=!0,E.forEach(function(p){return p()})}},hm1=VH1,Im1=TH1,F$={$$typeof:Gy,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},H46=null,Dp=null,yO6=!1,RO6=!1,Sy6=!1,Xp=0,Po=null,Cy6=0,Wo=0,Zo=null,z11=VK.S;VK.S=function(E,S){$11=VZ(),typeof S==="object"&&S!==null&&typeof S.then==="function"&&A1(E,S),z11!==null&&z11(E,S)};var Pp=J(null),Go=Error(Y(460)),NZ=Error(Y(474)),SO6=Error(Y(542)),CO6={then:function(){}},Wp=null,Zp=null,j46=0,Gp=aA(!0),w11=aA(!1),TV=[],NB=0,hy6=0,vB=!1,Iy6=!1,fo=J(null),hO6=J(0),Mf=J(null),VV=null,LH=J(0),ch=0,A5=null,bw=null,fj=null,IO6=!1,To=!1,fp=!1,bO6=0,J46=0,Vo=null,bm1=0,M46={readContext:V6,use:C1,useCallback:C4,useContext:C4,useEffect:C4,useImperativeHandle:C4,useLayoutEffect:C4,useInsertionEffect:C4,useMemo:C4,useReducer:C4,useRef:C4,useState:C4,useDebugValue:C4,useDeferredValue:C4,useTransition:C4,useSyncExternalStore:C4,useId:C4,useHostTransitionStatus:C4,useFormState:C4,useActionState:C4,useOptimistic:C4,useMemoCache:C4,useCacheRefresh:C4};M46.useEffectEvent=C4;var xO6={readContext:V6,use:C1,useCallback:function(E,S){return F1().memoizedState=[E,S===void 0?null:S],E},useContext:V6,useEffect:z2,useImperativeHandle:function(E,S,p){p=p!==null&&p!==void 0?p.concat([E]):null,dK(4194308,4,m2.bind(null,S,E),p)},useLayoutEffect:function(E,S){return dK(4194308,4,E,S)},useInsertionEffect:function(E,S){dK(4,2,E,S)},useMemo:function(E,S){var p=F1();S=S===void 0?null:S;var n=E();if(fp){F(!0);try{E()}finally{F(!1)}}return p.memoizedState=[n,S],n},useReducer:function(E,S,p){var n=F1();if(p!==void 0){var J6=p(S);if(fp){F(!0);try{p(S)}finally{F(!1)}}}else J6=S;return n.memoizedState=n.baseState=J6,E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:E,lastRenderedState:J6},n.queue=E,E=E.dispatch=hY.bind(null,A5,E),[n.memoizedState,E]},useRef:function(E){var S=F1();return E={current:E},S.memoizedState=E},useState:function(E){E=C9(E);var S=E.queue,p=z4.bind(null,A5,S);return S.dispatch=p,[E.memoizedState,p]},useDebugValue:kH,useDeferredValue:function(E,S){var p=F1();return Pj(p,E,S)},useTransition:function(){var E=C9(!1);return E=TA.bind(null,A5,E.queue,!0,!1),F1().memoizedState=E,[!1,E]},useSyncExternalStore:function(E,S,p){var n=A5,J6=F1();if(r9){if(p===void 0)throw Error(Y(407));p=p()}else{if(p=S(),_2===null)throw Error(Y(349));(I9&127)!==0||x4(n,S,p)}J6.memoizedState=p;var E6={value:p,getSnapshot:S};return J6.queue=E6,z2(Aq.bind(null,n,E6,E),[E]),n.flags|=2048,Dj(9,{destroy:void 0},W4.bind(null,n,E6,p,S),null),p},useId:function(){var E=F1(),S=_2.identifierPrefix;if(r9){var p=Pk,n=Xk;p=(n&~(1<<32-Hf(n)-1)).toString(32)+p,S="_"+S+"R_"+p,p=bO6++,0<p&&(S+="H"+p.toString(32)),S+="_"}else p=bm1++,S="_"+S+"r_"+p.toString(32)+"_";return E.memoizedState=S},useHostTransitionStatus:qq,useFormState:XV,useActionState:XV,useOptimistic:function(E){var S=F1();S.memoizedState=S.baseState=E;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return S.queue=p,S=$w.bind(null,A5,!0,p),p.dispatch=S,[E,S]},useMemoCache:k8,useCacheRefresh:function(){return F1().memoizedState=i9.bind(null,A5)},useEffectEvent:function(E){var S=F1(),p={impl:E};return S.memoizedState=p,function(){if((D9&2)!==0)throw Error(Y(440));return p.impl.apply(void 0,arguments)}}},uO6={readContext:V6,use:C1,useCallback:RO,useContext:V6,useEffect:vH,useImperativeHandle:X3,useInsertionEffect:WY,useLayoutEffect:B2,useMemo:Xj,useReducer:o8,useRef:v3,useState:function(){return o8(g8)},useDebugValue:kH,useDeferredValue:function(E,S){var p=e1();return _w(p,bw.memoizedState,E,S)},useTransition:function(){var E=o8(g8)[0],S=e1().memoizedState;return[typeof E==="boolean"?E:AA(E),S]},useSyncExternalStore:N3,useId:P3,useHostTransitionStatus:qq,useFormState:wk,useActionState:wk,useOptimistic:function(E,S){var p=e1();return j_(p,bw,E,S)},useMemoCache:k8,useCacheRefresh:Dq};uO6.useEffectEvent=zM;var _11={readContext:V6,use:C1,useCallback:RO,useContext:V6,useEffect:vH,useImperativeHandle:X3,useInsertionEffect:WY,useLayoutEffect:B2,useMemo:Xj,useReducer:y7,useRef:v3,useState:function(){return y7(g8)},useDebugValue:kH,useDeferredValue:function(E,S){var p=e1();return bw===null?Pj(p,E,S):_w(p,bw.memoizedState,E,S)},useTransition:function(){var E=y7(g8)[0],S=e1().memoizedState;return[typeof E==="boolean"?E:AA(E),S]},useSyncExternalStore:N3,useId:P3,useHostTransitionStatus:qq,useFormState:GD,useActionState:GD,useOptimistic:function(E,S){var p=e1();if(bw!==null)return j_(p,bw,E,S);return p.baseState=E,[E,p.queue.dispatch]},useMemoCache:k8,useCacheRefresh:Dq};_11.useEffectEvent=zM;var by6={enqueueSetState:function(E,S,p){E=E._reactInternals;var n=yX(),J6=l9(n);J6.payload=S,p!==void 0&&p!==null&&(J6.callback=p),S=fz(E,J6,n),S!==null&&(wM(S,E,n),a_(S,E,n))},enqueueReplaceState:function(E,S,p){E=E._reactInternals;var n=yX(),J6=l9(n);J6.tag=1,J6.payload=S,p!==void 0&&p!==null&&(J6.callback=p),S=fz(E,J6,n),S!==null&&(wM(S,E,n),a_(S,E,n))},enqueueForceUpdate:function(E,S){E=E._reactInternals;var p=yX(),n=l9(p);n.tag=2,S!==void 0&&S!==null&&(n.callback=S),S=fz(E,n,p),S!==null&&(wM(S,E,p),a_(S,E,p))}},xy6=Error(Y(461)),Tj=!1,uy6={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},lh=!1,Vj=!1,By6=!1,my6=typeof WeakSet==="function"?WeakSet:Set,$M=null,Q$=null,vZ=!1,Wk=null,No=8192,xm1={getCacheForType:function(E){var S=V6(F$),p=S.data.get(E);return p===void 0&&(p=E(),S.data.set(E,p)),p},cacheSignal:function(){return V6(F$).controller.signal}},BO6=0,mO6=1,gO6=2,FO6=3,QO6=4;if(typeof Symbol==="function"&&Symbol.for){var D46=Symbol.for;BO6=D46("selector.component"),mO6=D46("selector.has_pseudo_class"),gO6=D46("selector.role"),FO6=D46("selector.test_id"),QO6=D46("selector.text")}var um1=typeof WeakMap==="function"?WeakMap:Map,D9=0,_2=null,X9=null,I9=0,Mw=0,kZ=null,ih=!1,vo=!1,gy6=!1,nh=0,bO=0,Zk=0,Tp=0,Fy6=0,Df=0,ko=0,X46=null,EZ=null,Qy6=!1,UO6=0,$11=0,P46=1/0,pO6=null,Gk=null,DJ=0,rh=null,Vp=null,fk=0,dO6=0,cO6=null,Uy6=null,Eo=0,py6=null;return M9.attemptContinuousHydration=function(E){if(E.tag===13||E.tag===31){var S=Mq(E,67108864);S!==null&&wM(S,E,67108864),_O6(E,67108864)}},M9.attemptHydrationAtCurrentPriority=function(E){if(E.tag===13||E.tag===31){var S=yX();S=B(S);var p=Mq(E,S);p!==null&&wM(p,E,S),_O6(E,S)}},M9.attemptSynchronousHydration=function(E){switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var S=P(E.pendingLanes);if(S!==0){E.pendingLanes|=2;for(E.entangledLanes|=2;S;){var p=1<<31-Hf(S);E.entanglements[1]|=p,S&=~p}t6(E),(D9&6)===0&&(P46=VZ()+500,L6(0,!1))}}break;case 31:case 13:S=Mq(E,2),S!==null&&wM(S,E,2),GZ(),_O6(E,2)}},M9.batchedUpdates=function(E,S){return E(S)},M9.createComponentSelector=function(E){return{$$typeof:BO6,value:E}},M9.createContainer=function(E,S,p,n,J6,E6,O1,p1,a8,gA){return f61(E,S,!1,null,p,n,E6,null,O1,p1,a8,gA)},M9.createHasPseudoClassSelector=function(E){return{$$typeof:mO6,value:E}},M9.createHydrationContainer=function(E,S,p,n,J6,E6,O1,p1,a8,gA,i7,N7,h4,F3){return E=f61(p,n,!0,E,J6,E6,p1,F3,a8,gA,i7,N7),E.context=T61(null),p=E.current,n=yX(),n=B(n),J6=l9(n),J6.callback=S!==void 0&&S!==null?S:null,fz(p,J6,n),S=n,E.current.lanes=S,N(E,S),t6(E),E},M9.createPortal=function(E,S,p){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mh,key:n==null?null:""+n,children:E,containerInfo:S,implementation:p}},M9.createRoleSelector=function(E){return{$$typeof:gO6,value:E}},M9.createTestNameSelector=function(E){return{$$typeof:FO6,value:E}},M9.createTextSelector=function(E){return{$$typeof:QO6,value:E}},M9.defaultOnCaughtError=function(E){console.error(E)},M9.defaultOnRecoverableError=function(E){Ey6(E)},M9.defaultOnUncaughtError=function(E){Ey6(E)},M9.deferredUpdates=function(E){var S=VK.T,p=Dk();try{return _M(32),VK.T=null,E()}finally{_M(p),VK.T=S}},M9.discreteUpdates=function(E,S,p,n,J6){var E6=VK.T,O1=Dk();try{return _M(2),VK.T=null,E(S,p,n,J6)}finally{_M(O1),VK.T=E6,D9===0&&(P46=VZ()+500)}},M9.findAllNodes=r76,M9.findBoundingRects=function(E,S){if(!e76)throw Error(Y(363));S=r76(E,S),E=[];for(var p=0;p<S.length;p++)E.push(Hm1(S[p]));for(S=E.length-1;0<S;S--){p=E[S];for(var n=p.x,J6=n+p.width,E6=p.y,O1=E6+p.height,p1=S-1;0<=p1;p1--)if(S!==p1){var a8=E[p1],gA=a8.x,i7=gA+a8.width,N7=a8.y,h4=N7+a8.height;if(n>=gA&&E6>=N7&&J6<=i7&&O1<=h4){E.splice(S,1);break}else if(!(n!==gA||p.width!==a8.width||h4<E6||N7>O1)){N7>E6&&(a8.height+=N7-E6,a8.y=E6),h4<O1&&(a8.height=O1-N7),E.splice(S,1);break}else if(!(E6!==N7||p.height!==a8.height||i7<n||gA>J6)){gA>n&&(a8.width+=gA-n,a8.x=n),i7<J6&&(a8.width=J6-gA),E.splice(S,1);break}}}return E},M9.findHostInstance=V61,M9.findHostInstanceWithNoPortals=function(E){return E=_(E),E=E!==null?O(E):null,E===null?null:Ho(E.stateNode)},M9.findHostInstanceWithWarning=function(E){return V61(E)},M9.flushPassiveEffects=Py,M9.flushSyncFromReconciler=function(E){var S=D9;D9|=1;var p=VK.T,n=Dk();try{if(_M(2),VK.T=null,E)return E()}finally{_M(n),VK.T=p,D9=S,(D9&6)===0&&L6(0,!1)}},M9.flushSyncWork=GZ,M9.focusWithin=function(E,S){if(!e76)throw Error(Y(363));E=_o(E),S=AO6(E,S),S=Array.from(S);for(E=0;E<S.length;){var p=S[E++],n=p.tag;if(!jo(p)){if((n===5||n===26||n===27)&&jm1(p.stateNode))return!0;for(p=p.child;p!==null;)S.push(p),p=p.sibling}}return!1},M9.getFindAllNodesFailureDescription=function(E,S){if(!e76)throw Error(Y(363));var p=0,n=[];E=[_o(E),0];for(var J6=0;J6<E.length;){var E6=E[J6++],O1=E6.tag,p1=E[J6++],a8=S[p1];if(O1!==5&&O1!==26&&O1!==27||!jo(E6)){if(Jw(E6,a8)&&(n.push(e_(a8)),p1++,p1>p&&(p=p1)),p1<S.length)for(E6=E6.child;E6!==null;)E.push(E6,p1),E6=E6.sibling}}if(p<S.length){for(E=[];p<S.length;p++)E.push(e_(S[p]));return`findAllNodes was able to match part of the selector:
  `+(n.join(" > ")+`

No matching component was found for:
  `)+E.join(" > ")}return null},M9.getPublicRootInstance=function(E){if(E=E.current,!E.child)return null;switch(E.child.tag){case 27:case 5:return Ho(E.child.stateNode);default:return E.child.stateNode}},M9.injectIntoDevTools=function(){var E={bundleType:0,version:v61,rendererPackageName:ND,currentDispatcherRef:VK,reconcilerVersion:"19.2.0"};if(OO6!==null&&(E.rendererConfig=OO6),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")E=!1;else{var S=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(S.isDisabled||!S.supportsFiber)E=!0;else{try{O46=S.inject(E),jf=S}catch(p){}E=S.checkDCE?!0:!1}}return E},M9.isAlreadyRendering=function(){return(D9&6)!==0},M9.observeVisibleRects=function(E,S,p,n){if(!e76)throw Error(Y(363));E=r76(E,S);var J6=My6(E,p,n).disconnect;return{disconnect:function(){J6()}}},M9.shouldError=function(){return null},M9.shouldSuspend=function(){return!1},M9.startHostTransition=function(E,S,p,n){if(E.tag!==5)throw Error(Y(476));var J6=IA(E).queue;TA(E,J6,S,$p,p===null?K:function(){var E6=IA(E);return E6.next===null&&(E6=E.alternate.memoizedState),J9(E,E6.next.queue,{},yX()),p(n)})},M9.updateContainer=function(E,S,p,n){var J6=S.current,E6=yX();return N61(J6,E6,E,S,p,n),E6},M9.updateContainerSync=function(E,S,p,n){return N61(S.current,2,E,S,p,n),2},M9};Yg6.exports.default=Yg6.exports;Object.defineProperty(Yg6.exports,"__esModule",{value:!0})});var VJ8=1,NJ8=32;var vJ8=()=>{};var f9,NH1,LE,zg6,dc,v56,vH1,kJ8,kH1,L06;var k56=k(()=>{f9={All:"all",Horizontal:"horizontal",Vertical:"vertical",Left:"left",Right:"right",Top:"top",Bottom:"bottom",Start:"start",End:"end"},NH1={All:"all",Column:"column",Row:"row"},LE={Flex:"flex",None:"none"},zg6={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},dc={Auto:"auto",Stretch:"stretch",FlexStart:"flex-start",Center:"center",FlexEnd:"flex-end"},v56={FlexStart:"flex-start",Center:"center",FlexEnd:"flex-end",SpaceBetween:"space-between",SpaceAround:"space-around",SpaceEvenly:"space-evenly"},vH1={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},kJ8={Relative:"relative",Absolute:"absolute"},kH1={Visible:"visible",Hidden:"hidden",Scroll:"scroll"},L06={Undefined:"undefined",Exactly:"exactly",AtMost:"at-most"}});function LH1(A){let q=EH1.get(A);if(q!==void 0)return q;let K=B8(A);if(EH1.size>=UK9)EH1.clear();return EH1.set(A,K),K}var EH1,UK9=4096;var EJ8=k(()=>{y5();EH1=new Map});function pK9(A,q){if(A.length===0)return{width:0,height:0};let K=q<=0||!Number.isFinite(q),Y=0,z=0,w=0;while(w<=A.length){let _=A.indexOf(`
`,w),$=_===-1?A.substring(w):A.substring(w,_),O=LH1($);if(z=Math.max(z,O),K)Y++;else Y+=O===0?1:Math.ceil(O/q);if(_===-1)break;w=_+1}return{width:z,height:Y}}var yH1;var Zy7=k(()=>{EJ8();yH1=pK9});function RH1(A,q,K){if(typeof K==="string")A.setPositionPercent(q,Number.parseInt(K,10));else if(typeof K==="number")A.setPosition(q,K);else A.setPosition(q,Number.NaN)}var dK9=(A,q)=>{if("position"in q)A.setPositionType(q.position==="absolute"?kJ8.Absolute:kJ8.Relative);if("top"in q)RH1(A,"top",q.top);if("bottom"in q)RH1(A,"bottom",q.bottom);if("left"in q)RH1(A,"left",q.left);if("right"in q)RH1(A,"right",q.right)},cK9=(A,q)=>{let K=q.overflowY??q.overflow,Y=q.overflowX??q.overflow;if(K==="scroll"||Y==="scroll")A.setOverflow(kH1.Scroll);else if(K==="hidden"||Y==="hidden")A.setOverflow(kH1.Hidden);else if("overflow"in q||"overflowX"in q||"overflowY"in q)A.setOverflow(kH1.Visible)},lK9=(A,q)=>{if("margin"in q)A.setMargin(f9.All,q.margin??0);if("marginX"in q)A.setMargin(f9.Horizontal,q.marginX??0);if("marginY"in q)A.setMargin(f9.Vertical,q.marginY??0);if("marginLeft"in q)A.setMargin(f9.Start,q.marginLeft||0);if("marginRight"in q)A.setMargin(f9.End,q.marginRight||0);if("marginTop"in q)A.setMargin(f9.Top,q.marginTop||0);if("marginBottom"in q)A.setMargin(f9.Bottom,q.marginBottom||0)},iK9=(A,q)=>{if("padding"in q)A.setPadding(f9.All,q.padding??0);if("paddingX"in q)A.setPadding(f9.Horizontal,q.paddingX??0);if("paddingY"in q)A.setPadding(f9.Vertical,q.paddingY??0);if("paddingLeft"in q)A.setPadding(f9.Left,q.paddingLeft||0);if("paddingRight"in q)A.setPadding(f9.Right,q.paddingRight||0);if("paddingTop"in q)A.setPadding(f9.Top,q.paddingTop||0);if("paddingBottom"in q)A.setPadding(f9.Bottom,q.paddingBottom||0)},nK9=(A,q)=>{if("flexGrow"in q)A.setFlexGrow(q.flexGrow??0);if("flexShrink"in q)A.setFlexShrink(typeof q.flexShrink==="number"?q.flexShrink:1);if("flexWrap"in q){if(q.flexWrap==="nowrap")A.setFlexWrap(vH1.NoWrap);if(q.flexWrap==="wrap")A.setFlexWrap(vH1.Wrap);if(q.flexWrap==="wrap-reverse")A.setFlexWrap(vH1.WrapReverse)}if("flexDirection"in q){if(q.flexDirection==="row")A.setFlexDirection(zg6.Row);if(q.flexDirection==="row-reverse")A.setFlexDirection(zg6.RowReverse);if(q.flexDirection==="column")A.setFlexDirection(zg6.Column);if(q.flexDirection==="column-reverse")A.setFlexDirection(zg6.ColumnReverse)}if("flexBasis"in q)if(typeof q.flexBasis==="number")A.setFlexBasis(q.flexBasis);else if(typeof q.flexBasis==="string")A.setFlexBasisPercent(Number.parseInt(q.flexBasis,10));else A.setFlexBasis(Number.NaN);if("alignItems"in q){if(q.alignItems==="stretch"||!q.alignItems)A.setAlignItems(dc.Stretch);if(q.alignItems==="flex-start")A.setAlignItems(dc.FlexStart);if(q.alignItems==="center")A.setAlignItems(dc.Center);if(q.alignItems==="flex-end")A.setAlignItems(dc.FlexEnd)}if("alignSelf"in q){if(q.alignSelf==="auto"||!q.alignSelf)A.setAlignSelf(dc.Auto);if(q.alignSelf==="flex-start")A.setAlignSelf(dc.FlexStart);if(q.alignSelf==="center")A.setAlignSelf(dc.Center);if(q.alignSelf==="flex-end")A.setAlignSelf(dc.FlexEnd)}if("justifyContent"in q){if(q.justifyContent==="flex-start"||!q.justifyContent)A.setJustifyContent(v56.FlexStart);if(q.justifyContent==="center")A.setJustifyContent(v56.Center);if(q.justifyContent==="flex-end")A.setJustifyContent(v56.FlexEnd);if(q.justifyContent==="space-between")A.setJustifyContent(v56.SpaceBetween);if(q.justifyContent==="space-around")A.setJustifyContent(v56.SpaceAround);if(q.justifyContent==="space-evenly")A.setJustifyContent(v56.SpaceEvenly)}},rK9=(A,q)=>{if("width"in q)if(typeof q.width==="number")A.setWidth(q.width);else if(typeof q.width==="string")A.setWidthPercent(Number.parseInt(q.width,10));else A.setWidthAuto();if("height"in q)if(typeof q.height==="number")A.setHeight(q.height);else if(typeof q.height==="string")A.setHeightPercent(Number.parseInt(q.height,10));else A.setHeightAuto();if("minWidth"in q)if(typeof q.minWidth==="string")A.setMinWidthPercent(Number.parseInt(q.minWidth,10));else A.setMinWidth(q.minWidth??0);if("minHeight"in q)if(typeof q.minHeight==="string")A.setMinHeightPercent(Number.parseInt(q.minHeight,10));else A.setMinHeight(q.minHeight??0);if("maxWidth"in q)if(typeof q.maxWidth==="string")A.setMaxWidthPercent(Number.parseInt(q.maxWidth,10));else A.setMaxWidth(q.maxWidth??0);if("maxHeight"in q)if(typeof q.maxHeight==="string")A.setMaxHeightPercent(Number.parseInt(q.maxHeight,10));else A.setMaxHeight(q.maxHeight??0)},oK9=(A,q)=>{if("display"in q)A.setDisplay(q.display==="flex"?LE.Flex:LE.None)},aK9=(A,q,K)=>{let Y=K??q;if("borderStyle"in q){let z=q.borderStyle?1:0;A.setBorder(f9.Top,Y.borderTop!==!1?z:0),A.setBorder(f9.Bottom,Y.borderBottom!==!1?z:0),A.setBorder(f9.Left,Y.borderLeft!==!1?z:0),A.setBorder(f9.Right,Y.borderRight!==!1?z:0)}else{if("borderTop"in q&&q.borderTop!==void 0)A.setBorder(f9.Top,q.borderTop===!1?0:1);if("borderBottom"in q&&q.borderBottom!==void 0)A.setBorder(f9.Bottom,q.borderBottom===!1?0:1);if("borderLeft"in q&&q.borderLeft!==void 0)A.setBorder(f9.Left,q.borderLeft===!1?0:1);if("borderRight"in q&&q.borderRight!==void 0)A.setBorder(f9.Right,q.borderRight===!1?0:1)}},sK9=(A,q)=>{if("gap"in q)A.setGap(NH1.All,q.gap??0);if("columnGap"in q)A.setGap(NH1.Column,q.columnGap??0);if("rowGap"in q)A.setGap(NH1.Row,q.rowGap??0)},tK9=(A,q={},K)=>{dK9(A,q),cK9(A,q),lK9(A,q),iK9(A,q),nK9(A,q),rK9(A,q),oK9(A,q),aK9(A,q,K),sK9(A,q)},wg6;var LJ8=k(()=>{k56();wg6=tK9});var fy7=C((Af2,Gy7)=>{Gy7.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});function E56(A,q={}){if(typeof A!=="string"||A.length===0)return 0;let{ambiguousIsNarrow:K=!0,countAnsiEscapeCodes:Y=!1}=q;if(!Y)A=lz(A);if(A.length===0)return 0;let z=0,w={ambiguousAsWide:!K};for(let{segment:_}of eK9.segment(A)){let $=_.codePointAt(0);if($<=31||$>=127&&$<=159)continue;if($>=8203&&$<=8207||$===65279)continue;if($>=768&&$<=879||$>=6832&&$<=6911||$>=7616&&$<=7679||$>=8400&&$<=8447||$>=65056&&$<=65071)continue;if($>=55296&&$<=57343)continue;if($>=65024&&$<=65039)continue;if(A39.test(_))continue;if(Ty7.default().test(_)){z+=2;continue}z+=NK6($,w)}return z}var Ty7,eK9,A39;var Vy7=k(()=>{uf();yI6();Ty7=e(fy7(),1),eK9=new Intl.Segmenter,A39=/^\p{Default_Ignorable_Code_Point}$/u});function Y39(){let A=new Map;for(let[q,K]of Object.entries(oO)){for(let[Y,z]of Object.entries(K))oO[Y]={open:`\x1B[${z[0]}m`,close:`\x1B[${z[1]}m`},K[Y]=oO[Y],A.set(z[0],z[1]);Object.defineProperty(oO,q,{value:K,enumerable:!1})}return Object.defineProperty(oO,"codes",{value:A,enumerable:!1}),oO.color.close="\x1B[39m",oO.bgColor.close="\x1B[49m",oO.color.ansi=Ny7(),oO.color.ansi256=vy7(),oO.color.ansi16m=ky7(),oO.bgColor.ansi=Ny7(10),oO.bgColor.ansi256=vy7(10),oO.bgColor.ansi16m=ky7(10),Object.defineProperties(oO,{rgbToAnsi256:{value:(q,K,Y)=>{if(q===K&&K===Y){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(K/255*5)+Math.round(Y/255*5)},enumerable:!1},hexToRgb:{value:(q)=>{let K=/[a-f\d]{6}|[a-f\d]{3}/i.exec(q.toString(16));if(!K)return[0,0,0];let[Y]=K;if(Y.length===3)Y=[...Y].map((w)=>w+w).join("");let z=Number.parseInt(Y,16);return[z>>16&255,z>>8&255,z&255]},enumerable:!1},hexToAnsi256:{value:(q)=>oO.rgbToAnsi256(...oO.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value:(q)=>{if(q<8)return 30+q;if(q<16)return 90+(q-8);let K,Y,z;if(q>=232)K=((q-232)*10+8)/255,Y=K,z=K;else{q-=16;let $=q%36;K=Math.floor(q/36)/5,Y=Math.floor($/6)/5,z=$%6/5}let w=Math.max(K,Y,z)*2;if(w===0)return 30;let _=30+(Math.round(z)<<2|Math.round(Y)<<1|Math.round(K));if(w===2)_+=60;return _},enumerable:!1},rgbToAnsi:{value:(q,K,Y)=>oO.ansi256ToAnsi(oO.rgbToAnsi256(q,K,Y)),enumerable:!1},hexToAnsi:{value:(q)=>oO.ansi256ToAnsi(oO.hexToAnsi256(q)),enumerable:!1}}),oO}var Ny7=(A=0)=>(q)=>`\x1B[${q+A}m`,vy7=(A=0)=>(q)=>`\x1B[${38+A};5;${q}m`,ky7=(A=0)=>(q,K,Y)=>`\x1B[${38+A};2;${q};${K};${Y}m`,oO,zf2,q39,K39,wf2,z39,EJ;var _g6=k(()=>{oO={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},zf2=Object.keys(oO.modifier),q39=Object.keys(oO.color),K39=Object.keys(oO.bgColor),wf2=[...q39,...K39];z39=Y39(),EJ=z39});function SJ8(A,q,K){return String(A).normalize().replaceAll(`\r
`,`
`).split(`
`).map((Y)=>H39(Y,q,K)).join(`
`)}var CH1,w39=39,RJ8="\x07",yy7="[",_39="]",Ry7="m",SH1,Ey7=(A)=>`${CH1.values().next().value}${yy7}${A}${Ry7}`,Ly7=(A)=>`${CH1.values().next().value}${SH1}${A}${RJ8}`,$39=(A)=>A.split(" ").map((q)=>E56(q)),yJ8=(A,q,K)=>{let Y=[...q],z=!1,w=!1,_=E56(lz(A.at(-1)));for(let[$,O]of Y.entries()){let H=E56(O);if(_+H<=K)A[A.length-1]+=O;else A.push(O),_=0;if(CH1.has(O))z=!0,w=Y.slice($+1,$+1+SH1.length).join("")===SH1;if(z){if(w){if(O===RJ8)z=!1,w=!1}else if(O===Ry7)z=!1;continue}if(_+=H,_===K&&$<Y.length-1)A.push(""),_=0}if(!_&&A.at(-1).length>0&&A.length>1)A[A.length-2]+=A.pop()},O39=(A)=>{let q=A.split(" "),K=q.length;while(K>0){if(E56(q[K-1])>0)break;K--}if(K===q.length)return A;return q.slice(0,K).join(" ")+q.slice(K).join("")},H39=(A,q,K={})=>{if(K.trim!==!1&&A.trim()==="")return"";let Y="",z,w,_=$39(A),$=[""];for(let[J,M]of A.split(" ").entries()){if(K.trim!==!1)$[$.length-1]=$.at(-1).trimStart();let D=E56($.at(-1));if(J!==0){if(D>=q&&(K.wordWrap===!1||K.trim===!1))$.push(""),D=0;if(D>0||K.trim===!1)$[$.length-1]+=" ",D++}if(K.hard&&_[J]>q){let X=q-D,P=1+Math.floor((_[J]-X-1)/q);if(Math.floor((_[J]-1)/q)<P)$.push("");yJ8($,M,q);continue}if(D+_[J]>q&&D>0&&_[J]>0){if(K.wordWrap===!1&&D<q){yJ8($,M,q);continue}$.push("")}if(D+_[J]>q&&K.wordWrap===!1){yJ8($,M,q);continue}$[$.length-1]+=M}if(K.trim!==!1)$=$.map((J)=>O39(J));let O=$.join(`
`),H=[...O],j=0;for(let[J,M]of H.entries()){if(Y+=M,CH1.has(M)){let{groups:X}=new RegExp(`(?:\\${yy7}(?<code>\\d+)m|\\${SH1}(?<uri>.*)${RJ8})`).exec(O.slice(j))||{groups:{}};if(X.code!==void 0){let P=Number.parseFloat(X.code);z=P===w39?void 0:P}else if(X.uri!==void 0)w=X.uri.length===0?void 0:X.uri}let D=EJ.codes.get(Number(z));if(H[J+1]===`
`){if(w)Y+=Ly7("");if(z&&D)Y+=Ey7(D)}else if(M===`
`){if(z&&D)Y+=Ey7(z);if(w)Y+=Ly7(w)}j+=M.length}return Y};var Sy7=k(()=>{Vy7();uf();_g6();CH1=new Set(["\x1B",""]),SH1=`${_39}8;;`});var j39,L56;var hH1=k(()=>{Sy7();j39=typeof Bun<"u"&&typeof Bun.wrapAnsi==="function"?Bun.wrapAnsi:null,L56=j39??SJ8});function CJ8(A){if(!Number.isInteger(A))return!1;return A>=4352&&(A<=4447||A===9001||A===9002||11904<=A&&A<=12871&&A!==12351||12880<=A&&A<=19903||19968<=A&&A<=42182||43360<=A&&A<=43388||44032<=A&&A<=55203||63744<=A&&A<=64255||65040<=A&&A<=65049||65072<=A&&A<=65131||65281<=A&&A<=65376||65504<=A&&A<=65510||110592<=A&&A<=110593||127488<=A&&A<=127569||131072<=A&&A<=262141)}function Gg(A,q,K){let Y=[...A],z=[],w=typeof K==="number"?K:Y.length,_=!1,$,O=0,H="";for(let[j,J]of Y.entries()){let M=!1;if(hy7.includes(J)){let D=/\d[^m]*/.exec(A.slice(j,j+18));if($=D&&D.length>0?D[0]:void 0,O<w){if(_=!0,$!==void 0)z.push($)}}else if(_&&J==="m")_=!1,M=!0;if(!_&&!M)O++;if(!J39.test(J)&&CJ8(J.codePointAt())){if(O++,typeof K!=="number")w++}if(O>q&&O<=w)H+=J;else if(O===q&&!_&&$!==void 0)H=Cy7(z);else if(O>=w){H+=Cy7(z,!0,$);break}}return H}var J39,hy7,IH1=(A)=>`${hy7[0]}[${A}m`,Cy7=(A,q,K)=>{let Y=[];A=[...A];for(let z of A){let w=z;if(z.includes(";"))z=z.split(";")[0][0]+"0";let _=EJ.codes.get(Number.parseInt(z,10));if(_){let $=A.indexOf(_.toString());if($===-1)Y.push(IH1(q?_:w));else A.splice($,1)}else if(q){Y.push(IH1(0));break}else Y.push(IH1(w))}if(q){if(Y=Y.filter((z,w)=>Y.indexOf(z)===w),K!==void 0){let z=IH1(EJ.codes.get(Number.parseInt(K,10)));Y=Y.reduce((w,_)=>_===z?[_,...w]:[...w,_],[])}}return Y.join("")};var Iy7=k(()=>{_g6();J39=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,hy7=["\x1B",""]});var xy7=C((Zf2,by7)=>{by7.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});function y06(A,q={}){if(typeof A!=="string"||A.length===0)return 0;let{ambiguousIsNarrow:K=!0,countAnsiEscapeCodes:Y=!1}=q;if(!Y)A=lz(A);if(A.length===0)return 0;let z=0,w={ambiguousAsWide:!K};for(let{segment:_}of M39.segment(A)){let $=_.codePointAt(0);if($<=31||$>=127&&$<=159)continue;if($>=8203&&$<=8207||$===65279)continue;if($>=768&&$<=879||$>=6832&&$<=6911||$>=7616&&$<=7679||$>=8400&&$<=8447||$>=65056&&$<=65071)continue;if($>=55296&&$<=57343)continue;if($>=65024&&$<=65039)continue;if(D39.test(_))continue;if(uy7.default().test(_)){z+=2;continue}z+=NK6($,w)}return z}var uy7,M39,D39;var By7=k(()=>{uf();yI6();uy7=e(xy7(),1),M39=new Intl.Segmenter,D39=/^\p{Default_Ignorable_Code_Point}$/u});function bH1(A,q,K){if(A.charAt(q)===" ")return q;let Y=K?1:-1;for(let z=0;z<=3;z++){let w=q+z*Y;if(A.charAt(w)===" ")return w}return q}function hJ8(A,q,K={}){let{position:Y="end",space:z=!1,preferTruncationOnSpace:w=!1}=K,{truncationCharacter:_="…"}=K;if(typeof A!=="string")throw TypeError(`Expected \`input\` to be a string, got ${typeof A}`);if(typeof q!=="number")throw TypeError(`Expected \`columns\` to be a number, got ${typeof q}`);if(q<1)return"";if(q===1)return _;let $=y06(A);if($<=q)return A;if(Y==="start"){if(w){let O=bH1(A,$-q+1,!0);return _+Gg(A,O,$).trim()}if(z===!0)_+=" ";return _+Gg(A,$-q+y06(_),$)}if(Y==="middle"){if(z===!0)_=` ${_} `;let O=Math.floor(q/2);if(w){let H=bH1(A,O),j=bH1(A,$-(q-O)+1,!0);return Gg(A,0,H)+_+Gg(A,j,$).trim()}return Gg(A,0,O)+_+Gg(A,$-(q-O)+y06(_),$)}if(Y==="end"){if(w){let O=bH1(A,q-1);return Gg(A,0,O)+_}if(z===!0)_=` ${_}`;return Gg(A,0,q-y06(_))+_}throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${Y}`)}var my7=k(()=>{Iy7();By7()});function yE(A,q,K){if(K==="wrap")return L56(A,q,{trim:!1,hard:!0});if(K==="wrap-trim")return L56(A,q,{trim:!0,hard:!0});if(K.startsWith("truncate")){let Y="end";if(K==="truncate-middle")Y="middle";if(K==="truncate-start")Y="start";return hJ8(A,q,{position:Y})}return A}var xH1=k(()=>{hH1();my7()});function uH1(A,q={},K,Y=[]){let z=A.textStyles?{...q,...A.textStyles}:q;for(let w of A.childNodes){if(w===void 0)continue;if(w.nodeName==="#text"){if(w.nodeValue.length>0)Y.push({text:w.nodeValue,styles:z,hyperlink:K})}else if(w.nodeName==="ink-text"||w.nodeName==="ink-virtual-text")uH1(w,z,K,Y);else if(w.nodeName==="ink-link"){let _=w.attributes.href;uH1(w,z,_||K,Y)}}return Y}function IJ8(A){let q="";for(let K of A.childNodes){if(K===void 0)continue;if(K.nodeName==="#text")q+=K.nodeValue;else if(K.nodeName==="ink-text"||K.nodeName==="ink-virtual-text")q+=IJ8(K);else if(K.nodeName==="ink-link")q+=IJ8(K)}return q}var gy7;var bJ8=k(()=>{gy7=IJ8});function xJ8(A){return A>=48&&A<=126}var fg,Ae="\x1B",cc="\x07",qe=";",Wb;var y56=k(()=>{fg={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},Wb={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function Fy7(A){return A>=R06.PARAM_START&&A<=R06.PARAM_END}function BH1(A){return A>=R06.INTERMEDIATE_START&&A<=R06.INTERMEDIATE_END}function Qy7(A){return A>=R06.FINAL_START&&A<=R06.FINAL_END}function AO(...A){if(A.length===0)return uJ8;if(A.length===1)return`${uJ8}${A[0]}`;let q=A.slice(0,-1),K=A[A.length-1];return`${uJ8}${q.join(qe)}${K}`}function dy7(A=1){return A===0?"":AO(A,"A")}function X39(A=1){return A===0?"":AO(A,"B")}function P39(A=1){return A===0?"":AO(A,"C")}function W39(A=1){return A===0?"":AO(A,"D")}function cy7(A){return AO(A,"G")}function ly7(A,q){let K="";if(A<0)K+=W39(-A);else if(A>0)K+=P39(A);if(q<0)K+=dy7(-q);else if(q>0)K+=X39(q);return K}function iy7(A){if(A<=0)return"";let q="";for(let K=0;K<A;K++)if(q+=G39,K<A-1)q+=dy7(1);return q+=Z39,q}var uJ8,R06,aO,Uy7,py7,BJ8,Z39,mJ8,Cf2,hf2,G39,mH1,gJ8,ny7,ry7,oy7,ay7,sy7,S06;var Zb=k(()=>{y56();uJ8=Ae+String.fromCharCode(Wb.CSI),R06={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};aO={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},Uy7=["toEnd","toStart","all","scrollback"],py7=["toEnd","toStart","all"],BJ8=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];Z39=AO("G"),mJ8=AO("H");Cf2=AO("s"),hf2=AO("u"),G39=AO(2,"K"),mH1=AO(2,"J"),gJ8=AO(3,"J");ny7=AO("200~"),ry7=AO("201~"),oy7=AO("I"),ay7=AO("O"),sy7=AO(">1u"),S06=AO("<u")});function C06(){let A="ground",q="";return{feed(K){let Y=ty7(K,A,q,!1);return A=Y.state.state,q=Y.state.buffer,Y.tokens},flush(){let K=ty7("",A,q,!0);return A=K.state.state,q=K.state.buffer,K.tokens},reset(){A="ground",q=""},buffer(){return q}}}function ty7(A,q,K,Y){let z=[],w={state:q,buffer:""},_=K+A,$=0,O=0,H=0,j=()=>{if($>O){let M=_.slice(O,$);if(M)z.push({type:"text",value:M})}O=$},J=(M)=>{if(M)z.push({type:"sequence",value:M});w.state="ground",O=$};while($<_.length){let M=_.charCodeAt($);switch(w.state){case"ground":if(M===fg.ESC)j(),H=$,w.state="escape",$++;else $++;break;case"escape":if(M===Wb.CSI)w.state="csi",$++;else if(M===Wb.OSC)w.state="osc",$++;else if(M===Wb.DCS)w.state="dcs",$++;else if(M===Wb.APC)w.state="apc",$++;else if(M===79)w.state="ss3",$++;else if(BH1(M))w.state="escapeIntermediate",$++;else if(xJ8(M))$++,J(_.slice(H,$));else if(M===fg.ESC)J(_.slice(H,$)),H=$,w.state="escape",$++;else w.state="ground",O=H;break;case"escapeIntermediate":if(BH1(M))$++;else if(xJ8(M))$++,J(_.slice(H,$));else w.state="ground",O=H;break;case"csi":if(Qy7(M))$++,J(_.slice(H,$));else if(Fy7(M)||BH1(M))$++;else w.state="ground",O=H;break;case"ss3":if(M>=64&&M<=126)$++,J(_.slice(H,$));else w.state="ground",O=H;break;case"osc":if(M===fg.BEL)$++,J(_.slice(H,$));else if(M===fg.ESC&&$+1<_.length&&_.charCodeAt($+1)===Wb.ST)$+=2,J(_.slice(H,$));else $++;break;case"dcs":case"apc":if(M===fg.BEL)$++,J(_.slice(H,$));else if(M===fg.ESC&&$+1<_.length&&_.charCodeAt($+1)===Wb.ST)$+=2,J(_.slice(H,$));else $++;break}}if(w.state==="ground")j();else if(Y){let M=_.slice(H);if(M)z.push({type:"sequence",value:M});w.state="ground"}else w.buffer=_.slice(H);return{tokens:z,state:w}}var gH1=k(()=>{y56();Zb()});function ey7(A,q=f39){if(!A.includes("\t"))return A;let K=C06(),Y=K.feed(A);Y.push(...K.flush());let z="",w=0;for(let _ of Y)if(_.type==="sequence")z+=_.value;else{let $=_.value.split(/(\t|\n)/);for(let O of $)if(O==="\t"){let H=q-w%q;z+=" ".repeat(H),w+=H}else if(O===`
`)z+=O,w=0;else z+=O,w+=B8(O)}return z}var f39=8;var AR7=k(()=>{y5();gH1()});function qR7(A,q,K){let Y=$g6.get(A);if(Y)Y.push(q);else $g6.set(A,[q]);if(K)FJ8=!0}function KR7(){let A=FJ8;return FJ8=!1,A}var kN,$g6,FJ8=!1;var Og6=k(()=>{kN=new WeakMap,$g6=new WeakMap});var T39,YR7;var zR7=k(()=>{T39=(()=>{var A=import.meta.url;return function(q){q=q||{};var K;K||(K=typeof q<"u"?q:{});var Y,z;K.ready=new Promise(function(Y1,w1){Y=Y1,z=w1});var w=Object.assign({},K),_="";typeof document<"u"&&document.currentScript&&(_=document.currentScript.src),A&&(_=A),_.indexOf("blob:")!==0?_=_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):_="";var $=K.print||console.log.bind(console),O=K.printErr||console.warn.bind(console);Object.assign(K,w),w=null;var H;K.wasmBinary&&(H=K.wasmBinary);var j=K.noExitRuntime||!0;typeof WebAssembly!="object"&&d("no native wasm support detected");var J,M=!1;function D(Y1,w1,R1){R1=w1+R1;for(var F1="";!(w1>=R1);){var e1=Y1[w1++];if(!e1)break;if(e1&128){var y8=Y1[w1++]&63;if((e1&224)==192)F1+=String.fromCharCode((e1&31)<<6|y8);else{var AA=Y1[w1++]&63;e1=(e1&240)==224?(e1&15)<<12|y8<<6|AA:(e1&7)<<18|y8<<12|AA<<6|Y1[w1++]&63,65536>e1?F1+=String.fromCharCode(e1):(e1-=65536,F1+=String.fromCharCode(55296|e1>>10,56320|e1&1023))}}else F1+=String.fromCharCode(e1)}return F1}var X,P,W,Z,G,f,V,N,v;function y(){var Y1=J.buffer;X=Y1,K.HEAP8=P=new Int8Array(Y1),K.HEAP16=Z=new Int16Array(Y1),K.HEAP32=f=new Int32Array(Y1),K.HEAPU8=W=new Uint8Array(Y1),K.HEAPU16=G=new Uint16Array(Y1),K.HEAPU32=V=new Uint32Array(Y1),K.HEAPF32=N=new Float32Array(Y1),K.HEAPF64=v=new Float64Array(Y1)}var R,h=[],B=[],x=[];function F(){var Y1=K.preRun.shift();h.unshift(Y1)}var g=0,b=null,U=null;function d(Y1){if(K.onAbort)K.onAbort(Y1);throw Y1="Aborted("+Y1+")",O(Y1),M=!0,Y1=new WebAssembly.RuntimeError(Y1+". Build with -sASSERTIONS for more info."),z(Y1),Y1}function l(Y1){return Y1.startsWith("data:application/octet-stream;base64,")}var t="data:application/octet-stream;base64, ";if(!l(t)){var s=t;t=K.locateFile?K.locateFile(s,_):_+s}function H6(){var Y1=t;try{if(Y1==t&&H)return new Uint8Array(H);if(l(Y1))try{var w1=PY(Y1.slice(37)),R1=new Uint8Array(w1.length);for(Y1=0;Y1<w1.length;++Y1)R1[Y1]=w1.charCodeAt(Y1);var F1=R1}catch(y8){throw Error("Converting base64 string to bytes failed.")}else F1=void 0;var e1=F1;if(e1)return e1;throw"both async and sync fetching of the wasm failed"}catch(y8){d(y8)}}function Z6(){return H||typeof fetch!="function"?Promise.resolve().then(function(){return H6()}):fetch(t,{credentials:"same-origin"}).then(function(Y1){if(!Y1.ok)throw"failed to load wasm binary file at '"+t+"'";return Y1.arrayBuffer()}).catch(function(){return H6()})}function G6(Y1){for(;0<Y1.length;)Y1.shift()(K)}function q6(Y1){if(Y1===void 0)return"_unknown";Y1=Y1.replace(/[^a-zA-Z0-9_]/g,"$");var w1=Y1.charCodeAt(0);return 48<=w1&&57>=w1?"_"+Y1:Y1}function w6(Y1,w1){return Y1=q6(Y1),function(){return w1.apply(this,arguments)}}var j6=[{},{value:void 0},{value:null},{value:!0},{value:!1}],_6=[];function k6(Y1){var w1=Error,R1=w6(Y1,function(F1){this.name=Y1,this.message=F1,F1=Error(F1).stack,F1!==void 0&&(this.stack=this.toString()+`
`+F1.replace(/^Error(:[^\n]*)?\n/,""))});return R1.prototype=Object.create(w1.prototype),R1.prototype.constructor=R1,R1.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},R1}var P6=void 0;function A6(Y1){throw new P6(Y1)}var K6=(Y1)=>{return Y1||A6("Cannot use deleted val. handle = "+Y1),j6[Y1].value},z6=(Y1)=>{switch(Y1){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var w1=_6.length?_6.pop():j6.length;return j6[w1]={ga:1,value:Y1},w1}},a=void 0,r=void 0;function X6(Y1){for(var w1="";W[Y1];)w1+=r[W[Y1++]];return w1}var O6=[];function D6(){for(;O6.length;){var Y1=O6.pop();Y1.M.$=!1,Y1.delete()}}var y6=void 0,C6={};function h6(Y1,w1){for(w1===void 0&&A6("ptr should not be undefined");Y1.R;)w1=Y1.ba(w1),Y1=Y1.R;return w1}var f6={};function M6(Y1){Y1=x2(Y1);var w1=X6(Y1);return UK(Y1),w1}function V6(Y1,w1){var R1=f6[Y1];return R1===void 0&&A6(w1+" has unknown type "+M6(Y1)),R1}function p6(){}var b6=!1;function R6(Y1){--Y1.count.value,Y1.count.value===0&&(Y1.T?Y1.U.W(Y1.T):Y1.P.N.W(Y1.O))}function x6(Y1,w1,R1){if(w1===R1)return Y1;if(R1.R===void 0)return null;return Y1=x6(Y1,w1,R1.R),Y1===null?null:R1.na(Y1)}var d6={};function t6(Y1,w1){return w1=h6(Y1,w1),C6[w1]}var L6=void 0;function u6(Y1){throw new L6(Y1)}function e6(Y1,w1){return w1.P&&w1.O||u6("makeClassHandle requires ptr and ptrType"),!!w1.U!==!!w1.T&&u6("Both smartPtrType and smartPtr must be specified"),w1.count={value:1},H1(Object.create(Y1,{M:{value:w1}}))}function H1(Y1){if(typeof FinalizationRegistry>"u")return H1=(w1)=>w1,Y1;return b6=new FinalizationRegistry((w1)=>{R6(w1.M)}),H1=(w1)=>{var R1=w1.M;return R1.T&&b6.register(w1,{M:R1},w1),w1},p6=(w1)=>{b6.unregister(w1)},H1(Y1)}var Z1={};function v1(Y1){for(;Y1.length;){var w1=Y1.pop();Y1.pop()(w1)}}function T6(Y1){return this.fromWireType(f[Y1>>2])}var v6={},A1={};function F6(Y1,w1,R1){function F1(C1){C1=R1(C1),C1.length!==Y1.length&&u6("Mismatched type converter count");for(var k8=0;k8<Y1.length;++k8)l6(Y1[k8],C1[k8])}Y1.forEach(function(C1){A1[C1]=w1});var e1=Array(w1.length),y8=[],AA=0;w1.forEach((C1,k8)=>{f6.hasOwnProperty(C1)?e1[k8]=f6[C1]:(y8.push(C1),v6.hasOwnProperty(C1)||(v6[C1]=[]),v6[C1].push(()=>{e1[k8]=f6[C1],++AA,AA===y8.length&&F1(e1)}))}),y8.length===0&&F1(e1)}function m6(Y1){switch(Y1){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError("Unknown type size: "+Y1)}}function l6(Y1,w1,R1={}){if(!("argPackAdvance"in w1))throw TypeError("registerType registeredInstance requires argPackAdvance");var F1=w1.name;if(Y1||A6('type "'+F1+'" must have a positive integer typeid pointer'),f6.hasOwnProperty(Y1)){if(R1.ua)return;A6("Cannot register type '"+F1+"' twice")}f6[Y1]=w1,delete A1[Y1],v6.hasOwnProperty(Y1)&&(w1=v6[Y1],delete v6[Y1],w1.forEach((e1)=>e1()))}function N1(Y1){A6(Y1.M.P.N.name+" instance already deleted")}function X1(){}function k1(Y1,w1,R1){if(Y1[w1].S===void 0){var F1=Y1[w1];Y1[w1]=function(){return Y1[w1].S.hasOwnProperty(arguments.length)||A6("Function '"+R1+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+Y1[w1].S+")!"),Y1[w1].S[arguments.length].apply(this,arguments)},Y1[w1].S=[],Y1[w1].S[F1.Z]=F1}}function i1(Y1,w1){K.hasOwnProperty(Y1)?(A6("Cannot register public name '"+Y1+"' twice"),k1(K,Y1,Y1),K.hasOwnProperty(void 0)&&A6("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),K[Y1].S[void 0]=w1):K[Y1]=w1}function t8(Y1,w1,R1,F1,e1,y8,AA,C1){this.name=Y1,this.constructor=w1,this.X=R1,this.W=F1,this.R=e1,this.pa=y8,this.ba=AA,this.na=C1,this.ja=[]}function s8(Y1,w1,R1){for(;w1!==R1;)w1.ba||A6("Expected null or instance of "+R1.name+", got an instance of "+w1.name),Y1=w1.ba(Y1),w1=w1.R;return Y1}function _7(Y1,w1){if(w1===null)return this.ea&&A6("null is not a valid "+this.name),0;return w1.M||A6('Cannot pass "'+Gz(w1)+'" as a '+this.name),w1.M.O||A6("Cannot pass deleted object as a pointer of type "+this.name),s8(w1.M.O,w1.M.P.N,this.N)}function X7(Y1,w1){if(w1===null){if(this.ea&&A6("null is not a valid "+this.name),this.da){var R1=this.fa();return Y1!==null&&Y1.push(this.W,R1),R1}return 0}if(w1.M||A6('Cannot pass "'+Gz(w1)+'" as a '+this.name),w1.M.O||A6("Cannot pass deleted object as a pointer of type "+this.name),!this.ca&&w1.M.P.ca&&A6("Cannot convert argument of type "+(w1.M.U?w1.M.U.name:w1.M.P.name)+" to parameter type "+this.name),R1=s8(w1.M.O,w1.M.P.N,this.N),this.da)switch(w1.M.T===void 0&&A6("Passing raw pointer to smart pointer is illegal"),this.Ba){case 0:w1.M.U===this?R1=w1.M.T:A6("Cannot convert argument of type "+(w1.M.U?w1.M.U.name:w1.M.P.name)+" to parameter type "+this.name);break;case 1:R1=w1.M.T;break;case 2:if(w1.M.U===this)R1=w1.M.T;else{var F1=w1.clone();R1=this.xa(R1,z6(function(){F1.delete()})),Y1!==null&&Y1.push(this.W,R1)}break;default:A6("Unsupporting sharing policy")}return R1}function RA(Y1,w1){if(w1===null)return this.ea&&A6("null is not a valid "+this.name),0;return w1.M||A6('Cannot pass "'+Gz(w1)+'" as a '+this.name),w1.M.O||A6("Cannot pass deleted object as a pointer of type "+this.name),w1.M.P.ca&&A6("Cannot convert argument of type "+w1.M.P.name+" to parameter type "+this.name),s8(w1.M.O,w1.M.P.N,this.N)}function M7(Y1,w1,R1,F1){this.name=Y1,this.N=w1,this.ea=R1,this.ca=F1,this.da=!1,this.W=this.xa=this.fa=this.ka=this.Ba=this.wa=void 0,w1.R!==void 0?this.toWireType=X7:(this.toWireType=F1?_7:RA,this.V=null)}function Fq(Y1,w1){K.hasOwnProperty(Y1)||u6("Replacing nonexistant public symbol"),K[Y1]=w1,K[Y1].Z=void 0}function aA(Y1,w1){var R1=[];return function(){if(R1.length=0,Object.assign(R1,arguments),Y1.includes("j")){var F1=K["dynCall_"+Y1];F1=R1&&R1.length?F1.apply(null,[w1].concat(R1)):F1.call(null,w1)}else F1=R.get(w1).apply(null,R1);return F1}}function a7(Y1,w1){Y1=X6(Y1);var R1=Y1.includes("j")?aA(Y1,w1):R.get(w1);return typeof R1!="function"&&A6("unknown function pointer with signature "+Y1+": "+w1),R1}var P7=void 0;function g4(Y1,w1){function R1(y8){e1[y8]||f6[y8]||(A1[y8]?A1[y8].forEach(R1):(F1.push(y8),e1[y8]=!0))}var F1=[],e1={};throw w1.forEach(R1),new P7(Y1+": "+F1.map(M6).join([", "]))}function Mq(Y1,w1,R1,F1,e1){var y8=w1.length;2>y8&&A6("argTypes array size mismatch! Must at least get return value and 'this' types!");var AA=w1[1]!==null&&R1!==null,C1=!1;for(R1=1;R1<w1.length;++R1)if(w1[R1]!==null&&w1[R1].V===void 0){C1=!0;break}var k8=w1[0].name!=="void",g8=y8-2,o8=Array(g8),WA=[],y7=[];return function(){if(arguments.length!==g8&&A6("function "+Y1+" called with "+arguments.length+" arguments, expected "+g8+" args!"),y7.length=0,WA.length=AA?2:1,WA[0]=e1,AA){var N3=w1[1].toWireType(y7,this);WA[1]=N3}for(var x4=0;x4<g8;++x4)o8[x4]=w1[x4+2].toWireType(y7,arguments[x4]),WA.push(o8[x4]);if(x4=F1.apply(null,WA),C1)v1(y7);else for(var W4=AA?1:2;W4<w1.length;W4++){var Aq=W4===1?N3:o8[W4-2];w1[W4].V!==null&&w1[W4].V(Aq)}return N3=k8?w1[0].fromWireType(x4):void 0,N3}}function nY(Y1,w1){for(var R1=[],F1=0;F1<Y1;F1++)R1.push(V[w1+4*F1>>2]);return R1}function HK(Y1){4<Y1&&--j6[Y1].ga===0&&(j6[Y1]=void 0,_6.push(Y1))}function Gz(Y1){if(Y1===null)return"null";var w1=typeof Y1;return w1==="object"||w1==="array"||w1==="function"?Y1.toString():""+Y1}function CY(Y1,w1){switch(w1){case 2:return function(R1){return this.fromWireType(N[R1>>2])};case 3:return function(R1){return this.fromWireType(v[R1>>3])};default:throw TypeError("Unknown float type: "+Y1)}}function l9(Y1,w1,R1){switch(w1){case 0:return R1?function(F1){return P[F1]}:function(F1){return W[F1]};case 1:return R1?function(F1){return Z[F1>>1]}:function(F1){return G[F1>>1]};case 2:return R1?function(F1){return f[F1>>2]}:function(F1){return V[F1>>2]};default:throw TypeError("Unknown integer type: "+Y1)}}function fz(Y1,w1){for(var R1="",F1=0;!(F1>=w1/2);++F1){var e1=Z[Y1+2*F1>>1];if(e1==0)break;R1+=String.fromCharCode(e1)}return R1}function a_(Y1,w1,R1){if(R1===void 0&&(R1=2147483647),2>R1)return 0;R1-=2;var F1=w1;R1=R1<2*Y1.length?R1/2:Y1.length;for(var e1=0;e1<R1;++e1)Z[w1>>1]=Y1.charCodeAt(e1),w1+=2;return Z[w1>>1]=0,w1-F1}function VH(Y1){return 2*Y1.length}function R9(Y1,w1){for(var R1=0,F1="";!(R1>=w1/4);){var e1=f[Y1+4*R1>>2];if(e1==0)break;++R1,65536<=e1?(e1-=65536,F1+=String.fromCharCode(55296|e1>>10,56320|e1&1023)):F1+=String.fromCharCode(e1)}return F1}function DY(Y1,w1,R1){if(R1===void 0&&(R1=2147483647),4>R1)return 0;var F1=w1;R1=F1+R1-4;for(var e1=0;e1<Y1.length;++e1){var y8=Y1.charCodeAt(e1);if(55296<=y8&&57343>=y8){var AA=Y1.charCodeAt(++e1);y8=65536+((y8&1023)<<10)|AA&1023}if(f[w1>>2]=y8,w1+=4,w1+4>R1)break}return f[w1>>2]=0,w1-F1}function Rw(Y1){for(var w1=0,R1=0;R1<Y1.length;++R1){var F1=Y1.charCodeAt(R1);55296<=F1&&57343>=F1&&++R1,w1+=4}return w1}var B$={};function Wq(Y1){var w1=B$[Y1];return w1===void 0?X6(Y1):w1}var XY=[];function H_(Y1){var w1=XY.length;return XY.push(Y1),w1}function k4(Y1,w1){for(var R1=Array(Y1),F1=0;F1<Y1;++F1)R1[F1]=V6(V[w1+4*F1>>2],"parameter "+F1);return R1}var D3=[],x5=[null,[],[]];P6=K.BindingError=k6("BindingError"),K.count_emval_handles=function(){for(var Y1=0,w1=5;w1<j6.length;++w1)j6[w1]!==void 0&&++Y1;return Y1},K.get_first_emval=function(){for(var Y1=5;Y1<j6.length;++Y1)if(j6[Y1]!==void 0)return j6[Y1];return null},a=K.PureVirtualError=k6("PureVirtualError");for(var S9=Array(256),H5=0;256>H5;++H5)S9[H5]=String.fromCharCode(H5);r=S9,K.getInheritedInstanceCount=function(){return Object.keys(C6).length},K.getLiveInheritedInstances=function(){var Y1=[],w1;for(w1 in C6)C6.hasOwnProperty(w1)&&Y1.push(C6[w1]);return Y1},K.flushPendingDeletes=D6,K.setDelayFunction=function(Y1){y6=Y1,O6.length&&y6&&y6(D6)},L6=K.InternalError=k6("InternalError"),X1.prototype.isAliasOf=function(Y1){if(!(this instanceof X1&&Y1 instanceof X1))return!1;var w1=this.M.P.N,R1=this.M.O,F1=Y1.M.P.N;for(Y1=Y1.M.O;w1.R;)R1=w1.ba(R1),w1=w1.R;for(;F1.R;)Y1=F1.ba(Y1),F1=F1.R;return w1===F1&&R1===Y1},X1.prototype.clone=function(){if(this.M.O||N1(this),this.M.aa)return this.M.count.value+=1,this;var Y1=H1,w1=Object,R1=w1.create,F1=Object.getPrototypeOf(this),e1=this.M;return Y1=Y1(R1.call(w1,F1,{M:{value:{count:e1.count,$:e1.$,aa:e1.aa,O:e1.O,P:e1.P,T:e1.T,U:e1.U}}})),Y1.M.count.value+=1,Y1.M.$=!1,Y1},X1.prototype.delete=function(){this.M.O||N1(this),this.M.$&&!this.M.aa&&A6("Object already scheduled for deletion"),p6(this),R6(this.M),this.M.aa||(this.M.T=void 0,this.M.O=void 0)},X1.prototype.isDeleted=function(){return!this.M.O},X1.prototype.deleteLater=function(){return this.M.O||N1(this),this.M.$&&!this.M.aa&&A6("Object already scheduled for deletion"),O6.push(this),O6.length===1&&y6&&y6(D6),this.M.$=!0,this},M7.prototype.qa=function(Y1){return this.ka&&(Y1=this.ka(Y1)),Y1},M7.prototype.ha=function(Y1){this.W&&this.W(Y1)},M7.prototype.argPackAdvance=8,M7.prototype.readValueFromPointer=T6,M7.prototype.deleteObject=function(Y1){if(Y1!==null)Y1.delete()},M7.prototype.fromWireType=function(Y1){function w1(){return this.da?e6(this.N.X,{P:this.wa,O:R1,U:this,T:Y1}):e6(this.N.X,{P:this,O:Y1})}var R1=this.qa(Y1);if(!R1)return this.ha(Y1),null;var F1=t6(this.N,R1);if(F1!==void 0){if(F1.M.count.value===0)return F1.M.O=R1,F1.M.T=Y1,F1.clone();return F1=F1.clone(),this.ha(Y1),F1}if(F1=this.N.pa(R1),F1=d6[F1],!F1)return w1.call(this);F1=this.ca?F1.la:F1.pointerType;var e1=x6(R1,this.N,F1.N);return e1===null?w1.call(this):this.da?e6(F1.N.X,{P:F1,O:e1,U:this,T:Y1}):e6(F1.N.X,{P:F1,O:e1})},P7=K.UnboundTypeError=k6("UnboundTypeError");var PY=typeof atob=="function"?atob:function(Y1){var w1="",R1=0;Y1=Y1.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var F1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Y1.charAt(R1++)),e1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Y1.charAt(R1++)),y8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Y1.charAt(R1++)),AA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Y1.charAt(R1++));F1=F1<<2|e1>>4,e1=(e1&15)<<4|y8>>2;var C1=(y8&3)<<6|AA;w1+=String.fromCharCode(F1),y8!==64&&(w1+=String.fromCharCode(e1)),AA!==64&&(w1+=String.fromCharCode(C1))}while(R1<Y1.length);return w1},C4={l:function(Y1,w1,R1,F1){d("Assertion failed: "+(Y1?D(W,Y1):"")+", at: "+[w1?w1?D(W,w1):"":"unknown filename",R1,F1?F1?D(W,F1):"":"unknown function"])},q:function(Y1,w1,R1){Y1=X6(Y1),w1=V6(w1,"wrapper"),R1=K6(R1);var F1=[].slice,e1=w1.N,y8=e1.X,AA=e1.R.X,C1=e1.R.constructor;Y1=w6(Y1,function(){e1.R.ja.forEach(function(g8){if(this[g8]===AA[g8])throw new a("Pure virtual function "+g8+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:y8}),this.__construct.apply(this,F1.call(arguments))}),y8.__construct=function(){this===y8&&A6("Pass correct 'this' to __construct");var g8=C1.implement.apply(void 0,[this].concat(F1.call(arguments)));p6(g8);var o8=g8.M;g8.notifyOnDestruction(),o8.aa=!0,Object.defineProperties(this,{M:{value:o8}}),H1(this),g8=o8.O,g8=h6(e1,g8),C6.hasOwnProperty(g8)?A6("Tried to register registered instance: "+g8):C6[g8]=this},y8.__destruct=function(){this===y8&&A6("Pass correct 'this' to __destruct"),p6(this);var g8=this.M.O;g8=h6(e1,g8),C6.hasOwnProperty(g8)?delete C6[g8]:A6("Tried to unregister unregistered instance: "+g8)},Y1.prototype=Object.create(y8);for(var k8 in R1)Y1.prototype[k8]=R1[k8];return z6(Y1)},j:function(Y1){var w1=Z1[Y1];delete Z1[Y1];var{fa:R1,W:F1,ia:e1}=w1,y8=e1.map((AA)=>AA.ta).concat(e1.map((AA)=>AA.za));F6([Y1],y8,(AA)=>{var C1={};return e1.forEach((k8,g8)=>{var o8=AA[g8],WA=k8.ra,y7=k8.sa,N3=AA[g8+e1.length],x4=k8.ya,W4=k8.Aa;C1[k8.oa]={read:(Aq)=>o8.fromWireType(WA(y7,Aq)),write:(Aq,t5)=>{var pK=[];x4(W4,Aq,N3.toWireType(pK,t5)),v1(pK)}}}),[{name:w1.name,fromWireType:function(k8){var g8={},o8;for(o8 in C1)g8[o8]=C1[o8].read(k8);return F1(k8),g8},toWireType:function(k8,g8){for(var o8 in C1)if(!(o8 in g8))throw TypeError('Missing field:  "'+o8+'"');var WA=R1();for(o8 in C1)C1[o8].write(WA,g8[o8]);return k8!==null&&k8.push(F1,WA),WA},argPackAdvance:8,readValueFromPointer:T6,V:F1}]})},v:function(){},B:function(Y1,w1,R1,F1,e1){var y8=m6(R1);w1=X6(w1),l6(Y1,{name:w1,fromWireType:function(AA){return!!AA},toWireType:function(AA,C1){return C1?F1:e1},argPackAdvance:8,readValueFromPointer:function(AA){if(R1===1)var C1=P;else if(R1===2)C1=Z;else if(R1===4)C1=f;else throw TypeError("Unknown boolean type size: "+w1);return this.fromWireType(C1[AA>>y8])},V:null})},f:function(Y1,w1,R1,F1,e1,y8,AA,C1,k8,g8,o8,WA,y7){o8=X6(o8),y8=a7(e1,y8),C1&&(C1=a7(AA,C1)),g8&&(g8=a7(k8,g8)),y7=a7(WA,y7);var N3=q6(o8);i1(N3,function(){g4("Cannot construct "+o8+" due to unbound types",[F1])}),F6([Y1,w1,R1],F1?[F1]:[],function(x4){if(x4=x4[0],F1)var W4=x4.N,Aq=W4.X;else Aq=X1.prototype;x4=w6(N3,function(){if(Object.getPrototypeOf(this)!==t5)throw new P6("Use 'new' to construct "+o8);if(pK.Y===void 0)throw new P6(o8+" has no accessible constructor");var j_=pK.Y[arguments.length];if(j_===void 0)throw new P6("Tried to invoke ctor of "+o8+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(pK.Y).toString()+") parameters instead!");return j_.apply(this,arguments)});var t5=Object.create(Aq,{constructor:{value:x4}});x4.prototype=t5;var pK=new t8(o8,x4,t5,y7,W4,y8,C1,g8);W4=new M7(o8,pK,!0,!1),Aq=new M7(o8+"*",pK,!1,!1);var C9=new M7(o8+" const*",pK,!1,!0);return d6[Y1]={pointerType:Aq,la:C9},Fq(N3,x4),[W4,Aq,C9]})},d:function(Y1,w1,R1,F1,e1,y8,AA){var C1=nY(R1,F1);w1=X6(w1),y8=a7(e1,y8),F6([],[Y1],function(k8){function g8(){g4("Cannot call "+o8+" due to unbound types",C1)}k8=k8[0];var o8=k8.name+"."+w1;w1.startsWith("@@")&&(w1=Symbol[w1.substring(2)]);var WA=k8.N.constructor;return WA[w1]===void 0?(g8.Z=R1-1,WA[w1]=g8):(k1(WA,w1,o8),WA[w1].S[R1-1]=g8),F6([],C1,function(y7){return y7=Mq(o8,[y7[0],null].concat(y7.slice(1)),null,y8,AA),WA[w1].S===void 0?(y7.Z=R1-1,WA[w1]=y7):WA[w1].S[R1-1]=y7,[]}),[]})},p:function(Y1,w1,R1,F1,e1,y8){0<w1||d();var AA=nY(w1,R1);e1=a7(F1,e1),F6([],[Y1],function(C1){C1=C1[0];var k8="constructor "+C1.name;if(C1.N.Y===void 0&&(C1.N.Y=[]),C1.N.Y[w1-1]!==void 0)throw new P6("Cannot register multiple constructors with identical number of parameters ("+(w1-1)+") for class '"+C1.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return C1.N.Y[w1-1]=()=>{g4("Cannot construct "+C1.name+" due to unbound types",AA)},F6([],AA,function(g8){return g8.splice(1,0,null),C1.N.Y[w1-1]=Mq(k8,g8,null,e1,y8),[]}),[]})},a:function(Y1,w1,R1,F1,e1,y8,AA,C1){var k8=nY(R1,F1);w1=X6(w1),y8=a7(e1,y8),F6([],[Y1],function(g8){function o8(){g4("Cannot call "+WA+" due to unbound types",k8)}g8=g8[0];var WA=g8.name+"."+w1;w1.startsWith("@@")&&(w1=Symbol[w1.substring(2)]),C1&&g8.N.ja.push(w1);var y7=g8.N.X,N3=y7[w1];return N3===void 0||N3.S===void 0&&N3.className!==g8.name&&N3.Z===R1-2?(o8.Z=R1-2,o8.className=g8.name,y7[w1]=o8):(k1(y7,w1,WA),y7[w1].S[R1-2]=o8),F6([],k8,function(x4){return x4=Mq(WA,x4,g8,y8,AA),y7[w1].S===void 0?(x4.Z=R1-2,y7[w1]=x4):y7[w1].S[R1-2]=x4,[]}),[]})},A:function(Y1,w1){w1=X6(w1),l6(Y1,{name:w1,fromWireType:function(R1){var F1=K6(R1);return HK(R1),F1},toWireType:function(R1,F1){return z6(F1)},argPackAdvance:8,readValueFromPointer:T6,V:null})},n:function(Y1,w1,R1){R1=m6(R1),w1=X6(w1),l6(Y1,{name:w1,fromWireType:function(F1){return F1},toWireType:function(F1,e1){return e1},argPackAdvance:8,readValueFromPointer:CY(w1,R1),V:null})},e:function(Y1,w1,R1,F1,e1){w1=X6(w1),e1===-1&&(e1=4294967295),e1=m6(R1);var y8=(C1)=>C1;if(F1===0){var AA=32-8*R1;y8=(C1)=>C1<<AA>>>AA}R1=w1.includes("unsigned")?function(C1,k8){return k8>>>0}:function(C1,k8){return k8},l6(Y1,{name:w1,fromWireType:y8,toWireType:R1,argPackAdvance:8,readValueFromPointer:l9(w1,e1,F1!==0),V:null})},b:function(Y1,w1,R1){function F1(y8){y8>>=2;var AA=V;return new e1(X,AA[y8+1],AA[y8])}var e1=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][w1];R1=X6(R1),l6(Y1,{name:R1,fromWireType:F1,argPackAdvance:8,readValueFromPointer:F1},{ua:!0})},o:function(Y1,w1){w1=X6(w1);var R1=w1==="std::string";l6(Y1,{name:w1,fromWireType:function(F1){var e1=V[F1>>2],y8=F1+4;if(R1)for(var AA=y8,C1=0;C1<=e1;++C1){var k8=y8+C1;if(C1==e1||W[k8]==0){if(AA=AA?D(W,AA,k8-AA):"",g8===void 0)var g8=AA;else g8+=String.fromCharCode(0),g8+=AA;AA=k8+1}}else{g8=Array(e1);for(C1=0;C1<e1;++C1)g8[C1]=String.fromCharCode(W[y8+C1]);g8=g8.join("")}return UK(F1),g8},toWireType:function(F1,e1){e1 instanceof ArrayBuffer&&(e1=new Uint8Array(e1));var y8,AA=typeof e1=="string";if(AA||e1 instanceof Uint8Array||e1 instanceof Uint8ClampedArray||e1 instanceof Int8Array||A6("Cannot pass non-string to std::string"),R1&&AA){var C1=0;for(y8=0;y8<e1.length;++y8){var k8=e1.charCodeAt(y8);127>=k8?C1++:2047>=k8?C1+=2:55296<=k8&&57343>=k8?(C1+=4,++y8):C1+=3}y8=C1}else y8=e1.length;if(C1=Tz(4+y8+1),k8=C1+4,V[C1>>2]=y8,R1&&AA){if(AA=k8,k8=y8+1,y8=W,0<k8){k8=AA+k8-1;for(var g8=0;g8<e1.length;++g8){var o8=e1.charCodeAt(g8);if(55296<=o8&&57343>=o8){var WA=e1.charCodeAt(++g8);o8=65536+((o8&1023)<<10)|WA&1023}if(127>=o8){if(AA>=k8)break;y8[AA++]=o8}else{if(2047>=o8){if(AA+1>=k8)break;y8[AA++]=192|o8>>6}else{if(65535>=o8){if(AA+2>=k8)break;y8[AA++]=224|o8>>12}else{if(AA+3>=k8)break;y8[AA++]=240|o8>>18,y8[AA++]=128|o8>>12&63}y8[AA++]=128|o8>>6&63}y8[AA++]=128|o8&63}}y8[AA]=0}}else if(AA)for(AA=0;AA<y8;++AA)g8=e1.charCodeAt(AA),255<g8&&(UK(k8),A6("String has UTF-16 code units that do not fit in 8 bits")),W[k8+AA]=g8;else for(AA=0;AA<y8;++AA)W[k8+AA]=e1[AA];return F1!==null&&F1.push(UK,C1),C1},argPackAdvance:8,readValueFromPointer:T6,V:function(F1){UK(F1)}})},i:function(Y1,w1,R1){if(R1=X6(R1),w1===2)var F1=fz,e1=a_,y8=VH,AA=()=>G,C1=1;else w1===4&&(F1=R9,e1=DY,y8=Rw,AA=()=>V,C1=2);l6(Y1,{name:R1,fromWireType:function(k8){for(var g8=V[k8>>2],o8=AA(),WA,y7=k8+4,N3=0;N3<=g8;++N3){var x4=k8+4+N3*w1;if(N3==g8||o8[x4>>C1]==0)y7=F1(y7,x4-y7),WA===void 0?WA=y7:(WA+=String.fromCharCode(0),WA+=y7),y7=x4+w1}return UK(k8),WA},toWireType:function(k8,g8){typeof g8!="string"&&A6("Cannot pass non-string to C++ string type "+R1);var o8=y8(g8),WA=Tz(4+o8+w1);return V[WA>>2]=o8>>C1,e1(g8,WA+4,o8+w1),k8!==null&&k8.push(UK,WA),WA},argPackAdvance:8,readValueFromPointer:T6,V:function(k8){UK(k8)}})},k:function(Y1,w1,R1,F1,e1,y8){Z1[Y1]={name:X6(w1),fa:a7(R1,F1),W:a7(e1,y8),ia:[]}},h:function(Y1,w1,R1,F1,e1,y8,AA,C1,k8,g8){Z1[Y1].ia.push({oa:X6(w1),ta:R1,ra:a7(F1,e1),sa:y8,za:AA,ya:a7(C1,k8),Aa:g8})},C:function(Y1,w1){w1=X6(w1),l6(Y1,{va:!0,name:w1,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},s:function(Y1,w1,R1,F1,e1){Y1=XY[Y1],w1=K6(w1),R1=Wq(R1);var y8=[];return V[F1>>2]=z6(y8),Y1(w1,R1,y8,e1)},t:function(Y1,w1,R1,F1){Y1=XY[Y1],w1=K6(w1),R1=Wq(R1),Y1(w1,R1,null,F1)},g:HK,m:function(Y1,w1){var R1=k4(Y1,w1),F1=R1[0];w1=F1.name+"_$"+R1.slice(1).map(function(AA){return AA.name}).join("_")+"$";var e1=D3[w1];if(e1!==void 0)return e1;var y8=Array(Y1-1);return e1=H_((AA,C1,k8,g8)=>{for(var o8=0,WA=0;WA<Y1-1;++WA)y8[WA]=R1[WA+1].readValueFromPointer(g8+o8),o8+=R1[WA+1].argPackAdvance;AA=AA[C1].apply(AA,y8);for(WA=0;WA<Y1-1;++WA)R1[WA+1].ma&&R1[WA+1].ma(y8[WA]);if(!F1.va)return F1.toWireType(k8,AA)}),D3[w1]=e1},D:function(Y1){4<Y1&&(j6[Y1].ga+=1)},r:function(Y1){var w1=K6(Y1);v1(w1),HK(Y1)},c:function(){d("")},x:function(Y1,w1,R1){W.copyWithin(Y1,w1,w1+R1)},w:function(Y1){var w1=W.length;if(Y1>>>=0,2147483648<Y1)return!1;for(var R1=1;4>=R1;R1*=2){var F1=w1*(1+0.2/R1);F1=Math.min(F1,Y1+100663296);var e1=Math;F1=Math.max(Y1,F1),e1=e1.min.call(e1,2147483648,F1+(65536-F1%65536)%65536);A:{try{J.grow(e1-X.byteLength+65535>>>16),y();var y8=1;break A}catch(AA){}y8=void 0}if(y8)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(Y1,w1,R1,F1){for(var e1=0,y8=0;y8<R1;y8++){var AA=V[w1>>2],C1=V[w1+4>>2];w1+=8;for(var k8=0;k8<C1;k8++){var g8=W[AA+k8],o8=x5[Y1];g8===0||g8===10?((Y1===1?$:O)(D(o8,0)),o8.length=0):o8.push(g8)}e1+=C1}return V[F1>>2]=e1,0}};(function(){function Y1(e1){K.asm=e1.exports,J=K.asm.E,y(),R=K.asm.J,B.unshift(K.asm.F),g--,K.monitorRunDependencies&&K.monitorRunDependencies(g),g==0&&(b!==null&&(clearInterval(b),b=null),U&&(e1=U,U=null,e1()))}function w1(e1){Y1(e1.instance)}function R1(e1){return Z6().then(function(y8){return WebAssembly.instantiate(y8,F1)}).then(function(y8){return y8}).then(e1,function(y8){O("failed to asynchronously prepare wasm: "+y8),d(y8)})}var F1={a:C4};if(g++,K.monitorRunDependencies&&K.monitorRunDependencies(g),K.instantiateWasm)try{return K.instantiateWasm(F1,Y1)}catch(e1){O("Module.instantiateWasm callback failed with error: "+e1),z(e1)}return function(){return H||typeof WebAssembly.instantiateStreaming!="function"||l(t)||typeof fetch!="function"?R1(w1):fetch(t,{credentials:"same-origin"}).then(function(e1){return WebAssembly.instantiateStreaming(e1,F1).then(w1,function(y8){return O("wasm streaming compile failed: "+y8),O("falling back to ArrayBuffer instantiation"),R1(w1)})})}().catch(z),{}})(),K.___wasm_call_ctors=function(){return(K.___wasm_call_ctors=K.asm.F).apply(null,arguments)};var x2=K.___getTypeName=function(){return(x2=K.___getTypeName=K.asm.G).apply(null,arguments)};K.__embind_initialize_bindings=function(){return(K.__embind_initialize_bindings=K.asm.H).apply(null,arguments)};var Tz=K._malloc=function(){return(Tz=K._malloc=K.asm.I).apply(null,arguments)},UK=K._free=function(){return(UK=K._free=K.asm.K).apply(null,arguments)};K.dynCall_jiji=function(){return(K.dynCall_jiji=K.asm.L).apply(null,arguments)};var Sw;U=function Y1(){Sw||NH(),Sw||(U=Y1)};function NH(){function Y1(){if(!Sw&&(Sw=!0,K.calledRun=!0,!M)){if(G6(B),Y(K),K.onRuntimeInitialized)K.onRuntimeInitialized();if(K.postRun)for(typeof K.postRun=="function"&&(K.postRun=[K.postRun]);K.postRun.length;){var w1=K.postRun.shift();x.unshift(w1)}G6(x)}}if(!(0<g)){if(K.preRun)for(typeof K.preRun=="function"&&(K.preRun=[K.preRun]);K.preRun.length;)F();G6(h),0<g||(K.setStatus?(K.setStatus("Running..."),setTimeout(function(){setTimeout(function(){K.setStatus("")},1),Y1()},1)):Y1())}}if(K.preInit)for(typeof K.preInit=="function"&&(K.preInit=[K.preInit]);0<K.preInit.length;)K.preInit.pop()();return NH(),q.ready}})(),YR7=T39});var IM,wR7,_R7,R56,S56,cD,h06,V39,lc,C56,RE,I06,b06,$R7,h56,x06,Gb,I56,N39,OR7;var FH1=k(()=>{IM=function(A){return A[A.Auto=0]="Auto",A[A.FlexStart=1]="FlexStart",A[A.Center=2]="Center",A[A.FlexEnd=3]="FlexEnd",A[A.Stretch=4]="Stretch",A[A.Baseline=5]="Baseline",A[A.SpaceBetween=6]="SpaceBetween",A[A.SpaceAround=7]="SpaceAround",A[A.SpaceEvenly=8]="SpaceEvenly",A}({}),wR7=function(A){return A[A.BorderBox=0]="BorderBox",A[A.ContentBox=1]="ContentBox",A}({}),_R7=function(A){return A[A.Width=0]="Width",A[A.Height=1]="Height",A}({}),R56=function(A){return A[A.Inherit=0]="Inherit",A[A.LTR=1]="LTR",A[A.RTL=2]="RTL",A}({}),S56=function(A){return A[A.Flex=0]="Flex",A[A.None=1]="None",A[A.Contents=2]="Contents",A}({}),cD=function(A){return A[A.Left=0]="Left",A[A.Top=1]="Top",A[A.Right=2]="Right",A[A.Bottom=3]="Bottom",A[A.Start=4]="Start",A[A.End=5]="End",A[A.Horizontal=6]="Horizontal",A[A.Vertical=7]="Vertical",A[A.All=8]="All",A}({}),h06=function(A){return A[A.None=0]="None",A[A.StretchFlexBasis=1]="StretchFlexBasis",A[A.AbsolutePositionWithoutInsetsExcludesPadding=2]="AbsolutePositionWithoutInsetsExcludesPadding",A[A.AbsolutePercentAgainstInnerSize=4]="AbsolutePercentAgainstInnerSize",A[A.All=2147483647]="All",A[A.Classic=2147483646]="Classic",A}({}),V39=function(A){return A[A.WebFlexBasis=0]="WebFlexBasis",A}({}),lc=function(A){return A[A.Column=0]="Column",A[A.ColumnReverse=1]="ColumnReverse",A[A.Row=2]="Row",A[A.RowReverse=3]="RowReverse",A}({}),C56=function(A){return A[A.Column=0]="Column",A[A.Row=1]="Row",A[A.All=2]="All",A}({}),RE=function(A){return A[A.FlexStart=0]="FlexStart",A[A.Center=1]="Center",A[A.FlexEnd=2]="FlexEnd",A[A.SpaceBetween=3]="SpaceBetween",A[A.SpaceAround=4]="SpaceAround",A[A.SpaceEvenly=5]="SpaceEvenly",A}({}),I06=function(A){return A[A.Error=0]="Error",A[A.Warn=1]="Warn",A[A.Info=2]="Info",A[A.Debug=3]="Debug",A[A.Verbose=4]="Verbose",A[A.Fatal=5]="Fatal",A}({}),b06=function(A){return A[A.Undefined=0]="Undefined",A[A.Exactly=1]="Exactly",A[A.AtMost=2]="AtMost",A}({}),$R7=function(A){return A[A.Default=0]="Default",A[A.Text=1]="Text",A}({}),h56=function(A){return A[A.Visible=0]="Visible",A[A.Hidden=1]="Hidden",A[A.Scroll=2]="Scroll",A}({}),x06=function(A){return A[A.Static=0]="Static",A[A.Relative=1]="Relative",A[A.Absolute=2]="Absolute",A}({}),Gb=function(A){return A[A.Undefined=0]="Undefined",A[A.Point=1]="Point",A[A.Percent=2]="Percent",A[A.Auto=3]="Auto",A}({}),I56=function(A){return A[A.NoWrap=0]="NoWrap",A[A.Wrap=1]="Wrap",A[A.WrapReverse=2]="WrapReverse",A}({}),N39={ALIGN_AUTO:IM.Auto,ALIGN_FLEX_START:IM.FlexStart,ALIGN_CENTER:IM.Center,ALIGN_FLEX_END:IM.FlexEnd,ALIGN_STRETCH:IM.Stretch,ALIGN_BASELINE:IM.Baseline,ALIGN_SPACE_BETWEEN:IM.SpaceBetween,ALIGN_SPACE_AROUND:IM.SpaceAround,ALIGN_SPACE_EVENLY:IM.SpaceEvenly,BOX_SIZING_BORDER_BOX:wR7.BorderBox,BOX_SIZING_CONTENT_BOX:wR7.ContentBox,DIMENSION_WIDTH:_R7.Width,DIMENSION_HEIGHT:_R7.Height,DIRECTION_INHERIT:R56.Inherit,DIRECTION_LTR:R56.LTR,DIRECTION_RTL:R56.RTL,DISPLAY_FLEX:S56.Flex,DISPLAY_NONE:S56.None,DISPLAY_CONTENTS:S56.Contents,EDGE_LEFT:cD.Left,EDGE_TOP:cD.Top,EDGE_RIGHT:cD.Right,EDGE_BOTTOM:cD.Bottom,EDGE_START:cD.Start,EDGE_END:cD.End,EDGE_HORIZONTAL:cD.Horizontal,EDGE_VERTICAL:cD.Vertical,EDGE_ALL:cD.All,ERRATA_NONE:h06.None,ERRATA_STRETCH_FLEX_BASIS:h06.StretchFlexBasis,ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING:h06.AbsolutePositionWithoutInsetsExcludesPadding,ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE:h06.AbsolutePercentAgainstInnerSize,ERRATA_ALL:h06.All,ERRATA_CLASSIC:h06.Classic,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:V39.WebFlexBasis,FLEX_DIRECTION_COLUMN:lc.Column,FLEX_DIRECTION_COLUMN_REVERSE:lc.ColumnReverse,FLEX_DIRECTION_ROW:lc.Row,FLEX_DIRECTION_ROW_REVERSE:lc.RowReverse,GUTTER_COLUMN:C56.Column,GUTTER_ROW:C56.Row,GUTTER_ALL:C56.All,JUSTIFY_FLEX_START:RE.FlexStart,JUSTIFY_CENTER:RE.Center,JUSTIFY_FLEX_END:RE.FlexEnd,JUSTIFY_SPACE_BETWEEN:RE.SpaceBetween,JUSTIFY_SPACE_AROUND:RE.SpaceAround,JUSTIFY_SPACE_EVENLY:RE.SpaceEvenly,LOG_LEVEL_ERROR:I06.Error,LOG_LEVEL_WARN:I06.Warn,LOG_LEVEL_INFO:I06.Info,LOG_LEVEL_DEBUG:I06.Debug,LOG_LEVEL_VERBOSE:I06.Verbose,LOG_LEVEL_FATAL:I06.Fatal,MEASURE_MODE_UNDEFINED:b06.Undefined,MEASURE_MODE_EXACTLY:b06.Exactly,MEASURE_MODE_AT_MOST:b06.AtMost,NODE_TYPE_DEFAULT:$R7.Default,NODE_TYPE_TEXT:$R7.Text,OVERFLOW_VISIBLE:h56.Visible,OVERFLOW_HIDDEN:h56.Hidden,OVERFLOW_SCROLL:h56.Scroll,POSITION_TYPE_STATIC:x06.Static,POSITION_TYPE_RELATIVE:x06.Relative,POSITION_TYPE_ABSOLUTE:x06.Absolute,UNIT_UNDEFINED:Gb.Undefined,UNIT_POINT:Gb.Point,UNIT_PERCENT:Gb.Percent,UNIT_AUTO:Gb.Auto,WRAP_NO_WRAP:I56.NoWrap,WRAP_WRAP:I56.Wrap,WRAP_WRAP_REVERSE:I56.WrapReverse},OR7=N39});function QJ8(A){function q(z,w,_){let $=z[w];z[w]=function(){for(var O=arguments.length,H=Array(O),j=0;j<O;j++)H[j]=arguments[j];return _.call(this,$,...H)}}for(let z of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding","setGap"]){let w={[Gb.Point]:A.Node.prototype[z],[Gb.Percent]:A.Node.prototype[`${z}Percent`],[Gb.Auto]:A.Node.prototype[`${z}Auto`]};q(A.Node.prototype,z,function(_){for(var $=arguments.length,O=Array($>1?$-1:0),H=1;H<$;H++)O[H-1]=arguments[H];let j=O.pop(),J,M;if(j==="auto")J=Gb.Auto,M=void 0;else if(typeof j==="object")J=j.unit,M=j.valueOf();else if(J=typeof j==="string"&&j.endsWith("%")?Gb.Percent:Gb.Point,M=parseFloat(j),j!==void 0&&!Number.isNaN(j)&&Number.isNaN(M))throw Error(`Invalid value ${j} for ${z}`);if(!w[J])throw Error(`Failed to execute "${z}": Unsupported unit '${j}'`);if(M!==void 0)return w[J].call(this,...O,M);else return w[J].call(this,...O)})}function K(z){return A.MeasureCallback.implement({measure:function(){let{width:w,height:_}=z(...arguments);return{width:w??NaN,height:_??NaN}}})}q(A.Node.prototype,"setMeasureFunc",function(z,w){if(w)return z.call(this,K(w));else return this.unsetMeasureFunc()});function Y(z){return A.DirtiedCallback.implement({dirtied:z})}return q(A.Node.prototype,"setDirtiedFunc",function(z,w){z.call(this,Y(w))}),q(A.Config.prototype,"free",function(){A.Config.destroy(this)}),q(A.Node,"create",(z,w)=>{return w?A.Node.createWithConfig(w):A.Node.createDefault()}),q(A.Node.prototype,"free",function(){A.Node.destroy(this)}),q(A.Node.prototype,"freeRecursive",function(){for(let z=0,w=this.getChildCount();z<w;++z)this.getChild(0).freeRecursive();this.free()}),q(A.Node.prototype,"calculateLayout",function(z){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,$=arguments.length>3&&arguments[3]!==void 0?arguments[3]:R56.LTR;return z.call(this,w,_,$)}),{Config:A.Config,Node:A.Node,...OR7}}var HR7=k(()=>{FH1();FH1()});async function UJ8(){return QJ8(await YR7())}var jR7=k(()=>{zR7();HR7();FH1()});class pJ8{yoga;constructor(A){this.yoga=A}insertChild(A,q){this.yoga.insertChild(A.yoga,q)}removeChild(A){this.yoga.removeChild(A.yoga)}getChildCount(){return this.yoga.getChildCount()}getParent(){let A=this.yoga.getParent();return A?new pJ8(A):null}calculateLayout(A,q){this.yoga.calculateLayout(A,void 0,R56.LTR)}setMeasureFunc(A){this.yoga.setMeasureFunc((q,K)=>{let Y=K===b06.Exactly?L06.Exactly:K===b06.AtMost?L06.AtMost:L06.Undefined;return A(q,Y)})}unsetMeasureFunc(){this.yoga.unsetMeasureFunc()}markDirty(){this.yoga.markDirty()}getComputedLeft(){return this.yoga.getComputedLeft()}getComputedTop(){return this.yoga.getComputedTop()}getComputedWidth(){return this.yoga.getComputedWidth()}getComputedHeight(){return this.yoga.getComputedHeight()}getComputedBorder(A){return this.yoga.getComputedBorder(b56[A])}getComputedPadding(A){return this.yoga.getComputedPadding(b56[A])}setWidth(A){this.yoga.setWidth(A)}setWidthPercent(A){this.yoga.setWidthPercent(A)}setWidthAuto(){this.yoga.setWidthAuto()}setHeight(A){this.yoga.setHeight(A)}setHeightPercent(A){this.yoga.setHeightPercent(A)}setHeightAuto(){this.yoga.setHeightAuto()}setMinWidth(A){this.yoga.setMinWidth(A)}setMinWidthPercent(A){this.yoga.setMinWidthPercent(A)}setMinHeight(A){this.yoga.setMinHeight(A)}setMinHeightPercent(A){this.yoga.setMinHeightPercent(A)}setMaxWidth(A){this.yoga.setMaxWidth(A)}setMaxWidthPercent(A){this.yoga.setMaxWidthPercent(A)}setMaxHeight(A){this.yoga.setMaxHeight(A)}setMaxHeightPercent(A){this.yoga.setMaxHeightPercent(A)}setFlexDirection(A){let q={row:lc.Row,"row-reverse":lc.RowReverse,column:lc.Column,"column-reverse":lc.ColumnReverse};this.yoga.setFlexDirection(q[A])}setFlexGrow(A){this.yoga.setFlexGrow(A)}setFlexShrink(A){this.yoga.setFlexShrink(A)}setFlexBasis(A){this.yoga.setFlexBasis(A)}setFlexBasisPercent(A){this.yoga.setFlexBasisPercent(A)}setFlexWrap(A){let q={nowrap:I56.NoWrap,wrap:I56.Wrap,"wrap-reverse":I56.WrapReverse};this.yoga.setFlexWrap(q[A])}setAlignItems(A){let q={auto:IM.Auto,stretch:IM.Stretch,"flex-start":IM.FlexStart,center:IM.Center,"flex-end":IM.FlexEnd};this.yoga.setAlignItems(q[A])}setAlignSelf(A){let q={auto:IM.Auto,stretch:IM.Stretch,"flex-start":IM.FlexStart,center:IM.Center,"flex-end":IM.FlexEnd};this.yoga.setAlignSelf(q[A])}setJustifyContent(A){let q={"flex-start":RE.FlexStart,center:RE.Center,"flex-end":RE.FlexEnd,"space-between":RE.SpaceBetween,"space-around":RE.SpaceAround,"space-evenly":RE.SpaceEvenly};this.yoga.setJustifyContent(q[A])}setDisplay(A){this.yoga.setDisplay(A==="flex"?S56.Flex:S56.None)}getDisplay(){return this.yoga.getDisplay()===S56.None?LE.None:LE.Flex}setPositionType(A){this.yoga.setPositionType(A==="absolute"?x06.Absolute:x06.Relative)}setPosition(A,q){this.yoga.setPosition(b56[A],q)}setPositionPercent(A,q){this.yoga.setPositionPercent(b56[A],q)}setOverflow(A){let q={visible:h56.Visible,hidden:h56.Hidden,scroll:h56.Scroll};this.yoga.setOverflow(q[A])}setMargin(A,q){this.yoga.setMargin(b56[A],q)}setPadding(A,q){this.yoga.setPadding(b56[A],q)}setBorder(A,q){this.yoga.setBorder(b56[A],q)}setGap(A,q){this.yoga.setGap(v39[A],q)}free(){this.yoga.free()}freeRecursive(){this.yoga.freeRecursive()}}async function JR7(){if(jg6)return;if(!UH1)UH1=UJ8().then((A)=>{jg6=A});await UH1}function MR7(){if(!jg6)throw Error("Yoga not loaded");return new pJ8(jg6.Node.create())}function DR7(){if(QH1||Hg6)return;QH1=UJ8().then((A)=>{Hg6=A,QH1=void 0},()=>{QH1=void 0})}function XR7(){if(!Hg6)return!1;return jg6=Hg6,Hg6=void 0,UH1=void 0,!0}var b56,v39,jg6,UH1,Hg6,QH1;var PR7=k(()=>{jR7();k56();b56={all:cD.All,horizontal:cD.Horizontal,vertical:cD.Vertical,left:cD.Left,right:cD.Right,top:cD.Top,bottom:cD.Bottom,start:cD.Start,end:cD.End},v39={all:C56.All,column:C56.Column,row:C56.Row}});var WR7={};m1(WR7,{swapLayout:()=>cJ8,preloadLayout:()=>dJ8,initLayout:()=>pH1,createLayoutNode:()=>dH1});async function pH1(){await JR7()}function dH1(){return MR7()}function dJ8(){DR7()}function cJ8(){return XR7()}var Jg6=k(()=>{PR7()});function ZR7(A,q,K=!1){if(q.nodeName==="#text")return;let Y=q,z=K||Y.style.position==="absolute",w=kN.get(Y);if(w)qR7(A,w,z),kN.delete(Y);for(let _ of Y.childNodes)ZR7(A,_,z)}function k39(A,q){if(A===q)return!0;let K=Object.keys(A),Y=Object.keys(q);if(K.length!==Y.length)return!1;for(let z of K)if(A[z]!==q[z])return!1;return!0}function VR7(A){let q=A.yogaNode;iH1(A),q?.freeRecursive(),NR7(A)}function E39(A){return A.nodeName!=="#text"}function NR7(A){if(A.nodeName!=="ink-virtual-text"&&A.nodeName!=="ink-link"&&A.nodeName!=="ink-progress"){if(A.yogaNode=dH1(),wg6(A.yogaNode,A.style),A.isHidden)A.yogaNode.setDisplay(LE.None);if(A.nodeName==="ink-text")A.yogaNode.setMeasureFunc(fR7.bind(null,A));else if(A.nodeName==="ink-raw-ansi")A.yogaNode.setMeasureFunc(TR7.bind(null,A))}for(let K of A.childNodes){if(!E39(K))continue;if(NR7(K),K.yogaNode&&A.yogaNode)A.yogaNode.insertChild(K.yogaNode,A.yogaNode.getChildCount())}}var cH1=(A)=>{let K={nodeName:A,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:A!=="ink-virtual-text"&&A!=="ink-link"&&A!=="ink-progress"?dH1():void 0,dirty:!1};if(A==="ink-text")K.yogaNode?.setMeasureFunc(fR7.bind(null,K));else if(A==="ink-raw-ansi")K.yogaNode?.setMeasureFunc(TR7.bind(null,K));return K},lH1=(A,q)=>{if(q.parentNode)Mg6(q.parentNode,q);if(q.parentNode=A,A.childNodes.push(q),q.yogaNode)A.yogaNode?.insertChild(q.yogaNode,A.yogaNode.getChildCount());KS(A)},lJ8=(A,q,K)=>{if(q.parentNode)Mg6(q.parentNode,q);q.parentNode=A;let Y=A.childNodes.indexOf(K);if(Y>=0){let z=0;if(q.yogaNode&&A.yogaNode){for(let w=0;w<Y;w++)if(A.childNodes[w]?.yogaNode)z++}if(A.childNodes.splice(Y,0,q),q.yogaNode&&A.yogaNode)A.yogaNode.insertChild(q.yogaNode,z);KS(A);return}if(A.childNodes.push(q),q.yogaNode)A.yogaNode?.insertChild(q.yogaNode,A.yogaNode.getChildCount());KS(A)},Mg6=(A,q)=>{if(q.yogaNode)q.parentNode?.yogaNode?.removeChild(q.yogaNode);ZR7(A,q),q.parentNode=void 0;let K=A.childNodes.indexOf(q);if(K>=0)A.childNodes.splice(K,1);KS(A)},iJ8=(A,q,K)=>{if(q==="children")return;if(A.attributes[q]===K)return;A.attributes[q]=K,KS(A)},nJ8=(A,q)=>{if(k39(A.style,q))return;A.style=q,KS(A)},GR7=(A)=>{let q={nodeName:"#text",nodeValue:A,yogaNode:void 0,parentNode:void 0,style:{}};return Dg6(q,A),q},fR7=function(A,q,K){let Y=A.nodeName==="#text"?A.nodeValue:gy7(A),z=ey7(Y),w=yH1(z,q);if(w.width<=q)return w;if(w.width>=1&&q>0&&q<1)return w;if(z.includes(`
`)&&K===L06.Undefined){let O=Math.max(q,w.width);return yH1(z,O)}let _=A.style?.textWrap??"wrap",$=yE(z,q,_);return yH1($,q)},TR7=function(A){return{width:A.attributes.rawWidth,height:A.attributes.rawHeight}},KS=(A)=>{let q=A,K=!1;while(q){if(q.nodeName!=="#text"){if(q.dirty=!0,!K&&(q.nodeName==="ink-text"||q.nodeName==="ink-raw-ansi")&&q.yogaNode)q.yogaNode.markDirty(),K=!0}q=q.parentNode}},Dg6=(A,q)=>{if(typeof q!=="string")q=String(q);if(A.nodeValue===q)return;A.nodeValue=q,KS(A)},iH1=(A)=>{if("childNodes"in A)for(let q of A.childNodes)iH1(q);A.yogaNode=void 0};var Xg6=k(()=>{Zy7();LJ8();xH1();bJ8();AR7();Og6();k56();Jg6()});var ER7,vR7=(A,q)=>{if(A===q)return;if(!A)return q;let K={},Y=!1;for(let z of Object.keys(A))if(q?!Object.hasOwn(q,z):!0)K[z]=void 0,Y=!0;if(q){for(let z of Object.keys(q))if(q[z]!==A[z])K[z]=q[z],Y=!0}return Y?K:void 0},kR7=(A)=>{let q=A.yogaNode;if(q)q.unsetMeasureFunc(),iH1(A),q.freeRecursive()},rJ8,ic;var oJ8=k(()=>{vJ8();k56();Xg6();LJ8();ER7=e(Wy7(),1),rJ8=NJ8,ic=ER7.default({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(A){if(typeof A.onComputeLayout==="function")A.onComputeLayout();A.onRender?.()},getChildHostContext(A,q){let K=A.isInsideText,Y=q==="ink-text"||q==="ink-virtual-text"||q==="ink-link";if(K===Y)return A;return{isInsideText:Y}},shouldSetTextContent:()=>!1,createInstance(A,q,K,Y){if(Y.isInsideText&&A==="ink-box")throw Error("<Box> can't be nested inside <Text> component");let z=A==="ink-text"&&Y.isInsideText?"ink-virtual-text":A,w=cH1(z);for(let[_,$]of Object.entries(q)){if(_==="children")continue;if(_==="style"){if(nJ8(w,$),w.yogaNode)wg6(w.yogaNode,$);continue}if(_==="textStyles"){w.textStyles=$;continue}if(_==="onClick"){w.onClick=$;continue}iJ8(w,_,$)}return w},createTextInstance(A,q,K){if(!K.isInsideText)throw Error(`Text string "${A}" must be rendered inside <Text> component`);return GR7(A)},resetTextContent(){},hideTextInstance(A){Dg6(A,"")},unhideTextInstance(A,q){Dg6(A,q)},getPublicInstance:(A)=>A,hideInstance(A){A.isHidden=!0,A.yogaNode?.setDisplay(LE.None),KS(A)},unhideInstance(A){A.isHidden=!1,A.yogaNode?.setDisplay(LE.Flex),KS(A)},appendInitialChild:lH1,appendChild:lH1,insertBefore:lJ8,finalizeInitialChildren:()=>!1,isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentUpdatePriority:()=>rJ8,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:lH1,insertInContainerBefore:lJ8,removeChildFromContainer(A,q){Mg6(A,q),kR7(q)},commitUpdate(A,q,K,Y){let z=vR7(K,Y),w=vR7(K.style,Y.style);if(z)for(let[_,$]of Object.entries(z)){if(_==="style"){nJ8(A,$);continue}if(_==="textStyles"){A.textStyles=$,KS(A);continue}if(_==="onClick"){A.onClick=$;continue}iJ8(A,_,$)}if(w&&A.yogaNode)wg6(A.yogaNode,w,Y.style)},commitTextUpdate(A,q,K){Dg6(A,K)},removeChild(A,q){Mg6(A,q),kR7(q)},maySuspendCommit(){return!1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},NotPendingTransition:null,HostTransitionContext:{$$typeof:Symbol.for("react.context"),_currentValue:null},setCurrentUpdatePriority(A){rJ8=A},resolveUpdatePriority(){return rJ8},resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return null},resolveEventTimeStamp(){return-1.1}})});function nH1(A){let q=0,K=0;while(K<=A.length){let Y=A.indexOf(`
`,K),z=Y===-1?A.substring(K):A.substring(K,Y);if(q=Math.max(q,LH1(z)),Y===-1)break;K=Y+1}return q}var aJ8=k(()=>{EJ8()});function sJ8(A,q=1,K={}){let{indent:Y=" ",includeEmptyLines:z=!1}=K;if(typeof A!=="string")throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof A}\``);if(typeof q!=="number")throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof q}\``);if(q<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${q}\``);if(typeof Y!=="string")throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof Y}\``);if(q===0)return A;let w=z?/^/gm:/^(?!\s*$)/gm;return A.replace(w,Y.repeat(q))}var y39=(A)=>{return A.getComputedWidth()-A.getComputedPadding(f9.Left)-A.getComputedPadding(f9.Right)-A.getComputedBorder(f9.Left)-A.getComputedBorder(f9.Right)},LR7;var yR7=k(()=>{k56();LR7=y39});var RR7=C((ZT2,R39)=>{R39.exports={single:{topLeft:"┌",top:"─",topRight:"┐",right:"│",bottomRight:"┘",bottom:"─",bottomLeft:"└",left:"│"},double:{topLeft:"╔",top:"═",topRight:"╗",right:"║",bottomRight:"╝",bottom:"═",bottomLeft:"╚",left:"║"},round:{topLeft:"╭",top:"─",topRight:"╮",right:"│",bottomRight:"╯",bottom:"─",bottomLeft:"╰",left:"│"},bold:{topLeft:"┏",top:"━",topRight:"┓",right:"┃",bottomRight:"┛",bottom:"━",bottomLeft:"┗",left:"┃"},singleDouble:{topLeft:"╓",top:"─",topRight:"╖",right:"║",bottomRight:"╜",bottom:"─",bottomLeft:"╙",left:"║"},doubleSingle:{topLeft:"╒",top:"═",topRight:"╕",right:"│",bottomRight:"╛",bottom:"═",bottomLeft:"╘",left:"│"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"↘",top:"↓",topRight:"↙",right:"←",bottomRight:"↖",bottom:"↑",bottomLeft:"↗",left:"→"}}});var CR7=C((GT2,tJ8)=>{var SR7=RR7();tJ8.exports=SR7;tJ8.exports.default=SR7});function B06(A,q){let K=A;if(q.inverse)K=M1.inverse(K);if(q.strikethrough)K=M1.strikethrough(K);if(q.underline)K=M1.underline(K);if(q.italic)K=M1.italic(K);if(q.bold)K=M1.bold(K);if(q.dim)K=M1.dim(K);if(q.color)K=u06(K,q.color,"foreground");if(q.backgroundColor)K=u06(K,q.backgroundColor,"background");return K}function nc(A,q){if(!q)return A;return u06(A,q,"foreground")}var S39,C39,u06=(A,q,K)=>{if(!q)return A;if(q.startsWith("ansi:"))switch(q.substring(5)){case"black":return K==="foreground"?M1.black(A):M1.bgBlack(A);case"red":return K==="foreground"?M1.red(A):M1.bgRed(A);case"green":return K==="foreground"?M1.green(A):M1.bgGreen(A);case"yellow":return K==="foreground"?M1.yellow(A):M1.bgYellow(A);case"blue":return K==="foreground"?M1.blue(A):M1.bgBlue(A);case"magenta":return K==="foreground"?M1.magenta(A):M1.bgMagenta(A);case"cyan":return K==="foreground"?M1.cyan(A):M1.bgCyan(A);case"white":return K==="foreground"?M1.white(A):M1.bgWhite(A);case"blackBright":return K==="foreground"?M1.blackBright(A):M1.bgBlackBright(A);case"redBright":return K==="foreground"?M1.redBright(A):M1.bgRedBright(A);case"greenBright":return K==="foreground"?M1.greenBright(A):M1.bgGreenBright(A);case"yellowBright":return K==="foreground"?M1.yellowBright(A):M1.bgYellowBright(A);case"blueBright":return K==="foreground"?M1.blueBright(A):M1.bgBlueBright(A);case"magentaBright":return K==="foreground"?M1.magentaBright(A):M1.bgMagentaBright(A);case"cyanBright":return K==="foreground"?M1.cyanBright(A):M1.bgCyanBright(A);case"whiteBright":return K==="foreground"?M1.whiteBright(A):M1.bgWhiteBright(A)}if(q.startsWith("#"))return K==="foreground"?M1.hex(q)(A):M1.bgHex(q)(A);if(q.startsWith("ansi256")){let Y=C39.exec(q);if(!Y)return A;let z=Number(Y[1]);return K==="foreground"?M1.ansi256(z)(A):M1.bgAnsi256(z)(A)}if(q.startsWith("rgb")){let Y=S39.exec(q);if(!Y)return A;let z=Number(Y[1]),w=Number(Y[2]),_=Number(Y[3]);return K==="foreground"?M1.rgb(z,w,_)(A):M1.bgRgb(z,w,_)(A)}return A};var m06=k(()=>{iK();S39=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,C39=/^ansi256\(\s?(\d+)\s?\)$/});function hR7(A,q,K,Y=0,z){let w=B8(q),_=A.length;if(w>=_-2)return["",q.substring(0,_),""];let $;if(K==="center")$=Math.floor((_-w)/2);else if(K==="start")$=Y+1;else $=_-w-Y-1;$=Math.max(1,Math.min($,_-w-1));let O=A.substring(0,1)+z.repeat($-1),H=z.repeat(_-$-w-1)+A.substring(_-1);return[O,q,H]}function g06(A,q,K){let Y=nc(A,q);if(K)Y=M1.dim(Y);return Y}var IR7,h39,I39=(A,q,K,Y)=>{if(K.style.borderStyle){let z=Math.floor(K.yogaNode.getComputedWidth()),w=Math.floor(K.yogaNode.getComputedHeight()),_=typeof K.style.borderStyle==="string"?h39[K.style.borderStyle]??IR7.default[K.style.borderStyle]:K.style.borderStyle,$=K.style.borderTopColor??K.style.borderColor,O=K.style.borderBottomColor??K.style.borderColor,H=K.style.borderLeftColor??K.style.borderColor,j=K.style.borderRightColor??K.style.borderColor,J=K.style.borderTopDimColor??K.style.borderDimColor,M=K.style.borderBottomDimColor??K.style.borderDimColor,D=K.style.borderLeftDimColor??K.style.borderDimColor,X=K.style.borderRightDimColor??K.style.borderDimColor,P=K.style.borderTop!==!1,W=K.style.borderBottom!==!1,Z=K.style.borderLeft!==!1,G=K.style.borderRight!==!1,f=Math.max(0,z-(Z?1:0)-(G?1:0)),V=P?(Z?_.topLeft:"")+_.top.repeat(f)+(G?_.topRight:""):"",N;if(P&&K.style.borderText?.position==="top"){let[F,g,b]=hR7(V,K.style.borderText.content,K.style.borderText.align,K.style.borderText.offset,_.top);N=g06(F,$,J)+g+g06(b,$,J)}else if(P)N=g06(V,$,J);let v=w;if(P)v-=1;if(W)v-=1;v=Math.max(0,v);let y=(nc(_.left,H)+`
`).repeat(v);if(D)y=M1.dim(y);let R=(nc(_.right,j)+`
`).repeat(v);if(X)R=M1.dim(R);let h=W?(Z?_.bottomLeft:"")+_.bottom.repeat(f)+(G?_.bottomRight:""):"",B;if(W&&K.style.borderText?.position==="bottom"){let[F,g,b]=hR7(h,K.style.borderText.content,K.style.borderText.align,K.style.borderText.offset,_.bottom);B=g06(F,O,M)+g+g06(b,O,M)}else if(W)B=g06(h,O,M);let x=P?1:0;if(N)Y.write(A,q,N);if(Z)Y.write(A,q+x,y);if(G)Y.write(A+z-1,q+x,R);if(B)Y.write(A,q+w-1,B)}},bR7;var xR7=k(()=>{iK();y5();m06();IR7=e(CR7(),1),h39={dashed:{top:"╌",left:"╎",right:"╎",bottom:"╌",topLeft:" ",topRight:" ",bottomLeft:" ",bottomRight:" "}};bR7=I39});function gR7(){F06=!1}function FR7(){return F06}function rH1(A,q){return`${uR7}8;;${q}${BR7}${A}${uR7}8;;${BR7}`}function b39(A){let q=[];for(let K=0;K<A.length;K++){let Y=A[K].text.length;for(let z=0;z<Y;z++)q.push(K)}return q}function x39(A,q,K,Y,z=!1){let w=A.split(`
`),_=[],$=0;for(let O=0;O<w.length;O++){let H=w[O];if(z&&H.length>0){let P=/\s/.test(H[0]);if($<Y.length&&/\s/.test(Y[$])&&!P)while($<Y.length&&/\s/.test(Y[$]))$++}let j="",J=0,M=K[$]??0;for(let P=0;P<H.length;P++){let W=K[$]??M;if(W!==M){let Z=H.slice(J,P),G=q[M];if(G){let f=B06(Z,G.styles);if(G.hyperlink)f=rH1(f,G.hyperlink);j+=f}else j+=Z;J=P,M=W}$++}let D=H.slice(J),X=q[M];if(X){let P=B06(D,X.styles);if(X.hyperlink)P=rH1(P,X.hyperlink);j+=P}else j+=D;if(_.push(j),$<Y.length&&Y[$]===`
`)$++;if(z&&O<w.length-1){let P=w[O+1],W=P.length>0?P[0]:null;while($<Y.length&&/\s/.test(Y[$])){if(W!==null&&Y[$]===W)break;$++}}}return _.join(`
`)}function u39(A,q){let K=A.childNodes[0]?.yogaNode;if(K){let Y=K.getComputedLeft(),z=K.getComputedTop();q=`
`.repeat(z)+sJ8(q,Y)}return q}function eJ8(A,q,{offsetX:K=0,offsetY:Y=0,prevScreen:z,inheritedBackgroundColor:w}){let{yogaNode:_}=A;if(_){if(_.getDisplay()===LE.None){if(A.dirty){let P=kN.get(A);if(P)q.clear({x:Math.floor(P.x),y:Math.floor(P.y),width:Math.floor(P.width),height:Math.floor(P.height)}),kN.delete(A),F06=!0}return}let $=K+_.getComputedLeft(),O=Y+_.getComputedTop(),H=_.getComputedWidth(),j=_.getComputedHeight(),J=kN.get(A);if(!A.dirty&&J&&J.x===$&&J.y===O&&J.width===H&&J.height===j&&z){q.blit(z,{x:Math.floor($),y:Math.floor(O),width:Math.floor(H),height:Math.floor(j)});return}let M=J!==void 0&&(J.x!==$||J.y!==O||J.width!==H||J.height!==j);if(M)F06=!0;if(J&&(A.dirty||M))q.clear({x:Math.floor(J.x),y:Math.floor(J.y),width:Math.floor(J.width),height:Math.floor(J.height)});let D=$g6.get(A),X=D!==void 0;if(X){F06=!0;for(let P of D)q.clear({x:Math.floor(P.x),y:Math.floor(P.y),width:Math.floor(P.width),height:Math.floor(P.height)});$g6.delete(A)}if(A.nodeName==="ink-raw-ansi"){let P=A.attributes.rawText;if(P)q.write($,O,P)}else if(A.nodeName==="ink-text"){let P=uH1(A,w?{backgroundColor:w}:void 0),W=P.map((Z)=>Z.text).join("");if(W.length>0){let Z=Math.min(LR7(_),q.width-$),G=A.style.textWrap??"wrap",f=nH1(W)>Z,V;if(f&&P.length===1){let N=P[0];V=yE(W,Z,G).split(`
`).map((y)=>{let R=B06(y,N.styles);if(N.hyperlink)R=rH1(R,N.hyperlink);return R}).join(`
`)}else if(f){let N=yE(W,Z,G),v=b39(P);V=x39(N,P,v,W,G==="wrap-trim")}else V=P.map((N)=>{let v=B06(N.text,N.styles);if(N.hyperlink)v=rH1(v,N.hyperlink);return v}).join("");V=u39(A,V),q.write($,O,V)}}else if(A.nodeName==="ink-box"){let P=A.style.backgroundColor??w;if(A.style.noSelect){let R=Math.floor($),h=A.style.noSelect==="from-left-edge";q.noSelect({x:h?0:R,y:Math.floor(O),width:h?R+Math.floor(H):Math.floor(H),height:Math.floor(j)})}let W=A.style.overflowX??A.style.overflow,Z=A.style.overflowY??A.style.overflow,G=W==="hidden"||W==="scroll",f=Z==="hidden"||Z==="scroll",V=Z==="scroll",N=G||f,v,y;if(N){let R=G?$+_.getComputedBorder(f9.Left):void 0,h=G?$+_.getComputedWidth()-_.getComputedBorder(f9.Right):void 0;v=f?O+_.getComputedBorder(f9.Top):void 0,y=f?O+_.getComputedHeight()-_.getComputedBorder(f9.Bottom):void 0,q.clip({x1:R,x2:h,y1:v,y2:y})}if(V){let R=Math.max(0,(y??O+j)-(v??O)-_.getComputedPadding(f9.Top)-_.getComputedPadding(f9.Bottom)),h=A.childNodes.find((U)=>U.yogaNode),B=h?.yogaNode,x=B?.getComputedHeight()??0;A.scrollHeight=x,A.scrollViewportHeight=R;let F=Math.max(0,x-R);if(A.stickyScroll??Boolean(A.attributes.stickyScroll))A.scrollTop=F;let b=Math.max(0,Math.min(A.scrollTop??0,F));if(A.scrollTop=b,h&&B){let U=$+B.getComputedLeft(),d=O+B.getComputedTop()-b,l=kN.get(h);if(l&&l.y!==d)F06=!0;if(v!==void 0&&y!==void 0)q.clear({x:Math.floor($),y:Math.floor(v),width:Math.floor(H),height:Math.floor(y-v)});B39(h,q,U,d,X,void 0,b,b+R,P),kN.set(h,{x:U,y:d,width:B.getComputedWidth(),height:B.getComputedHeight()}),h.dirty=!1}}else{let R=A.style.backgroundColor;if(R||A.style.opaque){let h=_.getComputedBorder(f9.Left),B=_.getComputedBorder(f9.Right),x=_.getComputedBorder(f9.Top),F=_.getComputedBorder(f9.Bottom),g=Math.floor(H)-h-B,b=Math.floor(j)-x-F;if(g>0&&b>0){let U=" ".repeat(g),d=R?B06(U,{backgroundColor:R}):U,l=Array(b).fill(d).join(`
`);q.write($+h,O+x,l)}}mR7(A,q,$,O,X,R?void 0:z,P)}if(N)q.unclip();bR7($,O,A,q)}else if(A.nodeName==="ink-root")mR7(A,q,$,O,X,z,w);kN.set(A,{x:$,y:O,width:H,height:j}),A.dirty=!1}}function mR7(A,q,K,Y,z,w,_){let $=!1;for(let O of A.childNodes){let H=O,j=H.dirty;if(eJ8(H,q,{offsetX:K,offsetY:Y,prevScreen:z||$?void 0:w,inheritedBackgroundColor:_}),j)$=!0}}function B39(A,q,K,Y,z,w,_,$,O){let H=!1;for(let j of A.childNodes){let J=j,M=J.yogaNode;if(M){let X=M.getComputedTop();if(X+M.getComputedHeight()<=_||X>=$){QR7(J);continue}}let D=J.dirty;if(eJ8(J,q,{offsetX:K,offsetY:Y,prevScreen:z||H?void 0:w,inheritedBackgroundColor:O}),D)H=!0}}function QR7(A){kN.delete(A);for(let q of A.childNodes)if(q.nodeName!=="#text")QR7(q)}var F06=!1,uR7="\x1B]",BR7="\x07",UR7;var AM8=k(()=>{aJ8();k56();xH1();yR7();bJ8();xR7();m06();Og6();UR7=eJ8});function YM8(A){if(oH1.has(A))return A;if(qM8.has(A))return qM8.get(A);if(A.startsWith(aH1))return m39;if(A=A.slice(2),A.startsWith("38"))return EJ.color.close;else if(A.startsWith("48"))return EJ.bgColor.close;let q=EJ.codes.get(parseInt(A,10));if(q)return EJ.color.ansi(q);else return EJ.reset.open}function tf(A){return A.map((q)=>q.code).join("")}var pR7,dR7,cR7,oH1,qM8,aH1="\x1B]8;;",KM8,lR7="\x07",BT2,m39;var Pg6=k(()=>{_g6();pR7=new Set([27,155]),dR7="[".codePointAt(0),cR7="]".codePointAt(0),oH1=new Set,qM8=new Map;for(let[A,q]of EJ.codes)oH1.add(EJ.color.ansi(q)),qM8.set(EJ.color.ansi(A),EJ.color.ansi(q));KM8=aH1.split("").map((A)=>A.charCodeAt(0)),BT2=lR7.charCodeAt(0),m39=`\x1B]8;;${lR7}`});function Ke(A){return sH1([],A)}function sH1(A,q){let K=[...A];for(let Y of q)if(Y.code===EJ.reset.open)K=[];else if(oH1.has(Y.code))K=K.filter((z)=>z.endCode!==Y.code);else if(Y.code===EJ.bold.open||Y.code===EJ.dim.open){if(!K.find((w)=>w.code===Y.code&&w.endCode===Y.endCode))K.push(Y)}else K=K.filter((w)=>w.endCode!==Y.endCode),K.push(Y);return K}var tH1=k(()=>{_g6();Pg6()});function x56(A){return Ke(A).reverse().map((q)=>({...q,code:q.endCode}))}var zM8=k(()=>{tH1()});function fb(A,q){let K=new Set(q.map((z)=>z.endCode)),Y=new Set(A.map((z)=>z.code));return[...x56(A.filter((z)=>!K.has(z.endCode))),...q.filter((z)=>!Y.has(z.code))]}var wM8=k(()=>{zM8()});function iR7(A){let q=[],K=[];for(let Y of A)if(Y.type==="ansi")q=sH1(q,[Y]);else if(Y.type==="char")K.push({...Y,styles:[...q]});return K}var nR7=k(()=>{Pg6();wM8();tH1()});function _M8(A){if(!Number.isInteger(A))return!1;return EI6(A)||LI6(A)}var rR7=k(()=>{yI6()});function g39(A,q){A=A.slice(q);for(let Y=1;Y<KM8.length;Y++)if(A.charCodeAt(Y)!==KM8[Y])return;let K=A.indexOf("\x07",aH1.length);if(K===-1)return;return A.slice(0,K+1)}function d39(A){for(let q=2;q<A.length;q++){let K=A.charCodeAt(q);if(K===p39)return q;if(K===U39)continue;if(K>=F39&&K<=Q39)continue;break}return-1}function c39(A,q){A=A.slice(q);let K=d39(A);if(K===-1)return;return A.slice(0,K+1)}function l39(A){if(!A.includes(";"))return[A];let q=A.slice(2,-1).split(";"),K=[];for(let Y=0;Y<q.length;Y++){let z=q[Y];if(z==="38"||z==="48"){if(Y+2<q.length&&q[Y+1]==="5"){K.push(q.slice(Y,Y+3).join(";")),Y+=2;continue}else if(Y+4<q.length&&q[Y+1]==="2"){K.push(q.slice(Y,Y+5).join(";")),Y+=4;continue}}K.push(z)}return K.map((Y)=>`\x1B[${Y}m`)}function Q06(A,q=Number.POSITIVE_INFINITY){let K=[],Y=0,z=0;while(Y<A.length){let w=A.codePointAt(Y);if(pR7.has(w)){let O,H=A.codePointAt(Y+1);if(H===cR7){if(O=g39(A,Y),O)K.push({type:"ansi",code:O,endCode:YM8(O)})}else if(H===dR7){if(O=c39(A,Y),O){let j=l39(O);for(let J of j)K.push({type:"ansi",code:J,endCode:YM8(J)})}}if(O){Y+=O.length;continue}}let _=_M8(w),$=String.fromCodePoint(w);if(K.push({type:"char",value:$,fullWidth:_}),Y+=$.length,z+=_?2:$.length,z>=q)break}return K}var F39=48,Q39=57,U39=59,p39=109;var oR7=k(()=>{rR7();Pg6()});var u56=k(()=>{Pg6();wM8();tH1();zM8();nR7();oR7()});function i39(A){return A.code===A.endCode}function aR7(A){return A.filter((q)=>!i39(q))}function SE(A,q,K){let Y=Q06(A,K),z=[],w=0,_="",$=!1;for(let H of Y){if(K!==void 0&&w>=K)break;if(H.type==="ansi"){if(z.push(H),$)_+=H.code}else{if(!$&&w>=q)$=!0,z=aR7(Ke(z)),_=tf(z);if($)_+=H.value;w+=H.fullWidth?2:H.value.length}}let O=aR7(Ke(z));return _+=tf(x56(O)),_}var U06=k(()=>{u56()});function Ye(A,q){let K=Math.min(A.x,q.x),Y=Math.min(A.y,q.y),z=Math.max(A.x+A.width,q.x+q.width),w=Math.max(A.y+A.height,q.y+q.height);return{x:K,y:Y,width:z-K,height:w-Y}}var $M8=()=>{};function QH(A,q){if(A===void 0)return;if(Number.isInteger(A))return;L(`${q} should be an integer, got ${A}`,{level:"warn"})}var OM8=k(()=>{G1()});class eH1{strings=[" ",""];stringMap=new Map([[" ",0],["",1]]);ascii=a39();intern(A){if(A.length===1){let Y=A.charCodeAt(0);if(Y<128){let z=this.ascii[Y];if(z!==-1)return z;let w=this.strings.length;return this.strings.push(A),this.ascii[Y]=w,w}}let q=this.stringMap.get(A);if(q!==void 0)return q;let K=this.strings.length;return this.strings.push(A),this.stringMap.set(A,K),K}get(A){return this.strings[A]??" "}}class Aj1{strings=[""];stringMap=new Map;intern(A){if(!A)return 0;let q=this.stringMap.get(A);if(q===void 0)q=this.strings.length,this.strings.push(A),this.stringMap.set(A,q);return q}get(A){return A===0?void 0:this.strings[A]}}class jM8{ids=new Map;styles=[];transitionCache=new Map;none;constructor(){this.none=this.intern([])}intern(A){let q=A.length===0?"":A.map((Y)=>Y.code).join("\x00"),K=this.ids.get(q);if(K===void 0){let Y=this.styles.length;this.styles.push(A.length===0?[]:A),K=Y<<1|(A.length>0&&o39(A)?1:0),this.ids.set(q,K)}return K}get(A){return this.styles[A>>>1]??[]}transition(A,q){if(A===q)return"";let K=A*1048576+q,Y=this.transitionCache.get(K);if(Y===void 0)Y=tf(fb(this.get(A),this.get(q))),this.transitionCache.set(K,Y);return Y}inverseCache=new Map;withInverse(A){let q=this.inverseCache.get(A);if(q===void 0){let K=this.get(A);q=K.some((z)=>z.endCode==="\x1B[27m")?A:this.intern([...K,n39]),this.inverseCache.set(A,q)}return q}bgCache=new Map;withBackground(A,q){let K=A*1048576+this.intern([q]),Y=this.bgCache.get(K);if(Y===void 0){let w=this.get(A).filter((_)=>_.endCode!=="\x1B[49m"&&_.endCode!=="\x1B[27m");Y=this.intern([...w,q]),this.bgCache.set(K,Y)}return Y}}function o39(A){for(let q of A)if(r39.has(q.endCode))return!0;return!1}function a39(){let A=new Int32Array(128);return A.fill(-1),A[32]=HM8,A}function B56(A,q,K){return A<<p06|q<<d06|K}function t39(A,q){let K=q<<1;return A.cells[K]===0&&A.cells[K|1]===0}function eR7(A,q,K){if(q<0||K<0||q>=A.width||K>=A.height)return!0;return t39(A,K*A.width+q)}function e39(A,q){return A.hyperlinkPool.intern(q)}function m56(A,q,K,Y,z){if(QH(A,"createScreen width"),QH(q,"createScreen height"),!Number.isInteger(A)||A<0)A=Math.max(0,Math.floor(A)||0);if(!Number.isInteger(q)||q<0)q=Math.max(0,Math.floor(q)||0);let w=A*q,_=new ArrayBuffer(w<<3),$=new Int32Array(_),O=new BigInt64Array(_);return{width:A,height:q,cells:$,cells64:O,charPool:Y,hyperlinkPool:z,emptyStyleId:K.none,damage:void 0,noSelect:new Uint8Array(w)}}function JM8(A,q,K){if(QH(q,"resetScreen width"),QH(K,"resetScreen height"),!Number.isInteger(q)||q<0)q=Math.max(0,Math.floor(q)||0);if(!Number.isInteger(K)||K<0)K=Math.max(0,Math.floor(K)||0);let Y=q*K;if(A.cells64.length<Y){let z=new ArrayBuffer(Y<<3);A.cells=new Int32Array(z),A.cells64=new BigInt64Array(z),A.noSelect=new Uint8Array(Y)}A.cells64.fill(s39,0,Y),A.noSelect.fill(0,0,Y),A.width=q,A.height=K,A.damage=void 0}function AS7(A,q,K){let{charPool:Y,hyperlinkPool:z}=A;if(Y===q&&z===K)return;let w=A.width*A.height,_=A.cells;for(let $=0;$<w<<1;$+=2){let O=_[$];_[$]=q.intern(Y.get(O));let H=_[$+1],j=H>>>d06&Wg6;if(j!==0){let J=z.get(j),M=K.intern(J),D=H>>>p06,X=H&rc;_[$+1]=B56(D,M,X)}}A.charPool=q,A.hyperlinkPool=K}function Zg6(A,q,K){if(q<0||K<0||q>=A.width||K>=A.height)return;return MM8(A,K*A.width+q)}function MM8(A,q){let K=q<<1,Y=A.cells[K+1],z=Y>>>d06&Wg6;return{char:A.charPool.get(A.cells[K]),styleId:Y>>>p06,width:Y&rc,hyperlink:z===0?void 0:A.hyperlinkPool.get(z)}}function qS7(A,q,K,Y,z){let w=Y<<1,_=A[w];if(_===1)return;let $=A[w+1];if(_===0&&($&262140)===0){let H=$>>>p06;if(H===0||H===z)return}let O=$>>>d06&Wg6;return{char:q.get(_),styleId:$>>>p06,width:$&rc,hyperlink:O===0?void 0:K.get(O)}}function ze(A,q,K){let Y=q|1,z=A.cells[Y];K.char=A.charPool.get(A.cells[q]),K.styleId=z>>>p06,K.width=z&rc;let w=z>>>d06&Wg6;K.hyperlink=w===0?void 0:A.hyperlinkPool.get(w)}function DM8(A,q,K){if(q<0||K<0||q>=A.width||K>=A.height)return;let Y=K*A.width+q<<1;return A.charPool.get(A.cells[Y])}function qj1(A,q,K,Y){if(q<0||K<0||q>=A.width||K>=A.height)return;let z=K*A.width+q<<1,w=A.cells,_=w[z+1]&rc;if(_===1&&Y.width!==1){if(q+1<A.width){let J=z+2;if((w[J+1]&rc)===2)w[J]=HM8,w[J+1]=B56(A.emptyStyleId,0,0)}}let $=-1;if(_===2&&Y.width!==2){if(q>0){let j=z-2;if((w[j+1]&rc)===1)w[j]=HM8,w[j+1]=B56(A.emptyStyleId,0,0),$=q-1}}w[z]=A59(A,Y.char),w[z+1]=B56(Y.styleId,e39(A,Y.hyperlink),Y.width);let O=$>=0?Math.min(q,$):q,H=A.damage;if(H){let j=H.x+H.width,J=H.y+H.height;if(O<H.x)H.width+=H.x-O,H.x=O;else if(q>=j)H.width=q-H.x+1;if(K<H.y)H.height+=H.y-K,H.y=K;else if(K>=J)H.height=K-H.y+1}else A.damage={x:O,y:K,width:q-O+1,height:1};if(Y.width===1){let j=q+1;if(j<A.width){let J=z+2;w[J]=tR7,w[J+1]=B56(A.emptyStyleId,0,2);let M=A.damage;if(M&&j>=M.x+M.width)M.width=j-M.x+1}}}function KS7(A,q,K,Y){if(q<0||K<0||q>=A.width||K>=A.height)return;let z=K*A.width+q<<1,w=A.cells,_=w[z+1],$=_&rc;if($===2||$===3)return;let O=_>>>d06&Wg6;w[z+1]=B56(Y,O,$);let H=A.damage;if(H)A.damage=Ye(H,{x:q,y:K,width:1,height:1});else A.damage={x:q,y:K,width:1,height:1}}function A59(A,q){return A.charPool.intern(q)}function YS7(A,q,K,Y,z,w){if(K=Math.max(0,K),Y=Math.max(0,Y),K>=z||Y>=w)return;let _=z-K,$=q.width<<1,O=A.width<<1,H=_<<1,j=q.cells,J=A.cells,M=q.noSelect,D=A.noSelect;if(K===0&&z===q.width&&q.width===A.width){let P=Y*$,W=(w-Y)*$;J.set(j.subarray(P,P+W),P);let Z=Y*q.width,G=(w-Y)*q.width;D.set(M.subarray(Z,Z+G),Z)}else{let P=Y*$+(K<<1),W=Y*O+(K<<1),Z=Y*q.width+K,G=Y*A.width+K;for(let f=Y;f<w;f++)J.set(j.subarray(P,P+H),W),D.set(M.subarray(Z,Z+_),G),P+=$,W+=O,Z+=q.width,G+=A.width}let X={x:K,y:Y,width:_,height:w-Y};if(A.damage)A.damage=Ye(A.damage,X);else A.damage=X;if(z<A.width){let P=Y*q.width+(z-1)<<1,W=Y*A.width+z<<1,Z=!1;for(let G=Y;G<w;G++){if((j[P+1]&rc)===1)J[W]=tR7,J[W+1]=B56(A.emptyStyleId,0,2),Z=!0;P+=$,W+=O}if(Z&&A.damage){if(A.damage.x+A.damage.width===z)A.damage={...A.damage,width:A.damage.width+1}}}}function wS7(A){for(let q of A){let K=q.code;if(K.length<5||!K.startsWith(Gg6))continue;let Y=K.match(zS7);if(Y)return Y[1]||null}return null}function _S7(A){return A.filter((q)=>!q.code.startsWith(Gg6)||!zS7.test(q.code))}function XM8(A,q,K){let Y=A.width,z=q.width,w=A.height,_=q.height,$;if(Y===0&&w===0)$={x:0,y:0,width:z,height:_};else if(q.damage){if($=q.damage,A.damage)$=Ye($,A.damage)}else if(A.damage)$=A.damage;else $={x:0,y:0,width:0,height:0};if(w>_)$=Ye($,{x:0,y:_,width:Y,height:w-_});if(Y>z)$=Ye($,{x:z,y:0,width:Y-z,height:w});let O=Math.max(w,_),H=Math.max(Y,z),j=Math.min($.y+$.height,O),J=Math.min($.x+$.width,H);if(Y===z)return w59(A,q,$.x,J,$.y,j,K);return _59(A,q,$.x,J,$.y,j,K)}function q59(A,q,K,Y){for(let z=0;z<Y;z++,K+=2){let w=K|1;if(A[K]!==q[K]||A[w]!==q[w])return z}return Y}function K59(A,q,K,Y,z,w,_,$,O,H,j){let J=_;while(J<$){let M=q59(A,q,z,$-J);if(J+=M,z+=M<<1,J>=$)break;if(ze(K,z,O),ze(Y,z,H),j(J,w,O,H))return!0;J++,z+=2}return!1}function Y59(A,q,K,Y,z,w,_){for(let $=Y;$<z;$++,q+=2)if(ze(A,q,w),_($,K,w,void 0))return!0;return!1}function z59(A,q,K,Y,z,w,_,$){for(let O=z;O<w;O++,K+=2){if(A[K]===0&&A[K|1]===0)continue;if(ze(q,K,_),$(O,Y,void 0,_))return!0}return!1}function w59(A,q,K,Y,z,w,_){let $=A.cells,O=q.cells,H=A.width,j=A.height,J=q.height,M=H<<1,D={char:" ",styleId:0,width:0,hyperlink:void 0},X={char:" ",styleId:0,width:0,hyperlink:void 0},P=Math.min(Y,H),W=z*H+K<<1;for(let Z=z;Z<w;Z++){let G=Z<j,f=Z<J;if(G&&f){if(K59($,O,A,q,W,Z,K,P,D,X,_))return!0}else if(G){if(Y59(A,W,Z,K,P,D,_))return!0}else if(f){if(z59(O,q,W,Z,K,P,X,_))return!0}W+=M}return!1}function _59(A,q,K,Y,z,w,_){let $=A.width,O=q.width,H=A.cells,j=q.cells,J={char:" ",styleId:0,width:0,hyperlink:void 0},M={char:" ",styleId:0,width:0,hyperlink:void 0},D=$<<1,X=O<<1,P=z*$+K<<1,W=z*O+K<<1;for(let Z=z;Z<w;Z++){let G=Z<A.height,f=Z<q.height,V=G?Math.min(Y,$):K,N=f?Math.min(Y,O):K,v=Math.min(V,N),y=P,R=W;for(let h=K;h<v;h++){if(H[y]===j[R]&&H[y+1]===j[R+1]){y+=2,R+=2;continue}if(ze(A,y,J),ze(q,R,M),y+=2,R+=2,_(h,Z,J,M))return!0}if(V>v){y=P+(v-K<<1);for(let h=v;h<V;h++)if(ze(A,y,J),y+=2,_(h,Z,J,void 0))return!0}if(N>v){R=W+(v-K<<1);for(let h=v;h<N;h++){if(j[R]===0&&j[R|1]===0){R+=2;continue}if(ze(q,R,M),R+=2,_(h,Z,void 0,M))return!0}}P+=D,W+=X}return!1}function $S7(A,q,K,Y,z){let w=Math.min(q+Y,A.width),_=Math.min(K+z,A.height),$=A.noSelect,O=A.width;for(let H=Math.max(0,K);H<_;H++){let j=H*O;$.fill(1,j+Math.max(0,q),j+w)}}var n39,r39,HM8=0,tR7=1,p06=17,d06=2,Wg6=32767,rc=3,s39=0n,zS7,Gg6;var g56=k(()=>{$M8();u56();OM8();y56();n39={type:"ansi",code:"\x1B[7m",endCode:"\x1B[27m"};r39=new Set(["\x1B[49m","\x1B[27m","\x1B[24m","\x1B[29m","\x1B[55m"]);zS7=new RegExp(`^${Ae}\\]8${qe}${qe}([^${cc}]*)${cc}$`),Gg6=`${Ae}]8${qe}`});function $59(A,q){if(!A)return q;return{x1:OS7(A.x1,q.x1),x2:HS7(A.x2,q.x2),y1:OS7(A.y1,q.y1),y2:HS7(A.y2,q.y2)}}function OS7(A,q){if(A===void 0)return q;if(q===void 0)return A;return Math.max(A,q)}function HS7(A,q){if(A===void 0)return q;if(q===void 0)return A;return Math.min(A,q)}class Kj1{width;height;stylePool;screen;operations=[];charCache=new Map;constructor(A){let{width:q,height:K,stylePool:Y,screen:z}=A;this.width=q,this.height=K,this.stylePool=Y,this.screen=z,JM8(z,q,K)}reset(A,q,K){if(this.width=A,this.height=q,this.screen=K,this.operations.length=0,JM8(K,A,q),this.charCache.size>16384)this.charCache.clear()}blit(A,q){this.operations.push({type:"blit",src:A,region:q})}clear(A){this.operations.push({type:"clear",region:A})}noSelect(A){this.operations.push({type:"noSelect",region:A})}write(A,q,K){if(!K)return;this.operations.push({type:"write",x:A,y:q,text:K})}clip(A){this.operations.push({type:"clip",clip:A})}unclip(){this.operations.push({type:"unclip"})}get(){let A=this.screen,q=this.width,K=this.height,Y=0,z=0;for(let $ of this.operations){if($.type!=="clear")continue;let{x:O,y:H,width:j,height:J}=$.region,M=Math.max(0,O),D=Math.max(0,H),X=Math.min(O+j,q),P=Math.min(H+J,K);if(M>=X||D>=P)continue;let W={x:M,y:D,width:X-M,height:P-D};A.damage=A.damage?Ye(A.damage,W):W}let w=[];for(let $ of this.operations)switch($.type){case"clear":continue;case"clip":w.push($59(w.at(-1),$.clip));continue;case"unclip":w.pop();continue;case"blit":{let{src:O,region:H}=$,{x:j,y:J,width:M,height:D}=H,X=Math.min(J+D,K,O.height),P=Math.min(j+M,q,O.width);YS7(A,O,j,J,P,X),Y+=(X-J)*(P-j);continue}case"write":{let{text:O}=$,{x:H,y:j}=$,J=O.split(`
`),M=w.at(-1);if(M){let X=typeof M?.x1==="number"&&typeof M?.x2==="number",P=typeof M?.y1==="number"&&typeof M?.y2==="number";if(X){let W=nH1(O);if(H+W<M.x1||H>M.x2)continue}if(P){let W=J.length;if(j+W<M.y1||j>M.y2)continue}if(X){if(J=J.map((W)=>{let Z=H<M.x1?M.x1-H:0,G=B8(W),f=H+G>M.x2?M.x2-H:G;return SE(W,Z,f)}),H<M.x1)H=M.x1}if(P){let W=j<M.y1?M.y1-j:0,Z=J.length,G=j+Z>M.y2?M.y2-j:Z;if(J=J.slice(W,G),j<M.y1)j=M.y1}}let D=0;for(let X of J){let P=j+D;if(P>=K)break;z+=j59(A,X,H,P,q,this.stylePool,this.charCache),D++}continue}}for(let $ of this.operations)if($.type==="noSelect"){let{x:O,y:H,width:j,height:J}=$.region;$S7(A,O,H,j,J)}let _=Y+z;if(_>1000&&z>Y)L(`High write ratio: blit=${Y}, write=${z} (${(z/_*100).toFixed(1)}% writes), screen=${K}x${q}`);return A}}function O59(A,q){if(A===q)return!0;let K=A.length;if(K!==q.length)return!1;if(K===0)return!0;for(let Y=0;Y<K;Y++)if(A[Y].code!==q[Y].code)return!1;return!0}function H59(A,q){let K=A.length;if(K===0)return[];let Y=[],z=[],w=A[0].styles;for(let _=0;_<K;_++){let $=A[_],O=$.styles;if(z.length>0&&!O59(O,w))jS7(z.join(""),w,q,Y),z.length=0;z.push($.value),w=O}if(z.length>0)jS7(z.join(""),w,q,Y);return Y}function jS7(A,q,K,Y){let z=wS7(q)??void 0,_=z!==void 0||q.some((O)=>O.code.length>=Gg6.length&&O.code.startsWith(Gg6))?_S7(q):q,$=K.intern(_);for(let{segment:O}of hj().segment(A))Y.push({value:O,width:B8(O),styleId:$,hyperlink:z})}function j59(A,q,K,Y,z,w,_){let $=_.get(q);if(!$)$=H59(iR7(Q06(q)),w),_.set(q,$);let O=K,H=0;for(let j=0;j<$.length;j++){let J=$[j],M=J.value.codePointAt(0);if(M!==void 0&&M<=31){if(M===9){let W=8-O%8;for(let Z=0;Z<W&&O<z;Z++)qj1(A,O,Y,{char:" ",styleId:w.none,width:0,hyperlink:void 0}),O++}else if(M===27){let P=$[j+1]?.value,W=P?.codePointAt(0);if(P==="("||P===")"||P==="*"||P==="+")j+=2;else if(P==="["){j++;while(j<$.length-1){j++;let Z=$[j]?.value.codePointAt(0);if(Z!==void 0&&Z>=64&&Z<=126)break}}else if(P==="]"||P==="P"||P==="_"||P==="^"||P==="X"){j++;while(j<$.length-1){j++;let Z=$[j]?.value;if(Z==="\x07")break;if(Z==="\x1B"){if($[j+1]?.value==="\\"){j++;break}}}}else if(W!==void 0&&W>=48&&W<=126)j++}continue}let D=J.width;if(D===0)continue;let X=D>=2;if(X&&O+2>z){qj1(A,O,Y,{char:" ",styleId:w.none,width:3,hyperlink:void 0}),O++;continue}qj1(A,O,Y,{char:J.value,styleId:J.styleId,width:X?1:0,hyperlink:J.hyperlink}),H++,O+=X?2:1}return H}var MS7=k(()=>{U06();aJ8();u56();y5();g56();G1();$M8();YR()});function PM8(A,q){let K;return(Y)=>{let{frontFrame:z,backFrame:w,isTTY:_,terminalWidth:$,terminalRows:O}=Y,H=z.screen,j=w.screen,J=j.charPool,M=j.hyperlinkPool,D=A.yogaNode?.getComputedHeight(),X=A.yogaNode?.getComputedWidth(),P=D===void 0||!Number.isFinite(D)||D<0,W=X===void 0||!Number.isFinite(X)||X<0;if(!A.yogaNode||P||W){if(A.yogaNode&&(P||W))L(`Invalid yoga dimensions: width=${X}, height=${D}, childNodes=${A.childNodes.length}, terminalWidth=${$}, terminalRows=${O}`);return{screen:m56($,0,q,J,M),viewport:{width:$,height:O},cursor:{x:0,y:0,visible:!0}}}let Z=Math.floor(A.yogaNode.getComputedWidth()),G=Math.floor(A.yogaNode.getComputedHeight()),f=j??m56(Z,G,q,J,M);if(K)K.reset(Z,G,f);else K=new Kj1({width:Z,height:G,stylePool:q,screen:f});gR7();let V=KR7();return UR7(A,K,{prevScreen:V||Y.altScreen&&Y.prevFrameContaminated?void 0:H}),{screen:K.get(),viewport:{width:$,height:Y.altScreen?O+1:O},cursor:{x:0,y:Y.altScreen?Math.max(0,Math.min(f.height,O)-1):f.height,visible:!_||f.height===0}}}}var DS7=k(()=>{AM8();Og6();MS7();g56();G1()});import{Buffer as J59}from"buffer";function Q0(...A){let q=YA.terminal==="kitty"?M59:cc;return`${WM8}${A.join(qe)}${q}`}function ZM8(A){let q=J59.from(A,"utf8").toString("base64");return Q0(Uj.CLIPBOARD,"c",q)}function XS7(A){let q=A.indexOf(";"),K=q>=0?A.slice(0,q):A,Y=q>=0?A.slice(q+1):"",z=parseInt(K,10);if(z===Uj.SET_TITLE_AND_ICON)return{type:"title",action:{type:"both",title:Y}};if(z===Uj.SET_ICON)return{type:"title",action:{type:"iconName",name:Y}};if(z===Uj.SET_TITLE)return{type:"title",action:{type:"windowTitle",title:Y}};if(z===Uj.HYPERLINK){let w=Y.split(";"),_=w[0]??"",$=w.slice(1).join(";");if($==="")return{type:"link",action:{type:"end"}};let O={};if(_)for(let H of _.split(":")){let j=H.indexOf("=");if(j>=0)O[H.slice(0,j)]=H.slice(j+1)}return{type:"link",action:{type:"start",url:$,params:Object.keys(O).length>0?O:void 0}}}return{type:"unknown",sequence:`\x1B]${A}`}}function Yj1(A,q){let K=q?Object.entries(q).map(([Y,z])=>`${Y}=${z}`).join(":"):"";return Q0(Uj.HYPERLINK,K,A)}var WM8,M59,Uj,GM8,F56,Q56,zj1,PS7;var Tg=k(()=>{y56();K9();WM8=Ae+String.fromCharCode(Wb.OSC),M59=Ae+"\\";Uj={SET_TITLE_AND_ICON:0,SET_ICON:1,SET_TITLE:2,SET_COLOR:4,SET_CWD:7,HYPERLINK:8,ITERM2:9,SET_FG_COLOR:10,SET_BG_COLOR:11,SET_CURSOR_COLOR:12,CLIPBOARD:52,KITTY:99,RESET_COLOR:104,RESET_FG_COLOR:110,RESET_BG_COLOR:111,RESET_CURSOR_COLOR:112,SEMANTIC_PROMPT:133,GHOSTTY:777};GM8=Q0(Uj.HYPERLINK,"",""),F56={NOTIFY:0,BADGE:2,PROGRESS:4},Q56={CLEAR:0,SET:1,ERROR:2,INDETERMINATE:3},zj1=`${WM8}${Uj.ITERM2};${F56.PROGRESS};${Q56.CLEAR};${cc}`,PS7=`${WM8}${Uj.SET_TITLE_AND_ICON};${cc}`});class TM8{options;state;constructor(A){this.options=A;this.state={previousOutput:""}}renderPreviousOutput_DEPRECATED(A){if(!this.options.isTTY)return[wj1];return this.getRenderOpsForDone(A)}reset(){this.state.previousOutput=""}renderFullFrame(A){let{screen:q}=A,K=[],Y=[],z=void 0;for(let w=0;w<q.height;w++){let _="";for(let O=0;O<q.width;O++){let H=Zg6(q,O,w);if(H&&H.width!==2){if(H.hyperlink!==z){if(z!==void 0)_+=GM8;if(H.hyperlink!==void 0)_+=Yj1(H.hyperlink);z=H.hyperlink}let j=this.options.stylePool.get(H.styleId),J=fb(Y,j);if(J.length>0)_+=tf(J),Y=j;_+=H.char}}if(z!==void 0)_+=GM8,z=void 0;let $=fb(Y,[]);if($.length>0)_+=tf($),Y=[];K.push(_.trimEnd())}if(K.length===0)return[];return[{type:"stdout",content:K.join(`
`)}]}getRenderOpsForDone(A){if(this.state.previousOutput="",!A.cursor.visible)return[{type:"cursorShow"}];return[]}render(A,q){if(!this.options.isTTY)return this.renderFullFrame(q);let K=performance.now();if(q.viewport.height<A.viewport.height||A.viewport.width!==0&&q.viewport.width!==A.viewport.width)return fg6(q,"resize",this.options.stylePool);let Y=A.cursor.y>=A.screen.height,z=q.screen.height>A.screen.height,w=Y&&A.screen.height>=A.viewport.height,_=q.screen.height<A.screen.height,$=q.screen.height<=A.viewport.height;if(w&&$&&_)return L(`Full reset (shrink->below): prevHeight=${A.screen.height}, nextHeight=${q.screen.height}, viewport=${A.viewport.height}`),fg6(q,"offscreen",this.options.stylePool);if(A.screen.height>=A.viewport.height&&A.screen.height>0&&Y&&!z){let f=A.screen.height-A.viewport.height+1,V=-1;if(XM8(A.screen,q.screen,(N,v)=>{if(v<f)return V=v,!0}),V>=0){let N="";for(let y=0;y<A.screen.width;y++)N+=DM8(A.screen,y,V)??" ";let v="";for(let y=0;y<q.screen.width;y++)v+=DM8(q.screen,y,V)??" ";return L(`Full reset (scrollback changes): scrollbackRows=${f}, firstChangeY=${V}
  prev: "${N}"
  next: "${v}"`),fg6(q,"offscreen",this.options.stylePool)}}let O=new NM8(A.cursor,q.viewport.width),H=Math.max(q.screen.height,1)-Math.max(A.screen.height,1),j=H<0,J=H>0;if(j){let G=A.screen.height-q.screen.height;if(G>A.viewport.height)return fg6(q,"offscreen",this.options.stylePool);O.txn((f)=>[[{type:"clear",count:G},{type:"cursorMove",x:0,y:-1}],{dx:-f.x,dy:-G}])}let M=w?1:0,D=J?Math.max(0,A.screen.height-A.viewport.height+M):Math.max(A.screen.height,q.screen.height)-q.viewport.height+M,X=[],P=void 0,W=!1;if(XM8(A.screen,q.screen,(G,f,V,N)=>{if(J&&f>=A.screen.height)return;if(N&&(N.width===2||N.width===3))return;if(V&&(V.width===2||V.width===3)&&!N)return;if(N&&eR7(q.screen,G,f)&&!V)return;if(f<D)return W=!0,!0;if(fM8(O,G,f),N){if(N.width===1&&VM8(N.char)&&G+1<q.screen.width){let h=Zg6(A.screen,G+1,f);if(h&&h.width!==2&&h.width!==3){if(X.length>0){let B=fb(X,[]);if(B.length>0)O.diff.push({type:"style",codes:B})}if(P!==void 0)O.diff.push({type:"hyperlink",uri:""}),P=void 0;X=[],O.txn(()=>[[{type:"cursorTo",col:G+2},{type:"stdout",content:" "},{type:"cursorTo",col:G+1}],{dx:0,dy:0}])}}let v=N.hyperlink;P=WS7(O.diff,P,v);let y=this.options.stylePool.get(N.styleId),R=fb(X,y);X59(O,N,R),X=y}else if(V){let v=X,y=P;X=[],P=void 0,O.txn(()=>{let R=[];if(v.length>0){let h=fb(v,[]);if(h.length>0)R.push({type:"style",codes:h})}if(y!==void 0)R.push({type:"hyperlink",uri:""});return R.push({type:"stdout",content:" "}),[R,{dx:1,dy:0}]})}}),W)return fg6(q,"offscreen",this.options.stylePool);if(X.length>0){let G=fb(X,[]);if(G.length>0)O.diff.push({type:"style",codes:G});X=[]}if(P!==void 0)O.diff.push({type:"hyperlink",uri:""}),P=void 0;if(J)ZS7(O,q,A.screen.height,q.screen.height,this.options.stylePool);if(q.cursor.y>=q.screen.height)O.txn((G)=>{let f=q.cursor.y-G.y;if(f>0){let N=Array(1+f);N[0]=c06;for(let v=0;v<f;v++)N[1+v]=wj1;return[N,{dx:-G.x,dy:f}]}let V=q.cursor.y-G.y;if(V!==0||G.x!==q.cursor.x){let N=[c06];return N.push({type:"cursorMove",x:q.cursor.x,y:V}),[N,{dx:q.cursor.x-G.x,dy:V}]}return[[],{dx:0,dy:0}]});else fM8(O,q.cursor.x,q.cursor.y);let Z=performance.now()-K;if(Z>50){let G=q.screen.damage,f=G?`${G.width}x${G.height} at (${G.x},${G.y})`:"none";L(`Slow render: ${Z.toFixed(1)}ms, screen: ${q.screen.height}x${q.screen.width}, damage: ${f}, changes: ${O.diff.length}`)}return O.diff}}function WS7(A,q,K){if(q!==K)return A.push({type:"hyperlink",uri:K??""}),K;return q}function fg6(A,q,K){let Y=new NM8({x:0,y:0},A.viewport.width);return D59(Y,A,K),[{type:"clearTerminal",reason:q},...Y.diff]}function D59(A,q,K){ZS7(A,q,0,q.screen.height,K)}function ZS7(A,q,K,Y,z){let w=z.none,_=void 0,$=-1,{width:O,cells:H,charPool:j,hyperlinkPool:J}=q.screen,M=K*O;for(let D=K;D<Y;D+=1){if(A.cursor.y<D){let X=D-A.cursor.y;A.txn((P)=>{let W=Array(1+X);W[0]=c06;for(let Z=0;Z<X;Z++)W[1+Z]=wj1;return[W,{dx:-P.x,dy:X}]})}$=-1;for(let X=0;X<O;X+=1,M+=1){let P=qS7(H,j,J,M,$);if(!P)continue;fM8(A,X,D);let W=P.hyperlink;_=WS7(A.diff,_,W);let Z=z.transition(w,P.styleId);P59(A,P,Z),w=P.styleId,$=P.styleId}if(w!==z.none){let X=z.transition(w,z.none);if(X.length>0)A.diff.push({type:"styleStr",str:X});w=z.none}if(_!==void 0)A.diff.push({type:"hyperlink",uri:""}),_=void 0;A.txn((X)=>[[c06,wj1],{dx:-X.x,dy:1}])}if(_!==void 0)A.diff.push({type:"hyperlink",uri:""});if(w!==z.none){let D=z.transition(w,z.none);if(D.length>0)A.diff.push({type:"styleStr",str:D})}return A}function X59(A,q,K){A.txn((Y)=>{let z=q.width===1?2:1;if(z===2&&Y.x<A.viewportWidth){let O=q.char.length>2?A.viewportWidth:A.viewportWidth+1;if(Y.x+2>=O)return[[],{dx:0,dy:0}]}let w=Y.x>=A.viewportWidth?z-Y.x:z,_=Y.x>=A.viewportWidth?1:0,$=K.length>0?[{type:"style",codes:K},{type:"stdout",content:q.char}]:[{type:"stdout",content:q.char}];if(z===2&&VM8(q.char))$.push({type:"cursorTo",col:Y.x+z+1});return[$,{dx:w,dy:_}]})}function P59(A,q,K){let Y=q.width===1?2:1,z=A.cursor.x,w=A.viewportWidth;if(Y===2&&z<w){let $=q.char.length>2?w:w+1;if(z+2>=$)return}let _=A.diff;if(K.length>0)_.push({type:"styleStr",str:K});if(_.push({type:"stdout",content:q.char}),Y===2&&VM8(q.char))_.push({type:"cursorTo",col:z+Y+1});if(z>=w)A.cursor.x=Y,A.cursor.y++;else A.cursor.x=z+Y}function fM8(A,q,K){A.txn((Y)=>{let z=q-Y.x,w=K-Y.y;if(Y.x>=A.viewportWidth)return[[c06,{type:"cursorMove",x:q,y:w}],{dx:z,dy:w}];if(w!==0)return[[c06,{type:"cursorMove",x:q,y:w}],{dx:z,dy:w}];return[[{type:"cursorMove",x:z,y:w}],{dx:z,dy:w}]})}function VM8(A){let q=A.codePointAt(0);if(q===void 0)return!1;if(q>=129648&&q<=129791||q>=129792&&q<=130047)return!0;if(A.length>=2){for(let K=0;K<A.length;K++)if(A.charCodeAt(K)===65039)return!0}return!1}class NM8{viewportWidth;cursor;diff=[];constructor(A,q){this.viewportWidth=q;this.cursor={...A}}txn(A){let[q,K]=A(this.cursor);for(let Y of q)this.diff.push(Y);this.cursor.x+=K.dx,this.cursor.y+=K.dy}}var c06,wj1;var GS7=k(()=>{g56();u56();G1();Tg();c06={type:"carriageReturn"},wj1={type:"stdout",content:`
`}});var W59,wP;var Vg=k(()=>{W59=new Map,wP=W59});class Tb{_didStopImmediatePropagation=!1;didStopImmediatePropagation(){return this._didStopImmediatePropagation}stopImmediatePropagation(){this._didStopImmediatePropagation=!0}}import{EventEmitter as Z59}from"events";var U56;var _j1=k(()=>{U56=class U56 extends Z59{constructor(){super();this.setMaxListeners(0)}emit(A,...q){if(A==="error")return super.emit(A,...q);let K=this.rawListeners(A);if(K.length===0)return!1;let Y=q[0]instanceof Tb?q[0]:null;for(let z of K)if(z.apply(this,q),Y?.didStopImmediatePropagation())break;return!0}}});var fS7,TS7,$j1;var vM8=k(()=>{fS7=e(W6(),1),TS7=fS7.createContext({exit(){}});TS7.displayName="InternalAppContext";$j1=TS7});var VS7,NS7,l06;var Oj1=k(()=>{_j1();VS7=e(W6(),1),NS7=VS7.createContext({stdin:process.stdin,internal_eventEmitter:new U56,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0,internal_querier:null});NS7.displayName="InternalStdinContext";l06=NS7});var vS7,kS7,i06;var Hj1=k(()=>{vS7=e(W6(),1),kS7=vS7.createContext({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});kS7.displayName="InternalFocusContext";i06=kS7});function LM8(A){EM8=A?"focused":"blurred";for(let q of kM8)q();if(!A){for(let q of ES7)q();ES7.clear()}}function jj1(){return EM8!=="blurred"}function LS7(){return EM8}function yM8(A){return kM8.add(A),()=>{kM8.delete(A)}}var EM8="unknown",ES7,kM8;var Jj1=k(()=>{ES7=new Set,kM8=new Set});function yS7(A){let q=Y6(6),{children:K}=A,Y=p56.useSyncExternalStore(yM8,jj1),z=p56.useSyncExternalStore(yM8,LS7),w;if(q[0]!==Y||q[1]!==z)w={isTerminalFocused:Y,terminalFocusState:z},q[0]=Y,q[1]=z,q[2]=w;else w=q[2];let _=w,$;if(q[3]!==K||q[4]!==_)$=p56.default.createElement(RM8.Provider,{value:_},K),q[3]=K,q[4]=_,q[5]=$;else $=q[5];return $}var p56,RM8,RS7;var SM8=k(()=>{K1();Jj1();p56=e(W6(),1),RM8=p56.createContext({isTerminalFocused:!0,terminalFocusState:"unknown"});RM8.displayName="TerminalFocusContext";RS7=RM8});var CS7=C((eV2,SS7)=>{var G59=/[|\\{}()[\]^$+*?.-]/g;SS7.exports=(A)=>{if(typeof A!=="string")throw TypeError("Expected a string");return A.replace(G59,"\\$&")}});var xS7=C((AN2,bS7)=>{var f59=CS7(),T59=typeof process==="object"&&process&&typeof process.cwd==="function"?process.cwd():".",IS7=[].concat(g6("module").builtinModules,"bootstrap_node","node").map((A)=>new RegExp(`(?:\\((?:node:)?${A}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${A}(?:\\.js)?:\\d+:\\d+$)`));IS7.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);class CM8{constructor(A){if(A={ignoredPackages:[],...A},"internals"in A===!1)A.internals=CM8.nodeInternals();if("cwd"in A===!1)A.cwd=T59;this._cwd=A.cwd.replace(/\\/g,"/"),this._internals=[].concat(A.internals,V59(A.ignoredPackages)),this._wrapCallSite=A.wrapCallSite||!1}static nodeInternals(){return[...IS7]}clean(A,q=0){if(q=" ".repeat(q),!Array.isArray(A))A=A.split(`
`);if(!/^\s*at /.test(A[0])&&/^\s*at /.test(A[1]))A=A.slice(1);let K=!1,Y=null,z=[];return A.forEach((w)=>{if(w=w.replace(/\\/g,"/"),this._internals.some(($)=>$.test(w)))return;let _=/^\s*at /.test(w);if(K)w=w.trimEnd().replace(/^(\s+)at /,"$1");else if(w=w.trim(),_)w=w.slice(3);if(w=w.replace(`${this._cwd}/`,""),w)if(_){if(Y)z.push(Y),Y=null;z.push(w)}else K=!0,Y=w}),z.map((w)=>`${q}${w}
`).join("")}captureString(A,q=this.captureString){if(typeof A==="function")q=A,A=1/0;let{stackTraceLimit:K}=Error;if(A)Error.stackTraceLimit=A;let Y={};Error.captureStackTrace(Y,q);let{stack:z}=Y;return Error.stackTraceLimit=K,this.clean(z)}capture(A,q=this.capture){if(typeof A==="function")q=A,A=1/0;let{prepareStackTrace:K,stackTraceLimit:Y}=Error;if(Error.prepareStackTrace=(_,$)=>{if(this._wrapCallSite)return $.map(this._wrapCallSite);return $},A)Error.stackTraceLimit=A;let z={};Error.captureStackTrace(z,q);let{stack:w}=z;return Object.assign(Error,{prepareStackTrace:K,stackTraceLimit:Y}),w}at(A=this.at){let[q]=this.capture(1,A);if(!q)return{};let K={line:q.getLineNumber(),column:q.getColumnNumber()};if(hS7(K,q.getFileName(),this._cwd),q.isConstructor())Object.defineProperty(K,"constructor",{value:!0,configurable:!0});if(q.isEval())K.evalOrigin=q.getEvalOrigin();if(q.isNative())K.native=!0;let Y;try{Y=q.getTypeName()}catch(_){}if(Y&&Y!=="Object"&&Y!=="[object Object]")K.type=Y;let z=q.getFunctionName();if(z)K.function=z;let w=q.getMethodName();if(w&&z!==w)K.method=w;return K}parseLine(A){let q=A&&A.match(N59);if(!q)return null;let K=q[1]==="new",Y=q[2],z=q[3],w=q[4],_=Number(q[5]),$=Number(q[6]),O=q[7],H=q[8],j=q[9],J=q[10]==="native",M=q[11]===")",D,X={};if(H)X.line=Number(H);if(j)X.column=Number(j);if(M&&O){let P=0;for(let W=O.length-1;W>0;W--)if(O.charAt(W)===")")P++;else if(O.charAt(W)==="("&&O.charAt(W-1)===" "){if(P--,P===-1&&O.charAt(W-1)===" "){let Z=O.slice(0,W-1);O=O.slice(W+1),Y+=` (${Z}`;break}}}if(Y){let P=Y.match(v59);if(P)Y=P[1],D=P[2]}if(hS7(X,O,this._cwd),K)Object.defineProperty(X,"constructor",{value:!0,configurable:!0});if(z)X.evalOrigin=z,X.evalLine=_,X.evalColumn=$,X.evalFile=w&&w.replace(/\\/g,"/");if(J)X.native=!0;if(Y)X.function=Y;if(D&&Y!==D)X.method=D;return X}}function hS7(A,q,K){if(q){if(q=q.replace(/\\/g,"/"),q.startsWith(`${K}/`))q=q.slice(K.length+1);A.file=q}}function V59(A){if(A.length===0)return[];let q=A.map((K)=>f59(K));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${q.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var N59=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),v59=/^(.*?) \[as (.*?)\]$/;bS7.exports=CM8});var k59=(A,q=2)=>{return A.replace(/^\t+/gm,(K)=>" ".repeat(K.length*q))},uS7;var BS7=k(()=>{uS7=k59});var E59=(A,q)=>{let K=[],Y=A-q,z=A+q;for(let w=Y;w<=z;w++)K.push(w);return K},L59=(A,q,K={})=>{var Y;if(typeof A!=="string")throw TypeError("Source code is missing.");if(!q||q<1)throw TypeError("Line number must start from `1`.");let z=uS7(A).split(/\r?\n/);if(q>z.length)return;return E59(q,(Y=K.around)!==null&&Y!==void 0?Y:3).filter((w)=>z[w-1]!==void 0).map((w)=>({line:w,value:z[w-1]}))},mS7;var gS7=k(()=>{BS7();mS7=L59});function y59(A){let q=Y6(22),K,Y,z,w,_,$,O,H;if(q[0]!==A){let{children:X,flexWrap:P,flexDirection:W,flexGrow:Z,flexShrink:G,ref:f,onClick:V,...N}=A;K=X,O=f,$=V,H=N,_=P===void 0?"nowrap":P,Y=W===void 0?"row":W,z=Z===void 0?0:Z,w=G===void 0?1:G,QH(H.margin,"margin"),QH(H.marginX,"marginX"),QH(H.marginY,"marginY"),QH(H.marginTop,"marginTop"),QH(H.marginBottom,"marginBottom"),QH(H.marginLeft,"marginLeft"),QH(H.marginRight,"marginRight"),QH(H.padding,"padding"),QH(H.paddingX,"paddingX"),QH(H.paddingY,"paddingY"),QH(H.paddingTop,"paddingTop"),QH(H.paddingBottom,"paddingBottom"),QH(H.paddingLeft,"paddingLeft"),QH(H.paddingRight,"paddingRight"),QH(H.gap,"gap"),QH(H.columnGap,"columnGap"),QH(H.rowGap,"rowGap"),q[0]=A,q[1]=K,q[2]=Y,q[3]=z,q[4]=w,q[5]=_,q[6]=$,q[7]=O,q[8]=H}else K=q[1],Y=q[2],z=q[3],w=q[4],_=q[5],$=q[6],O=q[7],H=q[8];let j=H.overflowX??H.overflow??"visible",J=H.overflowY??H.overflow??"visible",M;if(q[9]!==Y||q[10]!==z||q[11]!==w||q[12]!==_||q[13]!==H||q[14]!==j||q[15]!==J)M={flexWrap:_,flexDirection:Y,flexGrow:z,flexShrink:w,...H,overflowX:j,overflowY:J},q[9]=Y,q[10]=z,q[11]=w,q[12]=_,q[13]=H,q[14]=j,q[15]=J,q[16]=M;else M=q[16];let D;if(q[17]!==K||q[18]!==$||q[19]!==O||q[20]!==M)D=FS7.default.createElement("ink-box",{ref:O,onClick:$,style:M},K),q[17]=K,q[18]=$,q[19]=O,q[20]=M,q[21]=D;else D=q[21];return D}var FS7,bM;var we=k(()=>{K1();OM8();FS7=e(W6(),1);bM=y59});function Cz(A){let q=Y6(29),{color:K,backgroundColor:Y,bold:z,dim:w,italic:_,underline:$,strikethrough:O,inverse:H,wrap:j,children:J}=A,M=_===void 0?!1:_,D=$===void 0?!1:$,X=O===void 0?!1:O,P=H===void 0?!1:H,W=j===void 0?"wrap":j;if(J===void 0||J===null)return null;let Z;if(q[0]!==K)Z=K&&{color:K},q[0]=K,q[1]=Z;else Z=q[1];let G;if(q[2]!==Y)G=Y&&{backgroundColor:Y},q[2]=Y,q[3]=G;else G=q[3];let f;if(q[4]!==w)f=w&&{dim:w},q[4]=w,q[5]=f;else f=q[5];let V;if(q[6]!==z)V=z&&{bold:z},q[6]=z,q[7]=V;else V=q[7];let N;if(q[8]!==M)N=M&&{italic:M},q[8]=M,q[9]=N;else N=q[9];let v;if(q[10]!==D)v=D&&{underline:D},q[10]=D,q[11]=v;else v=q[11];let y;if(q[12]!==X)y=X&&{strikethrough:X},q[12]=X,q[13]=y;else y=q[13];let R;if(q[14]!==P)R=P&&{inverse:P},q[14]=P,q[15]=R;else R=q[15];let h;if(q[16]!==N||q[17]!==v||q[18]!==y||q[19]!==R||q[20]!==Z||q[21]!==G||q[22]!==f||q[23]!==V)h={...Z,...G,...f,...V,...N,...v,...y,...R},q[16]=N,q[17]=v,q[18]=y,q[19]=R,q[20]=Z,q[21]=G,q[22]=f,q[23]=V,q[24]=h;else h=q[24];let B=h,x=R59[W],F;if(q[25]!==J||q[26]!==x||q[27]!==B)F=QS7.default.createElement("ink-text",{style:x,textStyles:B},J),q[25]=J,q[26]=x,q[27]=B,q[28]=F;else F=q[28];return F}var QS7,R59;var d56=k(()=>{K1();QS7=e(W6(),1),R59={wrap:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"wrap"},"wrap-trim":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"wrap-trim"},end:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"end"},middle:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"middle"},"truncate-end":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate-end"},truncate:{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate"},"truncate-middle":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate-middle"},"truncate-start":{flexGrow:0,flexShrink:1,flexDirection:"row",textWrap:"truncate-start"}}});import{readFileSync as S59}from"fs";function IM8({error:A}){let q=A.stack?A.stack.split(`
`).slice(1):void 0,K=q?pS7.parseLine(q[0]):void 0,Y=US7(K?.file),z,w=0;if(Y&&K?.line)try{let _=S59(Y,"utf8");if(z=mS7(_,K.line),z)for(let{line:$}of z)w=Math.max(w,String($).length)}catch{}return xM.default.createElement(bM,{flexDirection:"column",padding:1},xM.default.createElement(bM,null,xM.default.createElement(Cz,{backgroundColor:"ansi:red",color:"ansi:white"}," ","ERROR"," "),xM.default.createElement(Cz,null," ",A.message)),K&&Y&&xM.default.createElement(bM,{marginTop:1},xM.default.createElement(Cz,{dim:!0},Y,":",K.line,":",K.column)),K&&z&&xM.default.createElement(bM,{marginTop:1,flexDirection:"column"},z.map(({line:_,value:$})=>xM.default.createElement(bM,{key:_},xM.default.createElement(bM,{width:w+1},xM.default.createElement(Cz,{dim:_!==K.line,backgroundColor:_===K.line?"ansi:red":void 0,color:_===K.line?"ansi:white":void 0},String(_).padStart(w," "),":")),xM.default.createElement(Cz,{key:_,backgroundColor:_===K.line?"ansi:red":void 0,color:_===K.line?"ansi:white":void 0}," "+$)))),A.stack&&xM.default.createElement(bM,{marginTop:1,flexDirection:"column"},A.stack.split(`
`).slice(1).map((_)=>{let $=pS7.parseLine(_);if(!$)return xM.default.createElement(bM,{key:_},xM.default.createElement(Cz,{dim:!0},"- "),xM.default.createElement(Cz,{bold:!0},_));return xM.default.createElement(bM,{key:_},xM.default.createElement(Cz,{dim:!0},"- "),xM.default.createElement(Cz,{bold:!0},$.function),xM.default.createElement(Cz,{dim:!0}," ","(",US7($.file)??"",":",$.line,":",$.column,")"))})))}var xM,hM8,US7=(A)=>{return A?.replace(`file://${process.cwd()}/`,"")},pS7;var dS7=k(()=>{gS7();we();d56();xM=e(W6(),1),hM8=e(xS7(),1),pS7=new hM8.default({cwd:process.cwd(),internals:hM8.default.nodeInternals()})});var n06=16;function V_(){let{isTerminalFocused:A}=cS7.useContext(RS7);return A}var cS7;var Tg6=k(()=>{SM8();cS7=e(W6(),1)});function C59(A){let q=new Map,K=null,Y=A,z=0,w=0;function _(){w=Date.now()-z;for(let O of q.keys())O()}function $(){if([...q.values()].some(Boolean)){if(K)clearInterval(K),K=null;if(z===0)z=Date.now();K=setInterval(_,Y)}else if(K)clearInterval(K),K=null}return{subscribe(O,H){return q.set(O,H),$(),()=>{q.delete(O),$()}},now(){if(z===0)z=Date.now();if(K&&w)return w;return Date.now()-z},setTickInterval(O){if(O===Y)return;Y=O,$()}}}function lS7(A){let q=Y6(7),{children:K}=A,[Y]=_e.useState(I59),z=V_(),w,_;if(q[0]!==Y||q[1]!==z)w=()=>{Y.setTickInterval(z?n06:h59)},_=[Y,z],q[0]=Y,q[1]=z,q[2]=w,q[3]=_;else w=q[2],_=q[3];_e.useEffect(w,_);let $;if(q[4]!==K||q[5]!==Y)$=_e.default.createElement(r06.Provider,{value:Y},K),q[4]=K,q[5]=Y,q[6]=$;else $=q[6];return $}function I59(){return C59(n06)}var _e,r06,h59;var Mj1=k(()=>{K1();Tg6();_e=e(W6(),1);r06=_e.createContext(null),h59=n06*2});import{Buffer as b59}from"buffer";function iS7(A){return{kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:A,raw:A,isPasted:!0}}function c59(A){if(A.startsWith("\x1B[")){let q;if(q=g59.exec(A))return{type:"decrpm",mode:parseInt(q[1],10),status:parseInt(q[2],10)};if(q=F59.exec(A))return{type:"da1",params:nS7(q[1])};if(q=Q59.exec(A))return{type:"da2",params:nS7(q[1])};if(q=U59.exec(A))return{type:"kittyKeyboard",flags:parseInt(q[1],10)};if(q=p59.exec(A))return{type:"cursorPosition",row:parseInt(q[1],10),col:parseInt(q[2],10)};return null}if(A.startsWith("\x1B]")){let q=d59.exec(A);if(q)return{type:"osc",code:parseInt(q[1],10),data:q[2]}}return null}function nS7(A){if(!A)return[];return A.split(";").map((q)=>parseInt(q,10))}function l59(A){if(b59.isBuffer(A))if(A[0]>127&&A[1]===void 0)return A[0]-=128,"\x1B"+String(A);else return String(A);else if(A!==void 0&&typeof A!=="string")return String(A);else if(!A)return"";else return A}function eS7(A,q=""){let K=q===null,Y=K?"":l59(q),z=A._tokenizer??C06(),w=K?z.flush():z.feed(Y),_=[],$=A.mode==="IN_PASTE",O=A.pasteBuffer;for(let j of w)if(j.type==="sequence")if(j.value===ny7)$=!0,O="";else if(j.value===ry7)_.push(iS7(O)),$=!1,O="";else if($)O+=j.value;else{let J=c59(j.value);if(J)_.push({kind:"response",sequence:j.value,response:J});else{let M=r59(j.value);if(M)_.push(M);else _.push(aS7(j.value))}}else if(j.type==="text")if($)O+=j.value;else _.push(aS7(j.value));if(K&&$&&O)_.push(iS7(O)),$=!1,O="";let H={mode:$?"IN_PASTE":"NORMAL",incomplete:z.buffer(),pasteBuffer:O,_tokenizer:z};return[_,H]}function rS7(A){let q=A-1;return{shift:!!(q&1),meta:!!(q&2)||!!(q&8),ctrl:!!(q&4)}}function oS7(A){switch(A){case 9:return"tab";case 13:return"return";case 27:return"escape";case 32:return"space";case 127:return"backspace";case 57399:return"0";case 57400:return"1";case 57401:return"2";case 57402:return"3";case 57403:return"4";case 57404:return"5";case 57405:return"6";case 57406:return"7";case 57407:return"8";case 57408:return"9";case 57409:return".";case 57410:return"/";case 57411:return"*";case 57412:return"-";case 57413:return"+";case 57414:return"return";case 57415:return"=";default:if(A>=32&&A<=126)return String.fromCharCode(A).toLowerCase();return}}function r59(A){let q=sS7.exec(A);if(!q)return null;let K=parseInt(q[1],10);if((K&64)!==0)return null;return{kind:"mouse",button:K,action:q[4]==="M"?"press":"release",col:parseInt(q[2],10),row:parseInt(q[3],10),sequence:A}}function aS7(A=""){let q,K={kind:"key",name:"",fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,sequence:A,raw:A,isPasted:!1};K.sequence=K.sequence||A||K.name;let Y;if(Y=B59.exec(A)){let z=parseInt(Y[1],10),w=Y[2]?parseInt(Y[2],10):1,_=rS7(w);return{kind:"key",name:oS7(z),fn:!1,ctrl:_.ctrl,meta:_.meta,shift:_.shift,option:!1,sequence:A,raw:A,isPasted:!1}}if(Y=m59.exec(A)){let z=rS7(parseInt(Y[1],10));return{kind:"key",name:oS7(parseInt(Y[2],10)),fn:!1,ctrl:z.ctrl,meta:z.meta,shift:z.shift,option:!1,sequence:A,raw:A,isPasted:!1}}if(Y=sS7.exec(A)){let z=parseInt(Y[1],10);if((z&67)===64)return oc(A,"wheelup",!1);if((z&67)===65)return oc(A,"wheeldown",!1);return oc(A,"mouse",!1)}if(A==="\r")K.raw=void 0,K.name="return";else if(A===`
`)K.name="enter";else if(A==="\t")K.name="tab";else if(A==="\b"||A==="\x1B\b")K.name="backspace",K.meta=A.charAt(0)==="\x1B";else if(A==="